All Questions

1
answer

Problem in sublime to run code in python

Decode error - output not utf-8] [cmd: [u'python', u'-u', u'C:\Users\Rosangela\Desktop\Leo\Estudo\Exercicios_Python\teste14.py']] [dir: C:\Users\Rosangela\Desktop\Leo\Estudo\Exercicios_Python] [path: C:\Program Files (x86)\CollabNet;C:...
asked on 12.06.2014 / 04:15
1
answer

Pick up the average of a field in relationship table many to many Laravel Eloquent

I have a Many to Many relationship and in the relationship table the "value" field. How do I bring the media to this field using Eloquent? Example: Tabela A a_id Relationship Table a_id c_id value Table C c_id The query in my...
asked on 04.07.2014 / 00:38
1
answer

How do I create scheduled events in SQL Server, similar to MySQL event?

In MySQL I used this syntax to create a scheduled event: CREATE EVENT 'evento_LimparPaper' ON SCHEDULE EVERY 1 MONTH STARTS '2014-06-3 00:00:01' ON COMPLETION NOT PRESERVE ENABLE COMMENT '' DO BEGIN UPDATE 'tbl_Paper' SET capa='mudar'; END...
asked on 02.07.2014 / 21:06
1
answer

What does the crossDomain: false parameter in Ajax mean?

I'm implementing an image upload web app in Ajax and there is the crossDomain:false parameter in a finding example. What is the function of this parameter?     
asked on 19.07.2014 / 01:34
1
answer

How to use session for authentication in MVC 4 with C #?

My scenario is as follows. I have an MVC 4 application. On my controller I check the logged in user and password. (I think) I put user data in a session after the data is verified and correct. My pages are cshtml (Razor). And I have a master...
asked on 02.07.2014 / 23:50
2
answers

How to convert a std :: string into a QString?

I'm trying to make a simple display my name dialog box. See the code. Pessoa *p = new Pessoa("Ronald Araújo", "[email protected]", 23); QMessageBox msg; msg.setText(QString::fromUtf8(p->getNome())); msg.exec(); But the code bre...
asked on 18.06.2014 / 00:21
1
answer

Minimum bits needed to represent a natural number

What is the most performative way of finding the minimum number of bits needed to represent a natural number (i.e., no signal) in JavaScript? Is there a way to do without using loops? The code below for example works for every integer between...
asked on 26.07.2014 / 17:29
1
answer

Extend the PHPWord class in CI - class not found

I'm trying to put the PHPWord library in codeigniter, so I downloaded PHPWord and extracted the PHPWord folder and the PhpWord.php file to the third_party folder of CI. After that I created in the libraries folder a file with the name word.ph...
asked on 09.01.2015 / 12:00
1
answer

Error with border radius Chrome

I have the following structure using bootstrap and fontawesome .social-rodape{ margin-top: 35px; } .social-rodape ul li a { padding: 10px 12px; border-width: 0; color: #37a8ab; font-size: 30px; } .social-roda...
asked on 07.01.2015 / 17:43
2
answers

PHP: elements with and without explicit keys in the same array

I'm trying to figure out a better or cleaner way to do something like this in PHP: // Isto será passado como argumento de uma função... $params = array('Nome', 'Idade', 'Mail' => '[email protected]'); "Name" and "Age" are values with keys a...
asked on 31.07.2014 / 16:43