Posts by Felipe Douradinho • 3,338 points
86 posts
-
1
votes2
answers55
viewsA: Disable Toolstripbutton in Form
Érik if(true) { // Habilita meuStripButton.Enabled = true; // Exibe meuStripButton.Available = true; } else { // Faz botão ficar cinza (disable) meuStripButton.Enabled = false; // Faz botão sumir…
-
0
votes1
answer490
viewsA: Background table image does not work in outlook
Michel, try this way: <!--[if gte mso 9]> <v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t"> <v:fill type="tile"…
htmlanswered Felipe Douradinho 3,338 -
0
votes4
answers80
viewsA: How to print next line
Marcio, it is necessary to pass the result to a array and then, with the numeric keys, find out which is next $row: <? $result = $connection -> query("SELECT * FROM testemunhos") or…
-
1
votes2
answers4072
viewsA: Show and hide a div by clicking the same link
HTML <a href="javascript:;" class="expander">Link</a> <div id="minhaDiv">Div que aparece e some</div> Javascript (slideToggle) $(function () { $('.expander').live('click',…
-
0
votes2
answers1403
viewsA: directive to put input fields in uppercase with Angularjs
@Felipe j.we read, HTML <div ng-app="meuApp"> <input type="text" ng-model="name" capitalizado/> </div> Javascript angular.module('componente', []) .directive('capitalizado',…
angularjsanswered Felipe Douradinho 3,338 -
2
votes1
answer184
viewsA: Asynctask Android
Leonardo, It’s almost like shooting a pigeon with a bazooka but try: ExecutaTask.java package com.seudominio.seuapp; class ExecutaTask extends AsyncTask<Void, Void, Void> { /** * Ação como…
-
4
votes2
answers12679
viewsA: Where to find the android database path?
Is in: //data/data/<SEU-APLICATIVO>/databases/<nome-do-seu-banco> Put your seat <nome-do-seu-banco> out of this folder using a File Manager and rename the extension to .db3 to use…
-
0
votes2
answers1367
viewsA: Limit the amount of files in Dropzone.js
HTML <form class="dropzone" id="meuDropZone"></form> Javascript: Dropzone.options.meuDropZone = { accept: function(file, done) { console.log("uploaded"); done(); }, init: function() {…
dropzonejsanswered Felipe Douradinho 3,338 -
4
votes2
answers243
viewsA: Design in different versions of Android
Daniela, the Ionic is an HTML5 mobile Javascript framework (such as Jquery Mobile). Yes, the intention of these frameworks is also to standardize the design, but it is a secondary goal. The main…
-
5
votes2
answers5706
viewsA: Password check
Larissa, use regex: var senha = document.formulario.senha; var regex = /^(?=(?:.*?[A-Z]){3})(?=(?:.*?[0-9]){2})(?=(?:.*?[!@#$%*()_+^&}{:;?.]){1})(?!.*\s)[0-9a-zA-Z!@#$%;*(){}_+^&]*$/;…
-
2
votes1
answer1240
viewsA: How to check video integrity. mp4?
Thiago Benine, see step by step how I would do (whereas the video files are in a folder only in C:\videos and that the filenames are without space and accent (use the Bulk Rename Utility if you need…
-
1
votes2
answers1166
viewsA: How to block a form after certain downtime?
If you want to reset your iddle time (namely, your Timer) in the movement of the mouse or in the keystroke of the button, consider: Form1.cs public Point mouseLocation; public static LoginBloq…
c#answered Felipe Douradinho 3,338 -
0
votes2
answers107
viewsA: Application database query made in C#
SQLite would be a great option, besides the bank being Cross Platform, is very light and you only need to import the runtimes pro C#. There is already a db manager for him (Sqlite Administrator).…
-
1
votes1
answer608
viewsA: Differentiate interface "instance" class instance
There’s no way. IMinhaClasse.cs interface IMinhaClasse { void IMinhaClasse(); } MinhaClasse.cs class MinhaClasse : IMinhaClasse { public String campoMinhaClasse; public void…
-
1
votes1
answer214
viewsA: How to check whether or not Facebook’s Graph API is returning an image?
Gustavo, I have worked with Opengraph, below is an example I did: <?php $user_id = 'SociedadeFemininaOficial'; //$user_id = 'UsuarioErrado'; try { $user_photo =…
-
2
votes2
answers2104
viewsA: How to camouflage a page link
If you are using server Apache, can restrict access to the file to a DOMAIN or IP by creating a file .htaccess: RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?seudominio [NC]…
-
0
votes1
answer167
viewsA: Can you inflate a class?
daniel12345smith, assuming the class stores objects/properties of the type View. So instead of "inflate" (which is an exclusive option to work with the xml), you can call methods of this class that…
androidanswered Felipe Douradinho 3,338 -
0
votes1
answer1093
viewsA: Block downloading files on IIS
Taís, If your site provides the playback of songs (audio) and you want to block the download of them (by source code, for example), you will need a script (in your case, aspx I imagine) intercepting…
-
1
votes1
answer96
viewsA: Load jQuery does not capture data
James, what’s probably going on is that your executa3() is being called BEFORE your executa2(). You have two options: Use a callback in executa2(callback) and then call you at the end of the fields…
-
1
votes2
answers3751
viewsA: How to run scripts on Centos startup?
/etc/rc.local or /etc/rc.d/rc.local are no longer executed due to changes in Centos. To keep using them, you have to keep /etc/rc.d/rc.local as executable: chmod +x /etc/rc.d/rc.local Debug To debug…
-
5
votes2
answers1506
viewsA: How is the algorithm of a P2P application?
There is no server, but there is an "queuer", called Tracker. What are Trackers? Trackers are servers responsible for telling your P2P program the IP of seeders and leechers. The more trackers, the…
-
0
votes3
answers688
viewsA: Hide JSON element using javascript
Gustavocave, your case JSONcomes as a parameter of an ajax function (eg: success, done, etc), consider literally OMITTING the keys propery1, index and url. Example $.ajax( "recuperaJSON.php" )…
-
2
votes1
answer53
viewsA: Problem emulating Android app
Diogo, see: [2015-06-24 12:26:12 - SuperOffer] No Launcher activity found! [2015-06-24 12:26:12 - SuperOffer] The launch will only sync the application package on the device! Your file…
-
3
votes1
answer1375
viewsA: Last entry
Nodejs, if you are Mongoose 3.8+, you can use the syntax: model.findOne().sort({ field: 'asc', _id: -1 }) Or model.findOne().sort({ field: -_id }) That is to say, cpf -1 does not seem to satisfy the…
-
2
votes2
answers773
viewsA: PHP / Codeigniter - How to convert image to byte array?
Tried to read image straight as binary data? <?php $filename = "image.png"; $file = fopen($filename, "rb"); $contents = fread($file, filesize($filename)); fclose($file); ?> If sending via…
-
0
votes2
answers221
viewsA: Doubt to Link form in PHP to send by email
Gabriel, corrects the field name Instituição for Instituicao (unfettered). The function mail() PHP is no longer recommended for sending emails since several reasons prevent the email from reaching…
-
0
votes2
answers95
viewsA: What is the best way to structure a Mysql tree table?
Tatiana, you can use "Nested Set Model" as it provides very efficient queries where each item has a single parent and zero or more children. Maybe this can help you.…
mysqlanswered Felipe Douradinho 3,338 -
0
votes2
answers4183
viewsA: Enable . htaccess on Ubuntu 14.10, Apache/2.4.10
Edit: /etc/apache2/apache2.conf Remove the "#" comment from the line: AccessFileName .htaccess Reboot apache2: service apache2 restart…
-
0
votes1
answer195
viewsA: Problem with Echo php
Short tags must be enabled for < ? work: php.ini short_open_tag=On http://php.net/manual/en/ini.core.php#ini.short-open-tag…
phpanswered Felipe Douradinho 3,338 -
-1
votes2
answers1716
viewsA: What is the difference between Idisposable implementations?
James, the first thing to understand is that the Garbage Collector (or Garbage collection) is automatic. The Dispose Pattern would then be a design pattern that aims to manipulate the state of…
-
1
votes2
answers1364
viewsA: Form submission and out-of-form array via post
Eric, we have two options: Serialize fields sent from fields using field name as prefix: Manually build array with fields sent using field name as prefix: - WAY TO "SERIALIZE WITH A NAME PREFIX" Be…
-
0
votes2
answers715
viewsA: Codeigniter + Autocomplete Jquery UI does not return list
David, I see you’re using the autocomplete. If the proposed result is brought via browser, the problem is in Jquery. Check: If the Chrome element inspector console displays an error (Chrome >…
-
1
votes1
answer608
viewsA: Recover data in jQuery form
HTML André, Let’s go to some remarks, maybe one of them will solve the problem: It is not necessary (and not recommended) to name fields as arrays (by inserting "[]" at the end of the name) if this…
-
0
votes1
answer146
viewsA: C# - Mouseleave Event does not work under a different label
Israel, I suggest centering on one method the action of underlining (or styling generally), so what works for one, will work for others, besides of course, of keeping the code cleaner for revisions:…
-
1
votes2
answers15503
viewsA: Run JS when opening the page
James, there’s nothing wrong with your logic (http://jsfiddle.net/felipe_douradinho/8mdky0zk/1/) Another code is preventing completion (i.e., the function is stored in memory but the document is not…
-
2
votes2
answers1005
viewsA: When selecting option displays div with
Gustavo Teixeira, values in select boxes may (must) have exact values such as numbers or letters NO SPACE AND NO ACCENT, in order to be able to work with these values in the future. Starting from…