All Questions

3
answers

Upload template automatically

Is it possible to program codeIgniter to load the template automatically without having to specify the views for each call in the controler? Example user controller public function listar() { $this->load->view('template/he...
asked on 17.11.2014 / 19:18
2
answers

Make a conditional UPDATE on the ON DUPLICATE KEY

I have a query that receives data from a .csv and inserts the data into the table. If position is the same it updates the fields. I need to verify that position is different from 1 ( status ) in order to update. This...
asked on 19.11.2014 / 03:18
1
answer

Know line and file that is executing a method

I want to know if it is possible to know the line and file that a method is executing. For example, I have a class Log , with it I make log records of the users. Log.php <?php /** * Classe de Logs */ class Log { var $con; pr...
asked on 06.01.2015 / 20:00
1
answer

Connect and disconnect the Internet?

I would like to do two basic .exe, one would be to disconnect the Internet and open one program and the other would be to just connect to the Internet. The part of opening the program I know, now disconnect and connect the Internet in c ++ I...
asked on 27.11.2014 / 22:03
1
answer

Error publishing application in IIS

I'm publishing an application in IIS, and when I access it, I get the following error:    HTTP Error 500.19 - Internal Server Error   The requested page can not be accessed because the configuration data related to > page are invalid....
asked on 21.01.2015 / 12:13
3
answers

How to 'break' a text at each character range - Javascript

I would like to know how to 'break' (split function) one text every 8 characters in javascript for example: var teste = '1234567898' teste.split({a cada 8 caracteres}) //retorna ['12345678', '898']; Thank you in advance.     
asked on 18.12.2014 / 19:57
2
answers

Location of a point within the range of an arc

I'm looking for a Javascript function that returns a random value within a range in the area of a circle. The interval would be along the radius with distances equivalent to the center point and the radius endpoint, also considering a range of d...
asked on 21.01.2015 / 18:27
3
answers

Increase letters in PHP?

Recently I needed to increment letters in PHP within a loop repetition. For each iteration, instead of numerical indices, it needed letters of the alphabet. So, as I already know that PHP does incremental letters (and to be very simple), I...
asked on 04.02.2015 / 20:40
1
answer

How to make ScrollView scrolling always visible

I have a horizontalScrollView and I was just wanting to let the scroll bar always show. <HorizontalScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" android:lay...
asked on 22.12.2014 / 13:26
4
answers

SQL Query Joining 5 tables

I need help to make a query (multiple relationships) in my WebService + MySQL to return the result in my Android application. I have these tables: QueryIneedtoqueryaperson(tb_suspeito),withtheattributes(Name,cpfandRg).PreparedStatementstat...
asked on 30.10.2014 / 13:23