« first day (881 days earlier)      last day (4082 days later) » 

9:00 AM
@indago which VERSION of bootstrap?
 
@plodder version 2.3
 
uhhhh, i feel like crap.......
anyone else feel the same?
@plodder
?
 
@indago 2.3.0 or 2.3.1?
 
@plodder 2.3.0
 
@plodder is that really u in ur picture?
 
9:06 AM
@BrandonGelfand yes it is...
 
How do you know?
 
@BrandonGelfand no thats my sister... WTF
 
He looks so grumpy......
Dude ever smiled?
 
@BrandonGelfand not since i met you
 
Wow, I probablly wont make a very good therapist then, LOL
 
9:08 AM
@FlorianMargaine yeah, really random, but awesome
 
@plodder I thought u were in ur 20's or 30's.....
I am not so sure now though......
 
@plodder any help...
 
@indago Just tested.. works for me so its not bootstrap
 
is anyone else really sick? I feel like I am gonna pass out to be quite honest....
 
@plodder what do you think it might be?
am using doo php and twig templating engine
 
9:11 AM
I threw up a few times already... I have a brick pounding in the back of my head.. Dr.Plodder what do you suggest I do?
 
@indago I had an issue like that once due to improper css loading
 
@plodder whats the best practice for loading css?
 
0
Q: Sencha 1.1 Long DropBox List

innocentDemonI have a droplist in sencha 1.1 with varying items. It is showing unsual behaviour in iPad. When the list is having 3 items, it is displayed like following : but when it is having more than 3 items, it is being displayed like following: The list itself is overlapping the list-box border. ...

 
@BrandonGelfand first off... who cares about my age. 2nd. who cares about that crap dont you have somewhere else to spam?
@indago my best practice is load it before JS and thats it
 
No, not really, i honestly dont have friends lol......
 
9:13 AM
@BrandonGelfand well this way you're not gonna get any either
 
you guys are the few ppl i feel dumb around, and nothing intersting is going on right now...
php room guys scare me a little...
I cant think of what to write for my topic and conclusion paragraph....
 
@indago can you make a jsfiddle so i can see your code?
 
let me try
 
@plodder u hate me dont u.....
 
hello everybody
 
9:16 AM
hello person I dont know :D
 
Hi @GNi33
 
@FlorianMargaine :D great!
send me beer :D :D
 
WTF :
0
Q: Read a file extension and change that extension

user2110618I want to read a file name like 'images/aa.jpg'. I want to change that file extension .jpg to .png. If another file having the same name means overwrite that file.

For all jQuery experts here...
 
^ haha
ah yes, good old $.readFileAndChangeExtension()
 
heh
 
9:18 AM
We need the tag...
 
how do we delete it like those other guys do to my stupid ones?
that didnt seem stupid at the time but apparently were....
 
well, if he wants to write to the Filesystem, it would probably be possible
nothing to do with jQuery though
 
@BrandonGelfand How do we delete the question ? Well, first we let OP some time to clarify his question after the first polite comment. Only after do we kill it.
 
is he trying to make a site or something that does conversion??
 
too bad that after putting brandon on ignore i still see the answers to his crap
 
9:21 AM
or, if the question is just totally stupid, SO-hell unleashes over it automatically anyhow
 
I dont understand what hes trying to accomplish..
LOVE U TOO @plodder
BFF
 
@plodder yeah, that can get a little confusing sometimes
 
@GNi33 you have to use FileSaver Api for tat
if you wanna do that on client system
 
lol i put ignore on plodder and page shook and his head shrunk xD
 
so there is filesaver.js that does the trick on "ALL" browsers ;-D
 
9:23 AM
yeah, i know
 
@plodder u have me on ignore or u just joking?
 
pretty sure he has you ignored
 
mann......
ask him to undo it and I will only talk seriously....
plz...
 
