Best barcodes and how/what to generate barcodes from, and how to store it the best way? - laravel-5

I am writing an webapp for a used thrift store. We are planning to add all items to a database, and I will be using Laravel and MySQL for this.
We also want to get a barcode scanner in order to scan and add items.
But I've never worked with barcodes before and info regarded this for a website like mine is hard to find info on, so is the barcode-scanners so I'm asking help from someone with experience.
I'm not sure which barcodes we should use, but I'm thinking a 3D one, like QR would do good. I've found several qr-generators, but I'm unsure on how I should create them properly from items.
Say the store is named Brukten. And it has items, with number IDs. Should I then generate barcodes out of "Brukten_53" or something, or just the ID, or how is a smart way? Because I can use an option like this instead of storing the generated barcode, right, and its better to generate a QR each time instead of storing the data about it?
At first we will use a web interface to add items, and later on we want to get a barcode-scanner to help scan things, so I'm guessing it would be nice with a scanner that could take pictures and add to database. So we want the DB to be ready for this, and properly made to work with such systems. So I'm wondering also if anyone can recommend me a device for this. I've seen several but unsure what to choose. 2d, 3d, something with camera, or is there other devices we could use?
What we want a device for is:
We want to store in the db: Old things, new things
We want to retrieve: all things
We want to alter info: edit things, sell, check things
Something easier than going around with a laptop, phone or a tablet and entering stuff.
Building the site is no problem for me, PHP, MySQL, Laravel framework and all is old stuff, but barcodes is a new world for me.

