All Questions

4
answers

Path is file or directory (folder)

How do I check if a path points to a file or folder? I have no idea how to do it. A folder or directory path would be: C:\Program Files\Embarcadero\RAD Studio.0\bin A file: C:\Program Files\Embarcadero\RAD Studio.0\bin\bds.exe     
asked on 28.10.2014 / 23:43
2
answers

Is it possible to multiply only with the &, |, + and - operators?

I have to create a program with assembly language K & S Model 2 that multiplies a number by another, the problem is that this language does not provide a multiplication operation. I thought of doing multiplications with additions, for exam...
asked on 21.09.2014 / 19:07
2
answers

Convert ListT to T ... dynamically in calling a method

I'm in need of something that seems to be simple, but I've been researching and trying for some time and have not found anything that helps. Problem I have a list of type List<T> that I get as a parameter of another method,...
asked on 31.07.2014 / 22:08
2
answers

How to capture keyboard action without pausing the C ++ program?

How do I capture a keyboard action without pausing the program? For example: char tecla; do{ scanf("%c", &tecla); printf("%c",tecla); }while(tecla != '0'); I wanted it to loop, but when typing something on the keyboard I was ab...
asked on 07.11.2014 / 17:08
2
answers

Hide and Show all the descendents of an ul - JQuery

I have the following lists: <h4>Procedures</h4> <ul> <li">Foo</li> <li">Foobar</li> <li">FooBarBazz</li> </ul> <h4>Packages</h4> <ul> <li">Foo</li&...
asked on 07.08.2014 / 21:13
2
answers

Recognize whether the user is using iOS or Android

I'm developing a screen for a website, and the customer asks if there's a chance the site will recognize whether the user is using Android or iOS. If you're on Android, go to Google Play to download the app and if it's iOS for the App Store....
asked on 29.08.2014 / 14:36
2
answers

Search for nearby ceps [duplicate]

I'm implementing a system as an online delivery, the customer will enter the tool and place their zip code, so the system should inform all restaurants / companies, close to it. I wanted to know if anyone has a good solution to do this quest....
asked on 06.10.2014 / 21:31
1
answer

json_encode - Invalid JSON

I created a PHP code to fetch information from a database (MySQL) and "transform" into JSON. I used json_encode to do this. The output JSON seemed to be correct, but when I use some JSON validator, it always returns a Unexpected token...
asked on 14.10.2014 / 15:28
4
answers

Javascript URL redirection code

I need to develop a javascript code that is not working. My need is as follows: When the user accesses a certain page, I would like to supplement the URL with some parameters, eg: If the domain is xxx.com.br/index.php, redirect it to xx...
asked on 05.12.2014 / 14:40
2
answers

When executing "java" command in CMD, it is not possible to locate or load the main class

After you run the javac command normally and create the .class file, I try to execute the command java plus it gives this problem of not being able to locate nor load the main class. I think it might be a mess on the envi...
asked on 10.02.2015 / 16:27