« first day (647 days earlier)      last day (4287 days later) » 

Sem
11:00 AM
@Zirak What I mean is making classes with attributes and such.
 
If by "classes" you mean "aid-raid shelters of useless bureaucracy" (which are the classical OO classes, as you see in Java), then I wish fiery death upon them and their users
 
Sem
@Zirak Any valid reason? Aside from hate.
 
They're useless for anything but bureaucracy, and they don't fit with our understanding of the world.
Instead of defining packages (classes), which you then do....something to (new), and suddenly, what you actually wanted (objects) spawns, why not just make these objects?
In js they're light, dynamic, easy to use, and they actually make sense
 
Sem
@Zirak I prefer an overview of methods and properties instead of binding methods and binding properties.
 
And you don't get that in var puppy = { cute : false, bark : function () {...}, colour : 'olive blue', ... } ?
 
Sem
11:08 AM
@Zirak The problem I have with json trees is that cute : false is for only 1 object. I can't have multiple objects who have their own cute attribute.
 
Why not?
 
Sem
@Zirak If you can please show me a way! I beg you :)
 
Either make a generator function, or use Object.create, or just make another puppy like you did for the first one
Also, JSON has nothing to do with this
 
Sem
using the way you mentioned before. How would you make multiple objects from that?
 
var points = [ { x : 40, y : 42 }, { x : 12, y : 128 }, ... ], is one, simple, nice way
//for compound things, you can do something like this:
function point ( x, y ) {
    return { x : x, y : y };
};
//for even more compound things, or for a generic skeleton:
var point = { x : 0, y : 0 };
var point0 = Object.create( point );
 
Sem
11:13 AM
@Zirak nice! the function you mentioned just returns a filled class! :o
 
It's not a class
 
Sem
@Zirak It feels like one :D
 
meh, call it whatever you want...
 
fou
@Zirak I use this code phone_btn.backgroundImage= 'url(http://png-2.findicons.com/files//icons/99/office/128/contact.png)';
phone_btn.backgroundRepeat='no-repeat';
phone_btn.paddingLef='30px'; and then I append the text phone_btn.appendChild( document.createTextNode(phone) ); but I don't get the image in the button
 
Sem
@Zirak I'll look into object.create, what you kindly sir :)
 
11:15 AM
!!/tell Sem mdn Object.create
It's a CSS thing
Doesn't have to be p, can be any block-level element
 
Sem
@Zirak One more question though, what would be the diferrence between object.create(point) in Javascript and new Point() in PHP?
 
That there's no such thing as Object.create in php
php isn't as OO as js
 
Sem
@Zirak corrected :)
@Zirak In both cases your copying a structure.
 
php and js use different OO models; php is classical, js is prototypical
So it's comparing apples and oranges
Yeah, in every OO model you copy a structure. How you deal with it is another matter.
 
Sem
@Zirak Fair enough :)
 
11:20 AM
js has new which destroys and hides its prototypical spirit; the prototype property is horribly named and doesn't reflect the prototype. I never use new blah because it's a bad attempt at catering to the java-minded people; Object.create lets you actually create an object in a nice fashion
!!/choose pizza leftovers starve
@Zirak pizza
:D
user image
3
 
haha
That shirt is awesome!
 
Sem
@Zirak What is your opinion about jQuery?
 
@Sem It sucks
 
11:35 AM
@Sem Out of curiosity, why do you care for my opinion? Why me? It's the moustache, right?
 
Sem
@Zirak No, it's because I was happy with the object.create() :)
 
oh yes, of course psst, it's the moustache
 
It totally is.
Also, amazing answer there Zirak!
 
The moustache wrote it
 
@OctavianDamiean +1
Btw i am just back from college and i am satisfied with the tutor now (xD)
 
11:39 AM
And the moustache says "why thank you, odd unicorn man"
 
That's not a unicorn but still, thanks! :D
 
