« first day (635 days earlier)      last day (4327 days later) » 

7:00 PM
I'm wondering if it's Hakim El Hattab account right now
Cause I am following another from him
That's the crazy guy good shits
 
@dievardump Yeah, that's the one I found.
 
:P
 
@Loktar that's not from you, right ?
I saw it some weeks ago
 
@dievardump yeah I made that
 
7:03 PM
really ?
wow
 
yeah got the idea from an xna tut
I was just being a goof posting it in here saying its my fav though
 
yeah
thats me blog
 
ok
Oh yes i didn't see : My sons first game Dark Slayer
^^
 
:P yeah
thats the last thing I posted
I need to remember to put more stuff
ill make a cool random experiment and just file it away
 
7:07 PM
i need some automatic prefixer for my build - process -.-
 
@GNi33 css prefixer ?
 
yep, i' sick of writing stuff like that:
-webkit-border-radius: 0px 0px 5px 5px;
   -moz-border-radius: 0px 0px 5px 5px;
     -ms-border-radius: 0px 0px 5px 5px;
       -o-border-radius: 0px 0px 5px 5px;
	 border-radius: 0px 0px 5px 5px;
 
Lea Verrou wrote something (js) I think
prefixfree
 
yes, i know that there are some out there, i just need to integrate them into the jenkins - build
 
oh, jenkins
 
7:09 PM
but thank you :)
 
hi, this might sound really stupid, but say I have a single boolean (b), using one line of jQuery, how can I set an element to hidden or not depending on the boolean? atm I'm using if/else but there must be a better way..?
 
what is the problem with if else ?
 
Because, obviously, using an if else is a deeply flawed mechanism. You must be hospitalized immediately
 
haha I know I was just wondering if it's possible
 
@AlexCoplan I recall something about optimization that's premature....
 
7:12 PM
posted on July 12, 2012

Pretty soon I’m going to write the opening chapter for the upcoming Smashing Mobile Book. The provisional title is “What’s going on in Mobile?” and I’m going to talk about how the mobile market works, and what web developers need to know to find their way around 10 operating system, 15 device vendors, and 25 browsers. Before starting, though, I’d like to kn

 
You can use ternary, but there's nothing wrong with an if...else
 
if(bool){element.style.display = "none"}else{element.style.display = "block"}
 
ok, thanks.. just wondering if jQuery let you set something like a hidden state wiht a boolean
 
look ma no jquery
 
condition ? then : otherwise ternary. Each part has to be an expression though.
 
7:14 PM
@Loktar I know, but I'm actually writing a jq plugin so might as well take advantage..
*with
 
oh no...you're one of them!
 
haha
 
runs to hide in a jam jar
 
I've working on a large project in pure js, but the front-end part is a jquery plugin
 
licks @Zirak because he now tastes like jam
 
7:15 PM
just because it's quick
*I'm
 
!!give me a lick
@Zirak Mmmm! you taste just like raisin
 
haha nice
 
Raisin jam. Mmmm.
 
I know what you're getting at with people over-using jQuery though..
Don't worry, I'm not writing a basic arithmetic plugin :)
 
!!/lick loktar
 
7:17 PM
@SomeKittens Command lick does not exist.
 
FINE
sulks off
 
!!give SomeKittens a lick
@Zirak Mmmm! SomeKittens tastes just like raisin
 
@AlexCoplan That image isn't right.
I've upvoted that question since then.
 
@adscriven that question exists??!
 
7:19 PM
And I'll tell you something else: if I hadn't found that question, then, to this day, I still wouldn't know where my legs are.
 
Can't you tell it's a screehnshot?
 
it's kind of obvious that it's either playing around with the HTML or photoshopped
anyway, thanks.
 
also.. you dont need to write an arithmetic plguin with jQuery
it already exists! $(1+1)[0] built right in baby
 
TWITCH
new guy: Do you guys use Dreamweaver?
 
@Loktar that's not using jquery to do the artihmetic though :)
 
7:22 PM
@AlexCoplan WRITTING JQUERY PLUGIN DOES NOT MEAN USE AS MUCH AS JQUERY AS YOU CAN EVEN IF PURE JAVASCRIPT IS FASTER
 
