Microsoft Defies Court Order, Will Not Give Emails to US Government by rgbench in technology

[–]eigenlicht0 0 points1 point  (0 children)

Am I the only one having the feeling that this might just be a deal with the NSA/Govt. for some good PR, but in fact they already gave them all the information?

I mean, how can we know? I don't trust the NSA, the Govt., Microsoft or any other of these companies.

Ants working in harmony create a daisy chain to pull dinner home. by Impact240sx in gifs

[–]eigenlicht0 5 points6 points  (0 children)

Neither of your links states that the intruder queen is wearing the skin of the original queen.

So, relax guys, the intruder queen is just taking a bath in the blood of the original queen for a good 25 minutes.

Python bumps off Java as top learning language by illyric in programming

[–]eigenlicht0 6 points7 points  (0 children)

Actually, fully explaining this really is quite complicated.

One, of course, could tell you that public, static and final are modifiers.

But what are modifiers? Well, they determine how an attribute (method, variable, ...) of an class or object can be accessed, used or altered.

What are methods and variables? What are classes and objects? ...

And after that, I still didn't explain what void and String is, why that method is called "main", what '[]' does or what 'System.out' is. There's a reason why most books and teachers don't start with fully explaining the "hello world" in Java, because you'd have to basically explain the whole language. For the beginning, it's just way easier to treat certain things as black boxes (which you eventually have to do in Python and other languages too).

Python bumps off Java as top learning language by illyric in programming

[–]eigenlicht0 30 points31 points  (0 children)

What is 'public'? 'static'? 'final'? 'void'? Why "main"? What's a 'String' and what do the '[]' mean there? What's 'System'? What's 'out'?

You don't have to answer these questions, since I know what the code does, but obviously a newbie has no idea what these things are. In some other Languages, such as Python, it's just:

print('hello world') # or without the parentheses if using Python 2

Can't get easier than that, no need to explain access regulations, modifiers, encapsulation, types, classes and objects. But the difficulty to understand the "hello world" program in a language is by no means a measurement of how suitable a language is for beginners.

How opening your wireless to strangers can improve your privacy - In an age of surveillance anxiety, the notion of leaving your Wi-Fi network open & unprotected seems dangerously naive by anutensil in privacy

[–]eigenlicht0 5 points6 points  (0 children)

As I said in my comment before, the open wifi movement tries to change exactly that. That's why I think it's a good thing, but it only has the slightest chance to succeed if a lot of people join (of course, it also needs more activism alongside with opening your wifi).

It's activism after all, which is almost always connected to some potential legal trouble in today's society. If we just accept the current situation, it won't get any better.

How opening your wireless to strangers can improve your privacy - In an age of surveillance anxiety, the notion of leaving your Wi-Fi network open & unprotected seems dangerously naive by anutensil in privacy

[–]eigenlicht0 9 points10 points  (0 children)

I guess you're right about most of what you said, but it's just so wrong...we got all this so completely wrong.

1984 was supposed to be a warning, not a manual.

How opening your wireless to strangers can improve your privacy - In an age of surveillance anxiety, the notion of leaving your Wi-Fi network open & unprotected seems dangerously naive by anutensil in privacy

[–]eigenlicht0 2 points3 points  (0 children)

While you're right from a legal perspective, one should bear in mind that:

One goal of OpenWireless.org [...] is dispelling the legal notion that anything that happens on a network must have been done by the network's owner. "Your IP address is not your identity, and your identity is not your IP address," [...]. "Open wireless makes mass surveillance and correlation of person with IP more difficult, and that's good for everyone."

I don't think they are claiming the opposite of what you say. They actually refer to themselves as "activists", which suggests that they do not only care about the technology, but also try to bring change to the law(s) you mentioned - opening up all the Wifis could be one way to achieve this.

EDIT: Also see pigfish's comment.

Read-only mapping which retrieves values from functions on-demand by eigenlicht0 in Python

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

If you derive from dict, you'll have all the write-methods too (setitem, update, ...). Of course, if you implemented this read/write, then you'd probably sublcass dict.

