Posts by Daniel Accorsi • 591 points
17 posts
-
0
votes1
answer351
viewsA: Telegram bot using Node.js finishing sending the message
Hi, have you tried using the command: process.exit(1);
node.jsanswered Daniel Accorsi 591 -
1
votes3
answers90
viewsQ: strpos() is closing while true
I loop a query. I check if the value of each record contains within any string (in the case $message). The problem is that when the value is found, in this case within the ELSE, while is closed for…
phpasked Daniel Accorsi 591 -
3
votes2
answers209
viewsA: PHP - Convert ISO8601 standard (used by Youtube) to seconds
Here is an example of a PHP function to convert the Youtube duration format to seconds: function yt2seconds($youtube_time) { preg_match_all('/(\d+)/',$youtube_time,$parts); if (count($parts[0]) ==…
-
1
votes2
answers209
viewsQ: PHP - Convert ISO8601 standard (used by Youtube) to seconds
I need to convert for seconds a time received in the pattern ISO8601, used by Youtube. Someone knows some function for this purpose? Exemplifying: If caught by the Youtube API the length of a video…
-
0
votes1
answer846
viewsQ: Redirect any URL html extension to a specific page
Please I have a question on . htaccess (or apache). I need to redirect any url that contains extension .html or .htm to a specific url. Example: domain.com/test.html -> domain.com/page…
-
5
votes1
answer1502
viewsQ: Wait to finish the thread before ending the program
I have a loop while that ends only when I press the key q, then the program is closed. Within that loop, at a given time or condition, I initiate a thread that takes about a few 10 seconds to run.…
-
2
votes1
answer60
viewsA: Add lines with the same year
Try this: SELECT sum(produtividade), ano FROM area_e_producao_05_15 INNER JOIN dados_cidades ON edr_id={$edr['edr_id']} WHERE area_e_producao_05_15.id_municipio=dados_cidades.dados_cidades_id AND…
mysqlanswered Daniel Accorsi 591 -
0
votes1
answer494
viewsA: How to separate HTTP and IMAP access from the same domain on separate servers?
I solved the question as follows. The only step that is really different is the configuration in Locaweb. Settings in AWS usually occur as if you were creating a new domain. Shares in Locaweb I…
-
1
votes1
answer494
viewsQ: How to separate HTTP and IMAP access from the same domain on separate servers?
I have a hosting account at Locaweb, of course IMAP and HTTP. I’m intending to migrate to AWS (Amazon Web Service). However, before making such a change, I first intend to change only access to the…
-
2
votes2
answers831
viewsA: What do I need to do to make sure my app isn’t recognized as an "Unknown Source"?
Diogo, by recommendation of Google and convention, is not possible to release an APK outside of Google Play and still be considered "safe". You can send APK to your friends without problems, but…
-
2
votes2
answers281
viewsA: Leave web page text manageable
Felipe, no way, you can use a "Ferrari" to solve a simple problem, that would be Wordpress in the similar molds that the brasofilo answered, or you create a very simple own resource, which is the…
-
10
votes5
answers53548
viewsA: Mysql decimal value
Type DECIMAL(7,2) The fastest and easiest way. The 2 indicates decimal places. The 7 indicates maximum numerical quantity before comma.…
-
7
votes1
answer190
viewsA: Develop for iPhone when you’re an Android developer
My friend, I would like to make a comment on this matter. There are two ways to develop Android and iOS apps: 1º - Using Frameworks. In this case you can compile the same project for both Android…
-
2
votes2
answers1218
viewsQ: Integration with Wordpress authentication
Taking into account a site based on Wordpress and a management system that runs in the same domain, but with totally independent authentication features, I think to integrate the authentication of…
-
3
votes1
answer3066
viewsQ: UI for PHP report design
I’ve used Crystal Reports a lot to visually create my reports based on database queries. It was very easy to group repeated information in the query. I have been looking for software or PHP…
-
1
votes2
answers7595
viewsA: Redirect URL to another physical folder with . htaccess
I had to redirect as follows, unfortunately the URL also changes. But it solved my problem. RewriteEngine On Redirect 301 /gestao http://www.domain.com.br/gestao-sys/site/adm/ The physical folder…
-
1
votes2
answers7595
viewsQ: Redirect URL to another physical folder with . htaccess
On the Ubuntu server, I have a physical folder: /var/www/html/gestao/site/temp/ I wish my .htaccess redirect to the URL domain.com.br/gestao for this physical folder transparently.…