SHUDDER
New guy: Yeah, I use IE because Firefox has security issues
We are not going to get along.
 
@dievardump good point..
 
@SomeKittens lol have fun with that
 
He says that FF allows "Java to access local files. With IE9 you have to use PHP scripts to upload files"
^is he right?
 
7:24 PM
@SomeKittens The IE bugs are sooooo cooler than FF bugs.
 
@SomeKittens ... depends on what he means by "Java"
Also, HELL NO, mostly for the "have to use PHP scripts"
 
To upload files? What? You "have" to use php? If you don't use php, IE9 will not allow your server to receive data?
 
lol
 
I'm overhearing all of this
So I can't jump in to ask.
He may mean JS
 
7:25 PM
I have to install php locally to upload files?
 
@SomeKittens I do not see what local files and upload files are doing together in this sentence
 
But, since everyone knows Java and Javascript are just the same thing....
 
1: Open Sound Recorder
2: Hit record
3: Wait
4: Hit save
5: Play for your boss
 
Yeah. The more I think about it, the more my head hurts
 
Can you jump in with a tire iron?
 
7:27 PM
@Zirak I've got half a Twinkie. Think that'll work?
@RyanKinal The CEO hired him, and I quote, "Kinda on a whim. We'll see how he works out."
 
You're going to drug him? Good idea.
 
Is that Twinkie from the stone age?
 
@SomeKittens If you have a copy of "The Definitive Guide", that should work too
 
<3 that one
 
7:31 PM
@Zirak We have the poster here
 
This is also a good one: theoatmeal.com/comics/printers
 
Do the work, get paid, remember not to include it in your portfolio.
Or: explain to CEO that the unwashed masses don't have as refined an artistic sense as yourself, and that in my experience the original design will maximise ROI.
@Zirak I love a good NIN pun.
 
14 kills in 3 deaths.. my skills are back
in counterstrike btw
 
That was my guess
 
Shall i buy D3 ?
 
7:46 PM
YES
 
Sam
Anyone had any trouble with jQuery ajax calls in chrome over the last few days?
 
nope
 
@Sam nope
 
Sam
Hmm ok
Cheers
 
@Sam but i've heard there is some new solar flare activity that is only killing $.ajax in the western hemisphere. You can try wrapping your jQuery in jQuery.noSolarFlareConflict() mode. This should help.
4
 
Sam
7:51 PM
@rlemon Already tried that
 
hrmm... i'll get back to you then
 
Sam
I also tried jQuery.removeAllTrolls() mode
No luck there :/
 
@Sam And you still have some code built on jQuery ?
 
Sam
@dievardump I do
 
With the removeTrolls mode ? that's weird
 
Sam
7:52 PM
Haha :)
 
@rlemon its $90
 
Ok so i've looked at your source code... it was a mess. I removed line 18 and 24 and nothing fixed still. So I talked with my buddy who is an expert at black magic coding and he told me to look down around like 118 and I spotted it. You need more Unicorns. Yup... Defiantly a lack of unicorns in that script.
ok enough trolling
@Abhishek pfft. it's like $60 taxes in in canada.
 
@rlemon India
 
OMG YOU ARE FROM INDIA?!?!?! I NEVER KNEW!
:P
 
We're not on Friday rlemon
what will it be tomorrow... no one know
 
7:55 PM
am I trolling a day early?
 
Sam
Oh my god it is friday tomorrow! I thought it was Thursday! Awesome :p
 
html, body {
	height: 100%;
	background-image: -webkit-linear-gradient(top, rgba(0,0,0,0),rgba(0,0,0,0), rgba(64,64,64,.1), rgba(64,64,64,.13));
	background-image:    -moz-linear-gradient(top, rgba(0,0,0,0),rgba(0,0,0,0), rgba(64,64,64,.1), rgba(64,64,64,.13));
	background-image:     -ms-linear-gradient(top, rgba(0,0,0,0),rgba(0,0,0,0), rgba(64,64,64,.1), rgba(64,64,64,.13));
	background-image:      -o-linear-gradient(top, rgba(0,0,0,0),rgba(0,0,0,0), rgba(64,64,64,.1), rgba(64,64,64,.13));
}
if only this worked :<
 
If i had a teacher like that...
 
@dievardump +1
 
