Posts by SneepS NinjA • 7,691 points
231 posts
-
7
votes2
answers310
viewsQ: Div effect to show two, half-to-half images
I need to do an effect like this example: What I noticed by debugging is that there are two images one div inside the other: <div class="box-image-differ" style="width: 620px; height: 366px;">…
-
1
votes2
answers1870
viewsA: Javascript input transition effect
The code below ran right on my machine, only here on SOPT and jsfiddle did not run the effect, so do a localhost test that will work: <script…
-
5
votes2
answers48118
viewsA: Load a tab into a div
Making use of jQuery would look like this: <!DOCTYPE html> <html> <head> <title>Exemplo</title> <meta charset="utf-8" /> <meta http-equiv="Content-Type"…
-
4
votes1
answer72
viewsA: Generate these Results in PHP Mysql
Access the path where mysql is installed, in my case I am using xamp but a default installation is usually in the folder "C: Program Files Mysql Mysql Server x.x bin" C:\>cd xampp/ C:\xampp>cd…
-
1
votes1
answer110
viewsA: How to group values and process them for the comic?
To make a table inside another table, it would be like a 'details' for each result that is equal, see an example of a plugin jqWidget: With a little patience I managed to use to group by code:…
-
4
votes3
answers1766
viewsA: Ajax cross Domain
Edited I will pass an example already running with the site in question, and I will pass the https: <script…
-
4
votes3
answers5303
viewsQ: Firebird, Insert com Where not exists
I am trying to insert a record into the table, but this record will only be inserted if it no longer exists there, so I am trying to do so: INSERT INTO R01 (NUMERO,EXPORTADOR, IMPORTADOR,…
-
1
votes1
answer2996
viewsA: Grab Content from another page with jquery
I don’t know if that’s the case, but I have an IFRAME that has that same idea: as below, I have a screen that is from another site, I used the iframe that opens the site on the link knowledge…
-
1
votes1
answer14
viewsQ: Plugin shortcut, incompatibility
I use a plugin that activates shortcut keys: http://www.stepanreznikov.com/js-shortcuts/ Only this plugin only runs on old versions of jQuery. I would like it to work in the latest version of jQuery…
-
3
votes1
answer569
viewsQ: jQuery ajax, asynchronous encapsulation
I like encapsulation because it greatly reduces the source code, I have done the following about ajax: custom.ajax=function(obj,funcao,view){ // FUNÇÃO AJAX var data = {'obj':obj,'funcao':funcao};…
-
0
votes2
answers456
viewsA: jQuery inserts new rows into the form. How to populate them automatically?
your event $("#Cpf"). Blur should happen every time you add new elements in the DOM. I created a function to execute the instructions of $("#Cpf"). Blur and call the function right after the…
-
1
votes2
answers2173
viewsA: How to log into Facebook using an active session cookie in the DOM?
Strange to ask, because it was well what I just did earlier this morning, basically just fill in the variables see which are with the debug as picture below: After that just load the cookies with…
-
2
votes1
answer576
viewsA: Method . jQuery clone()
Edit 2:Upon request of image preview everything working with plugin, boot, add, remove and preview follows code, ta giving some errors on the console, ai you give a look and correct ;) <html>…
-
1
votes2
answers499
viewsA: How to make this MENU with CSS
guy I did on the basis of the other friend ai response who wrote the css and html and I made ready bate means it works, will have to make the necessary adjustments but it is the solution:…
-
2
votes1
answer623
viewsA: How to protect attack site
I’m going to talk about a possible flaw, we’d have to take a closer look at your case to see if that fits. Gross force at terminal service:…
-
1
votes1
answer26
viewsA: Help with Infrastructure
Webservice would be an elegant way to solve this, a crossdomain access would also solve, now this ftp story gets kind of gambiarra to my view. Edit: viable and safe all would be or would have a…
-
2
votes1
answer1139
viewsQ: Firebird - function for decimals and thousands
Is there any native function of the Firebird that returns me the same currency format as the Brazilian or some stored Procedure do this job. Example: #.###,## The point would be the thousand houses,…
-
4
votes3
answers19925
viewsQ: Firebird, native date format function
There is a native Firebird function that formats the date(date)? Just as in Mysql we have the DATE_FORMAT() function would have something similar in Firebird?
firebirdasked SneepS NinjA 7,691 -
2
votes1
answer1642
viewsA: Problem with Session and Nodejs
Just to confirm, first of all start by installing the libraries: npm install express socket.io cookie-parser express-session ejs --save I’ll do an example here of how the use of Session creates the…
-
2
votes2
answers174
viewsA: How to send queries simultaneously to test Transactions efficiency in Mysql?
When you say you prefer to use a test-ready tool, I would use the mysqlslap tool as the last test, because then you end up testing only the part of the database, it is a test that validates the part…
-
1
votes3
answers466
viewsA: Best practice to check if the module is being used
I wouldn’t leave/leave the tables allocated until the user thought to click somewhere to dislodge them, at least I never went through a situation where this case was the only alternative. I do the…
-
-2
votes2
answers277
viewsQ: Error entering record, last possible Intel value already used
I’m having an error trying to enter a record someone knows how to solve. Follow the error message: Operation failed: There was an error while applying the SQL script to the database. Executing:…
mysqlasked SneepS NinjA 7,691 -
0
votes3
answers644
viewsA: Data Datepicker - Processing
Da p/ do so with a single command line: var d = $.datepicker.formatDate( "yy-mm-dd", $('#calendario').datepicker('getDate') ); Where the variable d is in mysql format And the $('#calendario').…
-
6
votes1
answer53
viewsQ: Class standards
I’m not getting literature in Portuguese, so I found an article in English that I didn’t quite understand the concept, someone could help me by explaining the differences: Writing a Class with the…
-
2
votes2
answers917
viewsA: Mysql: Windows or Linux?
Very difficult to answer this question in the performance question, since everything is relative, we would have to try to simulate an equal environment for both and test several aspects, example:…
-
1
votes0
answers310
viewsQ: Mysql - Performance with 0% efficiency
My Mysql is very slow in queries, but these same queries made on the production server are fast. So moving here I found this screen as circled in red says that the efficiency is at 0% and production…
-
0
votes1
answer196
viewsA: Callback from $.get is not called and I can’t debug to find out why
Pass the parameter async: false in ajax must solve, I will demonstrate an example: $.ajax({type:"GET", url:view, dataType:"json", data:data,async:false, // FAZ UM AJAX SINCRONIZADO COM A FUNCAO…
-
7
votes4
answers23448
viewsA: Vehicle consultation by the Board on the site sinesp via PHP - without captcha
solved, the guy on the site gave the tips straight, just missed to give the cut... follow the code example I tested this way and it worked <?php // Desenvolvido Para fins EDUCATIVOS. // Criado em…
phpanswered SneepS NinjA 7,691 -
0
votes1
answer250
viewsA: Chat with nodejs and mysql
pass so reconect parameter: io.connect( // CRIVAR UM SOCKET $("#socket").val(),{ // ENDERECO DO SOCKET 'reconnect': true // que irá informar se o socket irá tentar se conectar caso perca a conexão…
-
6
votes5
answers2278
viewsQ: Is it safe to use $_GET in PHP? (Parameter in URL)
In the old days it was very common to visit web pages and see on URL the parameters being passed right there, on the website of php.net it shows that it is already obsolete, there are sites like…
-
1
votes1
answer551
viewsA: How to do multiple inheritance in javascript
I found a technique that solves the question I will post the library and give the credit to Mr. Nicholas C. Zakas who made the code available on his page.…
-
1
votes1
answer685
viewsQ: Integrate Samba4 server to microsoft active-directory
I have a windows server 2003 in production running as a domain controller, I have accounts, groups etc. all right and working there. I receive notice from microsoft that the server 2003 will no…
-
0
votes3
answers596
viewsA: How to select last related table records?
Following the same table settings as Jorge B. but without the use of JOIN would look like this: select count(*) from negociacoes n, negociacao_contatos nc, negociacao_status ns where ns.id =…
mysqlanswered SneepS NinjA 7,691 -
4
votes1
answer551
viewsQ: How to do multiple inheritance in javascript
I’ve seen a lot of ways to do it inheritance in javascript, but do not know how to do inheritance-multiple I will demonstrate an example of the problem: function Transporte() { var nome;…
-
5
votes2
answers304
viewsQ: Make a subdomain or create a subfolder?
Today a certificate seller SSL informed me that my site.com.br/intranet it’s not safe, what the right thing would be to do intranet.site.com.br that’s true? Does a sub-domain make any difference…
-
4
votes0
answers130
viewsQ: Beginner in Samba4, domain controller
I have visited several sites in search of examples of how to make Samba4 run the domain controller service, the problem that follow in these tutorials is that I end up getting some kind of error at…
-
2
votes1
answer909
viewsQ: load Google maps API after onload
I have a system that currently works with the google maps api, but I realized that the site is waiting for this API to be loaded to finish loading the page. on the home page(index.php) I have the…
-
0
votes1
answer144
viewsA: Database or disk is full?
There is a similar question on SOEN https://stackoverflow.com/questions/5274202/sqlite3-database-or-disk-is-full-the-database-disk-image-is-malformed In this case I suggest you take a backup of the…
sqliteanswered SneepS NinjA 7,691 -
0
votes1
answer665
viewsA: Number of processors in Hyper-V
This case I decided by restarting the Hyper-v server, had already restarted the virtual machine and had not solved, but after restarting the Hyper-v server appeared right the 4 cpu
-
0
votes1
answer255
viewsA: google API - gcalcli - error running in a script
For those who are still interested I restarted the machine ( linux ) and returned to work normally, very strange...
-
2
votes2
answers169
viewsA: What language to study?
I can be criticized( e vou ) but, it is my opinion and I ask only to respect my point of view. When seeing me, for those who are beginning to study a language the focus should be "to learn" and from…
-
0
votes3
answers52
viewsA: Mysql -> Assign Id’s to records
Actually your problem boils down to the same problem I had here Mysql - make each row increment 1 I’ll leave an example that solves your problem not yet tested with the names of your table but I…
-
5
votes2
answers30209
viewsQ: Mysql, types of comments
I had already realized that mysql, maybe not even the only case, but I would like an explanation on top of this to be more objective. I have several types of comments that are accepted: 1) -- ESTA…
-
13
votes3
answers515
viewsQ: Company can monitor everything employee does on work computer?
Tied to my case /questions/69324/skype-monitoramento I need answers that are based on something beyond the sense of achism, there are people who tell me that is provided for in the law. For example:…
-
1
votes1
answer795
viewsA: Use Execute block in SQL
Something like that: execute block as begin IF ( (select numero from btr01 where numero=150000) = (select numero from btr01 where numero=150001)) THEN update btr01 set serie='123' where…
-
5
votes5
answers20983
viewsA: Grab content from another page by javascript or jquery
Ajax for security does not cross Omain, but there is a Brazilian way to do this I will leave the example running here in the OS to fail : $(document).ready(function(){ $("button").click(function(){…
-
3
votes3
answers2208
viewsA: Create database on server via mysql-Workbench (.mwb) template via command line
I will give you the path of the stones, but I will not write here the file . whole bat no. the.mwb file is a compressed file, renames it to . zip and decodes it. search for the . xml file and open…
-
3
votes2
answers577
viewsQ: Mysql, doubt about variables
Mysql allows using various type of syntax in variable declaration ex: declare i int unsigned default 0; set @str = "select "; Has some advantage in using one type or another, or some disadvantage or…
-
0
votes3
answers316
viewsA: Opensuse 13.2 - Sublime as standard editor
makes a reconfigure like this update-alternatives --config editor or put it in your hand in your rc.local file like this export EDITOR=<caminho do seu editor ex:/usr/bin/pico>…
-
1
votes1
answer212
viewsA: Change order of running Javascript files
I’ll demonstrate by analogy to a simple problem, and see if you can solve your problem with it. jQuery has a graphical interface API, and it only works if the core jQuery is already loaded, so when…