Posts by Guilherme Nascimento • 98,651 points
2,383 posts
-
1
votes2
answers601
viewsA: Master Detail with Select2
Your question is a little difficult to understand, so I’ll assume first by following the code problems: You want to add new combos for each time you click on #add, if so, then what @iuristona said…
-
1
votes2
answers1327
viewsA: Qmake - Independent executable
Customizing the ICU The Dlls of ICU really are heavy, mainly the icudt5*.dll But there is a way to customize this DLL using the ICU Data Library Customizer, thus being possible to greatly reduce its…
-
3
votes1
answer1966
viewsA: Why is my app not compatible with some devices on Google play?
You are using in this the camera feature as not required: <uses-feature android:name="android.hardware.camera" android:required="false" /> But camera focus feature was not set to false,…
-
3
votes2
answers760
viewsA: How to list and monitor the apps that are installed and/or in use?
As is response in SO-en the method should be called so (ACTION_UNINSTALL_PACKAGE is only available in API level 14): Uri packageUri = Uri.parse("package:org.PACOTE"); Intent uninstallIntent = new…
androidanswered Guilherme Nascimento 98,651 -
6
votes4
answers37912
viewsA: Center vertically div container on Bootstrap page
Viewing the "Box" with the Firefox Element Inspector, I noticed that the element <div class="container span7 text-center col-md-4 col-md-offset-3" ...> (width = 419px) is smaller than the…
twitter-bootstrapanswered Guilherme Nascimento 98,651 -
0
votes1
answer759
viewsA: Error making order with Secure Paging API
Invalid character, this sounds like an XML that works with ANSI (or iso-8859-1/window-1252) but end up returning data with characters UTF-8, is just a theory, but maybe you should check the…
-
1
votes1
answer884
viewsA: What to do to make this code work on mobile
First of all, your variable removeClass is not defined, this can end up mixing with variables of a higher level or global, so always use var ... Or thing, avoid creating the events in the "first…
-
3
votes3
answers880
viewsA: Integer for String
To use std::to_string it is necessary C++11 But you can do it another way using sstream An example #include <iostream> #include <sstream> int main(int argc, char *argv[]) {…
-
6
votes1
answer362
viewsA: change word properties in php search
Suppose you use a query like this SELECT * FROM tabela WHERE NOME LIKE ? OR EMAIL LIKE ? and a variable within the global call $_GET, the best way would be to create a function to make the effect…
-
1
votes3
answers2044
viewsA: Problems with session_start()
To use multi-domain session you need to share the session and the cookie, the session file is in a flame folder tmp and each domain usually has its own folder or "ID" that does not allow sessions to…
-
8
votes2
answers6186
viewsA: Function equivalent to "DISTINCT ON" in Oracle BD?
In accordance with is response from SO-en (forgive me I translated quickly by eye, as soon as possible review if there is any failure): The same effect can be replicated on Oracle or using…
-
0
votes3
answers1571
viewsA: Textview is getting behind other objects
In this case to prevent "overlap" (over position of items) it will be necessary to use LinearLayout instead of RelativeLayout <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
-
0
votes3
answers788
viewsA: Get line from a file
Following your own example, one way to do the process would be to create a function and take the specific line by configuring the arguments of the function. In case I used a array to set the lines…
phpanswered Guilherme Nascimento 98,651 -
10
votes1
answer641
viewsA: SQL using an Array of words
That question Select with indefinite amount of conditions is about Postgresql and its code is about Mysql, so it probably doesn’t work. ILIKE not supported by Mysql, you can use several LIKEs or…
-
2
votes1
answer834
viewsA: How to change the cakephp layout
You will need to use $this->layout = ...; in his AppController You can use: public function beforeRender() { parent::beforeRender(); $this->layout = 'layout_customizado'; } Another example…
-
2
votes2
answers805
viewsA: Asynctask task only runs once, then does not arrive at theInBackground
@Paulorodrigues believe that for not being "bound" Thread maybe the process is busy. One way to do it would be to "extend" the AsyncTask in its main class. Another thing I noticed is that you used…
-
2
votes1
answer109
viewsA: Fieupload with Ajax.Beginform
It is not a "problem" with the Ajax.BeginForm, the issue is that you cannot upload with XMLHttpRequest (ajax), for this you will need to File API (javascript). Read how to use the File API:…
-
1
votes4
answers420
viewsA: CSS, firefox input shows blank text
The problem is in the use padding, when using it is as if you or it moves the text excessively out of the view area of the element itself If you remove the padding-top and the padding-bottom the…
-
11
votes1
answer1026
viewsA: It is possible to use if-modified-Since with "304 not modified" without PHP
To use 304 Not Modified for static files it will be necessary to use the module mod_expires and "manipulate" the rule of FileETag: mod_expires: Generates the HTTP headers Expires and Cache-Control…
-
8
votes3
answers3750
viewsA: consuming JSON
The "level root" of your "json" uses { ie is a Object and not a Array, the correct is you use JSONObject instead of JSONArray. See here you try to convert something like {...} in Array: JSONArray…
-
4
votes3
answers546
viewsA: Simulate placeholder in IE8
You can use the solution described in /a/5910/3635 Solution for Unsupported Browsers: Using a function called placeholder(): function placeholder(str){ $('input').css('color','#ccc');…
-
18
votes1
answer1026
viewsQ: It is possible to use if-modified-Since with "304 not modified" without PHP
Based on this solution used in this answer in SO-en i created a . htaccess and a PHP script .htaccess: RewriteEngine On RewriteCond %{HTTP:if-modified-since} . RewriteCond %{HTTP:if-none-match} .…
-
22
votes1
answer9649
viewsQ: Which UTF-8 "collate" is the most suitable for Web (multi-language)
I usually use utf8_general_ci by default in my projects, but recently I found that other developers use utf8_unicode_ci utf8_general_ci: Unicode (multi-language), Case/Case Insensitive…
-
151
votes3
answers57155
viewsA: Charset iso-8859-1 and utf-8 compatibilization problems
In a quick response: nay it is possible. By the time the page starts to render, it already assumes an encoding (or tries to detect it if it is not declared, usually uses the default server). Common…
-
1
votes1
answer1005
viewsA: How to interpret "+" as space in the url?
You can use window.location combined with encodeURIComponent Example with window.location: <form id="search-form" action="" method="GET"> <input type="text" id="search-box"> <input…
javascriptanswered Guilherme Nascimento 98,651 -
2
votes1
answer577
viewsA: PHP process stops working after multiple/simultaneous requests in Ngnix
The pm.max_requests is usually set to a limit, because after reaching this limit there must be an event that restarts Fastcgi, this is usually used to prevent memory leakage on servers (in a…
-
1
votes1
answer577
viewsQ: PHP process stops working after multiple/simultaneous requests in Ngnix
The problem I created a process using PHP to work with Nginx like this: @echo off echo Starting PHP FastCGI... set PATH=C:\nginx\php;%PATH% C:\nginx\php\php-cgi.exe -b 127.0.0.1:9000 -c…
-
5
votes3
answers1122
viewsA: Is it possible to manipulate PHP errors via code?
Use set_error_handler and register_shutdown_function to record the problems. A few months ago I realized that I had several problems working with more than one developer (an average team), there…
-
1
votes1
answer3348
viewsA: Send and request form via Ajax - (pure Javascript)
There are two problems: 1) At each sendData it is necessary to call loadData to check the data. 2) Each request must have a new Ajax constructor (class called) To solve the first problem should be…
-
3
votes2
answers304
viewsA: How to free up memory after using a Filererence?
I managed to reach my goal, discovered something with FileReferenceList.fileList If I do this FileReferenceList.fileList[5] = null; (when the "sixth file" is no longer being used) Flash immediately…
-
2
votes2
answers304
viewsQ: How to free up memory after using a Filererence?
FileReference.load does not have a function to download, just as there is new Loader().unload. Must be a Flash BUG or Filereference needs to be improved, like in a new version add a function like…
-
4
votes2
answers5072
viewsA: How to force <option> elements to appear below <select> in IE?
It is possible to make the size of the select be changed by displaying the items (you must specify the quantity), for this you must use the attribute size="" (in accordance with a tip from colleague…
-
3
votes3
answers2230
viewsQ: Java shows "Type Safety: Unchecked cast from Object to Hashmap"
I’m creating a class that through that works similar to Xpath. The function works perfectly, the problem is that in this part of the line (HashMap<String, Object>) test.get("test-map");,…