her programming sucks but its fine :-D , atleast she knows the basics
 
Please excuse Mr. Moustache; he doesn't have eyes
 
OH GOD KILL IT KILL IT WITH FIRE
 
11:41 AM
That's a 20% cooler Octocat. ;)
 
It has a rainbow tattoo!?
 
@OctavianDamiean its a 20% cooler octopus cross breeded with a cat and mutated by influence of pony
am i right ?
 
@Zirak Yea, but I don't tell you the spot. :P
@Abhishek You know Octocat?
 
nope
 
:o
Y u no GitHub fan?
 
11:44 AM
cause i never used it much
 
That tattoo you're probably referring to on the picture is not a rainbow but a rainbow flash!
 
lol
 
._. I feel violated
 
Guess what, it would be 120% cooler with a mustache. :P
Oh for gods sake ... it started raining and I'm with my bike ...
 
Sem
@Zirak Read it, partly agree. I've never touched any PHP framework because of that. However I would say that people who use frameworks are lazy instead of 'not' a programmer.
 
11:48 AM
'Cept jQuery isn't a framework.
 
@Sem I never said using a framework/library makes you any less of a programmer.
I said that mindlessly using ones does.
 
Sem
@Zirak Even so, if you're using a framework/library you don't how how it really works. Only what it does.
 
Anybody ever made a pure css lazy loader ?
 
@Sem That's wrong, and besides the point.
 
@Abhishek How do you mean CSS lazy loader?
 
11:52 AM
Lazy loading images with css ?
 
Sem
@Zirak correction, if you ONLY use frameworks and libraries.
 
You can be a complete idiot and think you're the greatest even without them
 
@Abhishek How's that gonna work?
 
show a crap image at first and load the hq image only if its clicked
css-transition gives enough time to switch images so that the hq image looks nice when zoomed
i tried but it seems when the browser read
 
I guess you gotta show me some code. :/
 
11:55 AM
it doesnt works though
 
I don't really think that's possible with pure CSS.
 
its not.
 
Oh right.
 
