Interesting questions
-
5
votes1
answer13715
viewsUndoing a pull in Git
I have a project and at the moment I have 3 branches, the master, one dev and one that I needed to create in parallel to the dev for a funcionalidade the part, so far no news, my problem was that…
-
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…
-
8
votes4
answers121
viewsShould I use two IF’s or an operator?
Best practice for checking two conditions? In the example I’m going to give, are not very long checks but what is the best practice and what is the difference? (It happened to me that I found myself…
-
2
votes2
answers55
viewsDoubt with group by - sql
I have these tables: CREATE TABLE empresa ( id_empresa INT, nome_empresa VARCHAR(40), razao_social VARCHAR(40), PRIMARY KEY ( id_empresa ) ); CREATE TABLE departamento ( id_departamento INT,…
-
0
votes1
answer1642
viewsMake a game in C# from scratch
I’m learning C#, and I already have enough knowledge(I think) to make a simple 2D game. But I don’t want to use NO engine. So where do I start?
c#asked 9 years, 11 months ago user30226 -
14
votes1
answer268
viewsWhat happens to a 2:30 Cronjob if the server goes down at 2:28 and only comes back 5 minutes later?
I don’t know if the question is confusing, but is that I have used a lot of Cronjob in my systems currently and do not want to have problems. So I’m going to illustrate my concern with a…
-
0
votes0
answers25
viewsMedia in a Pivotgrid
Hello to everyone as the image below would like to calculate in a Tcxpivotgrid, in the summary (last record), the average unit value (total value divided by the total Qtde) and not the average unit…
-
33
votes3
answers154319
viewsHow to center horizontally one div within another?
How can I center a horizontal div that is inside another div using only CSS? In this case, we can assume that div external outer has a width of 100%. <div id="outer"> <div…
-
1
votes0
answers66
viewsUse Service to continue player operation when class changes
I want to use for when to change Fragment continue running the audio and when to class the ! isPlaying keep popping up the requested pause. How to do this with Service? import android.app.Fragment;…
-
0
votes0
answers75
viewsStart reading the beginning of the string list
How do I after adding a string to a list (can be on list A or B), my code goes back and starts reading the beginning of the string list, or the first string? I have a list with 20 strings. But it’s…
-
1
votes2
answers479
viewsFancybox with Facebook share button
I would like to add a facebook share button to overlay Fancybox 2.1.5 on instagram photos. At the moment I have a button like that works but that’s not what I want, what I really wanted was a button…
-
1
votes2
answers2337
viewsTake the value of a select and play in php variable
How do I get the selected value from a select and already print it? I have a simple form, when the user selects the value I want to assign to a php variable, because I will show the selected…
-
0
votes1
answer1148
viewsGenerate PDF from PHP?
I managed to generate the boleto in my site along with the project Boletophp, and the database data. Now, when it goes to print on CHROME it comes out with the wrong barcode, this is up to a…
-
0
votes1
answer1501
viewsHow to use Boolean in Json
I have the following JSON, and within my code I have a check to see if autoLogin is enabled. Object {autoLogin: "true", autoLoginKey:…
-
1
votes1
answer1559
viewsHow to do a back post (refresh) on MVC
I am new to MVC and am used to web Forms and the events of the controls that cause postback and update the page. I need to do this update on the MVC page after a javascript is triggered. In the code…
-
0
votes1
answer94
viewsHow to import CSV files from a same level folder (and/or above) in Python?
I have already searched several topics here, unsuccessfully however. So, if there is already an equal question, please forgive me and indicate a solution. My project is articulated as follows:…
-
0
votes1
answer70
viewsGood practice passing arguments to a method when they come from another function
I came across a code similar to the following: private fazerAlgo(AlgumaCoisa algumaCoisa) { Utilidades.converter( formatador.formatarParaTal( algumaCoisa.a, algumaCoisa.b, algumaCoisa.c ) ) } At…
-
1
votes0
answers381
viewsSQL ORACLE - SELECT inside a Trigger
When I try to run a Rigger that uses this function gives me error saying that the table is changing. Function: CREATE OR REPLACE FUNCTION func_tipo_inst (pCodI t_instituicao.id%TYPE) RETURN INTEGER…
-
0
votes1
answer994
viewsIntelbrass cameras with python
I wonder if it is possible to take images of an intelbrass camera through ip by python, I searched a lot and found nothing, the code that came closest was this one: import cv2 cap =…
-
0
votes0
answers150
viewsDbgrid with following error out of memory
I have the following Dbgrid error. out of memory - dbgrid This error is giving only on Windows XP.