Joined October 2012
·

Rashaad Essop

Entrepreneur; Writer; Coder at skuda
·
Johannesburg, South Africa
·
·
·

Posted to Pretty JSON for humans over 1 year ago
Posted to Merging Branches Without Checkout over 1 year ago

Why would you fast forward, though?

Posted to Python on Love over 1 year ago

Nice! You inspired me to do a sequel.

It's silly, but I think one is allowed to be silly sometimes with Python.

@aalvarado thanks a ton for all that information - skimmed, but will def. give it all a thorough read a bit later!

@pluckee Cool... what do you think of it?

Sill question, maybe, but why not just work with 2, 3 or 4 if you really must branches? I can imagine large teams... very large teams - of maybe 15 - 30+ developers would have many branches to be reconciled, but this post states distinctly local work (so I assume, it's on one man's machine, or am I misinterpreting?)

Nevertheless, I'm interested in how different people code in their own ways. Personally I may have master, development, and if I really must, a "messing around" branch. And no more.

I'm aware that you may be referring to exactly the way I do it - are you? In that case, this would be to clean up your dev branches from local after checking out, is that right?

Thanks, good tip. Also, I tried this out after finding the secret formula hidden here (it is an odd place to have that, no? Transitioning O.o).

Anyway, using api.version.is/jquery/jquery yields

jquery/jquery:
Latest: 2.0.0b1
Stable: 1.9.1

Nifty.

From here: http://www.version.is/docs/introduction/ it says that it relies on git tags for recognizing versioning (mind you, I just skimmed the docs). So, it wouldn't work on untagged repos, is that right? And just for clarity, by tags we mean tagged using git tag command?

I've just never used that, that's why I'm asking. Wondering if I shouldn't start

Posted to Skeleton Code over 1 year ago

I know what you mean - I tend to think in a similar manner. In fact, I too call the "base" framework+css/code 'template' and media collected for project the "skeleton", I kid you not. Great minds?

Very nice. Thanks

Posted to Info Byte: FORTRAN & DATA over 1 year ago

Cool. I just find the history of computing, logic systems and computer systems in general quite interesting.

I read also that 'FORTRAN' is now stylized as simply 'Fortran' - but you probably knew that I presume. If not, another 'info byte' for you there ;)

Posted to Info Byte: FORTRAN & DATA over 1 year ago

Good question. I think you may well be right. FORTRAN is not really my...uh, forte :)
I think this is from the editions of the language around '77', '66' or one or two before it. I'm not sure why, but it would appear that the "DATA" statement is obsolete (http://goo.gl/I9ISp), I'm guessing the PARM statement is of its successors.