as soon as it sees the url it loads :-(
i am asking if there is some hack to do it.
 
At first I thought you meant a pure CSS indeterminate progress indicator.
 
11:57 AM
// thats easy , well not pure but i can make the whole display 99% with css
 
CSS is static. Making it partially dynamic for a specific use (animations) required syntax change. So no
 
and just 1% js to set the attribute.
also you will need to use the shadow dom
for the purpose of an indeterminate progress indicator.
 
uhm, what's the name of that thing which you use to identify something's color? So in image editors and such, you use it, click on some spot, and it shows you the color specs
 
Color Picker ?
jscolor.com <- use the one in the demo
 
Not a roll of colours or something like that; say you have an image of some vomit, and you want the distinct green colour in the corner, so you click on that spot and you can see which colour it is
 
12:02 PM
0
Q: jquery substitute for multiple hovers

CameronI would like to find a more efficienct way to use jquery for my question and answer page. Here is the code which I want to change. If a '.q_container' is clicked, I want its corresponding answer div will slide down. $(document).ready(function() { $('#qc1').hover( function () { ...

 
@Zirak Yea, a color picker. ;)
 
thought you might be interested in the end of the story
 
Sem
@Zirak I only use frameworks or libraries when I don't have the time to come up with something myself.
 
rlemon, Ontario
5.6k 1 8 30
5600 i like round numbers
 
Fixed that for you.
 
12:07 PM
haha
wow
got a 1 month old answer accepted
 
@OctavianDamiean meh, still round number.. I had to un-downvote someone to get it there:P
 
@rlemon nope, you now got 5608
 
you sob
 
Wasn't me this time! :P
 
12:09 PM
lol
 
@OctavianDamiean There
 
LOL
 
Damnit.
I just lost the game.
 
Fighting a war to get rlemon to a round number again? downvotes vs upvotes?
 
@Zirak Dang bro! That one looks like a mean bastard. I like it.
 
12:14 PM
@FlorianMargaine o/
@rlemon o/
 
I'd still tap that :3
 
sup :
 
@Abhishek You'd be wanting the horn right? :P
 
12:16 PM
@AndersMetnik horny**
 
@Abhishek Sad for ya ;-)
 
> It got so bad that at one point an MBA employee of mine asked for a promotion because most of his classmates at Stanford had been promoted and he felt left out. Had I been a more experienced CEO, I would have fired him on the spot. Being young and naïve, I simply replied: “I’m sorry. You must have me confused with somebody who gives a crap.”
 
@FlorianMargaine: About your tmux problem.. isn't that just what I asked you earlier? :p
2 hours ago, by ThiefMaster
@FlorianMargaine: sounds like he changed the prefix key
 
@ThiefMaster yep, but the conf was good, creating new sessions was good too, so no reason it could change, and I didn't know how to find the used prefix key :p
 
you can change the key during runtime
prefix+: gives you a tmux commandline where you can do all kind of stuff
 
12:19 PM
he probably did that
well, it's working now
thanks for suggesting me irc :)
 
@OctavianDamiean Octocorn
 
heehe the internet loves to copy itself.. :P
Jun 11 at 17:09, by Abhishek
user image
 
@OctavianDamiean Join le familia Moustache
 
@Zirak Totally did.
 
12:27 PM
help please
related to raphaelJS, as there is no separate room for it & it's indeed javascript i chose this room
 
ok, here you go: 1 Help. That'll be 29.99
 
lol
 
there's no currency announced
let's say it's "klingon"
totally invented name.
 
Step 1) Ask question on main site. If one exists skip right to step 2.
Step 2) Post a link to the question in the chat
Step 3) Wait.
Step 4) See step 3
@FlorianMargaine you mean "darsek"
"Klingon darsek" is Klingon money :P i'm a trekky
 
sure
never watched a star trek episode
@rlemon If you don't know what recursion is, read this sentence.
 
12:32 PM
I'm for Dactarian Credits.
 
I'd like the "Margaine's wishes" money to be invented. This way, people would ask me "It's 10 Margaine's wishes, please."
 
1
Q: Call parent object method inside function with callback handler

Anirudh SI'm calling ParentObject.doSomething() which inturn calls the WebService object to perform some ajax calls, and on success of the ajax call, the callback function is executed. But any parent function inside the callback function fails. I think this has something to do with scope resolution. I a...

 
@FlorianMargaine lol it's the old blonde joke - write "turn paper over for a secret" on both sides of a piece of paper. give it to a blonde. watch her struggle for hours.
 
lol
0
A: Call parent object method inside function with callback handler

Florian MargaineHere is the prettiest way to do it: WebServices.firstService("some URL", this.successCallback.bind( this )); However, it's not cross-browser. (read: IE8 and below can't use it) This is why jQuery has $.proxy: WebServices.firstService("some URL", $.proxy( this.successCallback, this ));

:p
 
@AndersMetnik lol
 
12:46 PM
I helped a guy twice and he didn't accept either of my answers. Gragh.
 
watch out for the jQuery downvoters... ;-)
 
@Abhishek wassup?
 
my first answer does of course work in any browser, without jQuery ;-)
 
nm
 
re; my comments to codebox. Am I off the mark, or doesn't it matter
0
A: Call parent object method inside function with callback handler

codeboxif you change this.changeData(jsonData); to ParentObject.changeData(jsonData); it should work. The reason for the error is that the this variable no longer refers to ParentObject when the AJAX call returns. An alternative approach is to store a reference to this inside another variable (by co...

 
12:52 PM
@Alnitak yep :)
but screw those jquery haters, they have nothing to do in real life
@Alnitak it does matter
if OP does var o = Object.create( ParentObject );, it's gonna be screwed up
 
