Posts by SneepS NinjA • 7,691 points
231 posts
-
5
votes3
answers437
viewsA: Database should follow the OO standard?
There are two types of database: Relational database is not object oriented, to make good use of this type of database manager system you need to know and apply data normalization object-oriented…
-
6
votes2
answers636
viewsA: Why does linux have an ISO for each processor architecture?
I’ll be very brief: AMD64 are for processors of 64 bits, and takes AMD’s name because she did it first; i386 are for the processors 32 bits, and takes the i Intel because she did it first. ;) A bit…
-
1
votes1
answer129
viewsA: Mysql Event Scheduler needs super privileges
You need to have at least the privilege to run the event in this schema, for that would have to run the command to give the privilege so: GRANT EVENT ON myschema.* TO jon@ghidora;…
-
0
votes2
answers4197
viewsA: Firebird - Select with date less than 10 days
I got it using the DATEADD and negating the parameter, I found simpler: select CONTROLE as ID, DATA as EMISSAO, VALOR AS VALOR, HISTORICO AS HISTORICO, SALDO AS SALDO, DEBITOCREDITO as deb_cred from…
-
1
votes2
answers4197
viewsQ: Firebird - Select with date less than 10 days
I searched but did not understand how to use the function DATEDIFF() in the FIREBIRD what I need is for the query to return me records with dates up to 10 previous days from the date current. Obs:…
-
5
votes4
answers971
viewsA: Select between dates in Mysql
select * from suaTabela where data_entrada >= DATE_ADD(curdate(),INTERVAL 90 DAY); Explanation: DATE_ADD( param1, INTERVAL 90 DAY ), where param1 would be the current date and the second…
mysqlanswered SneepS NinjA 7,691 -
11
votes1
answer230
viewsQ: Software development: paradigms
I’ve always heard and still hear many comparisons, someone claiming to build software is assimilated to a building construction. I see that engineers are able to design buildings on time and within…
-
0
votes1
answer53
viewsA: Slidebar does not work
Script running error starts like this: TypeError: $(...).ContentSlider is not a function in row 46, column 14 opening the script: $(function() {$('#two').ContentSlider({width : '900px',height :…
-
2
votes1
answer407
viewsA: Switch to JS maximum HTML preview bar value
Understood that you want to increase the max attribute, so I put a label to inform the value of it, the "size" of the bar in html will be kept the same right? I will consider that yes, then follows…
-
1
votes4
answers25607
viewsA: Load page and scroll automatically to a particular element
an example would be window.scrollTo(0, 10); as I know nothing about your source code, what gives p/ respond would be this.
-
1
votes3
answers249
viewsA: Set JS to calculate the size of a div
can put a dialog ( modal type ) on the screen and a loading message... with the rest all hidden $('body').hide(), and after your javascript code is finished last you give a $('body').show()…
-
0
votes1
answer183
viewsA: Multiple objects with canvas
I’ll show you how to color the first "line" of blocks and based on this makes how many lines the game will actually have, then you take a look at the logic and build them right with function, class…
-
2
votes2
answers2439
viewsA: How to use the value of options?
If I understand correctly, you want to take the value of < option> that is selected, I will respond with this understanding: <!DOCTYPE html> <html> <script…
-
2
votes1
answer560
viewsA: Text inside circle with canvas
Take the example of: <!DOCTYPE html> <html> <body> <canvas id="myCanvas" width="600" height="150" style="border:1px solid #d3d3d3;"> Your browser does not support the HTML5…
-
2
votes4
answers258
viewsA: Doing level calculation and experience with Javascript
Places if inside while so that the base is updated with each iteration: <title>Calculadora de EXP</title><meta charset="utf-8"><style type="text/css"> body {…
javascriptanswered SneepS NinjA 7,691 -
6
votes2
answers554
viewsA: How can I leave half a side of a curved element inside as in the figure with css?
hard mode, do on canvas, nail and tooth: <!DOCTYPE html> <html> <body> <canvas id="myCanvas" width="600" height="150" style="border:1px solid #d3d3d3;"> Your browser does not…
-
5
votes2
answers138
viewsA: Make jQuery-Tools Handle accompany a team
Referring to problem 1: your test https://jsfiddle.net/xjyofffu/ my test https://jsfiddle.net/nq72w31a/ Both not working but p/ have an idea that the order of execution of the scripts makes a…
-
3
votes3
answers446
viewsA: Could someone explain to me the term "Specification Pattern", applied in Javascript?
I’ll show you how I work my javascript files: var ctCompra = {}; // NOVO PADRAO DE DESENVOLVIMENTO ctCompra.eventos = function(){ // FUNCAO EVENTOS…
-
0
votes4
answers1027
viewsA: How to set a value in an input tag of another site?
da p/ run a javascript script to fill whatever you want, but however, the script will run and fill only the browser where the script runs, ie if you want to do this to "force" a schedule to the site…
-
2
votes4
answers290
viewsA: Password and redirection
Only by coding what Jefferson answered would that be: <input id='submit' src='images/enter_button.png' onmouseover="this.src='images/enter_button_hover.png'"…
phpanswered SneepS NinjA 7,691 -
1
votes4
answers7995
viewsA: Accentuation is unreadable on the page
just put the meta tag with the charset type utf-8 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> If you do not solve then you will have to configure in the http server…
-
2
votes3
answers1782
viewsA: Enable and disable an event without deleting and recreating it
inside foo() can have a global variable that you enable or disable when you want, and when foo() is called you make an if by checking the global variable flag_global = 0; function foo(){ if(…
-
21
votes2
answers11055
viewsQ: What is the advantage of using the ENUM type?
When I should use the guy ENUM because even today where I saw this guy being used he could be replaced by VARCHAR or even for a simple CHAR, I can’t see a case where in it it really becomes…
-
3
votes1
answer6067
viewsQ: Javascript - Filter object array
And I have an array of objects in javascript: var array = [ { conta_id : "7", marcar : 1, pag_data_emissao : "04/08/2015", pag_debito_credito : "D", pag_historico : "CHEQUE 331107 VENDA S", pag_id :…
javascriptasked SneepS NinjA 7,691 -
3
votes1
answer5275
viewsA: Update fields dynamically
Face this very confused what is your difficulty, so I’ll give you an example of how to update a field with the values of another. See how I simplified it? , I suggest you edit your question so that…
-
0
votes1
answer217
viewsA: Labjs - error loading scripts
Well I’m going to put the solution here so that others don’t have to waste time when that happens, well strange things happen in this life, and that was one of the strange cases, maybe someone knows…
-
1
votes2
answers1076
viewsA: Format decimal in monetary value
Well I did a function on the same hand I’ll post both cases, float for coin, and coin for float: custom = {}; custom.convertFloatToMoeda=function(result){ var neg=false; if(result == null){ return…
javascriptanswered SneepS NinjA 7,691 -
12
votes12
answers28737
viewsA: What are the ways to iterate an array in PHP (without foreach)?
Still speaking of objects we could do so too: $array = array( 'stack' => 'Overflow', 'linguagem' => 'Português', 'tags' => array('PHP', 'Iteração', 'Array') ); $arrayobject = new…
-
9
votes12
answers28737
viewsA: What are the ways to iterate an array in PHP (without foreach)?
It is possible to treat it as an object like this: $array = array( 'stack' => 'Overflow', 'linguagem' => 'Português', 'tags' => array('PHP', 'Iteração', 'Array') ); $A = $array;…
-
0
votes1
answer217
viewsQ: Labjs - error loading scripts
Please don’t show me the documentation link http://labjs.com/documentation.php or examples taken from there because this I have read, and honestly did not understand why my error code "from time to…
-
3
votes1
answer350
viewsQ: Thread in Java and Nodejs
We know that benchmarks are specific measures and do not count for all cases, certainly what and how you measure matters a lot, so I will try to be very specific. In the case of a server having…
-
0
votes2
answers552
viewsA: jQuery - create a jQuery element ( create a tag ) from a string
I managed to make a beautiful gambiarra var a = "<div style=\"text-overflow: ellipsis; overflow: hidden; padding-bottom: 2px; text-align: center; margin-top: 4px;\">47782</div>";…
-
1
votes2
answers552
viewsQ: jQuery - create a jQuery element ( create a tag ) from a string
I have done to create an element ( a tag ) the following code: var b = $('<div>').css('color','red'); This way up I will have a div with the red color text ok, now is the following. I’m…
-
1
votes3
answers342
viewsA: Run multiple animations in sequence in jQuery without polluting the code
Here’s an example of how to solve: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <style type="text/css"> .item { height: 30px;…
jqueryanswered SneepS NinjA 7,691 -
2
votes1
answer1600
viewsQ: Concatenate columns and some with NULL value
I’m making a select and concatenating the columns, when a column has value NULL (has no value ) the whole line is NULL follows an example: select…
-
3
votes2
answers12708
viewsA: Concatenate String in Firebird
I switched the double quotes "" by single quotes '' and it worked, I don’t know if it’s the program I use IB expert or if it’s Firebird, all I know is that it’s solved.
-
1
votes2
answers175
viewsA: Line size of a drop box down when we click on the "down" button
Understood that in the < select> we’ll have 20 < option> and by clicking select open a box for the user to choose an option. The option box will open with a size that accommodates the…
-
2
votes4
answers966
viewsA: hyperlink mailto on button
I just don’t understand why the secrecy, when the user clicks will open the default email manager with the email, but follows a code so that when passing the mouse under the button the link does not…
-
0
votes2
answers12708
viewsQ: Concatenate String in Firebird
How to concatenate String in Firebird? I’m trying like this: select ("00"||"01") AS TESTE from tabela I’ve tried parentheses, no parentheses, column name, no column name... it just won’t... is…
-
4
votes2
answers7274
viewsA: Difference in result between Mysql 5.5 and Mariadb 5.5
According to tests obtained with the same records and tables show that the results are the same: In Mariadb: MariaDB [test]> SELECT DISTINCT umr.tema_id, ( SELECT count(vw1.tema_id) FROM…
-
1
votes1
answer430
viewsQ: jQuery, how to change the z-index of datepicker
When I make one $('#man_dia').datepicker(); the tag with id='man_dia' is just an input, and jQuery alone inserts the other elements into the DOM, I even get the id that jQuery generates to change…
-
1
votes1
answer717
viewsQ: iptables - packet marking with redirect to squid
I have a firewall with load balancing through packet marking and a squid together. I am marking the packages so that my two links are used ( gvt and OI ) then the link1 = gvt and the Link2 = OI It…
-
4
votes4
answers243
viewsA: Script making many improper requests
Inside the function has call to itself I believe that this is the root of the problem, because every time you click, another event is done, and the next time the mouse is pressed triggers 2 events(…
-
3
votes1
answer90
viewsA: Bootstrap menu, include logo
In the part that this so: <a class="navbar-brand" href="#">Project name</a> Alters to: <a class="navbar-brand" href="#"><img src="../images/suaImagem.png" width="45px"…
-
0
votes1
answer788
viewsQ: Mysql Workbench - Create or Change an event
In this program we have the options to create within a schema: Tables Views Store Procedures Functions All in an interactive way, but I couldn’t find the option to create EVENTS, Does there exist…
mysql-workbenchasked SneepS NinjA 7,691 -
2
votes2
answers493
viewsA: Adding and removing elements in an array
To solve you have to change the following points: onclick() - Place your string between quotes. splice() - Returns an array, in your case the element will always be at [0] when removing and adding.…
-
5
votes2
answers4319
viewsQ: javascript Alert - disable "Block confirmation windows of this page?"
When we use Alert several times it opens a checkbox where the user has the option to disable Alert, there is some way to disable this feature? ( Never show the checkbox )…
javascriptasked SneepS NinjA 7,691 -
0
votes0
answers67
viewsQ: Nodejs - socket.io error : xhr-Polling
I’ve got a nasty J server set up this way: var express = require('express'); // CHAMADA DA API EXPRESS var app = express(); var server = require('http').createServer(app); // CHAMADA DO HTTP var io…
-
3
votes5
answers5072
viewsQ: jQuery, duplicate click event
I saw here that nay can do Singleton in javascript. I have a problem with that feeling, I have the following instruction: $("#mSalvar").click(function(){ man.bSalvarClick(); }); This generates a…
-
4
votes2
answers310
viewsA: Div effect to show two, half-to-half images
Come on, there’s a plugin for jQuery here. To use it just place the two images inside a div: <div id="container1"> <img src="sample-before.png"> <img src="sample-after.png">…