• What Are You Working On? - December 2014
    1,204 replies, posted
-snip snop-
[QUOTE=Berkin;46710747][code][%:__+1;e;1;c;0;6;9;3;4;9; e;7][%:_+2;4;4;5;5][r:`[%_ $]-[%_$]^([%_@?`[%_$]-1`]- 1)`]{[%_+^[rc]][notlast:[% _+[rc]]]}[$[_]:\\\u0075[r: `([%_$]+[%__$])/[%__$]`]{` [%_$]-[%__$]`}][?[r:[%_$]] {[$_][%_@[ri]][%__@[ri]]}][/code][/QUOTE] It took me a while but I figured it out, I think I got most of it: [code][%:ListA+1;e;1;c;0;6;9;3;4;9;e;7] #List. Size 12 [%:ListB+2;4;4;5;5] #2nd list. Size 5 #(5 - 5^(2 - 1 -1)) #Size of ListB - Size of ListB to the power of #index of the item with value (Size of ListB - 1) #blablabla in short what it says is: #Size of ListB - 1 #Repeats 4 times in this case. #Below pattern appens crap so that ListB = 12 in size. [r:`[%ListB$]-[%ListB$]^([%ListB@?`[%ListB$]-1`]-1)`] { [%ListB+^[rc]] #Prepend the repcount. [notlast:[%ListB+[rc]]] #Append repcount if not last repetition iteration. } #Subroutine below that creates \u and two 0s #so "\u00". Repeates two times. Because 2X/X = 2 [$[ListB]:\\\u0075[r:`([%ListB$]+[%ListA$])/[%ListA$]`] { `[%ListB$]-[%ListA$]` # 12 - 12 = 0 }] #Meta pattern used to encode the UTF-8 string. #\u0041 -> A etc... [?[r:[%ListB$]] { [$ListB] #Subroutine call to create \u00 [%ListB@[ri]] #\u00 F [ri] = repeater index [%ListA@[ri]] #\u00 FF }][/code] Ugh looks better here [URL]http://berkin.me/rantbox#A3356901B4C1796D381CFDA66D0AE43F11402863[/URL] [editline]15th December 2014[/editline] It prints out "ANAL FISTING". I like Rant, feels like I'm playing Dwarf Fortress when looking at the code.
It's been a REALLY long time since I've posted here - probably about a year or so. A lot of that time was spent organizing [url=http://www.hackrpi.com/]HackRPI[/url] and building up a hackathon club here too. Tomorrow afternoon I'm turning down an internship offer from Microsoft to pursue a startup idea (in the VR space, not just another social networking site :P) with some of my friends, which is equally terrifying as it is exciting. I'll be posting some content about that as we get things working. Since the last few months of my life have been consumed by event planning and fundraising (organizing a hackathon is VERY different from attending one, but still awesome!), I figured I'd push myself to write some useful code every day for the next 100 days. Gonna whip up a jekyll blog really quickly and use the hashtag #100daysofhacking. I already bought the domain 100daysofhacking.com. Anyways, feel free to ask me anything about hackathons or whatever. I should also post some content. I'm currently working on [url=https://github.com/Robmaister/SharpNav]SharpNav[/url]. Here's the horrendous dependency diagram that I'm going to clean up in the next few weeks: [img_thumb]http://i.imgur.com/Z9krz34.png[/img_thumb]
[QUOTE=Swebonny;46714063]It took me a while but I figured it out, I think I got most of it: [code][%:ListA+1;e;1;c;0;6;9;3;4;9;e;7] #List. Size 12 [%:ListB+2;4;4;5;5] #2nd list. Size 5 #(5 - 5^(2 - 1 -1)) #Size of ListB - Size of ListB to the power of #index of the item with value (Size of ListB - 1) #blablabla in short what it says is: #Size of ListB - 1 #Repeats 4 times in this case. #Below pattern appens crap so that ListB = 12 in size. [r:`[%ListB$]-[%ListB$]^([%ListB@?`[%ListB$]-1`]-1)`] { [%ListB+^[rc]] #Prepend the repcount. [notlast:[%ListB+[rc]]] #Append repcount if not last repetition iteration. } #Subroutine below that creates \u and two 0s #so "\u00". Repeates two times. Because 2X/X = 2 [$[ListB]:\\\u0075[r:`([%ListB$]+[%ListA$])/[%ListA$]`] { `[%ListB$]-[%ListA$]` # 12 - 12 = 0 }] #Meta pattern used to encode the UTF-8 string. #\u0041 -> A etc... [?[r:[%ListB$]] { [$ListB] #Subroutine call to create \u00 [%ListB@[ri]] #\u00 F [ri] = repeater index [%ListA@[ri]] #\u00 FF }][/code] Ugh looks better here [URL]http://berkin.me/rantbox#A3356901B4C1796D381CFDA66D0AE43F11402863[/URL] [editline]15th December 2014[/editline] It prints out "ANAL FISTING". I like Rant, feels like I'm playing Dwarf Fortress when looking at the code.[/QUOTE] *slow clap*
Rant certainly seems pretty interesting. What exactly is it used for?
[QUOTE=DarKSunrise;46712075]i once had a crawler like this following links overnight and when i woke up it had gathered a bunch of emails for gay porn sites for some reason[/QUOTE] [url]http://berkin.me/rantbox#3C4CEE16E1D2DD9DA09ED1FFDE083254F85AA1B4[/url] [editline]14th December 2014[/editline] [code] Conroy@prick-stroker.com [/code]
[QUOTE=Rocket;46714716]It's essentially a reverse regex. While regex takes a pattern and input text and finds whatever text matches that pattern, Rant takes a pattern and a dictionary and generates output text that matches that pattern. Rant is also (probably) Turing complete. Rant has cooler stuff than regex too. It can produce verbs, nouns or adjectives that match a specific query.[/QUOTE] Yeah I'm pretty sure it's Turing complete. I don't know any formal proofs, but Rant has loops and lists so you could probably implement a Turing machine in it.
[IMG]http://i.imgur.com/jT9r2cT.png[/IMG] Dildo ninjas
you ever start coding something in c++ and then all the libraries you wanna use are c and you just end up programming in c instead? thats me right now, if i need c++ features ill put em in but im p good right now, its a small project anyways
[QUOTE=war_man333;46711579][media]http://www.youtube.com/watch?v=3X62lcIuKqQ[/media] here's something my group has been working on for a while. we're trying to make a digital musical instrument, so in this example, turning the accelerometer will change the tone of the MIDI-signals being sent. there's so much code to this I can't even bother pasting it, because we builded our own bluetooth-devices for this. I don't know everything down to every detail because I've mainly been handling serializing and GUI myself.[/QUOTE] That's actually pretty good for shopping centre background music.
[QUOTE=Darwin226;46711366]If you're doing programming, call it programming. I'm sure one class doesn't cover design, algorithms, logical and rational thinking. There are other names for things that include programming like software engineering and what not. Computer science is theory. It's a science. Sorry but intro to Java/C/Python isn't. Am I the only one that feels naming is important?[/QUOTE] I assume they also do a few other things aside from programming, in which case CS is more accurate. [editline]15th December 2014[/editline] [QUOTE=toaster468;46712059][img]http://puu.sh/duI4V/8ea0ab5e75.png[/img] I made a web crawler to find emails. I am afraid to run this 24/7 because I don't want to get stuck in a loop of links and make too many requests to a person's web server.[/QUOTE] You could put a cooldown on individual hosts, then requeue or wait.
[QUOTE=Rocket;46716233]Or just keep a list of crawled links and make sure you don't crawl one twice. e: This is the kind of thing Redis was meant for. It's hella fast, and it's not too much of an issue if data gets lost. Much nicer than using an in-process data store.[/QUOTE] I never understood the point of redis. What kind of use does a networked KVstore have?
[QUOTE=Mega1mpact;46716500]I never understood the point of redis. What kind of use does a networked KVstore have?[/QUOTE] Makes it independent of your application. You can feed several application servers from one Redis instance, for example.
[QUOTE=DrTaxi;46716835]Makes it independent of your application. You can feed several application servers from one Redis instance, for example.[/QUOTE] What do you mean by "feed".
[QUOTE=elevate;46715401]you ever start coding something in c++ and then all the libraries you wanna use are c and you just end up programming in c instead? thats me right now, if i need c++ features ill put em in but im p good right now, its a small project anyways[/QUOTE] I used to do this a long time ago, then realized I never needed nor used any C++ features, like at all, so now Im just doing C code all the way.
[QUOTE=Berkin;46695165]Guys Rant got promoted by [B][URL="https://twitter.com/msdev/status/543118017790746624"]fucking Microsoft[/URL][/B]. [U][I]HOLY CRAP[/I][/U][/QUOTE] Soon you will be CEO of the Cactus Software company, where bad developers get killed with cactus and good ones get Lamborghini, whores 24/7 if they feel like it and of course, psychedelic cactuses :D
[QUOTE=Fourier;46717247]Soon you will be CEO of the Cactus Software company, where bad developers get killed with cactus and good ones get Lamborghini, whores 24/7 if they feel like it and of course, psychedelic cactuses :D[/QUOTE] It's a gherkin.
Feels nice when you write all the math stuff yourself and see it work as it should [vid]https://dl.dropboxusercontent.com/u/35032740/ShareX/2014/12/2014-12-15_13-59-16.webm[/vid]
Overv got featured on Phoronix: [url]http://www.phoronix.com/scan.php?page=news_item&px=MTg2MjI[/url]
[QUOTE=Mega1mpact;46716864]What do you mean by "feed".[/QUOTE] Using the same data. Redis' primary purpose is a cache, like memcached. Of course, it can be used as a primary/persistent data store, but that's a terrible idea. And all your web server processes - whether they're on the same physical server or spread over several servers - being able to access the same cache is pretty useful.
[QUOTE=Mega1mpact;46716500]I never understood the point of redis. What kind of use does a networked KVstore have?[/QUOTE] it has lots of language bindings, and it's BSD licensed. it has persistence, which means you can use it as a real database. not just for keyvalues either, it supports strings, lists etc its fast as fuck. if you have the RAM it's probably one of the fastest DBs out there [editline]15th December 2014[/editline] I'd say its most powerful if you combine it with another nosql DB, like mongo
[QUOTE=rilez;46718847]it has persistence, which means you can use it as a real database. not just for keyvalues either, it supports strings, lists etc[/QUOTE] It doesn't write to disk on every write. Great way to lose your data.
[QUOTE=Fourier;46717247]Soon you will be CEO of the Cactus Software company, where bad developers get killed with cactus and good ones get Lamborghini, whores 24/7 if they feel like it and of course, psychedelic cactuses :D[/QUOTE] This post is so Fourier
I am working on a compiler for the programming language called SubComplex that's been sitting on my computer for the past two years which you can read about on [URL="http://subcomplex.com"]the website[/URL]. I would love to get as much feedback on the language as possible. The general principle of the language is that it should breed simplicity from complexity (hence the name); in other words it should have an expansive global feature-set that follows from a simple, consistent, logical set of design philosophies to avoid going the C++ way and becoming a messy set of unrelated features trying to cover all its bases. From the website: "SubComplex has features which allow built-in manipulation of array data types including highly dynamic data, powerful metaprogramming through compile time execution and code modification, safe parallelism through mutexes and threads, simple ownership semantics that attempt to reduce memory leaks without imposing tedious work on the programmer, individual bit manipulation in all types and bit fields, and common tasks performed in most programs, e.g. heap allocation and file I/O. One philosophy of SubComplex is any functionality which would be significantly improved by being part of the core feature set or is extremely common in modern programs should be a part of the core language. The syntax SubComplex uses allows a singular approach to programming in that nothing is ever written twice. The semantics SubComplex uses allows additional safety without any compromises to performance whatsoever, and most compiler options are built in to the code in SubComplex rather than specifying them on a command line, or in a build tool/IDE."
Looks like Java and Perl had a babby.
[QUOTE=Rocket;46721111]Redis really shouldn't be used for persistent data. It's meant to be used as a caching layer first and foremost. I would recommend against using MongoDB for anything other than a development database. [B]There are better databases, even better document databases.[/B][/QUOTE] Can you give some examples?
[QUOTE=DrTaxi;46718874]It doesn't write to disk on every write. Great way to lose your data.[/QUOTE] Neither does your filesystem.
[thumb]http://files.1337upload.net/Screen_Shot_2014-12-16_at_00.51.55-bc01cc.png[/thumb] generating font texture atlases finally got the glyphs rendering properly [editline]16th December 2014[/editline] uses sdl2_ttf and opengl
oh god why would you ever make the fill color that shade of red, it's the middle of the day and that still burns my eyes
[QUOTE=DarKSunrise;46721429][thumb]http://files.1337upload.net/Screen_Shot_2014-12-16_at_00.51.55-bc01cc.png[/thumb] generating font texture atlases finally got the glyphs rendering properly [editline]16th December 2014[/editline] uses sdl2_ttf and opengl[/QUOTE] Which kind of packing algorithm are you using? I love this kind of stuff.
Sorry, you need to Log In to post a reply to this thread.