yup, that's kinda my point
it's bad design for an object to reference itself "from the outside"
 
My college has been ranked as one of the "Top 50 most selective WNY colleges"
Just how many colleges are there in WNY?
 
seriously.... ffs rep whores
lets answer a uber easy nlq for the easy rep
 
@SomeKittens Winged Nebraska of Yemen? About 7
 
Western New York
 
12:59 PM
pfft, what a dump. Winged Nebraska of Yemen has a cocktail bar AND a gay strip bar. Not that I've visited it.
 
hm
css transitions don't work in IE9, right?
 
IE Support gun:
One gun: ten versions - Shoot yourself over and over again!
 
With IE10, that'll become a shotgun. Shooting yourself has never been more efficient!
 
0
A: Node.js install module on windows

Florian MargaineWell, using node-curl on windows, that doesn't have curl, is quite stupid. Don't try.

is it too harsh?
 
1:14 PM
Yeah imo :)
 
lol
 
@ThiefMaster how do you handle this kind of question
0
Q: (Solved)Get Last Five Documents by ObjectID Timestamp Using node.js Express Sort

nihulusI'm working with node.js express and mongoDB, my task is to get the five latest data from the database. I know that using this will return the required results from the mongo shell: sort({_id:-1}).limit(5) However, I need something more complex that implments the sort function in express ins...

 
But it sure is a stupid question ;)
 
OP answered by editing his question
and is probably not coming back
 
I have mingw32... therefore I have curl on windows
umad
 
1:16 PM
@FlorianMargaine close as localized.
 
roll back the edit and add a comment that he should post his solution as an answer or delete the question depending on if it's likely to be helpful for others or not
 
0
Q: Controllers and re-factoring for maintainability / sensibility

