All Questions

2
answers

View saved PDF file in a MySQL database

I have a field in a table where I place the PDF file. The type of this field is BLOB. I would like to know how to display this file on a PHP page, without having to create a directory. I just want the script to access the field of this tab...
asked on 30.01.2014 / 21:13
2
answers

How to set cursor position in an editable element?

I have the following structure: <pre id="editor" contenteditable="true"> “Always pass on what you have learned.” - Yoda > {|} -- X </pre> I want when someone clicks a button I put the cursor in place of {|} . This...
asked on 25.12.2013 / 00:55
2
answers

Perspective shadow with CSS

I have a div of 950x350 pixels and would like to create a perspective (and blurred) shadow as shown in the code below (run in full screen): #slider{ width: 950px; height: 350px; background: blue; position: relative; } #...
asked on 25.09.2018 / 00:49
1
answer

Less Value of a Column Set

I have a dataset and would like to select only the smallest value between each primary key. Here is the example of my DF: ORDEM <- c(1,5,2,3,1,10) GUIA <- c('111','111','333','333','555','555') COR <- c('AZUL','AMARELO','PRETO','LARAN...
asked on 27.11.2018 / 15:27
3
answers

Keep zero after the comma using float type?

I have a database where product values are stored. When zero numbers occur after the commas they come with zero. I did a test and with decimal it worked, but my application uses float , so I need to work with float . decimal numero = d...
asked on 03.02.2014 / 18:08
2
answers

How do I shut down, restart, sleep programmatically?

I would like to add these options to a program, after finishing a task the computer would be shut down / restarted / placed in sleep . How can I do this?     
asked on 21.12.2013 / 03:23
3
answers

Explanation about the function and application of the javascript sort function

I know what the function below is for (return the candidate with the highest number of votes), but I do not understand the function of the function sort , passing another function. Can anyone explain and / or where to find Portuguese ma...
asked on 28.09.2018 / 23:33
2
answers

What is sscanf () and sprintf () used for?

What is sscanf() and sprintf() ?     
asked on 13.10.2018 / 22:07
4
answers

Function to expand list

I created a "dictionary" from A to Z, where when I want to see what's in the letter A, I click on it. This is beauty. So I do not have to click one by one to find some meaning, I would like to put a function to expand everything from A to Z. I u...
asked on 06.02.2014 / 13:06
3
answers

Enter page using the bank ID in ASP.NET

I need to make a page that can be accessed in the following format: www.exemplo.com/id/123qwe This 123qwe is the ID of a line in the database, where I will get all the data to fill the page. So far I've been able to...
asked on 24.02.2014 / 14:15