All Questions

1
answer

android - Cache images and show listview

Good afternoon friends, is as follows: I'm going to use Volley to get webservice data, and so I write the list in my local DB with SQlite. In this webservice will come a JSON with items, each item has its data and an image. I need to save thi...
asked on 22.06.2016 / 21:15
1
answer

While in Python Timer

How to make a timer while? I would like to execute a while, and do something, eg. a print "hello" run "hello" print for 1 hour for example.     
asked on 19.06.2016 / 19:29
1
answer

Error java.lang.NumberFormatException: Invalid double: ""

When I run my app, the error appears: java.lang.NumberFormatException: Invalid double: "" I do not know what to do. The error happens when I leave a blank value, for example, the app makes the sum of 2 numbers if the user types o...
asked on 25.05.2016 / 03:44
1
answer

Check if there is a file if there is a PYTHON report.

Verify that the folder no longer exists, if it exists, it should print a message to the user indicating. I got stuck without knowing how to check something related to this: os.listdir() os.mkdir (input('Insira o nome:')) if os.path.exists (...
asked on 05.06.2016 / 07:16
1
answer

Create SplashScreen to show file copy progress

I'm trying to create a splashscreen because when my application is open I take some time-consuming actions, like: Copy files Run an .exe My Main looks like this: import com.sun.javafx.application.LauncherImpl; @Suppress...
asked on 18.06.2016 / 05:36
1
answer

Create unique attribute beyond the Primary Key in code-first

I am creating a Logradouro table where the CEP field is not the primary key, but must be unique. How do I do this using code-first in Entity 6.0 ? To create primary key I use the HasKey method: ToTable("Logradouros...
asked on 16.06.2016 / 21:27
2
answers

How to put ALT in a Background-Image? How to make a Background-Image more accessible and semantic?

It's a simple but objective question. We know of importance of the tag ALT for semantics, accessibility and even for SEO. But how can I set these properties of the ALT tag to an image that is set to background-image ?...
asked on 05.11.2018 / 12:15
1
answer

Is there a technique for reporting Javascript errors?

It is the following: I use the Laravel Framework and, in it, I configure the application so that when a server error happens, it sends me an email, writes to a log file and / or sends me a message in the Telegram. This kind of helps me anticip...
asked on 26.10.2018 / 18:27
1
answer

What are the criteria for failbit and badbit in a std :: istream?

In a C ++ exercise, it is proposed to store a data (numeric, integer - eg, 4 or -3650 ) entered by the user through the console. This is an exercise to deal with exception handling and "defensive programming." Both the handout an...
asked on 03.10.2018 / 06:45
1
answer

How to fix CSS problem with letter-spacing and right-aligned text?

I have a situation in which I have a container with two lines of text in right-aligned. Only one of the lines has the letter-spacing: 15px; property to increase the spacing between the characters. The problem is that letter-spacing...
asked on 19.11.2018 / 13:24