Author Topic: Programming Megathread  (Read 148959 times)

why would you wanna use a raster font

I used to dislike them but the rogue-likes I've been playing have rubbed off on me, to each his own.

why would you wanna use a raster font
idk dude rasta fonts sound p dope

btw how tf do i install python modules. ive tried like 8 different methods but nothings working. im using 3.x so pip is installed by default

btw how tf do i install python modules. ive tried like 8 different methods but nothings working. im using 3.x so pip is installed by default
are you doing pip install requests for example? then you can import requests in code
that should be it. there's a reason python's known for being user-friendly

Yoooo did any of you guys get invited to google foobar?

EDIT: Okay I'm gonna describe what happened because this stuff is insane

I was just googling some stuff related to python when the page just starts to open. Like, in 3d.
Some words say something along the lines of "You speak our language. Want to play a game?" so of course I said yes.
and then it drops me into a terminal. There's some linux commands like ls, cat, less, etc. nothing too interesting.
Except for a file saying "type request to request a new challenge"
So I do it, and a folder appears with a programming puzzle in it, and a timer comes up with 24 hours on it.
Apparently I have to do a bunch of tasks within time limits in either python or java.

This stuff's cool.
« Last Edit: January 13, 2017, 08:43:44 PM by /dev/sr0 »


no
Apparently it chooses you if you've been googling lots of programming-related stuff.

These challenges it's giving me are actually really hard. I've only completed 3 of them since getting invited.
Once you complete 3, it gives you a link to invite someone else.

lmao ive googled a stuffton of python stuff but my amount of history for BLF has drowned it out lmao

need some help with Python
I'm working on a.. thing that decompiles a file format. After reading/XORing the text to make it normal, memory usage spikes to 95% and my PC hangs.
I've tried outputting it as an array, directly into a cache, everything but in the end it just hangs my PC. should I output the decrypted strings into a file and read from it procedurally?

note these files I'm dealing with are 600kb or so large

Yoooo did any of you guys get invited to google foobar?

EDIT: Okay I'm gonna describe what happened because this stuff is insane

I was just googling some stuff related to python when the page just starts to open. Like, in 3d.
Some words say something along the lines of "You speak our language. Want to play a game?" so of course I said yes.
and then it drops me into a terminal. There's some linux commands like ls, cat, less, etc. nothing too interesting.
Except for a file saying "type request to request a new challenge"
So I do it, and a folder appears with a programming puzzle in it, and a timer comes up with 24 hours on it.
Apparently I have to do a bunch of tasks within time limits in either python or java.

This stuff's cool.
Google foobar is their internal recruiting program

need some help with Python
I'm working on a.. thing that decompiles a file format. After reading/XORing the text to make it normal, memory usage spikes to 95% and my PC hangs.
I've tried outputting it as an array, directly into a cache, everything but in the end it just hangs my PC. should I output the decrypted strings into a file and read from it procedurally?
note these files I'm dealing with are 600kb or so large
unless you're reading an absurd number of these files all at once, you should be fine
post the code

unless you're reading an absurd number of these files all at once, you should be fine
post the code
Code: [Select]
http://i.malw.io/u/9f0ea0.txt <-- removing in 5 minutes

well I don't know what the hell you're doing. does the original code have the same problem? if not, then what exactly did you change?
if the original code does do it, then you should contact the original writer

def sxor(a, b):
    def decrypt(self, o, s):
        for i in range(s):
            sxor(stuff, also_stuff)


this probably has something to do with it though
« Last Edit: January 15, 2017, 01:52:02 PM by Foxscotch »

well I don't know what the hell you're doing. does the original code have the same problem? if not, then what exactly did you change?
if the original code does do it, then you should contact the original writer

def sxor(a, b):
    def decrypt(self, o, s):
        for i in range(s):
            sxor(stuff, also_stuff)


this probably has something to do with it though
it's def with the string XORing- that or it starts reading into the float tables
also my formatting got a little forgeted but decrypt isn't inside of sxor

use pdb or some other debugging tool to figure out where it's hanging. it shouldn't be too much trouble. I don't understand enough about the code to really help you from here, and I don't have the patience to look through it all. if you can't figure out why it's hanging, I or someone else may be able to help you once you know where

bump I figured it out
while reading a part of it I returned in the for loop resulting in it not properly going through each entry properly
woo