Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers525
viewsRemoving strings from html files
In my project I need to read the contents of an HTML file as said in that question of mine. What happens is I can scan the file, but there’s a comment I wanted to take out. The peculiarity is that…
-
4
votes2
answers11683
viewsMake file available for download via Avascript
I have a javascript application where the user can view certain files from the server. I would like to know how to make these files available for download, something like a "Save As" button. Thank…
-
4
votes4
answers3696
viewsMultiple Bootstrap Alerts
I’m trying to create a standard response using the alerts do bootstrap, my goal with a simple: $(".alert").addClass('alert-success').text('Configurações salvas com sucesso.'); I choose the class…
-
4
votes2
answers184
viewsHow can I sort by line size in Sublime Text?
I wonder if there is any way to sort the line by its size in the Sublime Text. 'Cause I got a code like that: use ArrayAccess; use ArrayIterator; use IteratorAggregate; use Countable; use Closure;…
sublime-textasked 9 years, 3 months ago Wallace Maxters 102,340 -
4
votes1
answer12788
viewsRounding of hours (every 30 minutes)
Does anyone have any idea of any logic for rounding the hour, but every 30 minutes? Example: vem assim -> vira assim 15:34:32 -> 15:30 15:47:21 -> 15:30 16:00:40 -> 16:00 17:28:30 ->…
-
4
votes6
answers17792
viewsAccentuation problem while recovering records in SQL Server
When I recover records from a SQL Serve database with PHP errors appear in accentuation. But in the database, the accents are correct. Is there any way to handle this with PHP? I don’t have…
-
4
votes1
answer135
viewsExecute function x minutes after submitting form
Good afternoon guys, appeared a problem to solve on a site, something that had not yet moved. The following is, on the page I have a form where the person can register. When making the registration,…
phpasked 9 years, 3 months ago Henrique Felix 637 -
4
votes2
answers509
viewsFormat Mysql Now() function return
So personal. I need to know if there’s any way to send only the H:i:s hours of the function NOW() in the database, or send the NOW() complete and then fetch only the time?…
-
4
votes2
answers169
viewsHow to capture the Exception generated by a method whose access is not authorized by a particular user profile
How can I send the user a message that the operation he wants to do is not authorized? I have in my View a button that calls a Javascript function <button id="btninicio"…
-
4
votes2
answers1263
viewsHow to search by class (instead of id) in Javascript/jQuery
I’m using a plugin for popular city/state, but I wanted to use in more than one select, so I wanted to use per class instead of ID, but what I tried so far didn’t work. I tried to follow this famous…
-
4
votes3
answers210
viewsWhat’s the difference between var $var and public $var?
I have a class: class anyClass{ public $var1; var $var2; } The difference between $var1 and $var2?
-
4
votes1
answer2088
viewsHow to convert int to Qstring?
I started learning Toolkit today QT and in trying to perform a small test I came across a question: How to convert a whole to QString? Is there a function that receives an integer and returns an…
-
4
votes1
answer94
viewsFile installation/copy system
How to use items SortedDictionary File.WriteAllBytes to start or complete a file and folder installation process for the computer. Ex: File list: void AlocarArquivos(){ var arquivo_e_pasta = new…
-
4
votes2
answers1216
viewsCompare two strings with C accentuation
I have the following problem, I need to compare two strings ignoring the accent, for example: Étnico | Brasil Using a normal comparison function it is returned that "Ethnic" comes before "Brazil" in…
-
4
votes1
answer113
viewsUse regression residues to calculate another regression (within the function) in R
I’m using a function to calculate regressions. I need the residues of a specific relation to relate to another variable. However I need the waste to be calculated according to Facet grid. Thus, for…
-
4
votes1
answer734
viewsError "illegal start of Expression"
In my main I’m calling the method stats: user.stats(ctr); The method stats in itself: public void stats (int num) { int i; float total=0, perc; for (i=0;i<num;i++) { total = total +…
-
4
votes1
answer1912
viewsCompile multiple Java classes in cmd?
How to compile multiple files .class in java by cmd? I tried and he informs that it was not possible to locate the main.
-
4
votes4
answers3989
viewsHow to display 2 columns from 2 different tables in Mysql?
I have 2 tables with multiple columns. I would like you to display individual columns of more than one table at the same time: tabela1 | tabela2 Nome | Apelido…
-
4
votes1
answer1016
viewsHow to keep the selected item color fixed
Adding the Istener to the Listview through the method setOnItemClickListener, every time you click on one of your items, it momentarily changes color. Is there any way to keep this color fixed on…
-
4
votes1
answer388
viewsError importing Dynamic Json via Angularjs
Hello, I’m having trouble importing this Json and others, I don’t know what I might be doing wrong in that... <html> <head> <script…
-
4
votes1
answer80
viewsWhat are the advantages of using Splfixedarray instead of an array?
What are the advantages of using Splfixedarray instead of an array? What are the advantages of fixing a value to an "array" (in PHP) ? Example with array: $arr = array(); $arr[0] = 'Stack'; $arr[1]…
-
4
votes1
answer243
viewsProblems with changing Jpanel inside Jdialog using Swing
I’m having a problem with a system I’m developing regarding screen swapping. Sorry for the extensive post, but I could not explain the problem otherwise. He owns a JFrame main with a menu that are…
-
4
votes1
answer812
viewsHigher value in an array in PHP
I’m having a problem finding the highest value of the box width of the products for shipping a site I’m doing. I put the data of the products with the size of the boxes in the database and I am now…
-
4
votes2
answers2245
viewsHow to capture Alert message using web browser controler?
I am developing a robot using the web browser controler of Asp.Net C#. In this robot I need to identify some messages that appear in Javascript Alert. The site that the Robot is manipulating is not…
-
4
votes1
answer879
viewsSpring boot Data-JPA and JSF Java Config
I am setting up a project using Spring boot for ioc and Data-Jpa along with JSF however I have a problem with @Autowired my DAO is not carrying. Does anyone know how to do that configuration and…
-
4
votes1
answer1160
viewsCompare File Extension
I’m trying to compare the extension of a file, but the same is failing I created a variable with the allowed extensions and I try to compare with the one being sent. // Lista de tipos de arquivos…
phpasked 9 years, 4 months ago adventistapr 5,498 -
4
votes2
answers325
viewsKnow if the application has been completed by the task manager
There’s no way my app knows it’s being terminated by the task manager? If the user is going to finish my application by task manager, my application detects this completion and performs some tasks…
-
4
votes2
answers68
viewsHow to check if a class is using a Trait?
How can we know if a class uses a Trait? For example: trait Setter { protected $vars = []; public function __set($key, $value) { $this->vars[$key] = $value; } } class User { use Setter; } $user =…
-
4
votes1
answer691
viewsKnow the JSON object name
I have a JSON and need to know the name of my object and the values it has, for example: {"Pessoas" : [ {"Nome": "Welson Play", "Idade":19}, {"Nome": "Stephanie", "Idade":15}, {"Nome": "João Pedro",…
-
4
votes2
answers516
viewsShould the Domain layer depend on Infrastructure?
I’m reading Evans' book on D.O.D., and I came across the following quote:: The Infra layer does not perform any action on the domain layer, because it is below it, because it is below it it should…
-
4
votes1
answer271
viewsEdittext issues in a listview
I’m trying to get my listview retain the values placed on EditText, but every time I give one scroll I lose the data or it multiplies to other fields. Can anyone help? Follow below mine adapter:…
-
4
votes1
answer397
viewsIn PHP, is there any way to import only one function from a given file?
I see that in Python, we can import only one function from a particular module, without having to load it all. In addition to this being great to avoid function name conflicts. Example: #funcs.py…
-
4
votes2
answers392
viewsVariable value Undefined js
I am developing a mobile application with Cordova, in the mobile version there is a BD that keeps checking if there is any change in online BD, if there is it updates in mobile follows below my…
-
4
votes3
answers19925
viewsFirebird, 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 9 years, 4 months ago SneepS NinjA 7,691 -
4
votes2
answers2267
viewsInstall Image Magick (Imagick)
I have a local web server that uses Windows Server 2008 R2, IIS7 is the web services manager. I installed an application that needs to convert PDF to JPG, but for this I need the Imagick is…
-
4
votes2
answers1043
viewsASP.NET Identity and mapping Many to Many (Fluent API)
I recently created a Solution with the DDD architecture, putting ASP.NET Identity in a transverse layer (CrossCutting), I saw that many people use Identity this way and decided to try it. However, I…
-
4
votes1
answer1111
viewsWhat is the difference between == and == in one condition?
What’s the difference between == and === in a condition, for example: if($string === $string2) and if($string == $string2)…
-
4
votes2
answers174
viewsHow to send queries simultaneously to test Transactions efficiency in Mysql?
I have a table Innodb in Mysql where I store a user’s account balance. To give a UPDATE on the balance I use Transactions to prevent two or more queries from trying to give UPDATE simultaneously and…
-
4
votes1
answer335
viewsCheck for visible items within a div
How to check if there is any visible element or vice versa within a <div>? I can manage with jQuery and tried using el.is(':visible') but I couldn’t because I need to check if everyone inside…
-
4
votes1
answer341
viewsUnderstanding pointers
I’m trying to learn C++ on the Internet, I understand more or less what pointers are but I don’t see a utility, I don’t know anything about C++ I just don’t want to go over this subject, I did a…
-
4
votes1
answer459
viewsDoubt about FK, Visual Studio database
Hi, I created three tables in a database in Visual Studio, the first two (clientes and produtos) are normal tables with Primary key in column Nome. Then I created the table compras that would have…
-
4
votes1
answer1049
viewsHow to transform data imported from Excel (.csv) into time series
I imported an Excel database to R and I need to turn it into time series to be able to analyze it. However, when I am going to make the transformation to time series R changes the original values to…
-
4
votes1
answer262
viewsAdvantages and disadvantages of using INI files
Could you tell me the possible advantages and disadvantages of using a file .INI to configure an application? Preferably PHP applications.
-
4
votes2
answers5264
viewsHow to import data (.csv) to R while maintaining the original format
I am trying to import data from Excel (already in .csv format) to R; the values contained in the files to be imported are in the following formats, for example 8509.80... To import, I am using the…
-
4
votes1
answer176
viewsPass variables with same name to PHP
I can’t catch the return of the fields in PHP, when I enter more than 01 in quantity.... someone can help me? $(function() { var input = $('<input name="cp1" id="cp1" type="text" />'); var…
-
4
votes1
answer222
viewsAndroid notification
I have a very simple project to test that at the event onCreate from screen 1 sends a notification, which by clicking opens screen 2. Purposely, I quickly click on the notification to open the new…
-
4
votes3
answers476
viewsHow do I convert snake_case to camelCase (and vice versa) in Python?
How could I, in any way pythonic possible, convert a string snake_case for camelCase ? Example: snake1 = 'minha_string_snake_case' # minhaStringSnakeCase snake2 = '_teste_string' # _TestString…
-
4
votes1
answer1642
viewsProblem with Session and Nodejs
I’m creating a chat with Node and Session, but I have the following problem: the user identifies and enters the room until then everything right. I am testing on 2 different computers. When I give a…
-
4
votes1
answer127
viewsWhy the compiler alerts me Anonymous new Runnable() can be replaced with lambda
Because that code (Thread) shows this message (on the compiler), and how to make it not show more? Code: public void onCreate(Bundle icicle) { ... mVideoView.setOnPreparedListener(new…
-
4
votes1
answer150
viewsError "E2034 Cannot Convert 'Tbytedynarray *' to 'Tbytedynarray'"
I need to perform an integration with Horus System (Health), using C++ Builder. I already imported the .cpp of the Approval web service made available for my project. I have problems in the methods…