@plodder Brandon said "
ask him to undo it and I will only talk seriously...."
(and now I won't interfere more)
 
!// Am I in mindjail still?
Guess thats a yes.....
 
9:25 AM
@dystroy you should have included the "plz..." after that too
would be an indicator for me not to unignore :D
 
@dystroy thanks for letting me know, appreciate not interfering. enough time wasted
 
so how do i know if plodder has me blocked?
 
noob1992 was worse though
 
Hmm I just got a mail about someone's in-house cms only going to support Zepto... because its much lighter than jquery... I was like: hmm cool: and then i had this: i.imgur.com/6Z5XJ4B.png
2
 
yeah
that's pretty much the point of Zepto
 
9:28 AM
Pisses me off he cant see what I am writing....
 
if you'll need to support oldIE and other old browsers, just use jQuery
 
@plodder @plodder sorry for spamming...
 
dude, you're "spamming" anybody else in the room except plodder, so just stop it
 
sorry....
I go hang myself...
in shame that is......
 
my twitter-suggestions are getting worse and worse
 
9:32 AM
0
Q: Read a file extension and change that extension

user2110618I want to read a file name like 'images/aa.jpg'. I want to change that file extension .jpg to .png. If another file having the same name means overwrite that file.

the answer...
 
yeah, but i don't know if it's not exactly what he wants
not sure if he really wants to "overwrite" a file than just rather change the extension on the page
 
@GNi33 his GA stats on a few of his sites say that im going to send this guy a mail telling him to reconsider: i.imgur.com/h8aP9vZ.png
 
it's hard to gauge stupidity aye
 
@plodder yeah, could be a good idea. maybe he should have a look at the server instead and make sure everythings properly gzipped
or just include over a cdn
 
@GNi33 hmm i think im even going to give a link to uglify :P
 
9:36 AM
this is getting a lot of attention right now -> browserdiet.com
i think it's a pretty well written guide for FE-performance
 
@GNi33 Somebody gave us a link here yesterday. Nobody in it for most experienced web coders but still very well made.
Their "link" icon is strange though. It looks more like an "infinite" symbol than a representation of a chain. They use "∞" but with a font badly adapted.
 
@dystroy oh, yeah, absolutely, didn't notice that
i was looking over it yesterday and it really has all the important points in there, well explained
could go more into detail on some point though
 
i just saw it for the first time and the points they touch are valid
 
guys, i really hate that i have to ask this, but is anyone familiar with the facebook-share - function?
 
@GNi33 as in API share?
or share button stuff?
 
9:45 AM
share button pretty much
 
i got a site here that has addThis embedded
it redirects to facebook.com/Sharer/share.php it seems
 
@GNi33 For more details google's pagespeed is good.
 
yeah, I use both that and YSlow
 
@GNi33 hmm FB did do a breaking change on publish stories functionality last month.
 
9:47 AM
they constantly change stuff without any notification it seems
and their widgets are bad, really bad
anyhow, all i wanna do is force an image to the share-function
 
everything they have is bad
force an image to be published with the story?
 
but it seems the the open-graph :image-metatag isn't doing all too much
@plodder exactly
 
hmm lets see how i did that :)
 
now it fetches like 3 images on the page
 
I defo have that somewhere
give me a second
 
9:49 AM
would be cool if i could force one or at least make the desired one the first in the list
 
this is what i found in my please-obscure-my-link-with-a-frameset-because-fb-follows-302s tool:
 

Microsoft.Net Dreamers

Dream Dot Net Code Dot Net
 
if (image)
  meta(name="og:image", content="https://#{host}/img/#{image}")
that doesn't work for you?
 
Has anyone got a sensible idea for generating unique IDs in JS with a guarantee of zero collision risk? I've designed something around stackoverflow.com/a/12223573/889949, using (new Date()).getTime().toString(16).slice(-8) for the first word instead but I'm not happy with it, collision risk is minimal but not non-existent. I'm struggling to think of another readily accessible entropy source though :-(
 
0
Q: sorting the list