You only have to make sure that every single distinct physical item has a unique ID.
A simple way to accomplish this is using category ids as prefixes.
Suppose your "used men clothes category" is ID 25, and when you enter a pair on jeans of that category into the system, you app assign them ID 12345.
You can reference that item as 002500012345. You only need to calculate the 13rd digit using this function (http://edmondscommerce.github.io/php/barcode/ean13-barcode-check-digit-with-php.html) and you have a full-fledged EAN13 barcode you can print using this font (http://www.fontpalace.com/font-details/EAN-13/) and read with virtually any code scanner.
The other approach is generating a unique url for each product:
http://www.example.com/25/12345.html
And embed the url into a QR code.
You can generate the image for the QR code using this library:
http://phpqrcode.sourceforge.net/

Related

How to use "move..." verb to move sheets in Numbers?

I'm trying to figure out how to re-position sheets in Numbers. There is no way to insert things at specific location so I am hoping that I can find another way. The move verb drew my attention (it is in the Numbers dictionary) however there is little or no information, examples, usage scenarios or even what object types it works with.
Any insight in the context of the title?
The move in the Numbers dictionary is part of the Standard Suite, which typically works with files. I have tried using it to move text items and tables from one sheet to another, but it always fails. It is probably something they hope to provide functionality for some day.

Barcode implementation on product items

I have a product multiple items, i want to put barcode on them as it is required to sale them in local markete in Pakistan. For this reason i searched on internet to have solutions and i am still a little confused in it. Note: purpose is to sale my product in a local markete and they tell me to put barcode on it.
Do i really have to register my product with GS1 pk to get barcode
number?
Through internet search i found a software named Really Simple Barcode it make some barcode but not very attractive and also ask me about GS1 barcode number.
There is another mobile app named QuickMart is an excellent app to scan different kind of barcode images and also create QR code for free. but i think that's also not what i need.
What kind of barcode i actually need for selling my product in local
markete? codebar is suitable or not?
Do i need only one barcode image which will b placed on all the itmes
of similar product? or i need to have separate barcode image for every
single item of a single product?
Tell me if there is any way to avoid GS1 registration?
Once i will get my barcode image ready, then how to place it on my
product? any simple and effective method?
Thanks in advance.
Do I really have to register my product with GS1 pk to get barcode number?
Yes. GS1 owns the numbers. Each GS1 office has its own rules but generally you need to join GS1
to obtain the numbers. They issue you with a set of numbers which you allocate to products as you need them. It has to be co-ordinated by a central authority (GS1) - same as car registration.
What kind of barcode do I actually need for selling my product in local markete? Is codebar suitable or not?
EAN/UPC 13-digit product code. Using GS1 Databar is not suitable. All systems in use nowadays world-wide are supposed to be able to read EAN/UPC 13-digit codes. If you produce your codes using any other standard, the equipment at the end-user sales location may not be able to read the code you are using.
Do I need only one barcode image which will b placed on all the itmes of similar product? or i need to have separate barcode image for every single item of a single product?
If you produce a million 400g can of beans in tomato sauce then each one will carry the same barcode number. If you produce 400g can of beans in worcester sauce then each one of those will carry another barcode number - it will be a different number from the barcode printed on your 400g can of beans in tomato sauce as it is a different product. Every 825g can of beans in tomato sauce you produce will carry a third number because it is a different size even if it is the same fundamental product.
Tell me if there is any way to avoid GS1 registration?
You can't avoid GS1 registration in some form. Some administrations will allow a single barcode number or a small set to be issued to a small manufacturer. Best idea is to telephone GS1 ( +92 21 2628213 in Karachi) and ask them. I have heard that they don't bite.
Once i will get my barcode image ready, then how to place it on my product? any simple and effective method?
GS1 can advise - it's their job and mission. Your label manufacturer will be familiar with the routine and can guide. All you need to do is worry about location on your product. Black bars on a white background are best, but other colour combinations are possible (and some are prohibited because the scanner equipment has difficulty reading the code.) GS1 can advise - it's their job and mission (I may have said that before.) GS1 will often want you to provide them with a sample of your proposed label for verification and will normally allow you a number of verifications as part of your membership. Again, they will advise what needs to be changed about your label if it has to be modified for any reason.
If you are producing individual labels using a barcode printer, then printing the barcodes is incorporated into the basic functionality of the printer. From there, it depends on whether you are constructing your labels by using the Printer Control Language for your printer (with which you should be familiar) or whether you are using label-designer software where you can no doubt simply drop a barcode onto your form in the same way as any text or graphic.
Tips: Look a similarly-shaped products already on the market for how to arrange your label. For instance, on small cans with a small circumference (like soft-drink cans,) the bars are probably best rotated so that the code is horizontal.

Build a website: should I use a number or random unique string as ID in URLs?

Hi I am building an Internet website with Java and Spring framework. I believe my question is not technology or framework related.
I need to have links in user interface so that visitors can click and to see records. These links have the format of
http://mysite.com?id=number-id-or-random-unique-string
Not all records are allowed to view. For the ID parameter in the URL, I could use the database-generated number as the ID value and so I do not need to have additional programming. Or I could use unique random string (for example: jcTDjhdDUls) as the ID value (I have to program this part). Numbers allow curious people (with good or bad intentions) to EASILY guess and try other IDs. Unique random strings seems better in this regard.
However, no matter numbers or strings as the value for the ID, I have security check in the backend code to see whether a visitor is allowed to see a record. From this perspective, I am not sure what is the real benefit of having random string as the ID.
I hope to have input from experienced people. What design decision do you choose? Or other better ideas?
Thanks and regards.
You certainly can if you want to, but I would not go through the trouble to randomize the ID. This is at its root, "security through obscurity (STO)." Sometimes STO is useful, but in this case I don't think it is worth complicating and bloating the code and memory footprint. It's surprisingly easy to enumerate the valid IDs whether they're randomized or not, using a tool like Burp Suite. All the security controls that really matter should be implemented in the backend.

dynamically classify categories

I am new at the idea of programming algorithms. I can work with simplistic ideas, but my current project requires that I create something a bit more complicated.
I'm trying to create a categorization system based on keywords and subsets of 'general' categories that filter down into more detailed categories that requires as little work as possible from the user.
I.E.
Sports >> Baseball >> Pitching >> Nolan Ryan
So, if a user decides they want to talk about "Baseball" and they filter the search, I would like to also include 'Sports"
User enters: "baseball"
User is then taken to Sports >> Baseball
Now I understand that this would be impossible without a living - breathing dynamic program that connects those two categories in some way. It would also require 'some' user input initially, and many more inputs throughout the lifetime of the software in order to maintain it and keep it up to date.
But Alas, asking for such an algorithm would be frivolous without detailing very concrete specifics about what I'm trying to do. And i'm not trying to ask for a hand out.
Instead, I am curious if people are aware of similar systems that have already been implemented and if there is documentation out there describing how it has been done. Or even some real life examples of your own projects.
In short, I have a 'plan' but it requires more user input than I really want. I feel getting more info on the subject would be the best course of action before jumping head first into developing this program.
Thanks
IMHO It isn't as hard as you think. What you want is called Tagging and you can do it Automatically just by setting the correlation between tags (i.e. a Tag can have its meaningful information plus its reation with other ones. Then, if user select a Tag well, you related that with others via looking your ADT collection (can be as simple as an array).
Tag:
Sport
Related Tags
Football
Soccer
...
I'm hoping this helps!
It sounds like what you want to do is create a tree/menu structure, and then be able to rapidly retrieve the "breadcrumb" for any given key in the tree.
Here's what I would think:
Create the tree with all the branches. It's okay if you want branches to share keys - as long as you can give the user a "choice" of "Multiple found, please choose which one... ?"
For every key in the tree, generate the breadcrumb. This is time-consuming, and if the tree is very large and updating regularly then it may be something better done offline, in the cloud, or via hadoop, etc.
Store the key and the breadcrumb in a key/value store such as redis, or in memory/cached as desired. You'll want every value to have an array if you want to share keys across categories/branches.
When the user selects a key - the key is looked up in the store, and if the resulting value contains only one match, then you simply construct the breadcrumb to take the user where you want them to go. If it has multiple, you give them a choice.
I would even say, if you need something more organic, say a user can create "new topic" dynamically from anywhere else, then you might want to not use a tree at all after the initial import - instead just update your key/value store in real-time.

Saving files in xCode and making graph

I am new to programming. Now i have been learning for a few weeks and am now making my first app. Probably not for public, just for me. At least for now. So here it goes. I want the user to be able to enter his information (for example weight or something like that) into textField and then save it, so I can later form a graph (for example of weight loss through time). Now the graph should not be that much of a problem, since there are many tutorials on that. I am more interested in how to enter information, then save it so it can be later accessed. Any help? What should I read?
Thanks!
Working with UITextFields in Objective C is pretty straightforward - you can grab the NSString from such an object using the 'text' property. Use plists for storage locally, or JSON.
Look at core data tutorials especially related to Apples' doc on “Core Data and Cocoa Bindings”
CoreData shows how to setup objects and save them to a file or simple database. Cocoa Bindings are how to make input screens pass data to object models.
You should be able to write a program to enter weights, save them and show in a table without writing any code.

Resources