« first day (671 days earlier)      last day (4278 days later) » 

3:15 PM
step 1) write all of the code
step 2) slap all of the models, views, and controllers together.
step 3) realize you didn't account for ABC
step 4) refactor things to account for ABC
step 5) realize after your refactor your admin interfaces are all garbage
step 6) rewrite the entire thing (massive copy and paste mode) to make all admin interfaces inline the public ones (little edit/delete/manage buttons)
step 7) realize you still need admin specific interfaces for the 'management' portion of each administrable content area.
 
make money ?
no ?
 
work project.. so yea.
but still..... pffftttttttt
 
2
Q: why this is output as the following?

Adam Leevar obj = [ "one", "two", "three"]; $.each(obj, function() { console.log(this); }); The output I get is { '0': 'o', '1': 'n', '2': 'e' } { '0': 't', '1': 'w', '2': 'o' } { '0': 't', '1': 'h', '2': 'r', '3': 'e', '4': 'e' } I suppose to get "one" "two" "three", but I get the following wei...

 
all my business logic is fucked up. the models are all working nice, the controllers are all written (tweaks here and there may need to happen) and the interfaces are all coded (like three versions of them now)
the project however is no closer to completion than it was before.
 
how do you guys like my introduction? margaine.com/tartempion
(besides the markdown stuff, it's pushed but not updated yet :p)
 
3:19 PM
@FlorianMargaine Seriously ?
 
:D
of course seriously
and I love the pic
 
A pie is a kind. It has its own controller, and its own model. It has only one of them.
-» one of them or "one of the both / one of every kind "
 
you saw that on the repo?
that is going to be deleted
 
yes
ok
 
@dievardump updated :p
I need to write the complete doc
in the wiki
 
3:28 PM
" According to Google’s paper, you can run queries on multiple petabytes — millions of gigabytes — in a matter of seconds. "
 
Water is coffee with javascript turned off.
 
lol, nice
 
commander.js looks nice to write some CLI app
@TomShreds ^
 
3:41 PM
Ahh yeahh this looks real' good!
Thanks @FlorianMargaine
My cli.js is totally crazy for the moment. It works very well but is crazy shit.
 
and @TomShreds margaine.com/tartempion :p
npm install tartempion works nicely :3
 
This is really cool! gratz my friend!
Is it working if installed globally?
 
nope, not yet
 
That is a minimalist blog.
 
3:43 PM
I'm looking for some stuff for the CLI actually
and I came across commander.js which looks great
but first I must make some documentation :]
 
Ok, you did well with ncore. I seriously pulled my hair all day long yesterday trying to make it work globally. And it's a pain.
Yeah docs are a bitch, I just re-re-re-refinished mine this morning.
brb
 
I won't have any problem with ncore I think the way I'm using it... that's cool ;<
 
Yeah that's REALLY cool by the way. I totally envy you on that.
deps.json is a real princess.
 
Oh and by the way, ma copine te dit salut :-)
 
3:53 PM
lol
salut :p
you have some couch for me and my gf when I'll come to quebec? :p
 
Sure I do! It would be awesome :-D
Seriously if someday you come, be sure to shoot me an email or something We'd be happy to host you and your gf :)
Grr I should really play with ncore like you do in tartempion...
 
I am so bad on using the correct names on CSS classes and ids. If you have made a custom list which has a header bar, search bar and then the list content rows. Would you write css classes such as ".default-data-list-header, .default-data-list-search-bar" etc? Or have ".default-data-list" then only have ".default-data-list .header" etc
 
I'd probably go with the second option
 
