Most voted questions
150,413 questions
Sort by count of
-
8
votes1
answer6718
viewsTruncate all tables in a database in Mysql
There are ways to use the TRUNCATE to clear all bank tables? TRUNCATE tabela; This command cleans one by one.
-
8
votes4
answers7856
viewsCalculate Total Hours by identifying Equal Time Intervals
after a bit of a break in the head, I ask for help from you to assist in the following situation: I have a problem with SQL (Sql Server 2005) calculation of hours; Basically I have to calculate the…
-
8
votes2
answers2530
viewsIs a module the same as a Python class?
A module is the same thing as a class? If not what are the differences? I ask this because according to the The Zen of Python, modules should be used instead of ifs. The problem is that after…
-
8
votes2
answers1064
viewsWhat does << in PHP mean?
I came across the following calculation being assigned to a variable (1103515245 * $num + 12345) % (1 << 31) What do these mean <<?
phpasked 9 years, 7 months ago Dan Lucio Prada 772 -
8
votes2
answers3308
viewsBlock direct access to a directory and create condition to free access with . htacess
I have this for when: Request is not an existing file OR Request ends with . php RewriteCond %{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_FILENAME} \.php$ RewriteRule ^(.*)$…
-
8
votes1
answer3472
viewsUnable to connect to remote server - When consuming C#webservice
I have an application developed in C# that consumes a webservice also in C#. In some cases (not always and not everywhere/customers) when consuming the webservice i get the following error: Unable…
-
8
votes1
answer740
viewsHow popular is a Grid with a list of users using Livebindings?
How to popular a Grid with a list of users using Livebindings? Having created a type: TPessoa = class private FId: integer; FNome: string; FDataNascimento: TDate; public property Id: integer read…
-
8
votes1
answer148
viewsHow/why to chain variables with operator = (equality)?
Sometimes I come across these statements chained in source some libraries and are usually many chained statements. For example: var foo = foo2 = foo3 = 'foovalue'; However I could never understand…
-
8
votes1
answer81
viewsProblems with a MYSQL query - Categories and Items
I’m doing a project, which basically consists of item and category... or better "animes" and "episodes"... Here’s the problem, I want to list all the registered anime and a count of the episodes…
-
8
votes2
answers3046
viewsjQuery validate submitHandler does not work on firefox
With the following function below, I can send the data via ajax quietly in Chrome, but when testing in Firefox, no error occurs and the data is not sent. $('#form_lista_amiga').validate({ rules : {…
-
8
votes2
answers1152
viewsHow to count words from a string ignoring prepositions?
Is there any service that does the recognition if a certain type of word is a preposition? I want to make a word ranking of a rss feeder, but ignoring prepositions. Ignoring words with less than N…
-
8
votes2
answers19790
viewsDelete all tables from a database at once
Is there a way for me to erase an entire database at once? Isn’t it drop, is to delete only the records of all tables belonging to the database.
-
8
votes1
answer1242
viewsRelationship between requirements list and use cases
When starting to develop a system, and even throughout the development process, it is common to maintain a list with the functional requirements of the system. In my understanding we always start by…
-
8
votes1
answer3373
viewsHow to change content on a page?
I’m trying to change some fields of a site, what I want is to open this site at my address, only with some of its contents changed. I’m using the file_get_contents to open the site, but I face two…
-
8
votes2
answers938
viewsCSS or Jquery for animation
When it comes to animation, which one should I use? Which one is the lightest? It is possible to do the same animations both in one and the other?
-
8
votes1
answer6771
viewsStructuring the PHP Router class with MVC
A friendly url of the type: www.meusite.com.br/controlador/metodo/argumentos Is treated in my class Request, where I "explode" the url, separating it into segments, which are respectively,…
-
8
votes1
answer7977
viewsexternal access with wamp
I was wondering how other people can access my webserver. I have already released the 8080 port and the icon is green. I can also access local with 192.168.0.10:8080 but if I use my ip together with…
-
8
votes1
answer579
viewsHow to create a default margin in the ckeditor?
I started using Ckeditor And by initializing it, it comes in the following way: And I would like it to come with a standard margin(I want it to look like A4) How could I make him come already with a…
-
8
votes1
answer6769
viewsMaximum number of simultaneous database connections
I am using a system monitoring solution and observe that at peak times the system has about 1500 simultaneous connections. From this data, I searched and could not find where I can check the limit…
-
8
votes1
answer2785
viewsHow to run Assembly inline in a code with variables in C?
From an example book, I was able to run the following Assembly (AT&T) code with gas, which returns a message with the processor name: .section .data output: .asciz "The processor Vendor ID is…
-
8
votes1
answer1423
viewsIs JSF 2.2 suitable for modern HTML and CSS?
I will develop several web applications, and in most of them, besides receiving the documentation with the requirements, I will receive from a good web designer, all the front-end (static) with…
-
8
votes2
answers608
viewsHow to hide Keyboard in Cordova by pressing "Go" or "Done"
I have a form in my app, and I would like that after filling, if the person pressed Ir or Done, the keyboard would disappear. Has anyone ever been there? Or knows how to solve?…
-
8
votes1
answer32691
viewsHow to work with ui-Mask in Angularjs input
<form name="myForm" ng-submit="addState(myForm.$valid)" novalidate > <input ng-model="data.cnpj" type="number" ui-mask="999.999.999-99" placeholder="CNPJ" required ng-minlength="6"…
angularjsasked 9 years, 9 months ago Claudia Mardegan 357 -
8
votes2
answers6768
viewsRun something after inserting a certain number of characters in an Edittext?
I wonder how to limit characters and run something then on Android. For example, in a EditText or a TextView type 5 characters, when typing the fifth character executes a command, for example, it…
-
8
votes2
answers362
viewsHow do I convert LINQ to SQL for Mysql?
I am trying to remove the use of SQL statements from within the system (to make it flexible as to which database will be used), use instructions Insert, Update and Delete via stored Procedure…
-
8
votes3
answers579
viewsHow to join data from another table
How to join data from another table. On the bottom bench I have 3 tables: dados: id, nome, end, tel... etc.... cidades: id, nome_cidade status: id, nome_status $sql = "SELECT * FROM dados ";…
-
8
votes4
answers24849
viewsCSS DIV diagonal
I recently received a layout to develop, in which I have a specific part that I can not do, I need a div that is inclined, as in the example, more than its text flows normally, the text is not…
-
8
votes1
answer391
viewsUpdate field in multiple columns
I have a list of categories and I would like to sort them all at once, so I created a "sort" field where I can put the order number I want [1] and so by pressing to save [2] as the image:…
-
8
votes2
answers2531
viewsWhat is the logical "XOR" operator in PHP? When do you use it? What does it do?
I wonder what that operator is XOR? When to use it? And what does it do in PHP?
phpasked 9 years, 9 months ago João Paulo Vieira da Silva 1,933 -
8
votes1
answer534
viewsRotate an arrow on a canvas
I need to draw a flow dynamically based on a few user choices. In this flow I want to draw the chosen hypotheses (blue circles with numbers) and the direction between the choices (lines with…
-
8
votes3
answers1408
viewsWorking with JPA+Hibernate cache
I doubt how I should work with the objects EntityManagerFactory and EntityManager. Currently I urge a EntityManagerFactory for the whole system, since I have only one bank, I create only one and use…
-
8
votes1
answer322
viewsHow to turn E_PARSE errors into Exception in PHP?
My question is this:: PHP has a great feature that lets you convert errors that can occur in an application into Exceptions. This can be done through class ErrorException Example:…
-
8
votes2
answers1854
viewsCapture Computer and User name
I am developing an application and in one of its methods accurate capture the name of the computer and the user logged into the machine, then present on screen to the user. What’s the best way to do…
-
8
votes3
answers1511
viewsHow to send an object via SOAP web service
To send a primitive data is simple, but when it comes to complex data as shown below, an exception is thrown: java.lang.Runtimeexception: Cannot serialize: Person{name=given, address=given etc...}…
-
8
votes1
answer1769
viewsHow to clone/download a repository with just the last commit?
I read a while ago that it is possible to clone a repository in a more performative way just by downloading the last commit, that is, download the repository without previous changes of other…
-
8
votes1
answer4948
viewsHow do I send a message to a Whatsapp group with the venomous0x or yowsup api?
I would like to know, with an example if possible, how to send a Whatsapp message to a group created by another person using venomous0x or yowsup? The shipping code is this: public String…
-
8
votes1
answer620
viewsHow to center a binary tree?
I need to correctly center this binary tree model. jQuery or JavaScript can be used. I’ll need to generate the code with PHP, then you have to have a certain logic in html. Another detail is that…
-
8
votes1
answer417
viewsLimit Webservices access to two domains
How do I limit access to a web service to only two domains? I would like only the domain: http://"ServidoX".ipesp.gov" and the http://"ServidoY".ipesp.gov" can consume this service. I’ve tried…
-
8
votes3
answers1220
viewsGet timestamp
I have two variables, one with the date and the other with the time. How can I get your timestamp of the two variables. Example: var data = 02/01/2015; var hora = 10:00:00; var d = new Date(data +…
-
8
votes2
answers2937
viewsBest Way to Use and Instantiate Entitymanagerfactory
My project has the following structure: Within the package br.mandacaru.DAO are the controllers. To instantiate an object JPAController I need an object EntityManagerFactory and for that reason I…
-
8
votes1
answer291
viewsHow to apply ! Important to a property with multiple values
I’m having some difficulties with the precedence of CSS selectors to create a dynamic background (image transition.) in the first/div section presented on the site. I currently have the following…
-
8
votes4
answers19339
viewsHow to go to a link by clicking on a div without using <a href>
I need to redirect the page to a link specific by clicking on a div, without using the <a href> of HTML. I’m using HTML, CSS and jQuery and PHP. Follows an excerpt from the code: <div…
-
8
votes1
answer2897
viewsWhat is Bind(Include = "Property") used for?
By creating a CRUD with scalfold in ASP.NET MVC, in POST, we have the following code: public ActionResult Create([Bind(Include = "Id,Nome")] Grupo grupo) {...} What’s this one used for [Bind]? When…
-
8
votes2
answers1720
viewsWhich is faster, access data in file or database?
In terms of performance which method is fastest to recover data, 1) read a file (which will be generated only once with PHP) or 2) take this data from a database? This data will always be shown on…
-
8
votes2
answers3396
viewsWhat is the use of methods with an "inter-ternal" modifier?
In what situation I would use a modifier method internal? There is a specific reason for this, namely where a public or private does not answer or does not answer? That’s what I got here. internal…
-
8
votes4
answers37912
viewsCenter vertically div container on Bootstrap page
I’m having trouble centralizing À Pagina because centralizing both sides has already been accomplished, I’ve added several classes and attributes in the tag style but I did not succeed, and to…
twitter-bootstrapasked 9 years, 10 months ago Ricardo 14,521 -
8
votes1
answer641
viewsSQL using an Array of words
Is the following I have a search field in a form where the user type for example a color or product and is returned to it a list of products with the characteristics typed in the form, the problem…
-
8
votes3
answers5509
viewsWhat’s the difference between using Inner Join or Where relationships
Good morning, I am with the following doubt, I work in a company where people bother when it comes to using inner join for the sake of efficiency and database processing, I would like to know if the…
-
8
votes1
answer95
viewsHow not to ignore directories with the same name?
I have the following structure: nbproject public_html build index.min.html style.min.css index.html style.html build dist Man .gitignore to ignore the Netbeans configuration files is like this:…
-
8
votes3
answers1629
viewsMultiple connections with the Bank
In a PHP system that communicates with the BD (Mysql) to recover the information and returns it to the user who accesses it is necessary to establish multiple connections with the Bank? Or just one?…