All Questions

2
answers

Barcode scanning on a single screen

I and my friends are developing an application in which one of the functions the smartphone should scan the bar code of a product and get it in a database (ours). Since this can be done for several products, we have chosen to keep the reader on...
asked on 16.03.2015 / 22:37
1
answer

How to use acute accent inside a string in a bash script?

I use the script below to download audios from google translator for use in a personal program that tracks codes and quantities from my stock. The problem is that the acute "oh" accent of the word code is bringing a faulty audio, as if it were e...
asked on 31.03.2015 / 13:50
1
answer

How to get command line parameters / file path

I'm developing an application, and I need it by parameters / commands next to the file path. For example, these flags : C:/caminho_do_arquivo -r C:/caminho_do_arquivo -v And in the code would have regions that would identify this comm...
asked on 02.04.2015 / 20:03
3
answers

Keep the height of a div block proportional to its width

Hello, I have a block div as a vertical column of indeterminate width and height, as they depend on the amount of content and the device, and I want it to have another block div on the top that has width: 100%; but the height...
asked on 25.04.2015 / 07:51
1
answer

Integrity constraint violation: 1048 Column 'name' can not be null

I'm trying to create a system to upload PDF's and it always returns me the following error:    Error Registering! - SQLSTATE [23000]: Integrity constraint violation: 1048 Column 'name' can not be null and with all fields returns the same...
asked on 23.04.2015 / 06:52
1
answer

Print EPL code with javascript

I'm doing some testing with the Zebra GC420T printer using the EPL language to generate text and barcode. How can I use javascript to send the printer the following code? N q812 S2 A50,0,0,1,1,1,N,"Example 1 0123456789" A50,50,0,2,1,1,N...
asked on 06.04.2015 / 17:33
1
answer

Regex get more than one occurrence in a string

I have my regex (\d{2}) . And I have my string 12 hoje vai 45 na serra pelada 55 ou 75 . How do I get my regex to get all occurrences of the string? She's just getting the last one.     
asked on 13.03.2015 / 19:11
1
answer

How to work with environment variables?

I'm developing an application that works with files (save and load) and I have to work with system variables to determine where to save those files. My question is: Is there any way to use variables regardless of the operating system? If so,...
asked on 16.03.2015 / 14:19
1
answer

How to use row class in bootstrap?

I have two questions: 1st - In the bootstrap is it necessary to use the "row" class to wrap the columns? 2nd - Can I have more than 12 columns within the same "row" class? Example: <div class="row"> <div class="col-md-12"...
asked on 12.03.2015 / 15:35
1
answer

How to do HTTP request?

I would like to make an HTTP request to my college server by imitating the requests sent by the browser so that I can log in and check my grades. I already have experience with mobile development, my intention is in the future to develop an A...
asked on 13.04.2015 / 16:06