Posts by Lucio Rubens • 3,384 points
113 posts
-
3
votes1
answer133
viewsA: How to livereload using Grunt for . Less files?
Add the tasks that Grunt will have to run after these files are modified. Use the plugin Grunt-contrib-Less to convert the code less in css. less: { development: { options: { compress: true}, files:…
-
1
votes1
answer278
viewsQ: Ajax after page fully loaded
I have a very slow code running on the server side, to avoid the delay in rendering the page, I decided to call the function via ajax after the page loaded, I used both ways but both did not work:…
-
6
votes3
answers2642
viewsA: Receive array and record multiple lines in Mysql
Can be made a INSERT to each line, or concatenate all values into a string and execute only this query. Example: // utilizei o filter_input para receber os dados do formulário, com o parâmetro…
-
0
votes2
answers6977
viewsA: Add external icons to Bootstrap
A new icon font can be added without removing the Bootstrap pattern (Glyphicons). For this I recommend the Fontatisc or the Icomoon, where it is possible to generate custom fonts with CSS already…
-
2
votes4
answers10222
viewsA: Regressive Count Script
I did not understand why to do this with PHP, since it can be done with Javascript. Example: http://jsfiddle.net/xackzsz7/ function contador() { // data informada valInput = $("#data").val(); contar…
-
9
votes3
answers4914
viewsQ: Run VBA code from text file
I have a code in VBA that queries the database and saves it in a text file, but to run this script I have to open the Excel and perform the macro, this process has to be carried out from minute to…
vbaasked Lucio Rubens 3,384 -
1
votes1
answer1823
viewsA: Binding Tables with Code Igniter
It is possible with a INNER JOIN, in the CodeIgniter can be done this way: <?php // application/models/admin.php public function get_faturas() { $this->db->select('faturas.numero,…
-
5
votes3
answers3657
viewsA: How to group records by time range?
You can use Mysql functions to handle(CASE), group(GROUP_BY) and sort the results(ORDER BY): SELECT tempo,count(*) as quantidade FROM ( SELECT (CASE WHEN DATE_FORMAT(data, '%H:%i:%s') > '07:00'…
-
0
votes3
answers1621
viewsA: Is it possible to move Nodejs modules to be used offline?
In case anyone is interested, I found a great and simple solution, is the npmbox, that allows you to create a custom package with all dependencies.…
-
0
votes1
answer135
viewsQ: Contesting banknote database structure
I have a banknote allocation system where contestation, replica and/or rejoinder is allowed, which is the best way to store in the database? Create three tables (contestacao, replica, treplica)…
-
4
votes3
answers1621
viewsQ: Is it possible to move Nodejs modules to be used offline?
I use the GruntJS for personal projects, I would like to use the benefits of this tool at work, but the use of the network is limited and I cannot install via prompt. I tried to copy the directory…
-
0
votes7
answers3667
viewsA: PDO does not connect to Mysql
Execute php -m in the terminal/prompt and check that the pdo_mysql extension is actually enabled, if it is and still doesn’t work check that Mysql has been started.
-
4
votes3
answers1374
viewsQ: Should I use routes or controllers in Laravel 4?
I’m a beginner in Laravel and I have doubts about the use of controllers, I read several examples/ tutorials and see the vast majority use the routes for example for a form request, to display…