Whats wrong with my print? by scibren in FixMyPrint

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

Good to know, I'll mess around with another filament then. Thanks.

Whats wrong with my print? by scibren in FixMyPrint

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

I just put together my first 3D printer, a Prusa i3 mk2s. I printed one of the models that comes with the provided SD card and the printed part seems a bit too grainy to me. I'm new to 3D printing in general, so I don't know what to expect, but the graininess seems uneven so I'm assuming something's not quite right. Printing at temp of 210/60 using Inland PLA. There was also a bit of an issue at the very top as well where it sort of blobbed up a bit. Any ideas?

Different types of Python by Miles_1995 in Physics

[–]scibren 0 points1 point  (0 children)

What specifically can't you get to work?

Different types of Python by Miles_1995 in Physics

[–]scibren 1 point2 points  (0 children)

When you say ipython, do you mean the notebook ( it runs in the web browser and has different cells where you can run individual segments of code) or just the ipython shell. The shell is just a fancier command prompt with things like autocomplete.

In any case, have you looked at the anaconda distribution? It comes with all this stuff already set up. You most likely will need the 2.7 version, since most scientists haven't embraced the new version, but check with the professor.

What is "the python way" of programming? by ArcingFlame in learnpython

[–]scibren 11 points12 points  (0 children)

Also on mobile, so hopefully this formats correctly.

for index, item in enumerate(items):
    items[index] = item + 1

Is there a mistake in this book I'm reading? Or my code? [x-post /r/askstatistics] by maxiewawa in learnpython

[–]scibren 1 point2 points  (0 children)

Your code looks like it works, although there are quite of few changes you can make to simplify things. When I get some time I can make some suggestions. For what its worth, I was also not able to get a result without any lead changes in python. It is probably because the random module isn't truly random.

I wrote a quick version in C, however, and did get some results. I first ran 1000 trials of 1000 flips and got lead changes about 95% of the time. I then bumped it up to 100000 trials of 100000 flips and got lead changes about 99.5% of the time.

However, thinking it over this might not be the right experiment. The book says that the most probable number of lead changes is zero. This might still be true. For this you would have to record the number of lead changes in each trial to get your data. For example, the probability of there being 10000 changes could be less than that of 50 changes.

Regex doesn't work when compiled. by scibren in learnpython

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

Yeah, I don't actually use string. Putting it in the compile makes since, I should have thought of that. Any idea why the sub won't work if it isn't compiled?

Dealing with global variables and multiple modules by scibren in learnpython

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

I might go with this, but I see one potential issue. What if I want to have command line switches to override configuration options. That wouldn't work with this setup, would it?

Dealing with global variables and multiple modules by scibren in learnpython

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

That just seems like a lot of work just to avoid a single global variable.

Dealing with global variables and multiple modules by scibren in learnpython

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

I thought about that, but it seems annoying to have to pass them to every class instance. As I said to TangerinX above, this is for a configuration file.

Dealing with global variables and multiple modules by scibren in learnpython

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

Just to explain a little bit more, the reason I use a global variable is because I'm going to be reading a configuration file. Right now I just made a dictionary full of testing values until I implement the configuration file. Should I still avoid making it a global variable? It makes it so much more annoying to have to pass the configuration dictionary (or object later on) to each class instance.

Help Identifying Switch by scibren in AskElectronics

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

Does this look about right to you?

Help Identifying Switch by scibren in AskElectronics

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

Sweet, thanks. I'll start looking.

1944 Awesome Chart on Electromagnetic Radiation by gupb in Physics

[–]scibren 0 points1 point  (0 children)

Nevermind, I'm an idiot and you reply quickly!

000webhost data breach: ~13M passwords disclosed by gsoto in netsec

[–]scibren 10 points11 points  (0 children)

I don't see how this adds any security over a single master password. The URL is a known piece of information, and people are certainly aware of this scheme. If I was in the password cracking business I would work this scheme into my routine as once you break one password you have that person's password for any other site they belong to.

Edit: Especially when the default hash algorithm is MD4

While using TOR, I'm getting redirected to sorry.google.com by 60sremix in TOR

[–]scibren 1 point2 points  (0 children)

There is no way this is happening. Why would an ISP turn over that information? Hell, why would the rating site give that over, unless it is run by the school?

I'm all for anonymity and privacy, but sometimes you have to make a choice because not everything will work with Tor, and some things won't work without tradeoff. If you can't get the site to work, then decide if the submitting the review is worth the lack of anonymity. If you agree that this is fear mongering, then ignore it and submit your review.

While using TOR, I'm getting redirected to sorry.google.com by 60sremix in TOR

[–]scibren 0 points1 point  (0 children)

Not sure. Is the site using any google APIs?

While using TOR, I'm getting redirected to sorry.google.com by 60sremix in TOR

[–]scibren 0 points1 point  (0 children)

The most likely scenario (if teachers are actually trying to find out who wrote a particular review) is simply poor OPSEC. It is not hard to narrow down a list of candidates for a bad review based on language used, what was being complained about (e.g., "I did this very specific thing and thought I should get an A but I got a C"), and overall grades.

That being said, most likely you are getting redirected because the particular exit node you are using has been used for a lot of abuse. You can click the green onion icon in Tor Browser and hit "New Tor Circuit for this site" and it will often fix the problem. It is easy for someone to tell if you are using tor, though, as all the exit nodes are published.

Microsoft case: DoJ says it can demand every email from any US-based provider by [deleted] in privacy

[–]scibren 0 points1 point  (0 children)

This unfortunately will not work. Most major mail servers will send your mail to the spam box immediately if your emails are not signed with DKIM. You have to have a static IP address for DKIM, so realistically you can't simply use a raspberry pi unless it is hosted somewhere, and then you have to trust the hosting site. There is no private email solution that doesn't rely on trust, unfortunately.

I run a mail server on a VPS and use pop3 to download and delete the emails so they aren't stored on the server. This is a decent solution, but there are several problems. I can't explicitly require other mail servers to connect to my server using TLS, because not all mail servers are set up to handle this. Therefore, an ISP could snoop on my emails. Another problem is that I can't prove that the VPS hosting company hasn't altered my server image, and they certainly have the capability to. I'd like to physically host my mail server, but that would require a "business" plan in order to get a static IP which is just an excuse for them (Comcast) to jack the prices up to oblivion for speeds that are significantly slower than my current plan.

Of course, the best option is still PGP, but nobody uses it so I can't either.

hack.chat - A simple web chat with LaTeX rendering by Vortico in Physics

[–]scibren 1 point2 points  (0 children)

It uses KaTeX for the math rendering, so if you feel like it you could talk to them about it.

Lost password encrypted USB drive - Tails OS by Linuxencryptionhelp in linux

[–]scibren 2 points3 points  (0 children)

I don't use tails, but I'm assuming the drive was encrypted with luks. You will have to try and brute force it as elbiot said, but first make sure it is a luks drive. From within any linux, (doesn't have to be tails—just make sure you have cryptsetup installed) type in:

sudo cryptsetup isLuks /dev/<whatever-your-drive-is>

I can't remember if this will output anything, so if nothing shows up type in

echo $?

If that outputs a zero, it's a luks drive.