harishi want to sort the fallowing in the assending oder the cde is as fallowes <ol > < a class= " " > < a class= " " > < a class= " " > < a class= " " > < a class= " " > < a class= " " > <...

 
9:55 AM
@GNi33 that works for me but it is possible that they only support jpg
because i just noticed all my og:image tags are 1. full url and 2. all .jpg
 
hm, it's a relative path on my page right now...
that could be a reason
 
according to ogp.me/#structured theres some more stuff going on but i didnt implement all that and it still works
they also give the complete url there
 
no, that doesn't change anything unfortunately
 
did you check it on the same url?
because FB also caches it
i haven't found the cache expiry time yet, but i've seen it being cached after 6 hours still, but after 24h its gone..
 
hm, i'll try on a different page
but it takes changes to og:description for example without problems
 
10:06 AM
hmm maybe thats changed too? i havent touched this in a couple of months
 
hii all
 
oh, i see
there's this debugger - tool
it says that my provided image is too small, they recommend an image with at least 200x200 in dimenstion, 1500x1500 preferred ( o.O )
and they say that another image might be used instead, giving me the link to my icon-sprite that always shows up
 
1500x1500? LOL
 
so i guess there's my problem
 
@GNi33 thanks for that!
 
10:11 AM
1500 x 1500 seems ridiculous
 
guess they want to be ready for 1080p^2
 
i mean, it's getting shared as little preview image anyhow
 
mine are 400x...
 
yeah, it doesn't give you that problem-notification, right?
mine's 280 x 180
and it's part of a newsletter - markup, so i can't change that at all, i'll probably need to provide a bigger alternative just for the fb-share
@plodder thanks for your help on this one
 
I just got 1 warning, that Objects of this type do not allow properties named 'description'.
oh most welcome
3rd answer for me for today... i must skip sleeping more often :P
 
10:18 AM
there should be chat-rep of some kind.
but i just tend to upvote a random answer of somebody that helps me in here, so have one
 
i actually did the same :)
+ whenever someone does real hard work, like Benjamin did yesterday because some dude kept on repeating some crap about why node is better than IIS (lol) for 600 times... he got a lot of comment upvotes :P
 
yeah, stars are basically just there to pin interesting messages to the side-box / the starred list
but in here it's used for pretty much anything :D
i really should consider answering more on the main-page
 
i always lose the race on the good questions
 
anyone here tried to use typescript extensively?
 
far from extensively
@plodder yeah, and on the easy questions... the jquery-tag is just a disgrace
 
10:36 AM
oh wow. a prospective client said 3 months ago that he would get back to me in 3 months.. and he actually did without me having to call him. That's a first in 10 years!
 
haha, good things happen sometimes ;)
 
0
Q: Class to interact with cookies

PLBRecently I needed to manipulate with cookies using javascript. So I wrote a class: function Cookies() { var cookieLifeTime = null; this.setCookie = setCookie; this.getCookie = getCookie; this.deleteCookie = deleteCookie; this.setLifeTime = setLifeTime; function setLifeT...

0
Q: JSON schema validator

PramodI wrote a simple JSON schema validator. The code is over here on gist.github.com The code doesn't need the schema object to explicitly specify the type of object properties unlike the official one I'm fairly new to javascript. How do I improve the code?

 
ye well... last month i got f-ed over for almost $5k because i got lazy with escrow stuff
so this is really really awesome, because i need this :)
 
Hi, I am calling this http://api.ammobia.net/http/v2/updatecontactdata in ajax to get request id. using below code
jQuery(function(){
var url ="http://api.ammobia.net/http/v2/updatecontactdata";
....
....
jQuery.ajax({
type : "POST",
url : url,
data : {
apikey :'xxxxx',
......
},
success : function(response) {
alert(response);
return false;
}
});
});

Ajax call gives 200 OK but i did not get request id as response. what i done wrong on jquery ?
 
@Dinesh please format your code
add an error-callback to your call and log the error-messages
wait, you're not on the same domain as the one you're calling there, are you?
 
