Posts by Olimon F. • 1,173 points
19 posts
-
6
votes1
answer61
viewsQ: Why in MOS 6502 the SBC subtracts 2 instead of 1 the first time?
I am trying to learn Assembly for MOS 6502 and I came across unusual behavior when testing my code on online emulator. Code LDA #$5 ; A=5 SBC #$1 ; A=3 mas deveria ser 4 SBC #$1 ; A=2 mas deveria…
-
3
votes1
answer772
viewsA: App removed from playstore for violating section 4.4 of the developer’s distribution agreement
Play Store developer allocation agreement According to Article 4.4: The Developer undertakes not to participate in any activity with the Store, including the development or distribution of the…
-
16
votes2
answers8142
viewsA: What is it and what is YAML for?
Definition YAML (recursive acronym for YAML Ain’t Markup Language) is a human-readable data encoding format. Perks The YAML was done essentially to store data (as well as databases). Regarding XML…
-
1
votes1
answer1011
viewsA: ajax function does not work
Try to remove the http://127.0.0.1 and just use the relative url, like this: var HTTP = '/'; or var HTTP = '/index.php'; That’s a bug? No, this is because of CORS. This feature prevents AJAX…
-
1
votes2
answers685
viewsA: How many lines did a database query return (Cake PHP)?
Use the find('count'); $count = $this->Post->Comment->find ('count', array('conditions' => array('Comment.post_id' => $id)));
-
16
votes2
answers316
viewsQ: Can I use MIT along with GPL?
There are several software licenses around the world, but I have come across a problem that may sometimes even reach the level legal. And that wouldn’t be very good for my project. My software is…
-
2
votes3
answers6516
viewsA: What HTTP status code to use to indicate validation failure?
Notice of opinion This answer expresses my opinion and in no way represents an official or more correct interpretation. Error 400 RFC 7321 The 400 (Bad Request) status code indicates that the server…
-
4
votes1
answer2188
viewsA: Internal Server Error with . htaccess Linux Mint file
Module disabled Probably your Apache2 does not have the Rewrite module enabled. Typo ls /etc/apache2/mods-available/ | grep rewrite and check if it appears rewrite.load, if it appears it means that…
-
2
votes4
answers430
viewsA: PHP class for interaction with Mysql BD
Medoo I point out the dread (http://medoo.in/) it uses PDO and not mysqli, but has many features: joins, all basic operations, WHERE, AND, and many others[listed in the documentation]. In addition…
-
1
votes1
answer100
viewsA: Am I trying to connect mysql in php?
Missed an N instead of conect would be connect mysql_connect(blabla);, I must warn you that in future versions of PHP (3years?) your code will stop working, and if you are working for a client, this…
-
2
votes3
answers1376
viewsA: How to return most common words from a text with PHP?
My solution This solution is a little more robust, it separates each word and treats it "thoroughly", after being processed and approved, it passes to a new array which is then organized by the…
-
1
votes2
answers327
viewsA: PHP and Mysqli. Table link problem
That way it worked for me: connect.php <?php // Mantenha o @, ele esconde o echo automatico do erro $mysqli = @new mysqli("127.0.0.1", "user", "pass", "app"); /* checar conexão */ if…
-
17
votes3
answers1209
viewsA: What is SQL? How to use?
Basic The information I’m posting here is basic and may contain errors, anything can edit the reply or comment ;) Brief explanation SQL is a language for database, it has a syntax similar to…
-
4
votes3
answers23020
viewsA: How to initialize postgresql with Ubuntu?
Following the accepted answer and some information I saw in stackexchange: https://dba.stackexchange.com/questions/50906/why-wont-postgresql-9-3-start-on-ubuntu (if you still don’t solve try reading…
-
4
votes2
answers1589
viewsA: Generate single color for each result
You can create an array for the colors already used and another for each user’s colors. I could use a shorter and more practical solution, (and which alias uses less CPU..) but I wanted the colors…
-
9
votes3
answers3508
viewsA: How to make a site multilingual?
The solution I use: I created a file with a translation array for each language, and I set the language on the page. Languages.php <?php /* # # Translations system # (C)2014 - MyEnterprise # */…
-
2
votes1
answer121
viewsA: How to enable the TAB key in Emacs
Following the documentation http://vserver1.cscs.lsa.umich.edu/~rlr/Misc/emacs_tabs.htm#one_thing edit your file . Emacs and add this: # Tab em todos modos de edicao (global-set-key (kbd "TAB")…
-
4
votes1
answer1146
viewsA: How to Make Splash Screen?
Yes, this "presentation screen" is called Splash Screen (like the Eclipse logo when you start it) You can put the initial layout as the splash screen (fullscreen layout) and then use Sleep or…
-
4
votes2
answers211
viewsQ: Displays hexadecimal value in cmd.exe
I’m trying to show the sharp letter 'is' on cmd.exe through the hexadecimal, but the printf() only shows the value of the character itself. I’m trying the following: unsigned char eh = 0x82;…