Posts by CIRCLE • 807 points
32 posts
-
1
votes1
answer180
viewsQ: Matrix image sorting plugin
I am looking for a plugin in javascript or jQuery that allows me to have a table of images (for example, 6 x 6) and through drag 'n' drop or just clicks, allow me to reposition between them. I’ve…
-
1
votes1
answer1036
viewsQ: Save server images to my application
I am developing an application that after installed, the first time it is initialized it goes to the server to fetch all the images necessary for the user to use the application. I chose the library…
-
1
votes1
answer224
viewsA: List tables with specific column
Eventually I built this function to solve my problem: public ArrayList<Object> getTablesWhereColumns(String[] columns) { ArrayList<Object> tables = getTables(); ArrayList<Object>…
-
1
votes1
answer224
viewsQ: List tables with specific column
I am creating an Android application using Sqlite and need to get a list of tables with a specific column as for example: SELECT table_name FROM sqlite_master WHERE table_column_map = 'imagem' It’s…
-
2
votes1
answer139
viewsQ: Manipulate onPostExecute from another Activity
I have both classes below: Dataload.java public class DataLoad extends Activity { SQLiteDatabase mDatabase; Session session; public static String jsonString = ""; @Override protected void…
-
0
votes1
answer58
viewsQ: Iterate a String array within an object
I built the following object: public class TableHelper { private String TABLE; private String[] COLUMNS; public TableHelper (String name, String[] columns){ this.TABLE = name; this.COLUMNS =…
-
5
votes2
answers2053
viewsQ: Pass parameter without specifying the type of variable to receive in the function
I’m creating a Java function that returns the type of the variable and as such, since I’m trying to figure out its type, I have no way to tell the function what type of variable to expect. What I’m…
-
3
votes1
answer767
viewsQ: Create and manipulate multidimensional associative array
How can I create a multidimensional associative array in Java? Something like this: Array = { "carro 1" : Array { "portas" : 5, "cor" : "preto", "km" : 10670 }, "carro 2" : Array { "portas" : 3,…
-
-1
votes5
answers206
viewsA: Problems sending many variables through _GET
When you see that you are starting to use many variables to just store values, it is best to move everything to one array. But as for your code, the conditions you are using are redundant so you can…
-
2
votes2
answers132
viewsQ: Equivalent of onCreate()
I’m reconstructing a set of objects so I can reuse them in other applications. These objects are not activities and only have a set of practical functions that I want to call at any time of the…
-
2
votes2
answers112
viewsQ: Reload image in Chrome
I created a plugin to cut images through javascript and PHP but I’m having trouble revealing the edited image after the success of Crop in ajax. I’ve already researched the subject and found a trick…
-
5
votes2
answers1475
viewsA: Store var_dump in a variable
You can use $string = var_export($array, true); to save a string from the array
-
0
votes0
answers648
viewsQ: Change background color of selected item in Navigationdrawer
How can I change the background color of the selected item in Navigationdrawer? <ListView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"…
-
1
votes1
answer454
viewsQ: Manipulate json object
I got the following json: { "home":[ { "id":"1", "menu":"1", "title":"Titulo 1", "image":"image01.jpg", "url":"http:\/\/www.exemplo.pt\/images\/image01.jpg" }, { "id":"2", "menu":"3",…
-
0
votes1
answer50
viewsQ: Continue after run() finished
I have a class with the name Request_Login validates the login data with the server and a string LOGIN_RESPONSE which stores the server response. When data is submitted in the form and pressed enter…
-
0
votes1
answer65
viewsQ: Android - Nullpointerexception Error
I’m getting the following error randomly, IE, gives error sometimes and sometimes not: Caused by: java.lang.NullPointerException at pt.cartuxa.Login.onCreate(Login.java:62) My line 62 is as…
-
1
votes1
answer55
viewsQ: Debug Sharedpreferences on Android
Is there any easy way to see everything inside my SharedPreferences? Something like for example: SharedPreferences prefs = this.getSharedPreferences( "user_access", Context.MODE_PRIVATE);…
-
2
votes3
answers3993
viewsA: Variable $_POST has size limit?
That’s a server limitation, if it’s php.ini and search for post_max_size can verify which limit size has to pass data through POST. Or change through .htaccess for whatever value you need: #definir…
-
2
votes1
answer100
viewsA: Automatic process in PHP
Your solution is using cronjob and you can find it in cPanel normally at the bottom of the page. After opening the page, you only need to set the time you want to increment for the file execution…
-
2
votes3
answers1147
viewsA: Upload to another server error
You can’t use it move_uploaded_file to upload a file to a remote server. The easiest way to achieve this is by using PHP’s native FTP functions. $ftp_server = "ftp.example.com"; $ftp_user =…
-
0
votes3
answers667
viewsA: Error sending email: server Answer: 550 5.7.1 Must Authenticate
You have to build and send the headers of your email: $headers = 'From: [email protected]'."\r\n"; $headers .= 'Reply-To: [email protected]'."\r\n"; $headers .=…
-
2
votes1
answer76
viewsA: PHP file() returns (Unknown char) between each letter
The @gabrielhof question helped me realize that the problem was the charset of the file being on 'UTF-16 LE with BOM' instead of UTF8. Using the editor Sublime Text 3 went to File -> Save with…
-
0
votes1
answer76
viewsQ: PHP file() returns (Unknown char) between each letter
I am file() to a file and it returns between each letter of the document. alpha dic. Adão Andy Code: $dictionary = file('alfa.dic', FILE_IGNORE_NEW_LINES); var_dump: string '�A�d�ã�o�' (length=9)…
-
5
votes1
answer4479
viewsQ: Portuguese dictionary online for performing requests
I am looking for an online dictionary in Portuguese that allows me to do requests as the example: http://www.exemplo-dicionario.com/dicionario?palavra=palavra-pretendida And answer the definition of…
-
1
votes3
answers329
viewsA: Use of codeigniter memory
I have also had problems with excess memory usage and wrote this short cycle to free everything at the end of each application load. Do print_r of memory_get_usage()and memory_get_peak_usage() to…
-
9
votes8
answers27292
viewsA: PHP does not send accents to Mysql database
Try placing this line of code in the header of each page of your application and especially in the files that are processing the data to be entered in the database: ini_set('default_charset',…
-
6
votes1
answer90
viewsA: Doubt, query does not work exactly as I want... PHP
Use the method fetchAll: $contents = $stmt->fetchAll(PDO::FETCH_ASSOC);
-
0
votes2
answers1836
viewsA: Download file with Curl and php
What this error means is that you are trying to send bytes information above the set limit of 256 Megabytes. Try adding this to the top of your code: ini_set('memory_limit', '-1'); Ref: Memory Limit…
-
2
votes3
answers7452
viewsA: Delete, edit, copy option
Probably the user account you are using to access the database is not allowed to edit, create or delete. In cPanel, go to "Mysql Database" and associate a new account to the database but this time…
phpmyadminanswered CIRCLE 807 -
2
votes4
answers193
viewsA: How to space the "fixed title" of a page and the posts?
As @Patrick says, since his navigation bar or header you will always be present throughout your pages the safest way is to add to the CSS of your container where your posts are hosted a margin-top:…
-
2
votes2
answers476
viewsA: Doubt with method visibility and property in PHP
It is in fact a programming convention as @gpupo says and is used to help identify, when reading a code, which properties and/or methods are private or protected. Whereas: An underscore _ is used…
-
3
votes2
answers234
viewsA: Input point location error in MYSQL
Apparently, mysqlfront.exe is looking for a procedure mysql_drop_db deprecated and does not exist in your current Mysql library. Go to a library of dll's, look for a previous version of libmySQL.dll…