@rlemon: I'm sure LESS or one of the other CSS preprocessors have a nice solution for it
 
8:00 PM
how would less or a preprocessor fix that?
 
Boss: "This is the last bug to fix!"
Me: "Woo!"
User: "So, what about this feature that isn't working?"
Me: *cries*
 
they would generate the exact same code :P
 
I thought you just wanted to be able to split the single long line into 4 lines
 
Sam
Is there a way to find what stage an ajax call is getting to? E.g. if it is actually sent, or is failing beforehand?
 
8:01 PM
great patterns
 
@Sam readyState?
 
Is it bad that i love windows in general ? lol
 
Nop
 
it looks more clean :-/ , with my nooby linux skills
 
I love it too
 
Sam
8:02 PM
@RyanKinal Thanks for the tip, ill take a look into it
 
:-)
 
@dievardump ugh, the first one almost killed firefox
 
don't open it in FF ^^
I forgot to mention
 
@ThiefMaster again a pre processor wouldn't allow me to do this. It would allow me to not have to do the prefixes.. but the rendered code would look identical in this case
 
@Sam xhr.readyState along with xhr.status
 
8:03 PM
LESS is not black magic. preprocessors just make maintaining large CSS files or groups of files easier
 
LESS + OOCSS
That makes the web easier
 
iirc SASS is runtime - what a horrid idea
 
Sam
@Zirak Cheers :)
 
0
Q: Looking for a way to improve list managment

IlyaDI have multiple drop down lists (select & option) that are populated by data from the server. they all have the same options, but I need the use to be able to select every option only once - it can appear as selected only on one list. this is the HTML of a single list - simple select & o...

 
8:07 PM
@Feeds Hey! My question was first!
 
i wish i could code for linux on windows
[and cygwin sucks for that purpose .. so far]
 
@SomeKittens try to not use blue but the hexa code
0% in hexa, 100% in hexa
 
@dievardump no dice
 
Sam
Im getting frustrated with this ajax. Can someone have a look and see whats wrong? jsfiddle.net/DShGd :(
 
8:13 PM
XMLHttpRequest cannot load http://www.nikkinutley.com/main/en/ads/ads.xml. Origin http://fiddle.jshell.net is not allowed by Access-Control-Allow-Origin.
There has been an error loading xml
 
same domain policy ?
 
Also, that ^. Same origin policy.
 
lol
Cross-origin resource sharing (CORS) is a web browser technology specification which defines ways for a web server to allow its resources to be accessed by a web page from a different domain. It is a compromise that allows greater flexibility, but is more secure than simply allowing all such requests. Implementation Implementing CORS on a server is as simple as sending additional HTTP headers. For example, Access-Control-Allow-Origin: * will allow scripting from ANY site. Be warned however that this opens for XSS attacks from malicious website, thus the following is preferred: Access-C...
there u are
@Zirak you might wanna add en.wikipedia.org/wiki/Cross-origin_resource_sharing the gist
 
Sam
It is the same site on the live site, would that cause a problem?
 
show the live site :P
 
Sam
8:14 PM
@Zirak Im reading that now
 
Wow. IE is behaving better than FF
 
better ?
Where ?
 
Sam
@Abhishek Its here -> nikkinutley.com/en . In splash.js on line 102
 
On my site. FF is giving me that weird black error, but everything's working fine on IE9
 
@Sam how can i re-create it ?
i mean what do i do to invoke ur function
 
Sam
8:17 PM
@Abhishek Its called on page load
 
And its not getting called ?
 
Sam
@Abhishek Give me a sec, i was fiddling and ive caused a syntax error, one min
@Abhishek Reload
 
just me or the splash.js is not even included ?
 
ads.xml? Maybe your ad blocker is interfering with it?
Oh, and you do know the language selector is broken?
 
@ThiefMaster i can't even see his file
 
Sam
8:20 PM
@Abhishek Its working for me
 
By the way, any UI/UX expert will kill you for putting multiple radio button in the same line
 
Sam
Oh fuck
ab blocker...
dsjakdl;sjadsalk@q983u90432178
 
That's super-confusing, especially without the text being connected to its radiobutton via a label
 
Sam
@ThiefMaster Im just the developer, i didnt do the design :)
It was the damn adblocker
@ThiefMaster Where are the multiple radio buttons?
 