10:43 AM
@GNi33 hmm.. so definitely nowhere near production then?
 
@GNi33 yes i make this call in my site itself
 
@bPratik no, i like to write plain javascript
 
@Dinesh you shouldn't use jquery for this. your api key is exposed in your front-end javascript
 
apart from in-IDE-debugging, i don't see why i would need to use an "abstraction" - layer like TypeScript or CoffeeScript for JS
 
@Dinesh and you cant do cross-domain POST requests
 
10:44 AM
i just like JS how it is :)
@Dinesh yep, you can't do that due to the same-origin - policy
 
@GNi33 <3
 
you'd need to use GET and the API would need to return a JSONP-format
 
@GNi33 if I wasn't married and you were female.... wow :P
 
other than that it would be possible to make the call on your server
 
@GNi33 yes, agreed. and coffeescript is just a bit over the top for apps that are not pure js. But TS i felt would ease a lot of pain if you had a multi dev environment where the average js knowledge isn't excellent...
 
10:46 AM
@GNi33 i tried with GET method with data type as json. but it does not work
 
also keeps you as close to pure js as possible even when writting in TS. don't you think?
 
Coffeescript > typescript.
 
@bPratik if your js knowledge isn't excellent then you have the best reason to use pure js
 
@phenomnomnominal but it requires you to learn another syntax/language of sorts and you are bound to make more mistakes unless you get trained enough in it... so sticking to pure js is better. i think.
 
10:50 AM
Note that I didn't say CoffeeScript > JavaScript
 
@plodder but is that not the whole point of using Typescript, that you can still write pure js... with the benefit that if you give it the additional metadata, your life just becomes easier down the line?
@phenomnomnominal oh yes, sorry my typo, what i meant was that typescript accepts pure js as well, along with some extended features. so you can implement ts but still write pure js until you get comfortable with the other features!
 
@bPratik In my opinion it's better to write pure js, so you get better at js, so your life is even much more easier down the line. But that's what I would do...
 
I honestly don't see the point in adding type checking to JavaScript
 
@Dinesh yeah, it can't
you'll need to use JSONP
you're not allowed to use XHR-calls to a different domain/sub-domain/port
 
@plodder, @phenomnomnominal cool thanks, i am discussing it here because i am open for opinion! it's sometimes difficult to look away from sales brochures, you know!
 
10:55 AM
that's why JSONP was introduced, it uses a completely different technique
 
@bPratik Happy to share :)
 
@phenomnomnominal just curious, any particular case to argue why it's not better?
 
@Dinesh but either way, JSONP or no JSONP... your api key is in a jQuery file... means it's out in the open.
 
@bPratik very much so, and that's why you have to try things out. The reason I like coffeescript is because it lets me write code that i find highly readable, i can write it quickly, it adds syntactical sugar that makes sense to me, and it prevents me from making a huge number of silly errors that i might otherwise occasionally make
 
@phenomnomnominal this is one point that i can't really decide my opinion over it
 
10:57 AM
Plus it's actually improved my javascript understanding by looking at the compiled code
 
@phenomnomnominal but then TS would also provide you a standards compliant output that you could learn from?
 
@GNi33, I know right, because it's essentially only for compile time static checking right? Seems like so much effort to decide on types for everything...
 
i mean, strong types would ultimately have a positive impact on performance, right?
 
Surely it would be negative on performance, because you'd always have to be checking the types matched, which is so unnatural in JS?
 
@GNi33 i second that! :D
 
10:59 AM
@GNi33 not if you're doing foo instanceof bar for every single argument on every single call... that would take more cpu ticks, not less
 
if (typeof argument1 !== 'number') {
    throw Error
}
@plodder, exactly! Fuck that!
 
Hi, @all. I am struggling to connect a Github app with my Node.js app. How can I do this? I need that popup for authorization. Like in c9.io --> Login with Github/Bitbucket. Thank you!
 

« first day (881 days earlier)      last day (4082 days later) »