See also (http://goo.gl/gaTPj)

Posted to Rails App w/ No Database over 1 year ago

Edit: Sorry, Rails noob (but not complete) here. I misunderstood the first time, hence the edit.

What is active record exactly, and why does my application.rb usually look more or less like (this is Refinery CMS):

 require "active_record/railtie"
 require "action_controller/railtie"
 require "action_mailer/railtie"
 require "active_resource/railtie"
 require "sprockets/railtie"
# require "rails/test_unit/railtie"`     

and
config.active_record.whitelist_attributes = true by default as well.


Ok wait, there's also:

# Use SQL instead of Active Record's schema dumper when creating the database.
# This is necessary if your schema can't be completely dumped by the schema dumper,
# like if you have constraints or database-specific column types
# config.active_record.schema_format = :sql    

My question is: what is this active record fiasco? Is it wanted for 3rd degree murder?

Posted to Npm install trick over 1 year ago

As an npm noob, I have this nagging question. Do both rvm install 'packagename' -g and npm install 'packagename' -g work the same/similarly? I'm referring to the -g or global flag.

Then, if not global, does one have "cd" to the correct app folder, then "npm install" in much the same way one would obviously "git init" in that folder? I assume yes, just making sure.

Posted to Rails Guides v.3.2.9 formatted in PDF over 1 year ago

Great, thanks! P.s. I'm sure it was just a bit of an oversight, but the title would be more accurate as "Ruby on Rails" or "Rails". I know it's more like Rails is on Ruby because... Rails, Is on Ruby! Or maybe Rails FOR Ruby or Railby... Raily. Ruly? RULY! I like that.

O.o

@fuadsaud ah, but that's what comments are there for. Rails is maybe not the best of examples, because it's almost ridiculously syntactically designed (and then advertised as the Coding gods' gift to Mankind).
How exactly is require 'Mommy' indent exactly two tabs (LF style line ending)do 'make the world know you are a retard' print "I am retard" ;

And then it didn't work because you are , well a retard.

I like rails, I despise Sinatra. But I don't think ruby or rails have the most self explanatory syntax either - it's almost as if designed to be labyrinthian.

Posted to cross domain iframe communication over 1 year ago

I'm a bit confused about iframe vs xml vs json vs script-in-script. Wasn't iframe like the devil just two or three years back? Then Google used xml gadgets ubiquitously, just to kill them off (like they do everything else). And json was like, always there - somewhere. And now, iframe - is forgiven, or what is going on I dont even

P.s. I sooo know how Cat feels (what with the train ramming into him, and he is just like ..... whatever.)

Irony: I focused on Python and Node,js, yet ended up understanding more about Rails (arguably more than vanilla Ruby itself even) than I ever intended to.
Explain that. O_O

Ah yeah, well I've been doing solo work and usually only push fairly stable updates. Not an excuse though. I will stop being naughty.
After this uncalled for asking a stranger how well versed they are in submoduling (is this appropriate? Not sure, been in my mom's basement for the last 7 years. joke).
Seriously, pardon my forwardness, but do you know about submodules? O_O

May I ask two questions, one on this post, the other git-related but to do with submodules?

Guess I kinda already did half huh. Sorry-kinda.
Why not develop on master (I'm guilty of doing this... yiiiiikes)?

To be fair, I do get where the frustration stems from. A lot of todays code conventions, syntax and so on go back to the days of 6 bit processing computers... capable of Boolean arithmetic or for simplicity's sake, a 6 bit (used 6 to keep it simple) CPU would have a maximum positive value of 011 111(bin) = +31 (dec) and negative of 111 111 (bin) = -31 (dec). +/-32bits = buffer overflow. It did then, it does now still. Errors are hardcoded into the "lexicon" :)

@richoh well said. Also, for whom is the code written? If you said for the computer/compiler/robots, think again. It is not the machine, but fellow coders that code is written for. It's a human-readable (to as best a degree as it was designed to be at time of conception) document which doubles up as a set of instructions that can be parsed so that the machine can understand them too.

tldr: Though it appears that your computer is parsing and rendering the tags, blocks, indents, loops, classes, allocs you are typing (in Latin alphanumeric glyphs btw), it is actually turning your code into
Base16: {
[3c][21][44][4f][43][54][59][50][45][20][48][54][4d][4c][3e][3c][21][2d][2d][61][6b][61][20][59][4f][55][20][53][54][55][50][49][44][20][43][4f][4d][50][55][54][45][52][2c][20][54][48][49][53][20][49][53][20][48][54][4d][4c][20][54][48][41][54][20][46][4f][4c][4c][4f][57][53][2c][20][4f][4b][41][59][2d][2d][3e][3c][68][74][6d][6c][3e][3c][68][65][61][64][3e][3c][2f][68][65][61][64][3e][3c][62][6f][64][79][3e][3c][70][3e][93][52][65][61][64][20][54][68][65][20][53][6f][75][72][63][65][94][3c][2f][70][3e][3c][2f][62][6f][64][79][3e][3c][2f][68][74][6d][6c][3e] }

Posted to Essential Sublime Text 2 Shortcuts over 1 year ago

Thanks! That's a great link (I've seen it before), but the problem (for lack of a better word right now) is that there is TOO MUCH good info there! :)
Sometimes, we need to break it down into byte sized protip-bits too.

Posted to Windows Boss Key Combo over 1 year ago

Thanks for the tip. Maybe I wasn't clear enough, though. I just happened to hit this combo by mistake, and it's native to Windows. Nothing to install. Like win+x (mobility centre), win+1,2,3 for the relevant taskbar elements, ctrl+shift+esc for taskman. win, then type cmd, enter for cmd prompt.

Also, I can't use my best protips first, now can I ? ;)

Posted to Windows Boss Key Combo over 1 year ago

I know, deep inside, someone... somewhere will appreciate this. That is why I posted it. Respect.

Posted to log everything over 1 year ago

ETA for LogYourMother app?

Achievements
254 Karma
15,126 Total ProTip Views