Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer130
viewsTime is early in program . C
I have an application in .c, I finished it but I have a problem with the time. Example: I am recording everything that is done with date and time only the time is early. When I do an operation at…
-
5
votes1
answer460
viewsWeb scraping for scientific papers collection at Sciencedirect
I am trying to use R to select articles from the Sciencedirect page using Keywords. I was able to extract pdfs from a page last week, using the source information of the page. The code used was the…
-
5
votes1
answer1048
viewsExcel How to find the current cell address
I have a column on my chart where I place the arrival date of a product. I would like to create a conditional formatting (put the cell in red) when there were 15 days or less for the product to…
-
5
votes2
answers3408
viewsCreate trunk, branch and tag folders in Subversion in an existing repository
I have a project that is in a repository on Subversion, but the same NAY is inside the recommended folders: trunk, branch and tag. As if the folder the project is in is the trunk itself. I can…
-
5
votes1
answer163
viewsComposition with fluent interfaces
I’m trying to make a class using composition, fluent methods and I’m having some problems. I would like to access a property of a compositional method through fluent interfaces but I cannot…
c#asked 10 years ago Jorn Filho 53 -
5
votes1
answer1659
viewsHow to handle security in a REST application with Spring?
I would like to know how I could treat the security of a stateless REST application with Spring. Imagine that no user can access any content from /app/content if you have not identified first. There…
-
5
votes1
answer11899
viewsHow to send Nfe XML to SEFAZ WS using C#?
I have been doing a lot of research, reading several source codes of other languages and never found answer to my question, which method of SEFAZ web services I should call? I’m working with this WS…
-
5
votes3
answers2742
viewsIs there a better way to insert an option in select with jquery?
I was wondering if there’s a better way to insert a option in the select with jquery. Example: <select name="municipio_evento" id="municipio_evento"> <option value=""></option>…
-
5
votes2
answers295
viewsWhy did a dynamic array work without the use of malloc()?
Follow the code passage below: int main(void) { int tam, vet[tam]; printf("\ndigite tam: "); scanf("%d", &tam); return 0; } I didn’t know this worked, because I’m typing the vector size at…
-
5
votes1
answer1854
viewsHow to run a javascript function from a json file
I have a json file that is generated by php and it looks like this: { "status":200, "command":"faca algo", "action":"function (){document.write('quer que eu faça algo?');}", "type":"acao" } how to…
-
5
votes2
answers183
viewsHow to insert a header to each N records?
How can I enter a header for each N records? Type ... <h1>CABECALHO</h1> Cadastro 1 Cadastro 2 Cadastro 3 Cadastro N <h1>CABECALHO</h1> Cadastro .. Cadastro .. Cadastro ..…
-
5
votes3
answers14765
viewsHow to check if any field of a specific class or type is empty?
Programming for recording multiple data from the same type or even class within the database, I came across the need to verify that any of these inputs would not be empty at the time of insertion.…
jqueryasked 10 years ago Marcos Vinicius 7,188 -
5
votes3
answers3146
viewsTag <img>. When loading an image from the bank it appears lying down
Some photos that are loaded from the bank in my tag <img> appear lying (Landscape), but when I open the image of the PC it is correct in vertical position. This is the part that receives the…
-
5
votes1
answer673
viewsHow I get the sql that Linq generates by debugging VS2013
How do I get the sql that Linq generates by debugging VS2013? How do I do this? I did it and it didn’t work public static List<MontaArvoreAcao> CriarListaArvoreUn(string _uf, string _cidade,…
-
5
votes3
answers1816
viewsFind sum of values in array
I need to develop an algorithm that finds a specific value of the sum of some elements of an array. Ex: I have an array with 50 different values and have a given value "X". I know that the sum of…
-
5
votes2
answers378
viewsHow does PHP treat temporary expression regarding memory?
In PHP, it is possible to iterate the elements of a array through the foreach, both with the variable that contains it and with what PHP called "Temporary array Expression". Example: $myArray = ['a'…
-
5
votes1
answer370
viewsIs it possible to do spatial orientation only with magnetic sensor?
It is possible to determine the spatial orientation of the smartphone using only the values x, y, and z magnetic sensor?
-
5
votes1
answer812
viewsLoad objects related to @Onetoone
concerning the doubt that I have is basic, but it is taking my sleep. I have an entity in which I call Destination. In the Destination entity I have several relationships of the type @OneToOne with…
-
5
votes4
answers1224
viewsHow to exchange data between a mobile(android) and another device through Bluetooth communication?
How can I connect and disconnect with any device through Bluetooth communication and then exchange (send and/or receive) data?
-
5
votes4
answers8289
viewsHow to put different graphics of ggplot2, separately but on the same screen?
Suppose I have these 4 charts: p1 <- ggplot(mtcars, aes(mpg, cyl)) + geom_point() p2 <- ggplot(mtcars, aes(mpg, cyl)) + geom_line() p3 <- ggplot(mtcars, aes(mpg, cyl)) +…
-
5
votes1
answer162
viewsHow to get the name of all user classes?
The function get_declared_classes magpie ALL the classes defined in PHP, both from the internal PHP library and from the user. I wanted a role for classes like: get_defined_functions, that separates…
-
5
votes3
answers1142
viewsAdapt query to create VIEW that returns sum of count of two Subqueries
Of agreement with the documentation, Mysql does not allow the use of Subqueries in the FROM when the consultation is a view: Subqueries cannot be used in the FROM clause of a view. Resulting in the…
-
5
votes1
answer334
viewsHow to create immutable objects in Python?
Based on this question, Is it possible to create your own immutable objects/classes in Python, in the sense that by default, this object of mine will be copied when passed as a function argument? If…
pythonasked 10 years, 1 month ago Carlos Cinelli 16,826 -
5
votes3
answers1627
viewsHow do you set zero or null in an SQL query of a date range, for those whose value does not exist?
Formulating the question was a little difficult, but I will try to be as explicit as possible using an example to put the question. There are the following data in my table: The aim is to carry out…
-
5
votes2
answers453
viewsMake list changes to be local in Python?
In Python as I do for the function below change the feather list locally, that is, only in the scope of the function f without changing x set outside of f? x = [1, 2] def f(x): x[1] = "novo valor"…
pythonasked 10 years, 1 month ago Carlos Cinelli 16,826 -
5
votes1
answer751
viewsPrevention Session Hijacking
I know that to prevent this type of attack we must use session_regenerate_id(), mainly before logging in. My question is whether to delete the previous session by passing a true as parameter? I…
-
5
votes1
answer1794
viewsOnly get user name in AD
With this code, I bring everything, Dominio/User. ViewBag.User = System.Security.Principal.WindowsIdentity.GetCurrent().Name; I would like to bring only the user name. I can take all this, and take…
-
5
votes2
answers1991
viewsChanging the Culture of the System
Developing a system for a Bolivian company, in a windows with Culture pt-BR, some objects like datetimepicker has its internal components according to the language in which the system was installed.…
-
5
votes1
answer774
viewsCreating a bar chart within another bar chart
I look for a very efficient and useful way to use the nested bar charts. A mode where you can demonstrate divisions and subdivisions in the same graph. How to generate such a graph in R?
-
5
votes1
answer905
viewsJava use library . DLL
I’m having trouble creating the java interface, because I can’t understand the header of the function in C. Example Header function C: CMOEP_API char * CALLCONV CMP_GetLastError( ); Now in java I…
-
5
votes5
answers15132
viewsChange NULL value in SQL SERVER
How to change the NULL value in sql server to for example 'NONE', how to fix it ? My result is coming like this: Florida United States NULL 16 Nevada United States NULL 17 Nevada United States Cell…
-
5
votes1
answer115
viewsReturn only albums with at least one photo
I am currently making the following FQL query to return all the logged-in user’s Albums that have at least one photo (with the amount of photos): SELECT object_id, name, photo_count FROM album WHERE…
-
5
votes1
answer1582
viewsHow does authentication work in a stateless Restful environment?
My question is this:: Imagine 3 Tomcat servers (S1,s2,S3) and all 3 servers connect to a single sgbd server (s_bd1). The three Tomcat servers run an application that is of Restful and stateless…
-
5
votes1
answer403
viewsHow do I maintain a Viewbag for all Controllers?
I am developing in ASPNET MVC 4 with Razor. I made the login page and everything is ok. After login, the famous phrase "Welcome FLAVIO" is being successfully returned, via Viewbag. As I’m doing a…
asp.net-mvcasked 10 years, 1 month ago Flavio 197 -
5
votes1
answer1548
viewsHow to create a user-friendly URL on a one-page
I have a website that is one-page. I separated the screens by <div> to facilitate. However, if I click news it goes correctly to the news screen, but the URL does not change. How do I include…
htmlasked 10 years, 1 month ago Felipe Viero Goulart 3,693 -
5
votes2
answers6417
viewsWhat are the advantages and disadvantages of generating HTML on the client or server?
Historically, HTML has almost always been generated on the server, with Javascript being used for a few things, such as animations, validations, masks, etc. However, in recent times there was a…
-
5
votes1
answer162
viewsNumber of revisions per file saved via Git
I have a very specific need, I need to store at most 3 revisions of a PSD file, and every new revision the older one is deleted. You can do this in Git?
-
5
votes2
answers1344
viewsQuote problem when doing INSERT SQL
I’m doing a CRUD with PDO, but the method query prepare() only works with "crooked quotes" Ex (that’s how it works): "INSERT INTO `_user` (`firstname`) VALUES ('blabla')" It doesn’t work anymore:…
-
5
votes1
answer2460
viewsRead bank note barcode
How can I read ITF (size 44) coded barcode in the Intercalated 2 of 5 pattern. Using some library like zxing, zbar, etc.? I have used zxing and zbar libraries, but does not recognize the barcode of…
-
5
votes3
answers8030
viewsHow to include lines in a data.frame?
Consider the following data.frame: df <- data.frame(x=c("a","b"), y=c(1,2)) How to include a new line with x="c" and y=3 in data.frame?…
rasked 10 years, 1 month ago Carlos Cinelli 16,826 -
5
votes1
answer198
viewsGlobal Differences in Userscripts in Chrome and Firefox
I started programming Userscripts in Chrome and almost all snippets of code I find work, but when going pro Firefox gives problem. In Chrome I use the Tampermonkey and in Firefox the Scriptish…
javascript google-chrome firefox global-variables userscriptsasked 10 years, 1 month ago brasofilo 6,560 -
5
votes1
answer309
viewsHow to get the position of an <Circle> element that is inside an SVG via Javascript?
I have an SVG that contains, among other items, an element <circle>. I can manipulate it via Javascript by changing CSS properties such as visibility, but I can’t get his position on the…
-
5
votes2
answers1406
viewsHover on selector :before
I found myself in a situation, I even know how to get around, doing otherwise, but I wonder if it is possible to use :Hover in an element :before, I have the following structure: <a href=""…
-
5
votes2
answers87
viewsError declaration of Javascript objects
function Casa() { var nome; var idade; function exibeInformacao() { console.log("O seu nome e: "+this.nome); console.log("Sua idade e:…
javascriptasked 10 years, 1 month ago Leonardo Villela 1,620 -
5
votes2
answers172
viewsHow to use Reflection on a COM object?
I am trying to do a Reflection in a program, however, when the time to pick up the type of the object (Which is necessary for the Reflection) is returning "System. __Comobject", and this is not…
-
5
votes2
answers1434
viewsProblem when performing XHR on the same domain (localhost)
Explanation: I have an application running on a client’s computer, it worked normally for some time, then something happened that the system could only be accessed from outside and locally no longer…
php javascript html cross-domain xmlhttprequestasked 10 years, 1 month ago Paulo Roberto Rosa 8,979 -
5
votes1
answer560
viewsReport progress to the interface of an asynchronous method in C#
I have an app Windows Forms. This application will perform some processes that take some time to execute, so I would like to run them in parallel. Follows a little of what I’m trying to implement.…
-
5
votes1
answer4479
viewsPortuguese dictionary online for performing requests
I am looking for an online dictionary in Portuguese that allows me to do requests as the example: http://www.exemplo-dicionario.com/dicionario?palavra=palavra-pretendida And answer the definition of…
-
5
votes2
answers356
viewsIs it possible to apply push technology?
I have a system, in which it displays database files, in list form. I do the query in the database every 5 seconds to see if there are new files, and if you have it is shown to the user using AJAX.…
-
5
votes1
answer1701
viewsHow to get information from another running program?
Updated I thought my question would get lost and I honestly didn’t even see it reopened. But taking advantage that now there was a move to update on my app. It is being developed in C# and therefore…
c#asked 10 years, 1 month ago Gabriel Tadra Mainginski 707