var mapp = {
	a: "a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z".split(" "),
	b: "a͠ þ̌ ç̌ d̑͢ ȇ͝ f͛ͪ g͖͉ͫͥͨ h҉ î̩́ jͫ͏̙̤ kͫ͏ l̂ mͧ̾ͬ n ̔̉o p​̅ͫ͏̙̤ q​̅ͫ͏ r͎̩̱͔ s҉ † µ v͚̖͔͚̖͔͚̖͔ w͚̖͔ ×ͧ̾ͬ ¥ͧ̾ͬ z̈́̂̈́ A̡͊͠͝ B̀ Cͭ̏ͥͮ͟ Ð Eͧ̾ͬ͛ͪ̈́ F̷̭̯̙̲̝͖ G҉ H̸̡̪̯ͨ͊̽̅̾̎ | J̩́ K͠ L͑ M͊̒ N̐ Θ ͠P̯͍̭ Q​̅ͫ͏̙̤ R̘̝̙ͤ͂̾̆  $̝ͤ͂̾̆ T̈́̂̈́ U̲̖̚͜ V̈́̂̈́ W̷̙̲ X̚͜ Y̷̙ Z͍̭҉".split(" ")
};
$(".message .content").each(function() {
	var text = $(this).text(),
	chars = text.split(''),
^ RUN IN CONSOLE
 
4:08 PM
I hate you
 
Working on the bookmarklet.
 
but wouldn't that cause problems if you have ".header" with some other styling options in the CSS?
 
@Dude Yes. Yes it would.
 
Is it possible to "scope them"? such as putting .default-data-list {... .header {...} }
 
@Dude Nope
 
4:10 PM
ahhhhhh no unicode support on your browser
how sad
 
So what do you do to prevent that from happening then?
 
Something different. Perhaps you go with your first option.
 
omfg thanks @rlemon
 
gist: 3380255, 2012-08-17 16:10:50Z
javascript:var mapp={a:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),b:"a\u0360 \u00fe\u030c \u00e7\u030c d\u0311\u0362 e\u0311\u035d f\u035b\u036a g\u036b\u0365\u0368\u0356\u0349 h\u0489 i\u0302\u0341\u0329 j\u036b\u034f\u0319\u0324 k\u036b\u034f l\u0302 m\u0367\u033e\u036c n \u0314\u0309o p\u200b\u0305\u036b\u034f\u0319\u0324 q\u200b\u0305\u036b\u034f r\u034e\u0329\u0331\u0354 s\u0489 \u2020 \u00b5 v\u035a\u0316\u0354\u035a\u0316\u0354\u035a\u0316\u0354 w\u035a\u0316\u0354 \u00d7\u0367\u033e\u036c \u00a5\u0367\u033e\u036c z\u0344\u0302\u0344 A\u0360\u0321\u034a\u035d B\u0340 C\u036d\u030f\u0365\u036e\u035f \u00d0 E\u0367\u033e\u036c\u035b\u036a\u0344 F\u032d\u032f\u0337\u0319\u0332\u031d\u0356 G\u0489 H\u0368\u034a\u033d\u0305\u033e\u030e\u0321\u0338\u032a\u032f | J\u0341\u0329 K\u0360 L\u0351 M\u034a\u0312 N\u0310 \u0398 \u0360P\u032f\u034d\u032d Q\u200b\u0305\u036b\u034f\u0319\u0324 R\u0364\u0342\u033e\u0306\u0318\u031d\u0319  $\u0364\u0342\u033e\u0306\u031d T\u0344\u0302\u0344 U\u031a\u035c\u0332\u0316 V\u0344\u0302\u0344 W\u0337\u0319\u0332 X\u031a\u035c Y\u0337\u0319 Z\u034d\u032d\u0489".split(" ")};$(".message .content").each(function(){var a="";$(this).text().split("").forEach(function(b){var c=mapp.a.indexOf(b);a=-1!==c?a+mapp.b[c]:a+b});$(this).text(a)});;
 
@rlemon it worked for me
 
4:13 PM
@TomShreds lol refresh and it goes away
 
this is like when I take acid
 
4:54 PM
wth...
 
yawn
 
@Esailija Wow. that Example right there shows your thorough lack of understanding on this subject. — Ohgodwhy 11 mins ago
sigh
 
Hey guys, any idea why this regexp isn't working? /(\w+) (\w+)/
with the string abc ø
works with any letter but ø
 
Is it possible to minimize youtube ads automatically when they popup on an embedded video?
 
nope, this is why youtube doesn't fully use html5 videos yet
 
5:19 PM
@Esailija The poor OP got caught in the crossfire of a discussion completely over their head
 
well the comment by 100k was blatantly incorrect so I couldn't just stay quiet
I mean he has 100k rep, people are gonna take that as gospel
:P
 
Whoever autographed a dollar bill with "Tony the Pony" at the Louisiana Longhorn Cafe in Round Rock, TX: Thank you. You made my goddamn day. — Chris Doggett Aug 6 '10 at 2:30
 
It is hard to argue though, since they have json.org and the RFC on their side. All you have is reality.
 
`Confusing Classes and Ids

Classes are for items that are used more than once on one page. This can be a link style that you’ll call in multiple times on one page but doesn’t follow the global link styling. Ids are items that are called in just once, like the header div. Classes and ids are often overused and used in unnecessary places as well. Stick to the minimum amount of classifications that you need.`
Is that correct?
I am trying to understand when to use classes, ids and when not to do it.
 
5:35 PM
think about them semantically.
ID's are used when you want to Identify an element
classes are used when you have a Classification for an element.
 
I can give you a scenario I am facing
I am making the backend of my web app
 
or in simple terms. if you need to reach into the DOM and grab a single element to do stuff to it, give it a unique id. If you have to collect a group of similar objects for a single function use classes.
 
I have a list of users, and a list of questions. They are on separate pages
Now, the list has a header with a nice color, padding etc (much like iOS navigation bar).
 
ok UI is meaningless here :P get to the issue
 
should I write this: #question-list, #user-list { ... }
or should I write .default-data-list { -.. }
I don't get it
I know I can acheive the same but
 
5:37 PM
see I often follow a single rule of thumb. ID's are for, and only for DOM manipulation via JS or similar. Classes are for styling.
 
Ok...but would you then write .question-list, .user-list {...} or the other case
 
in your scenario I would use
<ul id="questions" class="generic-list"></ul>
<ul id="users" class="generic-list"></ul>
css:
.generic-list {

}
js:
getById('users');
elements can have both classes and ID's
 
ah...it looks good when you come up with your example...but I struggle with doing such things myself
 
i know everything javascruip;t
 
^ insta ignore
 
5:40 PM
don't be upset
 
what would you name the title of the list, in the CSS?
 
@user I just ignored: I can see you are typing because of your icon position in the sidebar. But I have ignored you so I will no longer be able to read your stupidity
 
.generic-list-title {..}
 
@Dude can you give me a fiddle example or something?
and no I would use a <header><h3>title</h3></header> or something similar then .generic-list h3 or something similar :P
semantic HTML.
 
awwww some guy ignored me :( i don't think i can go on living. tool.
 
5:42 PM
what does a DIV mean. ??? why not use tags that showcase their intent.
 
So you keep the classes to a minimum
It is what it is, so you keep h3 etc
 
Yes, I keep everything to a minimum. :P
if you are already having to encapsulate it with a tag, why add arbitrary classes within it.
 
4
Q: semantic html5 and proper use of tags

rlemoni'm trying to develop a base for a blog using some of the new tags introduced in html5 and I want to not only make sure i'm using them correctly, but my code is also semantic. Here is just the 'sample' document. <!DOCTYPE html> <html> <head> <meta http-equiv="content-type"...

^ no css in here but it shows you semantic html.
now with just that, and no classes, I should be able to use just tag names and nesting to style everything
 
So you only add Ids for javascript?
 
5:45 PM
personally, yes; but others will disagree.
tbh I just factor my code to allow this, not all follow my coding style.
 
Right
Ok
 
Yeah... I rarely (if ever) use IDs for styling
 
But when you have div you need to add a clasS?
it does not give meaning or?
such as this: <div class="alerts"><div><h1>Title</h1></div></div>
Would you write the CSS like this: .alerts div { padding:10px; }
or .alerts .spacer { padding:10px; }s
.spacer being added to the inner div
 
It really depends on what's needed
 
Why not IDs for styling? I've noticed a lot of people tend to avoid them. Is the concern difficulty in overriding?
 
5:48 PM
@ErikReppen Yeah, that's a major problem
 
I tend to categorize by general tags, classed declarations and unique-section-specific (IDs come into play)
 
@ErikReppen its rare you want a style that affects only a single element
 
That too
 
I wouldn't typically use an ID to hit one element but I do tend to use them to identify unique sections in a layout and declare section-specific stuff under that.
Helpful on the JS-side of it too for keeping selectors/DOM API getters efficient.
 
Well, I use IDs for DOM access all the time. That's a completely different problem.
 
5:52 PM
I definitely try to avoid any strategy where you'd end up using more than 2-3 selectors in most cases though. Nothing stinks up the CSS for a team more than a specificity arms race. But I think one ID to in foundational layout stuff is fine when warranted.
 
Yeah, it's not a hard-and-fast "Never ever use IDs"... but if you're using an ID, you should probably be asking why.
 
@rlemon from your example with the generic list, let say you had many css options such as padding, margins, colors etc. If the default background is silver...how would you name it if you just want to have orange background?
.generic-list-orange {}
 
General rule for me is if theres only one of that element.. ever, then I use an ID. Like #wrapper, or something like that
 
^ that is something like I would do (note: quick example, ugly, bad, but gets the point a crossed?)
nope
.generic-list {
///..... your css with possibly the default colour.
}
.generic-list.orange {
background-color: orange;
}

<ul class="generic-list"></ul>
<ul class="generic-list orange"></ul>
but having a class named 'orange' is not recommended (I can't remember why but it was shoved down my throat not to have classes like "bold" or "blackbg" or shit like that )
 
Ideally, you're providing classes based on what the element is, now how it it looks
 
5:59 PM
I like to KISS and if I know the element will be accessed singularly in JS I give it a class and ID of the same name

so <canvas id="cvs" class="cvs"></canvas> where the class name might be for css positioning or some other shit and the ID is for JS to manipulate the canvas element with.
 
I tend to use IDs when an exception to a more general style needs to be made for things that fall under a given ID I guess. I tend to start general and work my way to highly specific when handling CSS layout. Stuff under layout container IDs will tend to be general classes that already have properties declared but need some tweaks in a given section context. By unique sections I mean things like #modal_curtain, #content_area, #primary_nav
 
@rlemon I see
 
if i'm accessing and processing multiple elements with the same intent just a class.
 
THanks
 
maybe offer a id for a higher level container for context when running getByClassName
 
6:02 PM
@rlemon You would name the .orange class after something more semantic like .warning-background?
 
warning
just warning
 
Yeah I got into the habit of always IDing sections that wouldn't likely be duplicated at Sears, partially because we'd end up having to fight the offshored server-side devs to remove some ID they were using for some Java foolishness if we didn't nail it down in the first place. But ultimately I ended up finding it a useful habit for layout and narrowing down JS selection of elements that couldn't be given more specific IDs.
 
.generic-list.warning {
background-color: orange;
}
or if you want all 'warning' elements be orange for consistency you can just say
.warning {
background-color: orange; // watch specificity here.
}
 
Unicorns, Sprinkles, a dash of nutmeg, and some love. Bake at 350 degrees C for 11 hours. Let stand for 15 minutes. — rlemon 19 secs ago
 
6:05 PM
But what do you do with div you need to add for grouping and styling such things as padding/margin?
 
can you make a jsFiddle so I can see what you are talking about
 
Yes
I will take it from my Ruby on Rails app
 
Padding is ideally used for offsetting what's inside the div. Margin ideally used for shifting outer boundaries relative to other elements. But these are rules you'll want to break fairly often in a lot of less general situations.
 
also, there is nothing wrong with negative margins. People will tell you this, but they are lying.
 
@rlemon Ahhh, Fridays
 
6:08 PM
:D
@Dude I have to pickup my car from the dealership in 20 minutes
so you'll have to be quick :P
 
you see all the stupid names I have made
because I don't understand
what you name boxes like that
 
@Dude I'd rather set the inner spacing of paragraphs from the edges of a container div with the the container div's padding than margins on the p tags. That way you can go to the element to tweak spacing even if more than just p tags are in the container.
 
or if you should name the outer div "users" or the actual list
 
@Dude name it for what it's used for. I would just use a more general 'header' class though. You might want to re-use that header in another context where user-header makes no sense.
 
such as? .header only?
but what about the boxes
 
6:13 PM
Which boxes? It's all boxes in CSS.
 
CSS ??
it stuck in my head in train!!
 
Get specific with names on containers. General with the stuff inside them.
@Abhishek Yes, we're finally talking about CSS :)
 
lol
 
@ErikReppen So you would name the outer box (div) "users" then general with the rest?
 
So you've got .header under .user-box the way you want it. You want to use .header somewhere else but with like one small tweak.
 
6:15 PM
2 days ago, by Ryan Kinal
Mention CSS, and @Abhishek appears
this is the second time lol
 
.some-other-container .header { <one small tweak here> }
@Dude ^ much easier to tweak/maintain that way.
 
@Abhishek You're a little late... this conversation has been going on for a while.
:-P
 
i was in train bro
:P
and had an urge to open my laptop and goto js room XD
 
Please read all of that css and HTML and tell me if it makes sense to you
I was probably overly specific in my css rules and overly semantic/verbose in things but I was trying to be assuming you will want to reuse a lot of these elements.
 
@rlemon So using only .box on nested div that only exist for padding etc is allowed
 
6:19 PM
you can change it however you like.
see how I've left many many rules generic though.
 
I tend to think in terms of three layers and try to set them in this order:

1. Stuff that is mostly the same everywhere (mostly just tag selectors, some classes)
2. Specific patterns of properties repeated in a lot of places (usually one class, some tags)
3. Something from 2 that needs to be a little bit different in a context - an override, typically (container class or ID + the original class)
 
@ErikReppen complex css is still ongoing learning exercise for me. I did try to learn as much as possible from working with Twitter Bootstrap and listening to @RyanKinal and Matt from the CSS rooms :P
@Abhishek and @Octavian have taught me a lot of CSS3 stuff.
 
I miss Matt
I wish he hadn't rage quit
 
It makes sense to me seeing it, thank you. I have to try to refactor my code
Thank you for all your help
 
I rage quitted this morning. back in the pm :P
 
6:21 PM
guess what :D
my gf sent me an invicta watch :$
me happy me happy she sends me loads of stuff
 
Umm. Sweet?
 
me happy ^ infinity <3
dude the thing that i love over CSS is watches (XD)
 
@Abhishek so you can tell when it's time to code!*
 
Doing CSS well takes a ton of practice, IMO. Nobody ever fully masters it because it's basically a big giant pile of design tradeoffs.
 
It is just messy I think
I am no design guy though
 
6:23 PM
@Abhishek I love watches too :D
 
I am used to Java
 
when I become rich and powerful I will simply buy more watches and continue living like a poor man
 
@Dude My condolences
2
 
hah
 
6:25 PM
Don't know if it's the right place to ask but can anyone recommend a good book on CMM for a beginner?
 
CMM?
 
@Zirak Don't be lazy. Google it dude. But then if you don't even know what it is, don't. Coz how'd you recommend a book. :P
 
Infallible logic
 
@MonikaMichael You don't think maybe there's a lot of acronyms 'CMM' that might come up on a Google search? Not to mention it's the JavaScript room and I have no idea what you mean either.
 
@MonikaMichael I googled it and found this. Which one exactly are you asking about?
 
6:30 PM
yeah
 
!!/urban cmm
 
bah, people use stuff...it's on now
 
i lol a it
 
CMS maybe?
 
6:37 PM
!!/urban cmm
 
@SomeKittens cmm: Abbreviation for "com'on man" (come on man). Used to express how ridiculous you think something is that was just said/just happened. Synonomous to "give me a break".
 
Well, that clears things up
 
@RyanKinal Have you seen my incredible work?
 
I... don't think so?
 
6:40 PM
@FlorianMargaine \o
 
Oh yeah, I did see that. Well done.
Scruffy is a helluva coder.
 
I'm wondering if this is an acronym a Java defense contractor might know more about.
 
And I'd fire his janitor ass immediately.
 
Gets paid hefty sums
 
Hey guys. I'm a decent program in a number of non web-programming languages and I'm not that bad with php ... I need to learn javascript.. anyone have any recommendations (not a book preferably)?
 
6:43 PM
You're an AI? AWESOME
 
Can you dance?
oh oh, can you do impressions? Do a monkey!
 
@Zirak lol
 
@FlorinStingaciu Don't use codecadamy. It's REALLY basic (Hey guyz, lets learn for loops~)
 
> I'm a decent program
 
6:43 PM
lol
oh
 
So not a porn spambot then.
 
@FlorinStingaciu Presume you want to learn how to do client-side DOM manipulation stuff, right?
 
@JosephKingry Yeah. Basically soemthing that teaches the specifics of javascript not for loops and if statment
 
6:46 PM
@RyanKinal I'll check it out. Thanks
 
@dievardump ... it's... broken?
 
@dievardump Is it a teleport to a dimension of pure corridorness? Started falling from the sky, and was apparently transported to one.
 
reload
the first time is bizarre
wow
 
Also just another quick question. Whats the relationship between jQuerry and Javascript? From what I know jQuerry is just a library for javascript. Is there anything else I should know?
 
0
Q: Can javascript be used to extract ones IP if they're using a VPN?

VpnuserIf you're using a vpn, is it possible for a 3rd party website to use javascript or any other means to extract your real IP address? Or is there no way for them to know your real IP as long as you're on the vpn?

 
6:52 PM
@FlorinStingaciu Anything done in jQuery can be done in JS. Don't use jQuery as an excuse to be lazy.
 
@SomeKittens Could you elaborate a little on why I should reinvent the wheel?
 
@FlorinStingaciu Learn JavaScript. Then figure out whether you need libraries from there.
4
 
Ryan speaks words of wisdom
depending on what you do you may never even need jquery
I do almost exclusively html5 canvas stuff, and used jQuery professionally for the first time just a few days ago
 
The thing about jQuery is that it does everything. You probably don't need everything. You probably need some things.
 
in addition there are entire worlds of javascript that do not touch the DOM
(or rarely do)
 
6:56 PM
Don't get me wrong. I'm not disregarding your advice .. I'm just looking for explinations
 
@FlorinStingaciu Just make sure you know how the DOM API works and what issues JQ is addressing before relying on JQ to know it for you. That's where people start doing really dumb, inefficient things with it.
 
@FlorinStingaciu The guy who said "don't reinvent the wheel" as an insult was an idiot. You know what was the first wheel? A squareish block, probably a stone. After reinventing the wheel a bagillion times, you can now travel at 100mph without even felling it. You can land airplanes. Fuck, basic gear systems work because we reinvented the wheel. Do you really want a stone block?
 
we don't mean to be obstinate I assure you, but when you encounter issues and errors in your learnings, it will be much easier to find a solution to your problems if they are not hidden behind a layer of a library
then you must deal with two things you are unfamiliar with instead of one!
 
You can also learn a fair bit about how JS works from learning how JQ works.
 
To be perfectly honest, I never heard of DOM before I started looking into javascript, even though dom is a language independent concept
 

« first day (671 days earlier)      last day (4278 days later) »