Posts by Marcelo Bezerra bovino • 719 points
22 posts
-
1
votes2
answers1046
viewsA: Use LIMIT together with LEFT JOIN in more than one table
Take your query, turn it into a subquery and apply LIMIT in the "parent" query, something like the example below that will bring only 1 record: select * FROM ( select a.*, u.nome as nome_usuario,…
-
2
votes1
answer32
viewsA: Errorcontroller for each module in ZF1
Reference: https://stackoverflow.com/questions/2720037/zend-framework-module-based-error-handling You can implement a plugin to examine your request and based on the module you are accessing it…
-
2
votes1
answer484
viewsA: How do I display the keyboard using Cordova or phonegap?
It seems that by usability guidelines, some Sos bring restriction to automatic keyboard invocation. But Voce can try for the two "contour solutions": call the prompt function() Call function .…
-
1
votes1
answer1330
viewsA: How to pull emails from my server with PHP
You can use Imap functions Example: http://garrettstjohn.com/entry/reading-emails-with-php/ <?php class Email_reader { // imap server connection public $conn; // inbox storage and inbox message…
-
2
votes2
answers918
viewsA: How to change the way php errors are displayed?
You must use set_error_handler and set a function of yours to handle and display errors as you wish Source: http://www.php.net/manual/en/function.set-error-handler.php <?php // error handler…
phpanswered Marcelo Bezerra bovino 719 -
4
votes2
answers3349
viewsA: How to do Collision in game with Java 2D platform?
Source: http://www.sirmacstronger.eti.br/jogos2d/conceitos2.htm Pixel collision If you need to perform a perfect detection, you can do pixel level detection. It is important to keep in mind, as you…
-
1
votes2
answers326
viewsA: Drivers for bank connection via ASP Classic
You should also consider your choice of drivers based on other factors like: this driver is reliable and has been well tested? this driver is compatible with my infrastructure and architecture? this…
-
1
votes1
answer144
viewsA: How to declare a method to be executed from time to time in an ASP.NET application?
You can do this directly in C# by accessing Windows Apis: Source: http://lucasphillip.wordpress.com/2010/10/06/agendar-tarefas-c/…
-
3
votes2
answers832
viewsA: Load JS on mouse Hover
Source: http://www.virtualgroup.com.br/como-carregar-scripts-javascript-dinamicamente-utilizando-jquery/ As usual, we load the jQuery script: <script…
javascriptanswered Marcelo Bezerra bovino 719 -
0
votes2
answers322
viewsA: Creating a kind of fake click
You can use the Event.preventDefault() Jquery, which will remove the default behavior of that link (which would go to a url there defined in the href attribute of the tag a) and add its custom…
jqueryanswered Marcelo Bezerra bovino 719 -
1
votes1
answer71
viewsA: Safe Updates in Phpmyadmin
You have some options: remove the DELETE and UPDATE permissions from the user accessing Phpmyadmin and create a stored Procedure for these operations (which requires the content of the WHERE clause…
-
0
votes2
answers2175
viewsA: CRUD plugin for Wordpress
I know at least three: http://codecanyon.net/item/xcrud-data-management-system-php-crud/3215400 http://www.dadabik.org/index.php?function=dadabik_crud_wordpress…
-
1
votes1
answer1339
viewsA: <Input type="number"> with time mask
This mask feature is not native to input field. For this you will need Javascript. Jquery for example has many plugins for mask that Voce can see clicking here. In particular, I recommend you try…
-
2
votes5
answers2269
viewsA: Is Nosql as troublesome as it seems?
There are already cases of huge and very complex systems built on top of NOSQL bases. I believe such cases prevent anyone from saying things like "Nosql really only has a few uses in which data may…
-
3
votes1
answer2823
viewsA: Differences between glassfish 4.0 and Wildfly 8.0.0
Markus Eisele did a very interesting blog post on this comparison. Although I find the comparison somewhat superficial, I believe you will enjoy a read there.…
glassfishanswered Marcelo Bezerra bovino 719 -
1
votes1
answer400
viewsA: Angularjs - Http get is returning the main page html instead of json
You are using $http? It is possible that it is a cross Domain problem I suggest you take a look at solving a similar problem right here in the O.R.:…
-
2
votes1
answer291
viewsA: Problem with table extension in Postgresql, Person and Physical Person
As a rule (of course there may be exceptions), I would recommend that you give preference to using composition rather than inheritance and use the class inheritance strategy for each table (Table…
-
0
votes1
answer459
viewsA: Convert ASP.NET datatables to different Excel SHEETS
I believe that in your case, a good solution would be to use the Epplus that is available via Nuget More details on this other issue of Stackoverflow:…
-
4
votes1
answer5577
viewsA: How to change the default postgresql schema in persistence.xml in a java application
I think I’ve got to configure the property that handles schema selection would be something like <property name="hibernate.default_schema" value="myschema"/> Depending on the case, eventually…
-
5
votes1
answer245
viewsA: Scrap torrent via PHP
Unfortunately, it seems that your application violates the terms of use of Hostgator "User may not: Run any bit torrent application, tracker, or client." Source:…
phpanswered Marcelo Bezerra bovino 719 -
5
votes1
answer1873
viewsA: Problem when inserting data into postgresql with jpa implemented by Hibernate
your address field seems to be going empty, see what the error message says ERROR: null value in column "endereco" violates not-null constraint make sure to set the value of all required attributes,…
-
0
votes2
answers1527
viewsA: ZF: Problem generating PDF (with mPDF) from text (html) created with WYSIWYNG (elrte plugin)
The HTML2PDF library can present some very interesting results even with Htmls involving tables. I guess you could try using it and see if it fits your needs. One of the problems of WYSIWYNG editors…