« first day (541 days earlier)      last day (4632 days later) » 

@didxga did you make that?
that pretty cool looking
18:41
@FlorianMargaine can be done more easily than using strings
$( data ).map( function( i, data ) {
    return $( "<option>", {
        value: data.id,
        name: data.name,
        text: data.name
    })[0];
}).appendTo("#dropdown");
@Feeds you astound me! no semi-colons!? wow! you're so hip, cool and awesome!
user1385191
fuchs is a knob anyways
user1385191
that's nothing new
You're using my JavaScript work every day, even if you're not aware of it!
wow
I call parent issues! His father didn't respect him for who he was, or mommy just loved the bigger brother more. So now they'll all see...they MUST see...
"better jQuery compatibility" facepalm
18:48
the no semicolons statement just speaks volumes
"i herd a new cool thing is to leave them out so I changed the entire code base"
xD
"Did you hear? All the cool kids now have //fart at the end of lines!! changes 10k lines"
I hope he didn't just blindly remove every single one automatically...there are cases where semicolons are needed
well not necessarily needed
you can just not like use parentheses
with self executing functions
but the point stands you can't blindly replace them
and it doesn't affect minification size so there is really no reason to suddenly change the whole existing code base not to use semicolons except to be a douche of course
I changed my if...else if...else statement style recently, but I won't change it on every single project I'm working on retroactively...it's just stupid
do you mean leaving braces out or adding them or what
18:56
//previous
if ()
{}
else
{}