in the signup form
 
Sam
8:24 PM
@ThiefMaster Thats HP's development agency for you ;)
 
Hi all, I am having a bit of an issue dealing with issues combining jquery usage with javascript. By that I mean I have a for loop which will run the $.ajax function built into jquery. What is want is when the jqXHR.fail triggers it will end the loop. The issue i am dealing with is that the javascript in the rest of the loop executes before the callback finsihes executing. is there A way i can prevent that?
 
Sam
@Prateek I believe you need to use "continue;" inside your fail handler
 
I believe he does not understand what asynchronous means
 
ajax is async, a for loop isn't. Next.
 
for (vDevice in vDeleteDeviceArray)
                        {
                                alert("starting loop");
                                var vStatus = $.ajax({
                                        'url':'URL',
                                        'cache':false
                                        }).fail(function(vMsg,vError,vErrorStatus) {
                //                              alert ("Delete Failed: Please contact the Security Team" + vMsg.responseText);
                                                vReturn = false;
 
8:26 PM
Saw that one coming
 
The loop finishes before any callbacks are even invoked.
 
MEINE AUGEN!!!
 
I noticed that
how can I keep taht from happening?
 
@Prateek maybe you should read about ajax and asynchroneus programming ?
 
I would be willing to, do you have a resource I could use?
 
@dievardump It'd be funny if it weren't the four millionth time I'd seen it
sigh new devs....
 
Sure, but what do I search, searching ajax and asynchroneus programming does nto get me how to make a loop work with it
 
You shall understand
 
Because you can't fit a synchronous loop to your asynchronous needs.
 
I realize that, so how can I create a foreach loop which will work in an asynchronous fashion
 
8:32 PM
You don't
 
You don't.
 
ouch
 
simple :
a stack, a function, a callback function
The function makes the ajax call
The ajax call, when it finish, call the callback function
the callback function shift an entry of you stack, and call the function with the entry as parameter
 
first and foremost i'm no designer... I actually loath designing websites that are not just for myself. rlemon.github.com/dryermaster.com-prototype please be kind and offer any improvements on the overall design you can :P
 
so rather than a for..in loop change my location in the array using the .done function?
 
8:34 PM
code quality will be improved :P this is a prototype remember
 
stack: [entry1, entry2, entry3...]
process:
ajaxCall-»callBack
callback:
process(stack.shift())

callback();
 
what is the callback at the bottom?
 
it'll call the process for the first entry
 
rather than using a for loop, if i sue the built in jquery .each function (which uses a call back) work better?
 
8:37 PM
i presume it would cause the same problem
 
@rlemon Make the company logo link to the home page.
 
At least, you presume good (Crockford style)
 
@rlemon the carousel scrolls too quickly to read the text
 
@rlemon it still is much better than the actual version
just the rounded tabs anoy me
 
Not seen other version.
 
8:42 PM
So, I will trigger the callback which will start the process, and as part of the callback will call the process. will I run into stack overflow issues?
 
and maybe choosing a good typo will change everything
 
The line defining the tabs should be darker, or thicker: I can't see it very well.
@dievardump +1
 
@Prateek not if you call process only if stack has elements
 
ok sounds good. thanks @dievardump!
 
@rlemon Dunno, I'm not sure it's edgy enough. Can you make it pop a bit more?
 
8:45 PM
Hang on, I'm gonna ask my mom on this one
 
@rlemon I think there should be better visual separation between elements of the page. And less text. There's too much writing. Fewer words, larger typeface.
I just misspelt that as typefarce. I think that is Comic Sans.
 
dryermaster.com/index.php i need to sprinkle the food images from the bottom in
@adscriven design issues not function none of the links work atm :P
@adscriven cool, i'll play with that once the boss approves text for the carousel
@adscriven agreed. the 'card' content in the carousel was just ripped content from the current page. the second section after that was on the real site. the content needs to be revisited :P but thanks for all the feedback.
 
what is the best way to get the file extension from string
 
I will also play around with the typeface
 
say file is count.darkulla.mp3
and i want mp3 ?
regExp ?
 
8:50 PM
substring + lastIndexOf
 
thanks :-)
 
or split('.') and grab the last element
 
thanks :-)
 
var str = "some.stupid.mp3",
ext = str.split('.').pop();
 
Top 2 passwords from 6.4M leaked LinkedIn accounts? link & 1234 http://www.huffingtonpost.com/2012/06/08/linkedin-password-leak-infographic_n_1581620.html
Top 2 passwords from 420k myspace accounts? password1 and abc123 http://news.e-scribe.com/313
Top 2 passwords from 450k leaked Yahoo! accounts? 123456 & password. http://blog.eset.se/statistics-about-yahoo-leak-of-450-000-plain-text-accounts/
 
8:52 PM
@rlemon No probs. I think the basic layout is fine, just needs a bit of tweaking.
 
:'(
 
@Abhishek Do you care about things like .html.php, or limited to just one extension?
 
@Zirak just limited to media extensions
 
Then yeah, splitting and popping is easiest.
 
:o
but is it hte best ?
 
8:56 PM
Define "best"
 
fastest
going to have to deal about 4000 - 5000 such crazyness / second
 
@dievardump I'd totally use 123456 if i had to signup on some site just to see content or download something if there's not already an account available on bugmenot
 
Well, you can do other stuff; like finding the last index of a dot, slicing to the end from there; or if you just know the extension is 3 letters, just grab the last 3 letters
 
But the people who use it for a real account... m(
 
@rlemon a layout like git-scm.com would work fairly well I think, if you wanted something a bit more eye-catching.
@Abhishek Do the easy thing, then profile.
 
9:02 PM
Yeah, that ^
 
user1257832
i have a dropdown with an anchor tag in it, i want to get out of the dropdown when clicked on dat anchor any suggestions plz
 
@Abhishek Or if it works fine, don't even bother profiling.
 
@Zirak string.split('.').pop();
tadaaaaaaaaaaaam
 
See messages prior to that
 
And something that's fast on IE could be slow in Chrome. So you have to be careful with microöptimisations.
 
9:09 PM
Yeah my screen is big but not enough
 
@adscriven IIRC, he runs that on node, so it's platform specific
 
@Zirak Ah, right.
Still, the next version of V8 may behave differently at that level. Better to write clean code and use efficient algorithms where possible.
 
(it's not really good to run that on node, everyone one is according to say that node must not serve files/assets/templates)
nginx for serving files/assets, node for datas
 
9:24 PM
 
@dievardump Why? More efficient?
And I like lighttpd.
 
which one sounds better
reading file in C++
passing the name as reference via javascript or reading the file in javascript and passing it as binary buffer to the C++ side of code ?
Going with the flexible latter.

Good Night guys i will see yall tomorrow :-)
 
Hi there! I would like to discuss with somebody the consequences of an "open" crossdomain.xml ? Anybody out there :-) (I know this chat is more for JavaScript, but as every JS developer has to face flash once in a time, I thought I could try)
 
9:42 PM
@adscriven well yes. Node is fast, but serving file with it is not a really good thing. It will make it waste time. LinkedIn and I don't remember wich companies made article on thast thing. Node for processing, nginx for file delivering
 
@dievardump Right, yeah, think I've heard that before. But why not node x 2?
 
gNight all!
 
Sam
Night @Neal
 
user986408
question: is it somehow possible to @include multiple homepages into a greasemonkey script like: http:// www.homepage.com/ sub/ *
 
user986408
with a start or i dunno, want the whole homepage with all subfolders, but i dont want to list all possibilities
 
user986408
9:59 PM
found it. thanks.
 
Always happy to help
 
user986408
10:17 PM
just checked the manual .. they really support wildcards and the star works fine
 
11:19 PM
anybody have experience getting mocha and requirejs to play nice together on the command line?
 
11:43 PM
I have just learned that B.C. Ferries runs on VBScript.
Wow.
 
Hi, I have a simple enough basic question. Where should I go about learning the basics of javascript quickly? I dont need to be a champ--I just need to know enough to implement some basic functionality like a drag and drop uploader into a project of mine. I hear w3 schools is trash. Where else?
 
That site looks great
thaks
thanks
 
11:58 PM
freenode's #perl is interesting. People make sense.
 

« first day (635 days earlier)      last day (4327 days later) »