Most voted questions
150,413 questions
Sort by count of
-
6
votes2
answers7016
viewsremove element css
I wanted to know how I can via jquery remove all css styles from a certain html element. Example: html <h1 class="titulo">Título</h1> css .titulo{ padding: 5px; color: #424255;…
-
6
votes4
answers756
viewsRemove a specific space in a string
I’m having trouble implementing replace in a String in Android Studio. I need to remove a certain blank in the String. Real examples: 8 hrs 2 mins 1 day 2 mins I need the text to look like this:…
-
6
votes3
answers719
viewsHow to get tickets that were open in May?
I’m working with a database that contains all the tickets registered in the otrs of the company where I work. I intend to do a query where I return all tickets that were open in May. The problem is…
-
6
votes1
answer40
viewsIs there a problem using HTML 5 attributes instead of jQuery or Javascript?
Is there some security issue or something like using only attributes, like required in inputs, among others, instead of jQuery? Or it’s just some option to use jQuery to customize the message only?…
-
6
votes2
answers322
viewsWhy can’t I use $this within a Static class?
As an example below, I was wondering why I can’t use $this within a Static class? <?php class A{ public static function hello(){ echo 'hello'; } } class B extends A{ public function ok(){ echo…
-
6
votes2
answers75
viewsHow to solve an elseif that needs to be exclusive?
I want to create a page where when a checkbox is marked, a message is printed, but if all checkbox are marked, print another message. <!DOCTYPE html> <html lang="pt-br"> <head>…
-
6
votes1
answer10692
viewsMinimum and maximum limit of a number in a number type input
Hello, I would like to know how I can put a limit, a minimum and maximum number that can be entered in the field. For example, make the number typed in the field below not less than 0 and greater…
-
6
votes1
answer13196
viewsHide field in HTML with Bootstrap
How can I make a text field in my HTML is hidden when the user is viewing by mobile and appears when he is viewing by PC?
html html5 twitter-bootstrap bootstrap-3 responsive-layoutasked 8 years, 10 months ago Kleber Nunes 71 -
6
votes1
answer527
viewsThreads Server Client
In the following class SocketServidor send a single thread with the out and the in, but this class is supposed to be able to send two threads when running. You’re supposed to do this: The server…
-
6
votes0
answers828
viewsHow to control a web application session in different browser tabs?
I am developing a web application and using server session to control access to the application, this session should be terminated when the user logs off the application, when to close all tabs of…
-
6
votes1
answer1184
viewsGarbage Collector for C++
I clearly understand what a Garbage Collector is and what it is for. It is very well known in Java. Is there a C++ library that implements GC or fixes memory lLeaks? I’ve searched the internet but…
-
6
votes1
answer78
viewsIs there any way to add css rules by javascript?
If I have the following tag style: <style> body{ color:red; } </style> It would be possible to add another new css rule like inside this style through the Javascript? For example, I want…
-
6
votes1
answer462
viewsWhat is the difference between the Mysql Trigger and Mysql Event exception?
I would like to create a e-mail trigger scheduler, without the use of cron, and would like to know if it is possible to do this through Mysql. Searching the Internet I saw some examples of event…
-
6
votes1
answer185
viewsQuery Linq and see index
He wanted a query in Latin that shows the attributes of the availability table and the name of the respective catechist that is in the person table. At index will appear: Nome | AnoPastoral |…
-
6
votes2
answers84
viewsDoubt interpretation function
I have a Hashmap users: private Map<String, ObjectOutputStream> utilizadores = new HashMap<String, ObjectOutputStream>(); Can anyone tell me what this function does exactly? Here under…
-
6
votes1
answer1945
viewsError to get Windows 10 version with Delphi
I am trying to get the version of Windows 10 on my system, but the most it displays is Windows 8. Neither 8.1 it displays. I couldn’t find the mistake. // Função Sistema Operacional function…
delphiasked 8 years, 10 months ago rafaeloliveira 419 -
6
votes3
answers3064
viewsCount of occurrences in a String
How do I write a function that receives a string as argument, and returns an object listing the number of occurrences in the current string ? Currently I have this: charCount("hello"); // { // "h":…
javascriptasked 8 years, 10 months ago Rodolpho Bravo 97 -
6
votes1
answer423
viewsCan denying access to a mod_rewrite folder be unsafe?
I’m thinking of creating a very limited php microframework just for own use, however I came across a situation, most frameworks uses a folder called public and on the generally production servers we…
-
6
votes3
answers11601
viewsHow to calculate the Euclidean distance
I want to calculate the Euclidean distance by the following formula: So I tried, making this code: #define SLEEP_1 1000 void HeaderClass::DistanciaEuclidianaEntrePontos() { int x1, x2, y1, y2,…
-
6
votes2
answers143
viewsCopy all before the first blank line
I have a file with several text blocks, separated by blank line. Ex.: block1 block1 block2 block3 block3 I need a solution with sed, awk or perl that locates the first blank line and redirects the…
-
6
votes2
answers509
viewsHow does the Table declaration instance work in Lua?
In object orientation, the class is usually created first and then the same. PHP example: class Test{ public function __construct() { // inicia as parada aqui } } $test = new Test; But in the Lua it…
-
6
votes4
answers696
viewsHow to create hexadecimal colors randomly?
How can I create color code in hexadecimal randomly with PHP? For example, from #000000 at the #FFFFFF, to generate something like this: <div style="color: <?= rand_color()?>"> Estou…
-
6
votes1
answer550
viewsNumber of threads on a 16 processor machine
A question fell on my proof of Operating Systems and I was in doubt. During the race I got confused and marked alternative D, today I know she is wrong and has nothing to do with it. I am tending…
-
6
votes2
answers210
viewsIn PHP what does this <?= ? > tag represent?
In PHP what this tag represents ? Opening tag: <?= Closing tag: ?>
-
6
votes3
answers1311
viewsHow to place a upload image within a Javascript function?
I have this function below: function consultarOcorrencia(number, sequence){ form = document.forms[1]; form.number.value = number; form.sequencial.value = sequence; form.submit(); } After the submit,…
-
6
votes1
answer177
viewsWhat is the "behavior" attribute in CSS for?
I’ve seen in some CSS codes made to work on most esteemed navigator Internet Explorer the following attribute: img { behavior: url(ie_png.htc); } What is the purpose of this behavior? Only works for…
-
6
votes4
answers268
viewsBETWEEN demands arguments in ascending order? Why?
I have the following dummy table. I created the following query: SELECT * FROM ALUNOS WHERE IDADE BETWEEN 10 AND 15 Students A, C and D return. Now, because when I invert the order in the BETWEEN…
-
6
votes3
answers10207
viewsWhat is the JBOSS?
I’m reading a book about distributed applications and he occasionally references Jboss. I would like to know what it consists of and its usefulness?
-
6
votes3
answers795
viewsPHP database text for html
I’m having trouble returning text with HTML formatting to the view. I need to return it with break lines. I also tried to put it without the tags HTML in the database and then used the function…
-
6
votes2
answers213
viewsDifference between ":" and "." in the methods of a Lua table
I came across two different statements that left me confused. obj = {} function obj.Create(name) end function obj:GoGoGo(name) end What is the difference between the declared function and the .…
-
6
votes3
answers789
viewsI can’t align a label inside a <td>
In a calendar, I need to put a label next to it. It turns out that the label is getting underneath it. If I open another one the label is on the far right, and I need it right next to it. Here the…
-
6
votes5
answers31061
viewsFormat Float value as currency using Jquery
I have a function that sums the values of a line, I would like to know if it is possible to put the value as currency like this: R$ 16,00 It’s coming out this way R$ 16.00 But I wouldn’t want to use…
jqueryasked 8 years, 10 months ago Macario1983 1,335 -
6
votes1
answer561
viewsProblems Xamarin Asynchronous method
In the event of a button of my APP had the following code it worked running on the android emulator, but when I passed the app to the mobile generates a message the app stopped. Button…
c# wcf xamarin asynchronous xamarin-studioasked 8 years, 10 months ago Diego Filipe Pedro Santos 531 -
6
votes2
answers788
viewsGoogle Speech API compatibility
Performing some tests on Google Speech API I identified that this feature only has support in Chrome and Opera browsers as per Can I use. Detail the main function that is used by the API is Speech…
-
6
votes2
answers796
viewsIs it possible to instantiate a class without calling the constructor in PHP?
It is possible to instantiate a PHP class without the class calling the method __construct? Example: class Test { public $chamado = false; public function __construct() { $this->chamado = true; }…
phpasked 8 years, 10 months ago Wallace Maxters 102,340 -
6
votes1
answer1350
viewsHow to show message in contact post return
I have a contact form where I send the information entered to my BD, I would like to leave a message to the user after submitting the form and I am not succeeding, what I did was this: I have a div…
-
6
votes1
answer552
viewsTake autocomplete return and put in different inputs
I have the following script <script type="text/javascript"> $().ready(function() { $("#course").autocomplete("teste1.php", { width: 260, matchContains: true, selectFirst: false }); });…
-
6
votes1
answer91
viewsHow to position text in the intermediate columns?
Hello, I generated a column chart that is composed of 15 groups of 3 columns (each group of 3 refers to a patient in 3 distinct times) and would like to identify each patient by placing a text…
rasked 8 years, 10 months ago Luís Muniz 163 -
6
votes2
answers1494
viewsDelete record with duplicate (Id) leaving only one occurrence
This is an old bank, dbase who was transferred to MSSQL. How to leave only one occurrence in the case of id duplicated in a table? | Id| Nome | |-----------| | 1 | JOSE | | 1 | JOSE | | 2 | MARIA |…
-
6
votes1
answer52
viewsWhy isn’t Stylus identifying classes?
I’m having a problem with Stylus. Compiling my code by Node sometimes it gives a bug, it seems that it does not identify the classes because of the . generating the following error: expected…
-
6
votes4
answers124
viewsHelp in refactoring jquery code
$(".img1").mouseenter(function() { $(this).css('box-shadow', "inset 0 0 20px black"); }); $(".img1").mouseout(function(){ $(this).css('box-shadow', ""); }); $(".img2").mouseenter(function() {…
jqueryasked 8 years, 10 months ago João Pedro 97 -
6
votes1
answer54
viewsIdentify a specific part of the screen
Is it possible for me to identify a specific part of the screen with Jquery’s javascript? For example when going through height y it perform a function for me? I imagine something like: var…
-
6
votes1
answer218
viewsHow can I force a directive to work only if it is within a specific directive?
I am trying to make ngPanelHead, ngPanelBody and ngPanelFoot directives need to be within the ngPanel directive, otherwise an error is presented on the console. I tried with require however it is…
-
6
votes1
answer1327
viewsCan’t find Httpcontext.Current
I’m trying to create a Urlhelper as follows: UrlHelper urlHelper = new UrlHelper(HttpContext.Current.Request.RequestContext); I already made the reference to System.Web, as I saw as solution in…
-
6
votes2
answers784
viewsWhat is the best way to create a mobile application that communicates with a Webserver?
I’m developing an app mobile which should contain the same content of the website, and it is necessary that the same database (Mysql) used by the site is also used by the mobile application. I…
-
6
votes2
answers626
viewsLaravel and Json Web Token
I’m having difficulty authenticating through the Json Web Token (JWT) token in the Laravel framework, I’m using the framework recently and I came across the following error. Whoops, looks like…
-
6
votes2
answers853
viewsMake shapes with CSS
I need to make this shape with CSS. But it can’t be with border. Follows the form: It cannot be with edge for the reason that forms using border do not allow me to position texts within them.…
-
6
votes2
answers4150
viewsChanging Screens in Navigation Drawer
The Navigation Drawer had some changes, where the method was used onNavigationItemSelected(int position, long itemId) and now comes with the method onNavigationItemSelected(MenuItem item). I tried…
android android-layout android-fragment navigation-drawerasked 8 years, 11 months ago Mauricio Junior 149 -
6
votes1
answer290
viewsCalling up graphical interface in java
My doubt is simple, I believe. I need to call this interface CadastroGUI d = new CadastroGUI(); which I already have ready, but I want the fields already appear filled, after all, is a query command…
-
6
votes1
answer133
viewsDropdown with SVG
I have an art and now it’s in an SVG file. The problem is that the client wants that when passing the mouse (or if clicking) on a block, he should open a menu. I don’t know if you have the ability…