Posts by anderson • 436 points
21 posts
-
0
votes0
answers231
viewsQ: Wordpress: How to "pull" conditional taxonomy in a selection field?
To optimize the loading and improve the understanding for the user, I need to take the location hierarchically, ex: In Wordpress the order is: Brazil -Santa Catarina --Florianopolis In the post…
-
2
votes1
answer1002
viewsQ: How do I get names of cities that are around me with API on a remote server?
Currently I use the lines of code below to list the city where I am through latitude and longitude, however, with the same coordinates, I want to list also the cities that are around, by mileage for…
-
0
votes0
answers72
viewsQ: How to pass variables from JSON to Fragment in android application using TABS?
I have the following code: public class ActivityCategorias extends AppCompatActivity implements MaterialTabListener{ private List<Category> categoriesList; MaterialTabHost tabHost; ViewPager…
-
0
votes1
answer200
viewsQ: How to identify category by Slug when inserting a record with wp_insert_post() from wordpress?
I need to identify categories by Slug when adding a wordpress post. Common and functional example: $post_id = wp_insert_post( array( 'post_author' => 1, 'post_title' => 'titulo', 'post_type'…
-
2
votes1
answer838
viewsA: How to identify percentage of memory usage for running cache clean command?
I solved my problem with the code below: #!/bin/bash # total de memória instalada 32991100 (32 GB) # total em 90% de uso 29691990 MAXIMO="29691990" MONITOR=$(free | grep Mem) USADA=$(echo $MONITOR |…
-
0
votes1
answer838
viewsQ: How to identify percentage of memory usage for running cache clean command?
We know that the command for memory cache cleanup is this: sync; echo 3 > /proc/sys/vm/drop_caches However, how to make an executable with a condition (if() Else()), so that this command is…
-
2
votes1
answer320
viewsQ: Mysqli SUM query does not return result
I am trying to sum up a column using the mysqli SUM method. The problem is that my query does not return results. My code is this: $sql = 'SELECT SUM(size) as soma, porta FROM `'…
-
2
votes2
answers225
viewsQ: Shell_exec(): How to keep process active when restarting apache?
The processes run by php shell_exec() end up restarting apache. It is possible to keep processes active without interruptions when restarting apache? Below the code I’m using: $Command = "ksh -c '(…
-
0
votes1
answer1887
viewsQ: How to customize java.io.Ioexception error message on Android?
When Android makes an external connection and this url is not available it returns an error. How to customize an error as in the example below: java.io.IOException: Error response: 401 Service…
-
1
votes1
answer60
viewsQ: How to implement Google Analytics Gaitrackedviewcontroller for iOS together with Uitableviewcontroller <Nsxmlparserdelegate>?
How to insert the Google Analytics Gaitrackedviewcontroller into the code below without removing the Uitableviewcontroller from this line? @interface STNavigationViewController:UITableViewController…
-
0
votes1
answer133
viewsQ: Wordpress friendly album/? album_id={id} URL for album/{id}
I developed a site in Wordpress and to make it faster, I decided to use the module wp Fastest cache However, the site has an image gallery that matters from Picasa through another module Picasa…
-
0
votes2
answers2903
viewsA: How to customize scrollbar in Chrome?
jScrollPane can solve your problem. http://jscrollpane.kelvinluck.com/ See the example for what you need in the following link: http://jscrollpane.kelvinluck.com/arrows.html…
-
4
votes1
answer15650
viewsA: What is an RTMP server and how to connect to it with Flash Sharedobject?
RTMP server is nothing more than a media server for distribution of live and on-demand content. These servers are independent and have their own modules. There are several software on the market,…
-
4
votes1
answer5307
viewsQ: How to work a secure session in PHP using cookies so that the session does not expire when you close your browser?
In PHP, I usually work on user authentication in a restricted area using the variable $_SESSION, but I want to change this method to cookies so that the session does not end when closing the…
-
1
votes2
answers9692
viewsQ: How to emulate an iOS app on Windows with Phonegap?
Lately I’m developing applications in Windows 8 using the Phonegap Framework. However, I wonder, how can I emulate the iOS app on my Windows operating system? There is the possibility to do this…
-
0
votes4
answers9080
viewsA: Select2 with AJAX
The code below worked for me: <!DOCTYPE HTML PUBLIC> <HTML> <HEAD> <TITLE> Select2 </TITLE> <link href="select2/select2.css" rel="stylesheet" type="text/css" />…
-
0
votes4
answers9080
viewsA: Select2 with AJAX
Really this Lect2 is all problematic, I tried to use a while ago but I could not. I ended up changing to the solution presented in the link below: http://jqueryui.com/autocomplete/ Works perfectly…
-
9
votes2
answers3211
viewsQ: How to improve considerably the security of Apache?
I am setting up a web server using Apache. My question is the following: Which modules I use to improve security against malicious attacks and hits on the pages posted on my server? I know there are…
-
-2
votes3
answers2397
viewsA: jQuery autocomplete shows no options
The link below presents a great solution for what you need: http://www.a2zwebhelp.com/bootstrap-autocomplete The solution presented uses the Bootstrap interface. I hope it helps.…
-
0
votes6
answers18042
viewsA: How to make a Custom Scrollbar?
This css code works well: ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track:enabled { background-color: #FFF; } ::-webkit-scrollbar-thumb:vertical { background-color:…
-
1
votes2
answers6149
viewsA: How to put two backgrounds on the same page?
The solution of this site is great to do what you need: http://vegas.jaysalvat.com/ $.vegas('slideshow', { delay:15000, backgrounds:[ { src:'images/2.jpg', fade:1000 }, { src:'images/6.jpg',…