Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer79
viewsIs using "Touint64()" to format string correct?
Looking for a practical way to format string I came across the following: Convert.ToUInt64(string).ToString(@"00000\-000"). It is a good pathic to use this method to format strings? There is a…
-
4
votes1
answer625
viewsGraph of columns of a Data Frame using GGPLOT
I have that date.frame: A K1 B K2 C K3 D K4 E K5 1 0.89386498 0.239258200 -0.004970278 0.99477685 -0.243845617 0.80370370 0.3132989 0.637155451 -0.55467576 0.049341476 2 0.35422172 0.681622485…
-
4
votes2
answers337
viewsData entry without echoing on screen
entrada = input("digite a senha") If I use the function input, what the user keystrokes will be echoed on the screen. How to do so so that nothing is shown on the screen?…
-
4
votes1
answer854
viewsLaravel Undefined column: 7 ERROR: column "1" does not exist
In the join, I am passing a direct value, and Laravel is trying to "read" this value as if it were a table. function ($join) { $join ->on('e.pee_fk_pes_codigo', '=', 'p.pes_codigo')…
-
4
votes2
answers2461
viewsGenerate random password
Hello, I checked that there are libraries generate-password and password-Generator for random password generation. However, importing a library just for that, might not be a good idea. Is there any…
-
4
votes1
answer228
viewsHow to compile the entire project folder for ES5 using Babel.js?
I have an HTML5 Cordova project and I need to hook before compiling to convert entire projects folder (www) to ES5 before compiling. It is possible? Structure cordova/ hooks/ node_modules/…
-
4
votes3
answers31945
viewsHow to put one div overlapping another using only relative position?
You may find it unnecessary, but it’s because of an effect I want to use, and my question is this, if there’s any way to put one div overlapping another using only relative position on both
-
4
votes1
answer134
viewsBulk Substitution in XML
Good morning! I have a program that check some signals, but in the code is indicated only which signal should appear, so I must apply the specific information that should be checked. But manually…
-
4
votes1
answer256
viewsWhat is the difference between "Exception.Message" and "Exception.Tostring()"?
I’ve read some answers regarding try-catch and on the Exceptionbut I still have doubt about the difference in Exception.Message and Exception.ToString(): What’s the difference between one and the…
-
4
votes2
answers312
viewsIs it possible to define a class within an array in earlier versions of PHP 7?
Is it possible? If so, how? In PHP 7 it is possible to create anonymous classes, which can be defined in any variable/property, but I do not know if it is possible to do this in previous versions,…
-
4
votes1
answer1453
viewsDoubt in the method of using Distinct and Count together!
I have a requested table as the example below: Id | Cliente | Status 1 | XPTO | Proposta 2 | ABCD | Proposta 3 | XPTO | Venceu 4 | XPTO | Perdeu And I want to present a result like this: Cliente |…
-
4
votes1
answer3781
viewsIDE for Python that has GUI modeling
I wanted to know if there is a IDE for programming in Python that provides a tool for mounting a GUI more easily, in advance that has versions for Linux and Windows.
-
4
votes1
answer167
viewsProblem returning items in a Relationship in the Entity Framework
Talk Personal All right!? I’m going through the following problem in the Entity framework that I think is some mistake I’m making when it comes to relating two classes: I have a Class called:…
-
4
votes3
answers684
viewsUpdate registration with Laravel 5.2?
I have the following function : public function alterar($id) { $produto = Produto::find($id); $params = $request->all(); $produto->fill($params)->save(); return…
-
4
votes1
answer627
viewsHow to use Google Maps in Ionic to upload multiple locations
I’m using Ionic 1.3 and creating a Maps screen, this screen will feature a menu to select the specific destinations and another that is the maps with the location. Example of destination selection…
-
4
votes2
answers621
viewsEntityframework . Asenumerable() or . Tolist()?
In one of the projects I picked up I saw the following code, which implements a data listing method of a given entity, but this listing is used only for reading: /// <summary> /// Listar todas…
-
4
votes2
answers890
viewsHow to add parallelism in execution with the subprocess module?
The code will be used in 2 testing virtual machines (Linux and Windows). The code below works but every time I run a program, for example the notepad, the prompt is stuck until I close the program.…
-
4
votes1
answer599
viewsLog in to Angular2
I’m starting to learn angular2 and I have a few questions about how to log in to an application. For example I in php make a query with the variables I receive by post I check if they exist, if they…
-
4
votes3
answers145
viewsBlade default value Laravel 5.2
I have the following code <strong class="primary-font">Complemento</strong> <p>{{ $produto->complemento or 'Esta produto não tem complemento' }}</p> I need that if the…
laravel laravel-eloquent laravel-blade laravel-5.2asked 8 years, 3 months ago Danilo Tiago Thai Santos 409 -
4
votes1
answer624
viewsLaravel 5.2 with pagination
I have the following function inside the controller public function home() { $igrejas = Igreja::paginate(3); $igrejas->setPath('igrejas'); return view('admin/igrejas/home')->with('igrejas',…
-
4
votes3
answers3129
viewsHow to list the properties of an object in php using foreach?
I have the following class: class Usuario{ private $nome; private $profissao; function setNome($nome){ $this->nome = $nome; } function getNome(){ return $this->nome; } function…
-
4
votes1
answer571
viewsIs there a difference between C++ from GCC and C++ from Visual Studio?
I already programmed in C++ compiling with GCC and when I started using Visual Studio I noticed that it has support for C++, but the implementation is aimed at the platform . Net. There is a…
-
4
votes1
answer1974
viewsvar_dump returns everything on the same line
Hello folks my php is returning the var_dump this way what can be? I use shaman in Ubuntu. who can help very much thank you.…
-
4
votes2
answers3495
viewsDevelop in C# and . NET on Ubuntu Linux?
Recently I had to migrate from Windows to Linux, because my work notebook burned and I am using an old one with Intel Atom and only 2GB of RAM, I was insecure to use Windows because it is a very…
-
4
votes1
answer5651
viewsHow to take screenshot of the screen in Python?
I would like to make a program that screenshots the screen ( screen photo) in Python. I found the following code: import pyscreenshot as ImageGrab if __name__ == "__main__": # fullscreen…
-
4
votes3
answers649
viewsLimit characters in div with contenteditable
I have a div with contenteditable="true" and would like the text that goes beyond 10 characters to be taxed with background red, as happens on Twitter. My main question is how to tax only the…
-
4
votes1
answer527
viewsCompile directives from the Controller
I have a table that is rendered dynamically when passing an array of data to it. I have access to the data of each "row" as follows: { "data": function (data, type, val, meta) { return "<div…
-
4
votes1
answer55
viewsHow do I change everything to a single php value
My question is this:: In a table, I have a column designated nomecliente. In this table I have several records, however the column nomecliente of the records are different from each other. How could…
-
4
votes1
answer496
viewsAddress and UDP destination ports do not appear
I’m creating in PHP a page that tracks UDP packet traffic from my machine. My intention was to get the list so: ____________________________________________________________________________ | Proto |…
-
4
votes1
answer438
viewsWhat is the Java Constant pool?
I am reading the Java Virtual Machine Specification to go a little deeper and I didn’t fully understand what the Constant pool table is. For example, when speaking da run-time Constant pool…
-
4
votes3
answers408
viewsUse free() without malloc()?
May cause some problem in using the free() on a pointer that was not allocated with malloc() beyond the necessity itself? void funcao (int par) { char *palavra; if(par%2 == 0) { palavra =…
-
4
votes2
answers844
viewsOmit seconds in Mysql time field
Guys I have a field on my table of type time, where I save my time. Problem is he’s saving it like this: 10:30:01, how do I save him only the hour and minutes. That is without the seconds? The field…
mysqlasked 8 years, 3 months ago Hugo Borges 5,294 -
4
votes0
answers53
viewsWhat is the advantage of using OSGI?
What is the advantage of using the OSGI to separate the modules from the project? What would transactions look like in transactions between modules, and relationships between different module…
-
4
votes2
answers1829
viewsGenerate Secure API Subscription
Well, I need to generate subscription via pagseguro API, user should be redirected to the pagseguro page and when finished return to my page, this should be via API. I tried through XML, with the…
-
4
votes2
answers378
viewsLibrary loading at runtime
Is there any contraindication in loading libraries .jar at runtime? I found this code that does this: URLClassLoader sysloader = (URLClassLoader) ClassLoader.getSystemClassLoader(); Class sysclass =…
-
4
votes1
answer610
viewsREGEX password validation
I have a Validation problem and I cannot apply within a simple structure, 3 validations cannot have decreasing, increasing or repeated alphanumerics in the same password. For example: 00000000 ,…
-
4
votes1
answer982
viewsFloat Right is superimposing div and invading div from below
Hey guys, I’m here one more time asking for help, I tried everything, I even used overflow:hidden, but it got much worse, so I need help, I have The code of the div: width: 100%; display: block;…
-
4
votes2
answers358
viewsKeep variable in memory until system reboot
There is a way to keep a variable in the memory of the machine until it restarts? My application made a change in the system and sent the message to the user to restart the machine, to prevent any…
-
4
votes2
answers440
viewsHow to automate merge into git / github with hook or other tool?
I have a repository on Github and I created a Github page for that repository. So, every time I make changes to the branch master, I need to get into the branch gh-pages, make a git merge master and…
-
4
votes2
answers117
viewsHow do I use free() and return the same content?
I wanted to use the free() in ls_retorna in the following function, how could you do it with the best way? char* MemCpyX(char *as_origem, int an_inicio, int an_quantidade) { char *ls_retorno =…
-
4
votes2
answers1749
viewsUpdate HTML Table with PHP
I have a page that you can select in php in a Firebird database and return the result in table form. My interest and update prices from a list to quote price, as I do to click on the cell and update…
-
4
votes2
answers69
viewsHow should these variables end correctly without having a chance of memory Leak?
What is the right way to use the free() in that case, where ls_options will contain several ls_buffer_send? char **ls_options = (char**) malloc (200*sizeof(char)); char *ls_buffer_send = (char*)…
-
4
votes2
answers1277
viewsHow to store a List<Object> in a database?
I am working on a project in C# where I have the following situation. I have a class that represents player: class Player { int ID; string Name; } and another representing a team: class Team { int…
-
4
votes1
answer55
viewsHook for Custom Rop in Wordpress
I have a function that detects the position of the face of the person in an image and returns the X, Y, W, H or she can return the image cropped from the face. I need to display a photo of a person…
wordpressasked 8 years, 3 months ago Lucas Martins 196 -
4
votes1
answer2619
viewsSkip to the next business day if the date falls on a weekend
In PHP, I have a certain date, coming from the database, which is the date a request was made. I need to add 5 working days on that date, which is the deadline for the request to be delivered. In…
-
4
votes3
answers481
viewsHow to make preventDefault links at the angle?
I’m using a function called with ng-click, via a link (Anchor). However, because of the hash #, the page is "skipping" every time I click on this link. This is my code: <a…
-
4
votes2
answers817
viewsCheck if string starts with number
I need to check if a string starts with numbers. I want to do this using Regex in c# public static class StringExtensao { public static bool ComecaComNumero(this string str) { if…
-
4
votes2
answers310
viewsWhich object performs best? Sqldatasource or Datatable?
In terms of performance, speed, or even safety, what is the best object to be used as a DataSource? Example, I’m creating a DataSource, to popular a GridView: For SqlDataSource:…
-
4
votes3
answers162
viewsProblems with SELECT with 2 Wheres
I’m having a bit of an amateur problem here. I’m not getting this SELECT from 2 CONDITIONS, and I can’t find the ERROR! Someone please give me a light there! Follows the Code: OleDbConnection Con =…
-
4
votes0
answers31
viewsDoubt about functions in Javascript lines
I have a question about how functions work in Javascript, was looking at some examples and does not follow logic like other programming languages (PHP and Lua). I can create a Function on line 99…
javascriptasked 8 years, 3 months ago Alex Vasconcelos 339