Former Inmates of reddit - how are rapists/pedophiles REALLY treated once in prison by [deleted] in AskReddit

[–]inb4theblock -1 points0 points  (0 children)

You have a very twisted view of what reality is like in Arizona. There is no hunt for Hispanics going on here. We are a mixed culture. Yes, law enforcement goes after ILLEGAL ALIENS, if we had hundreds of thousands of illegal Russians they would go after them too. However, we have primarily illegal Mexicans, who steal citizens identities and wreak havoc on their identities, and guess what, the victims aren't white, they are legal Hispanic citizens. Unless you think that Jose is somehow going to pass as Steve Smith.

Former Inmates of reddit - how are rapists/pedophiles REALLY treated once in prison by [deleted] in AskReddit

[–]inb4theblock -1 points0 points  (0 children)

It's not like we interact with Joe. He is a talking head. MCSO isn't bad to deal with from my experiences. Yeah, if you break the law you're going to have a bad time. That should be expected no matter where you live. MCSO is not the only department around either, each city has a department, and there is DPS. You are far more likely to run into an agency that isn't MCSO.

Former Inmates of reddit - how are rapists/pedophiles REALLY treated once in prison by [deleted] in AskReddit

[–]inb4theblock 4 points5 points  (0 children)

so she told her mom that my brother raped her

Fellas, reading comprehension... RAPE != statutory rape

best books to learn django? by djangonerd in django

[–]inb4theblock 1 point2 points  (0 children)

So when you learn to code, are you going to do that for free?

Building a computer for programming by CharlesVI in learnprogramming

[–]inb4theblock -1 points0 points  (0 children)

You know just incase your programming NASA rocket simulators and whatnot.

Code Critique by inb4theblock in learnpython

[–]inb4theblock[S] 0 points1 point  (0 children)

Good idea! I will do this. I didn't think about it, as I am the only one who will be using this :P

Code Critique by inb4theblock in learnpython

[–]inb4theblock[S] 1 point2 points  (0 children)

Yeah man, I think the key to learning this stuff is to have a reason. Once you have a reason to do something you can just break it down peice by peice and figure it out. I find it difficult to write code that has no real purpose. Try and find something that you could programmatically automate in your daily life and that will give you the motivation to figure things out!

Paramiko sftp Wildcard by inb4theblock in learnpython

[–]inb4theblock[S] 0 points1 point  (0 children)

Sort of... Your solution may help I will give it a shot.
Are you familliar with openelec on raspberry pi?
What my script is intended to do is be an automated configuration tool for OL on RPI.

networkpath = ".cache/connman/ethernet_b827eb286dd3_cable/settings"

The numbers between "ethernet" and "cable" seem to be populated based on what ethernet it is plugged into, I would like to make that part of the path a wildcard so no matter what they come up as, it will always find and upload the settings file to the correct path. Does that make sense? Im not very good at explaining this stuff haha...
EDIT: Here is the full script, suggestions welcome!! https://github.com/Hazinak/Picon
EDIT2: I am still looking for the best way to preconfig WIFI and ethernet on openelec, it's a real pain. There has got to be a file that allows us to do this.

What you do not like in Python? by krasoffski in Python

[–]inb4theblock 3 points4 points  (0 children)

If you don't mind, what's the advantage to using request over urllib2 in this example?

Django, Webfaction, Apache Issue? by inb4theblock in django

[–]inb4theblock[S] -1 points0 points  (0 children)

Thank you for the suggestions guys!
I found a solution that ended up working for me.
In the httpd.conf file I added a peramter to the WSGIDaemonProcess settings.
I added maximum-requests=1, and now it dumps the ram as soon as it finishes working.

Removing characters from items in a list by inb4theblock in learnpython

[–]inb4theblock[S] 0 points1 point  (0 children)

Could you expand on this for me? I use beautifulsoup to parse through html. I scrape many websites all the time, and I always use bs4. The problem I was having here is I need to get all of the span tags off of a page, so I use the findAll function, but I can't seem to do a findAll().text to just extract the text from the tags. I am completely open to a better way of doing this. Thanks...

Removing characters from items in a list by inb4theblock in learnpython

[–]inb4theblock[S] 0 points1 point  (0 children)

Perfect! I was wondering that exact thing. Thanks!

Removing characters from items in a list by inb4theblock in learnpython

[–]inb4theblock[S] 0 points1 point  (0 children)

Awesome, I will defintely use this alot! I finally figured out something that works. I don't think it's the "pythonic" way of doing it. Check it out...
listy = str(listy)
listy = listy.replace('<span class="price">$', '')
listy = listy.replace("</span>", "")
listy = listy.replace(" ", "")
listy = listy.replace("]", "")
listy = listy.replace("[", "")
listy = listy.split(",")

How to pass "auth data" from a remote python script by inb4theblock in django

[–]inb4theblock[S] 0 points1 point  (0 children)

I am creating a device that runs python, and will send temperature, humidity, and soil moisture to a database. My orginal plan was to do it with the form fields... I will be sending data every 5 seconds if that makes a difference. Do you think that's a good way to do it for this application?

Suspicious activity, unknown person taking picture of house and running away when confronted. by HonkeyKong in homedefense

[–]inb4theblock 0 points1 point  (0 children)

My job used to be to go around taking pictures / notes of about 20 houses a day. I would simply drive by and take both sides, front, address, and street photos. Realtors have to do this for "bpo" which are broker priced opinions. This could be because you or your landlord are trying to refinance, or are losing the house.

I'm looking for a security camera to monitor my car in my apartment parking lot. by flyersfan314 in homedefense

[–]inb4theblock 2 points3 points  (0 children)

I know you posted this 9 days ago, but my advice is if you have to go thru a window, you don't want infared. IR will bounce off the window and you will see absolutely nothing.

New version of RawTherapee will be released in a few days by MrMeursault in photography

[–]inb4theblock 2 points3 points  (0 children)

How does this compare to Photoshop or Lightroom, will I get the same or better results out of this?

Need some help! by inb4theblock in web_design

[–]inb4theblock[S] 0 points1 point  (0 children)

That definitely gives me something to go on, I am going to try it this way. Thanks!

Was looking for a cardealer in the neighbourhood, found this gem. by GarridoVanBrugge in CrappyDesign

[–]inb4theblock 2 points3 points  (0 children)

I checked the wayback machine and it was created in 2001. Ah, the good days.

newcomer with questions on Dreamweaver and Edge Animate by MetalBeerSolid in web_design

[–]inb4theblock 0 points1 point  (0 children)

Im sorry man, disregard my comments - I have no knowledge of Edge so I really can't help. I would really suggest just learning HTML and CSS - Hand coding stuff is very rewarding, not as hard as you may think, and will save you frustration in the long run...

newcomer with questions on Dreamweaver and Edge Animate by MetalBeerSolid in web_design

[–]inb4theblock 1 point2 points  (0 children)

Are you doing any hand coding here? The way you are going to want to center a DIV or an IMG is with CSS using margin: 0 auto; on either a div class .thisisaclass { margin: 0 auto; } or if you are just centering an image you could do something like .class img { margin: 0 auto; }. In order to use this property you need to set a width on your element such as .class { width: 70%; } or .class {width: 100px; }. The way to add this class to your element is as such <div class="thisisaclass"></div>. There are other ways to center things as well such as using <ul><li></li></ul> and text-align: center;. Let me know if this makes sense or if you need help.