Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »
BioGeek on Learning by Doing? - http://www.reddit.com/r...
"Try [Rosalind](http://rosalind.info/problem...) a platform for learning bioinformatics through problem solving." - Jeroen Van Goey
BioGeek on Are there any free open-source games written in Python? - http://www.reddit.com/r...
"* [PythonGames](https://wiki.python.org/moin...) on the Python wiki * [What commercial games have been written with pyGame?](http://stackoverflow.com/q...) on StackOverflow" - Jeroen Van Goey
BioGeek on What are some awesome things I can do with Python early on? - http://www.reddit.com/r...
"import antigravity (Really, just try it!)" - Jeroen Van Goey
BioGeek on How not to take a race photo - http://www.reddit.com/r...
"Seems the same is the case for this photographer, he [doesn't understand what all the fuss is about](http://translate.google.com/transla...) (Dutch article, translated by Google)." - Jeroen Van Goey
BioGeek on How could you use Python to carve data from files? - http://www.reddit.com/r...
"Sorry, but without providing a [Short, Self Contained, Correct Example](http://www.sscce.org) of the code you have so far and the input PE file you're using, it is impossible for me to help you any further. Also, I don't know anything about the `pefile` module, so you'll probably get a more knowledgeable answer on the [pefile forum](https://groups.google.com/forum...)." - Jeroen Van Goey
BioGeek on How could you use Python to carve data from files? - http://www.reddit.com/r...
"I don't have a PE file to test this on, so look at the [Usage Examples](https://code.google.com/p...) of the `pefile`module to extract the exact data you need. Also, the `pwd` module is Unix specific, see [here](http://timgolden.me.uk/python...) if you want to retrieve the filename on Windows. That said, the general structure of what you would like to achieve will look somehing like this: import os, time, pwd, pefile def carve_files(basedir, results_path): with open(results_path, 'w') as f: for root, dirs, files in os.walk(base_dir): for file_name in files: file_path = os.path.join(root, file_name) pe = pefile.PE(file_path, fast_load=True) file_header = hex(pe.VS_FIXEDFILEINFO.Signature) date_modified = time.ctime(os.path.getmtime(file_path)) file_owner = pwd.getpwuid(os.stat(file_path).st_uid).pw_name f.write('{}\t{}\t{}\t{}\n'.format(file_name, file_header, date_modified, file_owner)) if __name__ == '__main__': base_dir..." - Jeroen Van Goey
BioGeek on How could you use Python to carve data from files? - http://www.reddit.com/r...
"'to carve date from files' is very vague, but it seems like you want to do a hexdump of a file. [One way to do this](http://c2.com/cgi...): import sys def hexdump( chars, sep, width ): while chars: line = chars[:width] chars = chars[width:] line = line.ljust( width, ' ' ) print "%s%s%s" % ( sep.join( "%02x" % ord(c) for c in line ), sep, quotechars( line )) def quotechars( chars ): return ''.join( ['.', c][c.isalnum()] for c in chars ) def file_section( name, start, end ): contents = open( name, "rb" ).read() return contents[start:end] if __name__ == '__main__': hexdump( file_section( sys.argv[1], int( sys.argv[2] ), int( sys.argv[3] )), ' ', int( sys.argv[4] )) Run output: $ python hexdump.py hexdump.py 0 60 16 0a 69 6d 70 6f 72 74 20 73 79 73 0a 0a 64 65 66 .import.sys..def 20 68 65 78 64 75 6d 70 28 20 63 68 61 72 73 2c .hexdump..chars. 20 73 65 70 2c 20 77 69 64 74 68 20 29 3a 0a 20 .sep..width..... 20 20 77 68 69 6c 65 20 63 68 61 72 00 00 00..." - Jeroen Van Goey
I've logged over one thousand kilometers using @runkeeper! #RK1000 http://runkeeper.com/profile...
BioGeek on Hexagon 16384 - http://www.reddit.com/r...
"Is there a version of this for keyboards with an AZERTY layout? Thanks." - Jeroen Van Goey
BioGeek on I accidentally reformatted my sd card and I seriously need the data on it. Is there anyway to fix this? - http://www.reddit.com/r...
"[PhotoRec](http://www.cgsecurity.org/wiki...) has saved my ass in the past to recover pictures from a formatted SD card. I don't know how well it works to recover video files." - Jeroen Van Goey
BioGeek on If we received a photograph from a random place in the universe, could we tell where it was from by looking at the stars? - http://www.reddit.com/r...
"There are smart algorithmic techniques that can determine the stars in a picture of the night sky, see [my answer](http://www.reddit.com/r...)." - Jeroen Van Goey
BioGeek on If we received a photograph from a random place in the universe, could we tell where it was from by looking at the stars? - http://www.reddit.com/r...
"Yes, this is possible. Upload your picture of the night sky with visible stars to [nova.astrometry.net](http://nova.astrometry.net) (or upload it to flickr and submit it to the [astrometry group](http://www.flickr.com/groups...)) and it will give you back astrometric calibration meta-data, plus lists of known objects falling inside the field of view. [Here is for example the annotated image you gave as an example.](http://nova.astrometry.net/user_im...) It determined the following location: > Center (RA, Dec): (322.265, 58.806) > Center (RA, hms): 21h 29m 03.497s > Center (Dec, dms): +58° 48' 21.614" > Size: 42.5 x 28.3 deg > Radius: 25.532 deg > Pixel scale: 170 arcsec/pixel > Orientation: Up is 127 degrees E of N and found the following stars/parts of constellations in the picture: > IC 1396 > North America nebula > NGC 7000 > Pelican nebula > IC 5070 > IC 5068 > NGC 7822 > The star δCep > The star ξCyg > The star 31Cyg > The star ιCep > The star ηCep > The..." - Jeroen Van Goey
BioGeek on Lanesplitting - http://www.reddit.com/r...
"[Lane splitting in Belgium](https://www.youtube.com/watch...) where it is allowed." - Jeroen Van Goey
BioGeek on Show reddit: We launched commercial support for PyPy - http://www.reddit.com/r...
"Small typo: > ... obtained his Ph.D. in Logic and Set Theory at the Free University of Brussels (Belgium) **n** 2002, and worked at ..." - Jeroen Van Goey
BioGeek on Getting honest feedback for personal project? - http://www.reddit.com/r...
"You could submit your project to [Code Review Stack Exchange](http://codereview.stackexchange.com). It is a site to: > Share code from projects you are working on for peer review. > The relevant code sections must be included in your question, though it is OK to link offsite to "see more". > Please specify what kind of feedback you're looking for: code correctness, best practices and design pattern usage, application UI, security issues, etc." - Jeroen Van Goey
BioGeek on How Do People Make Reddit Bots? - http://www.reddit.com/r...
"Just [search github for `reddit bot`](https://github.com/search...). There are also [several examples on the PRAW landing page](http://praw.readthedocs.org/en...)." - Jeroen Van Goey
BioGeek on Hard to get into Gent University? - http://www.reddit.com/r...
"If you are a Belgian student, yes. For international students, there are the following [admittance requirements to Gent University](http://www.ugent.be/nl...) (this and following links in Dutch). In short: * **Solvency**: you need to have enough financial means to support yourself during your whole stay as a student at Ghent University. There are however ways to get [finacial aid](http://www.ond.vlaanderen.be/studiet...) * **Insurance**: you are required to sign up for health insurance * **Language**: for a master program in English: [a TOEFL-TEST with a score of minimum 510 till 559 (paper-based), or with a minimum 87 till 109 (internet-based) or higher.](http://www.ugent.be/nl...) * **Diploma**: to enrol at UGent on the basis of a diploma obtained abroad [you need to apply for admission](http://www.ugent.be/en...) to..." - Jeroen Van Goey
BioGeek on Did my nephew just found a bomb under his driveway? - http://www.reddit.com/r...
"This seems like the most likely answer." - Jeroen Van Goey
BioGeek on Did my nephew just found a bomb under his driveway? - http://www.reddit.com/r...
"* My nephey already called the technical services of his city, but they have no clue what it is and neither has the guy from the electricity company. * My nephew lives in Belgium, so Worl War II remnants are still found, but I agree with the other posters that it is probably not a bomb. * See the pavement stone next to it for a rough size comparison (I didn't take the picture)." - Jeroen Van Goey
BioGeek on Did my nephew just found a bomb under his driveway? - http://www.reddit.com/r...
"My first thought was a canon shell, but the thing is bolted to concrete. The technical services of the city (located in Belgium) have no clue what it is and neither has the guy from the electricity company. [Another pic](http://imgur.com/2EXDrPA) of the complete thing." - Jeroen Van Goey
BioGeek on Tavel advice for Antwerp - http://www.reddit.com/r...
"Updated my answer with information about the intercity." - Jeroen Van Goey
BioGeek on Tavel advice for Antwerp - http://www.reddit.com/r...
"There is a [stop-train that leaves Brussels South from track 17 at 22:44 and arrives in Antwerpen Centraal at 00:02](http://www.belgianrail.be/jp...). The intercity leaves at 22:48 (no track given?) and arrives a bit earlier at 23:51 in Antwerpen-Centraal." - Jeroen Van Goey
BioGeek on Do you believe in the "Runners High"? - http://www.reddit.com/r...
"I was putting off going on a run today (it's raining with heavy wind gusts) but your post made me get my butt of the sofa. I'm just back from a 10k fartlek interval run and, as always, glad I did it. Thanks for the motivation." - Jeroen Van Goey
BioGeek on Hidden gems of europe? - http://www.reddit.com/r...
"I found them worth the money, yes. If you want to save money, you can use only the [GPS track of the route](http://www.gps-tracks.nl/fietsro...), but then you would miss out on the touristic information and the listings of the campings nearby the route that the guides provide." - Jeroen Van Goey
BioGeek on Hidden gems of europe? - http://www.reddit.com/r...
"On the [Europafietsers](http://europafietsers.nl/klik...) website select and/or combine some long distance cycling routes till you get to your preferred destination, for example [this one from the Netherlands to Rome](http://europafietsers.nl/web...). Once you have your route selected, you order the route guide. They are very detailed and will get you to your destination via the most beautiful and low-traffic roads. Information about the gear you'll need you can find [here](http://europafietsers.nl/extras...)." - Jeroen Van Goey
BioGeek on Is there a Python library that can help me map breakpoints on a particular stretch of DNA? (I already have the regions of breaking) - http://www.reddit.com/r...
"What exactly do you mean by "sequence numbers of breaking"? Whatever you're trying to do, [BioPython](http://biopython.org/wiki...) is probably the library you're going to need." - Jeroen Van Goey
BioGeek on Are there any field biologists here? - http://www.reddit.com/r...
"Ooh, colour me jealous! Do you have any pictures of the cool tech and/or the sailboat you can share?" - Jeroen Van Goey
BioGeek on I convinced my wife to let us spend a few days in Brussles and Bruges on our honeymoon. - http://www.reddit.com/r...
"These are the maps-by-locals the GP is referring to: [Bruges](http://www.use-it.be/_files...), [Ghent](http://www.use-it.be/_files...), [Brussels](http://www.use-it.be/_files...) (pdf warning)." - Jeroen Van Goey
BioGeek on My husband [34m] wants to stretch my [38f] vagina. Is this safe? - http://www.reddit.com/r...
"Send a PM to [this user](http://www.reddit.com/user...). She is an expert on the subject and has really *stretched* the possibilities of what is possible..." - Jeroen Van Goey
BioGeek on Improve Your Python: Decorators Explained - http://www.reddit.com/r...
"A few nitpicks: * `sum([1 for e in target_list if predicate(e)])` can be written a bit shorter as a generator expression: `sum(1 for e in target_list if predicate(e))` * the docstring for `surround_with` is incomplete. * In the text you describe the search list as `['Python', 'Jeff']`, but in the code you only write `['Jeff']`. * `...is the tax rate expressed as a float, like "7"`, should be: `... like "7.0"` * In the function `price_with_tax`, nothing is done with `tax_rate_percentage` and the variable `tax` is nowhere defined." - Jeroen Van Goey
Other ways to read this feed:Feed readerFacebook