//now
if ()
{} else {}
@Zirak and whats next? :P
That's for single line statements?
Nah
I just didn't want to make too big-a message, I'll make a real example
@tereško that answer's like 3 years old and I'd have to read jQuery 1.3 source...
19:02
@Esailija revenge knows no time limitation :D
@Esailija it's what google gives you when you search for info on clientWidth
@Neysor , nothing to do with revenge
@tereško i was just kidding
well I suppose jQuery wouldn't have had such a stupid feature where $(window).height() somehow gets the height of the body element
@Zirak I think I randomly change between those two, it's barely noticeable lol
19:05
I just saw it somewhere the other day...and thought "that seems nice"
cue 48 hours of updating all your projects with that style
user1385191
don't ever use $ for CSS
$ for CSS? huh?
I'll just awk the bitches!
@Esailija $(blah).css('something')
user1385191
19:08
more than that
user1385191
height() and width() too
why nawt
user1385191
there's a ton of shoddy math behind the curtain
user1385191
19:11
it's the source of most of their bugs
can't really find any of that in there
mostly cross browser quirk fixing when you are doing it on document/window/body whatever
This is pretty cool. jsonselect.org
I don't really know what it could be used for but still a neat idea. :)
WHAT?
is it just me or is that completely useless
Like I said, I don't really see a use case but I like the idea.
19:21
well I give you that lol
Not just completely useless...such a stupid idea
Oh come on.
user1385191
holy crap
user1385191
that actually further complicates simple object traversal
Not just over-complicates, but makes the structure lose most meaning
19:23
I mean, you should know the structure of json beforehand.. not be like "hmm give me all booleans" wtf
Traversing over hash-maps with css selectors...lol
You guys are so negative all the time. :(
I'm negative about stupid ideas, positive about good ones.
Well you know I am not actually :D
but the more I think about this the more I lol
user1385191
@Zirak nailed it
user1385191
19:27
good idea: the proposal to make all HTTP methods available to forms
stupid idea: JSON XPath
forms are for users- I don't see how GET and POST aren't enough
no
No JSON XPath
@Esailija @OctavianDamiean you trolling 'ight ?
tl; dr
Anyone cares to give me the short version of the discussion? :P
@Raynos If I was trolling I wouldn't have had a legit argument
19:33
@Truth Look jsonselect hurp durp, it good reason. Y U SAY THIS SHIT IS GOOD ?!
@Esailija oh wait you dislike it too :P
@Esailija I thought you liked that idea
@Raynos And the slightly longer version?
Then its just @OctavianDamiean thats a troll :D
umm no lol ?
@Truth read the 20 lines
I mean I don't see point of forms having other than GET and POST since they are for users
19:35
anybody got any laptop recommendations?
hi all
user1385191
you don't see the purpose of a DELETE form?
We be trollin' ... dun-du-dun
@MattMcDonald nope
that's more of a web service method than form user method
dunno why users would wanna see a HEAD form or OPTIONS form either being submitted
user1385191
what about an "unsubscribe" form?
19:39
@Esailija no u
user1385191
with inputs for email and rationale
@ThomasShields macbook air
@Raynos meh don't want to shell out 1k for a laptop.
No Macbook.
plus, ubuntu > mac os
19:40
Lenovo Thinkpad series notebooks.
@MattMcDonald what do you mean? you would say form type="unsubscribe" and it would just include those inputs automatically?
I have four of those Thinkpads.
user1385191
<form action="unsubscribe.do" method="delete" name="unsubscribe">
user1385191
<input name="email" type="text">
19:42
unsubscribe.do would know what to do with method="post" as well
and this is completely invisible to the form user as well
user1385191
Please specify on your resume or cover letter if you have any of these certifications:

 MCITP Server Administrator on Windows Server 2008
 MCITP Database Administrator 2008
 MCITP Business Intelligence Developer 2008
 MCITP Enterprise Messaging Administrator 2010
 MCPD Web Developer 4
 MCPD Silverlight Developer 4
 MCPD Windows Developer 4
 MCPD Windows Azure Developer 4
user1385191
AAA
@ThomasShields The most expensive macbook pro is only 8k
@ThomasShields One of them is a Thinkpad 500 series 486SL around 20 years old by now and it is still working.
@Raynos yeeeah... I'm looking for like, 0.5k
@OctavianDamiean nice! i'm looking, the thinkpads look great so far.
19:44
@ThomasShields just 500 :(
You can get some pretty good used Thinkpads for 500.
@Raynos refurbished laptops can be awesome at $500 tigerdirect.com/applications/SearchTools/…
Yea, totally.
@ThomasShields ebay.com/itm/…
@Raynos hey nice
19:46
Nononononono!
No consumer class notebooks.
Never!
...why not?
Always business class.
@OctavianDamiean why?
They are very durable.
@OctavianDamiean ...considering the state of my current (consumer class) HP, that's a very good point...
Missing two keys, duct-taped the broken right half of the screen, and rocking a hefty "extended" battery to replace the crappy default 6-cell
19:50
Yea, that is the kind of stuff that won't happen with a Thinkpad.
good to know; i'm very harsh on my stuff lol
I'm sure HP produces good laptops too but only business class laptops. I haven't tested any HP business class laptops though.
20:30
o/
Hi, I'd like some advice about is it right or wrong (and how much wrong is it) to use js reserved keywords?
I'm doing node.js development, and for some actions such as delete, I use the delete keywords, and jslint is yelling at me
jslint is lies
reserver keywords as properties is valid in ES5
and breaks in ES3
hahahahahahahahaha
Itll break in IE8
and probably opera
I'm sorry, I didn't noticed you were here. I'm not laughing at you
Oh so it's THAT wrong?!
But it doesn't matter for server-side stuff?
I should rename these anyways I guess
20:39
wat
sup @Raynos !
Damn these reserved keywords wraaahhh
So jslint is lies, but it's wrong to use these keywords. Good to know
Holy crap, doing JS / Objective-C / VB.NET in the same day is confusing as hell
in 3 different IDE
As soon as Objective-C is involved it can only suck, yea.
You're so right, I did not remember how much I hated Objective-C, but today is the day my memory came back.
I can't believe so many people code with that crap everyday.
@PaulIrish o/
@TomShreds you dont care for server-side stuff
@TomasShields Apple MacBook Pro
20:53
@TomShreds the only good reason to care about reserved keywords is google closure refuses to compile your code
@Raynos oh good to know, thanks!
oh and it breaks in IE :D
I guess thats a "good" reason
I was about to say. :D
IE, sigh
Hi guys. I have some problem with CSS. Can anybody help me ?
.img_box {
width: 110px;
height: 160px;
background-repeat: no-repeat;
background-position: center center;
background-image: url('https://www.google.az/images/nav_logo107.png');
}
this code does work in all browsers except FireFox
don't you know why ?
21:21
0
Q: how to add javascript file and css file in wordpress

user1293847I am creating new plugin so i need add a java script file and css file. how do it? in wordpress. these are my javascript files 1.jquery.min.js 2.jquery-1.3.2.min.js 3.jquery.tabify.js css file: newstyle.css

CSS

Questions and discussions about Cascading Style Sheets (CSS) a...
you can leave your question here and someone will see it eventually.
i need a word
there are two types of elements
blocks that move around , and "video" which actually is changing frames
and i need same word for describing same action ... kinda like in polymorphic thing
ideas
21:37
I'm confused.
Me too, what do you mean?
Would anybody know how to match an exact string containing a space in regex?
Such as 'Stackoverflow Chat'?
Using word boundaries.
I tried \b[Stackoverflow Chat]\b but that matches the words separately
decided to use "alter"
So you actually want /(\w+\s\w+)/ or something like that.
I didn't try it.
user1385191
21:47
"adjust" might fit in that scenario
@Octavia And then how would I fit in the string I'm looking for?
Thanks for your efforts by the way
What do you mean? How you'd test against that pattern?
user1385191
new RegExp("\\b" + string + "\\b");
pattern.test(str);
SOMEONE TAKE RESPONSIBILITY >:(
95% OF THE INTERNET IS SHIT. HORRIBLE UX, FULL OF RAGE
Ebay, paypal, hotmail. All big pieces of shit
user1385191
21:56
ebay owns paypal
ebay is a shit website
Their "my ebay" section cannot be navigated
user1385191
if you want a terrible website, go look at linkedin
nah linkedin is cool bro
user1385191
yikes
user1385191
ebay flunks the html validator big time
22:38
@Abhishek Sorry I was just spamming answers last night, what Q was this?
@Loktar Ultra hard. I don't even log into SO at work.
Whats the minimum px you can have for a css width? 0.5?
@Har
@HarryBeasant I think the minimum is 1px
there's no minimum than a pixel... maybe with fonts you can put 15.5px but the extra 0.5 only moves the line a little with no visible changes on font size
23:07
If i was using something like this; document.getElementById('filetype').innerHTML
But instead wanted to replace the content inside of the id. what could i use?
innerHTML.replace
23:31
you would just set the innerHTML
document.getElementById('filetype').innerHTML = "ohai"
>:(
you set innerHTML, I break your nose
2
23:47
right

« first day (541 days earlier)      last day (4632 days later) »