rlemonI have read many posts similar to this on the site: however I still am questioning what is best in my situation (also the answers are contradicting from question to question). I have a website (web-application) with a controller per section of domain logic (i.e. ProductsController, NewsControll...

 
I'm not familiar with mongo.. was his problem something unrelated to the question?
 
@rlemon hello
 
ugh - seriously... 90% done the damn project and i'm all like - Pfft - this is a spaghetti mess!
 
1:18 PM
did you like table->md
does it need | separators
 
@rlemon ask @tereško and @ircmaxell in the PHP room
 
yes I looked - have had no time to 'review' fully - no ambition to code at home - women problems right now
:/ they drain you
 
"HOW TO MEASURE BROWSER GRAPHICS PERFORMANCE" using only webkit specificities...
 
things I need to do in the next month (maybe i'll do some of this while in Chicago on work - will have nothing else to do in the hotel room but code and netflix)

Fix Little-XHR
Fix FragBuilder
Finish Lememe Beta 1
Work on CopyAsMarkdown
 
Bullshit article
You'll go work at Chicago rlemon ?
 
1:23 PM
0
A: Controllers and re-factoring for maintainability / sensibility

Florian MargaineWhy do we refactor? So that it's easier to maintain later. What is easier to maintain? Each admin matters in the "sections" controller, polluting your probably-already-big-controllers. Each admin matters in a new controller for each section. How you answer this question tells you what you sh...

 
reading now
 
Since it's all the rage:
0
A: Controllers and re-factoring for maintainability / sensibility

SomeKittensDisclaimer:My experience with MVC stems solely from Joomla! I think separating Admin/public is exactly what you want to do. Personally, I wouldn't keep the Controllers in the same file, but rather keep all the admin components in their own subdirectory. This reduces visual complexity and keeps...

 
0
Q: RaphaelJS issue ...DRAW or REDRAW?

UnspecifiedHi I have a dropdown menu & whenever I change the option in the dropdown I want to change the content in the canvas...For example var paper = Raphael("myDivID",400,400); function smallRectangle(){ paper.rect(10,10,100,50); } function bigRectangle(){ paper.rect(10,10,150,100); } In my d...

 
Ok. How easy use cookie on http.request? — newpdv 11 mins ago
does anyone understand?
 
No.
It appears that he wants some strawberry pudding.
 
1:26 PM
Where is SimonSarris ? I usually like his interventions :(
 
oh
didn't know this one!
 
ehh .. added my two pointless cents
 
-1
Q: Reasons NOT to use JSF

Vain FellowmanI am new to StackExchange, but I figured you would be able to help me. We're crating a new Java Enterprise application, replacing an legacy JSP solution. Due to many many changes, the UI and parts of the business logic will completely be rethought and reimplemented. Our first thought was JSF, a...

 
Reasons not to use JSF? Java.
2
 
1:30 PM
@Feeds Read as far as "Java Enterprise." I don't need to read any more
 
Java is enough, you don't even need to get to Enterprise.
 
Sorry, I read as tuples.
 
Regarding the length of the question, i wonder why people downvote without commenting
 
They probably read Java and then think "Oh no! Go away with this crap!"
 
fou
How can I use background gradient contain picture phone_btn.setAttribute(\"style\",\"background:-webkit-gradient(linear, left top, left bottom, color-stop(15%,#ff8000), color-stop(50%,#fc0500), color-stop(51%,#fc0500), color-stop(100%,#fc0500))' url('http:...') no-repeat;padding-right:'5px';\");"
is that possible?
 
1:38 PM
The question is a bit tricky, 'cause he demolish Java (JSP) then he is asking for pro/cons, but it seems to be a question you can ask on programmers
English question: He demolish(es??)
That's a weird word
 
"dismisses"
 
I'd like to demolish Java, just cause.
 
@Alnitak Thanks.
It was a French to English translation
And... seems to not work in English ^^
 
I think "demolishes" could work too, but it is not as formal
 
anyone in here having experience with the "Select2" - Plugin?
 
fou
1:45 PM
Any one can help me on my pb ??
 
@crazy ask your problem, we'll see then.
 
@dievardump Demolishes is valid English
 
Thanks
 
fou
@FlorianMargaine you mean me by crazy?? ok
@FlorianMargaine How can I use background gradient contain picture phone_btn.setAttribute(\"style\",\"background:-webkit-gradient(linear, left top, left bottom, color-stop(15%,#ff8000), color-stop(50%,#fc0500), color-stop(51%,#fc0500), color-stop(100%,#fc0500))' url('http:...') no-repeat;padding-right:'5px';\");"
is that possible?
 
padding-right:'5px'
That seems bad.
No '
 
1:50 PM
Why are you writing all that inline...? And why are you escaping the outer quotes?
 
@fou yeah, fou = crazy in french
 
And Florian has a big sense of humour :
 
fou
yes I see you profile you are from Paris and I understand what you mean @FlorianMargaine
 
my profile says I'm from Paris?
 
Not really.
 
1:51 PM
No, Marseille
 
ah, thanks.
 
fou
@Zirak I want to have button with gradiant color contain picture and text
 
fou OK so no ' to padding:5px; *
Not sur you can add a url though
oh no you didn't miss a ;
It's part of the background property
 
@fou I'll repeat my question: Why are you writing all that style inline, and why are you escaping the outer quotes, the ones around style for instance
 
it's 10am and I already am tired
133
Q: Is it possible to combine a background image and CSS3 gradients?

Ronald I want to use CSS3 gradients for my background color and then apply a background-image to apply some sort of light transparent texture. Is this possible?

 
1:55 PM
@dievardump im usually still tired at that time of the day ;)
 
I didn't drink enough coffee
My roommate this morning was " Hum, no, don't do anything, just keep trying opening your eyes "
 
Before or after he went to Hopeful Imagination Land?
 
Before. She just was coming back from work. I think she now dance with Unicorns and kind Trolls in her Pink Queen Size bed
 

« first day (647 days earlier)      last day (4287 days later) »