All Questions

2
answers

Problems with Curl result and file_get_contents

I'm trying to get an image from a website to use imagecreatefrompng (), but the result was never what I expected ... Url: link in the case when I call as <img> works perfectly <img src="https://www.habbo.com.br/habbo-i...
asked on 18.01.2017 / 14:16
1
answer

How to get a string with the name of the window that is focused on python?

Some time ago I started using pyHook to handle events. However, the original version has errors, so I changed it to an alternate version that corrected the errors of the original version. However, I have found that this alternate version always...
asked on 11.02.2017 / 21:57
1
answer

See the values of variables at runtime?

How do I know the values of the variables in an application at runtime? I want to know what the value of some variables is to know if the program is doing the right thing.     
asked on 29.01.2017 / 23:06
1
answer

GetType () Laravel

I'm trying to get the column type of the tables from my BD , and how can I use PHP with Laravel I've tried using GetType to get the types and show on view . But the code is only returning Object . Here is t...
asked on 30.01.2017 / 14:11
2
answers

@PreDestroy in @ViewScoped

I noticed that @PreDestroy in beans with @ViewScoped scope is only called if the session that was active expired or if I forced a page redirect (? faces-redirect = true). Without these conditions, the bean with that scope is never destroyed, and...
asked on 27.08.2014 / 20:14
2
answers

setInterval of 5 seconds locking the browser

I'm developing applications using jQuery / Ajax and it has to refresh the page every 5 seconds, it works. But if I start using the application the browser starts to crash because of the code, how to fix this problem? Follow the code: <sc...
asked on 19.08.2014 / 17:15
2
answers

How to create 1-N relationship in class with more than one property and even subtype?

I have the following class structure, unconventional but it's in the template I need to solve my problem: Tree: public class Arvore { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; }...
asked on 18.08.2014 / 16:28
1
answer

Error retrieving SQLite data

I'm starting to work with database and I'm already in trouble. Ask for a hand! Well, I have a database, apparently there is no error adding data to it. I have a DBHelper class that inherits from SQLiteOpenHelper and I have another...
asked on 04.02.2017 / 10:30
1
answer

Prevention Session Hijacking

I know that to prevent this type of attack we must use session_regenerate_id (), especially before logging in. My question is if I should delete the previous session by passing a true as parameter? I understand that it would be best to delete th...
asked on 24.09.2014 / 18:23
1
answer

Popover or Tooltip Bootstrap with long text

How to display long text and with breaks in a Twitter Bootstrap Popover or Tooltip? And there's one more problem, the popover just opens on the second click! Does anyone know why? What I did: $('.btn-text-pop').click(function(event) { e...
asked on 02.09.2014 / 16:34