• What are you working on? v7
    7,420 replies, posted
Oh, okay :v:
[QUOTE=Asgard;36739016]Also I've got to say I completely fell in love with Ruby.[/QUOTE] Me as well, I have to dive a bit deeper though into it than what I am doing right now. ( Using rails )
[QUOTE=KmartSqrl;36722525]horizontal padding is your friend. I'd also lighten the alternating rows and get rid of the vertical lines through the darkened rows.[/QUOTE] Here is the updated one. [url=http://www.flickr.com/photos/psygeist/7557527844/][img]http://farm9.staticflickr.com/8285/7557527844_56f32c4952_o.png[/img][/url] [QUOTE=KmartSqrl;36740351]I'm not sure what ruby does under the hood for that since I've never needed to dig in to it to find out before.[/QUOTE] It isn't a true random number generator or is it ?
So I was in a job interview yesterday, one of the most known and best web dev companies in Lithuania (worked on lots of very high profile projects, they have worked with 7 out of 10 banks in Lithuania) and it went pretty well. First of all it's my parents' friends, so I have an instant advantage and secondly, the guys who work there are very friendly, they relaxed and very informal (which I like a lot). Anyway, they said they'll probably give me work from second week of August and will be looking for something to do for me until then. They also sent me a task which they give to all "candidates to work", which, frankly, if not for 2 requirements, would be rather easy. They task goes as follows: (translated from Lithuanian so may contain weird sentences) Task is to make a website that allows user to subscribe to a mailing list with different news categories. Users must enter their name, email and choose categories (at least one) Number of categories may rise in the future, so must take note of that Must check that e-mail is valid [B]All information must be saved in a file[/B] ([I]fuck this shit[/I]) Admin page so admins can (must be protected with login and pass): View who has subscribed (their names, email and chosen categories) Sort the list by sub date, email or name Edit the subscription Delete the subscription Of course all of this must be done with a proper HTML, CSS and JS (as in make it look good, not only functional) AND we must use CakePHP framework. ([I]I have never used this before, so I need time to learn it...[/I]​) So yeah, an easy task made fucking ridiculous.
Cake is pretty easy if you're familiar with MVC, it's heavily influenced by Rails actually. Cake is what what I was using when I first learned about MVC.
Indeed I am familiar with MVC and to be honest, I'm sure I'll learn it quickly it enough. Problem is saving the data in a fucking file. This makes the task go from "easy" to a "fucking pain". Not sure why do this, because this has nothing to do with real world situations..
^^enjoy your regular expressions.
Nah, no need for regex, I'll be using regular arrays for working with data and convert it into json for storage. I'll decode it into regular array for using later again. I've done this before and it's mega easy to do this.
They're probably seeing how you handle working with data that isn't traditional ORM models in cake. If I were you I'd look at how cake handles models that don't represent database rows and build custom models to do your JSON stuff. You'll either pass the test and do what they were hoping you'd do, or you'll get bonus points for doing things the cake way (assuming they work mainly with cake if they're having you use that)
They said they mainly work with cake, so I guess I should do it the cake way, though first I need to learn how to work with the framework.
[QUOTE=Asgard;36739798]I'm having some problems though, and I'm not allowed to ask for help from the big boss Mr. Tera, but I need to generate a random 32 bit integer. [1000000000..9999999999].sample completely freezes my poor ol' Ubuntu.[/QUOTE] I don't know shit about ruby [editline]12th July 2012[/editline] [img]http://gabrielecirulli.com/p/20120712-221944.png[/img] WHYYYYYYYYYYYYYYYYYYYYYY
[QUOTE=TerabyteS_;36741556] [img]http://gabrielecirulli.com/p/20120712-221944.png[/img] WHYYYYYYYYYYYYYYYYYYYYYY[/QUOTE] I know, it should be the ie icon or a 6. Fuck garry.
The icon doesn't define all the languages, however I reckon it still fits nicely.
[QUOTE=Asgard;36740229]Well yeah, but what does Random.rand() do.[/QUOTE] If you're using 1.9.3, you can use Kernel#rand over a range: [code] >> rand 1..10 => 4 [/code] Also, for what it's worth, Ruby's rand uses Mersenne Twister: [cpp] static VALUE rb_f_rand(int argc, VALUE *argv, VALUE obj) { VALUE v, vmax, r; struct MT *mt = default_mt(); if (argc == 0) goto zero_arg; rb_scan_args(argc, argv, "01", &vmax); if (NIL_P(vmax)) goto zero_arg; if ((v = rand_range(mt, vmax)) != Qfalse) { return v; } vmax = rb_to_int(vmax); if (vmax == INT2FIX(0) || NIL_P(r = rand_int(mt, vmax, 0))) { zero_arg: return DBL2NUM(genrand_real(mt)); } return r; } [/cpp]
I dunno if any of you guys have heard of MP3Gain, it's a pretty nice tool that normalises volumes (losslessly) so that your ears don't get blown to bits every time another song comes on Anyway, decided to try running [url=https://github.com/kripken/emscripten]Emscripten[/url] on the CLI version and [i]holy shit[/i] Like seriously all I did was only edit the Makefile, run make, run emcc on the output instead of gcc or clang and then [i]motherfucking JavaScript[/i]
[QUOTE=KmartSqrl;36740898]They're probably seeing how you handle working with data that isn't traditional ORM models in cake. If I were you I'd look at how cake handles models that don't represent database rows and build custom models to do your JSON stuff. You'll either pass the test and do what they were hoping you'd do, or you'll get bonus points for doing things the cake way (assuming they work mainly with cake if they're having you use that)[/QUOTE] By the way, I found this: [url]https://github.com/cakephp/datasources/tree/2.0[/url] As I already, I'm still not very familiar with the framework, however, from what I can see, using the ArraySource as the model, I can use arrays to store and edit data just like with a regular sql database. Just need to figure out a bit more how to actually use it and how to "feed" it the array. (Can't really find much documentation about it...)
[QUOTE=kragmars102;36744676]The icon doesn't define all the languages, however I reckon it still fits nicely.[/QUOTE] At the end, it all outputs HTML. (usually)
[QUOTE=a2h;36749205]I dunno if any of you guys have heard of MP3Gain, it's a pretty nice tool that normalises volumes (losslessly) so that your ears don't get blown to bits every time another song comes on Anyway, decided to try running [url=https://github.com/kripken/emscripten]Emscripten[/url] on the CLI version and [i]holy shit[/i] Like seriously all I did was only edit the Makefile, run make, run emcc on the output instead of gcc or clang and then [i]motherfucking JavaScript[/i] Give it a go [url=http://rzhw.github.com/WebMP3Gain/]here[/url] (only tested in Chrome, confirmed not working in Firefox since an array's too big :v:)[/QUOTE] Nice, but it hogs CPU :( how long did you spend hacking it together?
[t]http://i.imgur.com/6gbsB.png[/t]
This is my current project... its an opensource query browser for php... Does the job better than phpmyadmin [url=http://snip.so/UJBr][img]http://snip.so/UJBr.png[/img][/url]
[QUOTE=XiZhao;36687796]I posted it to Programming, but here's another link. [url]www.tldrlegal.com[/url][/QUOTE] Oh god thank you! Really helps understand licenses. The GPL license is a mess for anyone who isn't a lawyer - even the simple version.
[QUOTE=asciid;36753439]Nice, but it hogs CPU :( how long did you spend hacking it together?[/QUOTE] Yeah you have a JS interpreter running what was originally C code that chops up MP3 files and then analyses them, so I'm not surprised it's quite slow compared to native code It took me a while to figure out how to set up Emscripten (dependencies suck), but when that's done emcc pretty much lets you use gcc/clang style syntax, even your Makefile if you have one. Using -O2 takes forever though cause that runs the output through Closure Compiler + advanced optim
Here is one of my current projects, it is an image upload website. I think I have done a great job with my first project. [URL="http://i.phirune.com/url/j7thgvjc7r5b"][IMG]http://i.phirune.com/j7thgvjc7r5b[/IMG][/URL]
[QUOTE=PhiRune;36760437]Here is one of my current projects, it is an image upload website. I think I have done a great job with my first project. [URL="http://i.phirune.com/url/j7thgvjc7r5b"][IMG]http://i.phirune.com/j7thgvjc7r5b[/IMG][/URL][/QUOTE] Cool... does it hash the images and store only one copy for identical images?
Writing a very scalable nodejs web framework with coffeescript, stylus and eco. View templates are cached and all js and css is compressed.
[QUOTE=Jelly;36760546]Writing a very scalable nodejs web framework with coffeescript, stylus and eco. View templates are cached and all js and css is compressed.[/QUOTE] Aw what's that crap, have you considered using Scala with increase speed output optimisation using PyPy alongside a full stack MVC quadruple buffered UI-end backbone.js framework?
[QUOTE=a2h;36760828]Aw what's that crap, have you considered using Scala with increase speed output optimisation using PyPy alongside a full stack MVC quadruple buffered UI-end backbone.js framework?[/QUOTE] I considered using Haskell with a triple bypass buffer overflow with increased support for MongoDB but found that to be too Erlang, if you know what I mean.
[QUOTE=ShaunOfTheLive;36760522]Cool... does it hash the images and store only one copy for identical images?[/QUOTE] unfortunately not, but that seems like an excellent idea and I will look up how to do it. Thanks for your question :P
Currently working on a new blog: [URL]http://thegraphical.net[/URL] It's kind of a mess right now, but I'm slowly adapting to the mess that Wordpress presents.. :v: EDIT: Putting down website as of now. Undergoing redesign
[QUOTE=TerabyteS_;36755429][t]http://i.imgur.com/6gbsB.png[/t][/QUOTE] Tell me some kerning enabled fonts which can be viewed on any client pc. I got this BebasNeueRegular font. Will it be universally available in client PC ?
Sorry, you need to Log In to post a reply to this thread.