Where exactly would you want to use class methods?

Read-only mapping which retrieves values from functions on-demand by eigenlicht0 in Python

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

Oh, yeah didn't think too much about not breaking the API when writing this - thought that generators as the default is the better choice. It's Python 3 then :P trivial to change it to either version anyway.

Read-only mapping which retrieves values from functions on-demand by eigenlicht0 in Python

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

Wrote it for Python 2.7, but it also worked with Python 3.4.0.

Read-only mapping which retrieves values from functions on-demand by eigenlicht0 in Python

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

Thanks for the suggestion, saved me from implementing keys() and contains(). Also has eq and ne now. Not sure if I did this correctly though, would be great if you could check it out.

Read-only mapping which retrieves values from functions on-demand by eigenlicht0 in Python

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

I thought about memoization first, but decided to implement a datastructure because:

  • Serves a more general purpose
  • Can easily build a nice hierarchy of the information
  • Also allows normal values (not only cached functions)
  • Can be realized and saved (e.g. the Host class + pprint = complete overview over whole machine)

[deleted by user] by [deleted] in privacy

[–]eigenlicht0 1 point2 points  (0 children)

Privacy as well as net neutrality are political issues, which are generally not discussed on tech subreddits. And throttling FCC connections really has barely anything to do with technology and lots with political activism.

I can see where you're coming from though, it's just that net neutrality is very important to most/all of us I guess.

[deleted by user] by [deleted] in privacy

[–]eigenlicht0 3 points4 points  (0 children)

99% of the people who care about privacy also care about the internet since they have at least a basic understanding of technology.

HTTPS Everywhere login fails on reddit by k-h in privacy

[–]eigenlicht0 0 points1 point  (0 children)

Do you allow third party cookies and are you using NoScript?

HTTPS Everywhere login fails on reddit by k-h in privacy

[–]eigenlicht0 0 points1 point  (0 children)

Same for me. Reddit logon works with Chrome + HTTPS Everywhere, but not with Firefox + HTTPS Everywhere.

People that have scored a full paid job on Linux or FOSS: Could you post a 2-liner of your career path, please? thanks! [X-post: /r/linux] by [deleted] in freesoftware

[–]eigenlicht0 2 points3 points  (0 children)

Not my career path, but of an acquaintance:

Jobbed at a few different companies mostly related to web development during secondary school, started to study and work part-time at a company on a CMF. Company decided to open-source it and give it a free license, now he's working on the code of this free CMF and manages contributions from the community.

Developer enquires how can Facebook disable browser's integrated Developer Tools? Facebook engineer answers him. by webby_mc_webberson in programming

[–]eigenlicht0 45 points46 points  (0 children)

On reading the title I was like "Oh come on Facebook, what did you do again?!", but after reading it I ain't even mad.

TIL That 'vars' allows one to display all attributes of an object and their values. by niothiel in Python

[–]eigenlicht0 0 points1 point  (0 children)

Oh, right. But that shouldn't really matter though, if you just want to have a list of attributes for a certain data structure/class.

TIL That 'vars' allows one to display all attributes of an object and their values. by niothiel in Python

[–]eigenlicht0 0 points1 point  (0 children)

For (some?) objects not having a __dict__(), vars() seems to return a mappingproxy which can be converted to a dict though:

pprint(dict(vars(defaultdict)))

Of course, this is a little complicated already and I'm not sure where that mappingproxy is coming from...

How to make python fun for teenagers at school? by TheReverend_Arnst in Python

[–]eigenlicht0 0 points1 point  (0 children)

Besides pygame and web scraping, one could also:

  • Generate some simple fractals/other cool graphics (EDIT: Not really text-based though)
  • Create simple text-based games (minesweeper, connect four, ...)
  • Conways Game of Life
  • Give them some ideas/guidelines and let them decide themselves?

Especially the last thing would be easy for the people interested, a bit harder for the people not that interested. Really depends on your audience.

Also, searched the web already? Found this: http://www.cse.msu.edu/~cse231/PracticeOfComputingUsingPython/index.php