« first day (902 days earlier)      last day (4045 days later) » 

4:00 PM
Dirty trick, don't do it. The if is much nicer.
 
Yea, I would defintely be confused for a minute if I actually saw that in some code
 
yes let closure do it for you, its harder to read unless your whole team thinks like you
 
@Zirak I've just read your car answer. How many downvotes did you get for that ?
 
link?
 
user2157210
@MirkoCianfarani where are you from?
 
4:00 PM
Just read that Zirak speech for the first time :p I like it, but the logic is still lacking
 
@dystroy Only the one, IIRC
 
@Nexxpresso Italy
@Nexxpresso why?
 
pretty much saying we should destroy all microchips and go back to huge mainframe computers
 
1 message moved to recycle bin
@jAndy I hate that exaggeration
 
@MirkoCianfarani and you do realize megaupload was shut down right...?
 
4:02 PM
"oh so if I shouldn't use the jquery abstraction why don't we just code in assembly"
 
I know its exaggeration, but I was just complaining about the argument logic behind, not saying I don't agree on the point
 
ladies morning
 
:p
 
It's not the same thing at all. First of all there're magnitudes of abstraction, and then there's direction of abstraction.
 
@Shmiddty morning
 
4:03 PM
Abstractions can stack and overlap.
So what I said at the end was really "use your brain".
 
Oh, there's actual ladies. I guess that happens occasionally.
 
can I read this speech? :(
 
@twiz no!!!
Because , before, @twiz , Filesonic pay to each download!!!
 
I thought you were talking to me since you said ladies.
 
user2157210
@Zirak y u hate on me
 
Yea, but.. you brought up specifically the cars example, and you're right. Nobody can do a lick on his new car he buys today, engine and electronic are magnitues "abstracted" from the pure engine of 50 years ago
 
@jAndy He didn't say you have to understand the chemical reactions that occur within an engine and how gasoline came into existence to be a mechanic.
 
Filesonic pay ro me 0.03 dollars a download
 
but anyway, its still pretty much the same engine
where you could repair stuff yourself
 
@Nexxpresso Because you were being a retard
 
user2157210
4:04 PM
@MirkoCianfarani great 3 cents
 
user2157210
@Zirak I still am but no reason to hate!
 
In one mounth there is good 40 or 50 dollars
now
 
user2157210
oh great 50 dollars a month
 
which is the best and last host.file?
 
user2157210
have you thought about working?
 
4:06 PM
@MirkoCianfarani stop saying that. Its barely English. But try sharecash?
 
@Zirak ooooh right, I remember this
 
Fbi did miss this opportunity
 
user2157210
fbi?
 
Yes, the FBI stole megaupload
 
And after closed filesonic
and File serve
@twiz whati is the sharecash
 
user2157210
4:08 PM
now FBI cant make 50 dollars a month?
 
Internet is no more anonym and a free place, deal with it
 
@MirkoCianfarani File hosting? Dropbox, mediafire...
 
And yet it is still just as easy to find anything you want online...
 
user2157210
not if you got no best and last host.file
 
I avoided megaupload like the plague
 
4:09 PM
@MirkoCianfarani Not entirely sure, but they pay you when people download your shit I guess
 
user2157210
@MirkoCianfarani Zirak has best and last host.file
 
@Nexxpresso no I closed this old hostfiles and I don't continue the work because the Filesonic
 
@Shmiddty megavideo was nice though
 
i am suprised they took out megaupload, but all the big torrent sites are still out there
 
@Zirak jaaaaaaaaa i want last hostfiles
 
4:09 PM
which account for the majority of downloads
 
...what does that mean?
 
piratebay is the best and last host.file
 
user2157210
@Zirak Karma!
 
@PrakashChennupati The torrent sites don't actually distribute content
 
user2157210
@MirkoCianfarani You have to ask him nicely he doesnt like to give it out
 
4:10 PM
For all with torrent I can't work because Torrent pay for me
 
Is it delayed april fool's day?
 
excuse
no
Torrent not pay for me
 
@MirkoCianfarani I wouldn't either.
 
ME wants best and last host.file no pay torrent FBI
 
@twiz thepokerbay.org also went busto :(
 
user2157210
4:11 PM
Zirak does not want to give us last and best host.file
 
but after what happened to my co-worker, I guess I'll not touch torrents any longer
 
@jAndy I've never even heard of that, but I'm pretty sure thepiratebay isn't going anywhere
 
user2157210
torrens arent safe for a long time
 
user2157210
luckily there are streaming sites
 
very soon... the system... haz us :p You'll get no content for free or somewhat illegal, unless you PAYYYYYYYYYY
 
4:13 PM
@jAndy Isn't it only illegal if you are letting people download from you?
 
Zirak monopoly dictator hitler last and best host.file
 
user2157210
@twiz thats how torrents work
 
@twiz lol .. no, its illegal to download copyright protected stuff and watch it also
 
@Zirak you are a pretty good writer
7
A: Do I have to learn html and javascript to create web applications?

ZirakLet's consider some possible solutions to the scenario "I need to do some web stuff": Hire someone else to do it Use an elaborate framework that magically transforms non front end stuff into front end stuff (html, css, js) Do it yourself We will ignore #1 because we're awesome like that. We'r...

 
@jAndy Might be true, but are they really going to take you to court over like a $20 movie... haha
 
4:14 PM
Now There is the adf.ly that it pay 5 $ for 10000 visitor
 
Pretty sure you have to let a lot of people download from you for anyone to care
 
its a good call for them, you'll pay a whole lot more if they really want to bust you
 
user2157210
@twiz no its just you have to be on their list
 
user2157210
even 0.1 kb can be enough to just sued for using torrents
 
@SimonSarris I used to do custom myspace designz. God the spaghetti code was awful.
 
4:19 PM
@Nexxpresso for you engadget.com/2012/01/23/…
 
!!/refresh
@SimonSarris heh, thanks. Your answer there wasn't so shabby
 
!!/live
 
@Shmiddty You do not have permission to use the command live
 
I hate it when people spell my name wrong.
The only correct spelling is Corey
every other spelling for the name Corey is wrong.
When someone asks me "How do you spell your name?" I respond: "Correctly"
 
"Excuse me, do you know what time it is?"
"Yes"
Smartass.
 
4:25 PM
"Excuse me, do you have an extra cigarette?"
>"Yep"
!!/mustache Chris
 
How strict should the /mustache url check be? Starts with http, ends with png|gif|jpe?g good enough?
 
Does mustachify.me work with urls that don't have an extension?
 
Most likely
 
@Zirak Sounds good.
@Shmiddty Yeah, it does
 
4:28 PM
Perhaps any url would do then? If no extension is present, tack on ?fake=.jpg to the end of it
 
#.png works and is faster to type
 
fair enough
 
Checking whether the argument is a url is the problem.
One can use a labyrinthine regexp, but I'd rather keep it simple.
 
Also, it'd be nice if the bot accepted @UserName
 
Support was removed because double pinging sucks. You can use the autocompletion and remove the @.
 
4:30 PM
@Zirak Yeah, that's what I've been doing. Didn't consider the double-ping. Makes sense.
 
@Zirak there were many many issues with getting gravatar images working with mustachify.me consistently.
which is why I proxy the image to lemonmeme for the userscript
tl;dr url vars suck
 
Pray tell?
 
http://www.gravatar.com/avatar/e5b801f3e9b405c4feb5a4461aff73c2?s=64&d=identico‌​n&r=PG say this is your url... the d=identicon is required to not show that stupid image below by the bot
 
!!/mustache Nexxpresso
 
4:32 PM
ah, with the imgur thing.
 
but only one of the gravatar url vars are recognized because it is a var itself.
 
That can be dealt with as well.
 
so img.png?foo=bar&biz=bang biz=bang is ignored
 
4:33 PM
It looks like you can just strip the url params from gravatar: http://www.gravatar.com/avatar/e5b801f3e9b405c4feb5a4461aff73c2
 
@Shmiddty then you get 80 size and if no image exists you get that stupid thing above vs the generated images
mustachify.me works best on images between 128 and 256 px
^ from personal testing
 
yeah
@rlemon have you tried url encoding?
 
<?php
if( isset( $_GET['img'] ) ) {
        $img = $_GET['img'];
        $str = "http://www.gravatar.com/avatar/$img?s=128&d=identicon&r=PG";
        header('Content-type: image/jpeg');
        echo file_get_contents($str);
}
?>
easy enough to just do this
 
quick, h4x him
 
:P
 
4:37 PM
!!>urlencode("http://www.gravatar.com/avatar/e5b801f3e9b405c4feb5a4461aff73c2?s=‌​240&d=identicon&r=PG")
 
@Shmiddty "ReferenceError: urlencode is not defined"
 
secured
 
!!>encodeURIComponent("http://www.gravatar.com/avatar/e5b801f3e9b405c4feb5a4461a‌​ff73c2?s=240&d=identicon&r=PG")
 
@Shmiddty "http%3A%2F%2Fwww.gravatar.com%2Favatar%2Fe5b801f3e9b405c4feb5a4461azwnj%E2%80%‌​8Bff73c2%3Fs%3D240%26d%3Didenticon%26r%3DPG"
 
4:39 PM
nop!
fuck...
broke my script
 
lol
 
 
!!>encodeURIComponent("?s=240&d=identicon&r=PG")
 
@Shmiddty "%3Fs%3D240%26d%3Didenticon%26r%3DPG"
 
fixed.
 
4:47 PM
on a mobile site, does it seem unreasonable to not include a "back" link?
people aren't too stupid for browser back buttons are they?
 
anyone else thinks that the FF20 download window is way too bloated?
(with the history/bookmarks pane on the left side)
 
just opened FF and now I remember why I stopped using it..
 
Anyone know a shorthand to remove a decimal place from a float? I'm assuming there's a bitwise operator solution
 
A shift? nvm, I'm stupid
 
var foo = 3.534; var bar = ~~food;
foo, not food
i know it's lunch time when...
 
4:54 PM
@eazimmerman That floors the number
I would just want to remove the 4
 
removes the decimal from it
ohh
 
!!> (3.534).toFixed(2)
 
@dystroy "3.53"
 
@dystroy too many chars
 
@ThiefMaster actually I think the fact that its a window and not a tab is the worst part...
 
4:55 PM
@Shmiddty I don't think there's a trivial way to do this.
 
!!/tell Shmiddty mdn toFixed
 
i disagree. for that part i prefer a window
 
@zirak do you get what Shmiddty wants ?
 
@dystroy yeah, and there's probably no way to do it in the way he wants.
 
4:57 PM
Hello all, to provide security I would like to mask the url.
 
He wants something like #x, where # is a magic operator
 
just cast # as a function that uses toFixed
problem solved
 
It's for code golf
Also # is an illegal token
 
Hello all, to provide security I would like to mask the url.
Example: www.example.com/login.jsp
I want to display like www.example.com/login
can any1 help with this
 
@ThiefMaster I only find chrome opening in a tab to be annoying if I have like 50 tabs open ha
 
4:58 PM
@SunilBN You just want to hide the fact that you use Java.
 
@SunilBN It won't provide any security at all but you may do it with .htaccess
 
I'm not hiding anything..
 
But really, anybody saying that hiding the fact you use jsp provides greater security is full of sh...
 
print(Math.PI.toFixed(14)) is 6 characters too long
 
I use java of course
 
4:59 PM
Code Golfing: Bad coding = Good
 
@dystroy : how to do with .htaccess
can u give me an example?
 
!!/tell SunilBN google ".htaccess hide extension"
 
Server error (status 500) occured (message probably too long)
 
@dystroy Thanks!
.htaccess is for php
3
Q: Hide .jsp extension in JSP project using servlet mapping

rameshI am writing an application in JSP, and I need to remove the ".jsp" extension from the URL. For example, I need: http://example.com/search.jsp?q=stackoverflow To be: http://example.com/search?q=stackoverflow I know that this can be done using the ".htaccess" file, but I need some other way....

I found this for jsp
 
Yes, that's a solution too. Simpler in fact.
 
5:05 PM
pedant: htaccess is for apache (origins)
now iirc they are handled by most popular webservers
htaccess has nothing to do with php
 
@rlemon I'm not sure you can use them on tomcat/jboss/etc. without some kind of proxy
 
possibly.. but that doesn't negate the fact it has nothing to do with php and everything to do with the web server itself
 
Oh, I hadn't seen the ".htaccess is for php" sentence. Then of course. And that's not pedant.
 
how I love my mod_rewrite
 
I use it too. And not with PHP.
 
5:08 PM
!!s/pedant:/false:/
 
@rlemon false: htaccess is for apache (origins) (source)
 
@rlemon Command cool learned
 
!!/tell phenomnomnominal cool
 
5:12 PM
@rlemon is it possible to embed the video?
 
only if I write a new bot command
user taught commands won't allow it due to the pingback
 
Donald Glover got his rapper name from that thing
i.e. Childish Gambino
 
!!/refresh
@JanDvorak, @BenjaminGruenbaum Added url support to /mustache
 
5:27 PM
What closing reason to use ?
-3
Q: Faking the current page domain name

Navi GamageI'm trying to change the domain of my web page into a virtual domain name which does not exist or does exists. Simply I would call it faking the real domain name. If I'm on http://mywebpage.com/index.html, and the fake domain I want to change is http://fakedomain.com/ when I run javascripts cod...

 
user2157210
ok forgot power supply of my laptop
 
user2157210
no one at work
 
Too localized because anybody able to program should guess it's not possible ?
 
user2157210
busses do not drive anymore
 
user2157210
no pc for the whole weekend??
 
5:32 PM
@Nexxpresso looks like you're taking a little walk :P
 
@dystroy probably off-topic
 
or borrow a bike?
take a cab
 
Buy a yacht
 
WebSocket best practices - Should I have an event for everything? For instance, in Kittens Chat, should I have separate events for a text message and an HTML message?
 
5:35 PM
JS doesn't have try/catch/finally, does it?
 
it has try catch at least
 
@KendallFrey Google it
Or better yet, try it
 
@KendallFrey no finally but you can program it in :P
 
then catch it..
 
5:37 PM
!!/tell Kendall mdn try...catch
 
@Kendall https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Statements/try...catch
@Kendall https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Statements/try...catch
 
@rlemon thank you sir
 
@SomeKittens I'd say "yes".
 
try { hooker(); } catch( std ) { return false; /* phew */ }
^ my fav try joke
 
@Zirak Good, because I'd say no.
 
5:38 PM
@rlemon according to mdn it has finally but i suck pretty hard
 
throw hooker
 
@KendallFrey But nobody cares about your opinion
4
 
finally{ regret }
 
If they didn't care, how come they argued with me for over an hour yesterday?
 
@JohanLarsson my bad you are right. I just don't see a point to it in js.
but eh. cool i guess?
 
5:39 PM
@KendallFrey @Zirak FIGHT!
 
throw new Hooker(); // old one got lippy
 
@KendallFrey Why no? Should I include a flag or something?
 
TBH, I really didn't understand what you meant by separate events.
 
0
Q: How to round Corners on iframe

onTheInternetAnd before anyone links to it, here is the example I was trying to follow. rounded iframe I literally copied the code exactly, and when i load it up in all different browswers, the edges are still square. After looking at the source code, I did notice this line .TopLeft, .TopRight, .BottomL...

Too Localized
 
WebSockets are streams.
 
5:42 PM
his shit doesn't work because he didn't download the resources
 
Also, finally is 'broken' in JS.
 
holy crap, look at the accepted answer: stackoverflow.com/questions/15839857/… Google translator?
 
@KendallFrey socket.on('message', VS socket.on('htmlMessage', and socket.on('textMessage',
 
user2157210
@rlemon next electronic store 40 minutes from here only 1 laptop power supply 60$
 
5:44 PM
@Zirak ty
 
@SomeKittens Are those user-defined events?
 
No, me-defined events
 
@Nexxpresso how far away is your work dude?
 
user2157210
@rlemon 1 hour walk but no way to get in
 
@SomeKittens Well, yeah :J
I had no idea that was possible.
 
5:46 PM
grab a rock along the way
if your boss bitches just tell him "48 hours with no minecraft and I would have come in monday shooting people"
 
@copy ah yeah I saw that. Internet conspirators are fun.
 
Don't be evil
10
 
@SomeKittens I can't find documentation on defining events like that. Link plox?
 
It'd be cool to have a WTFPL license with another condition: "This software must be used for good and not evil".
 
5:50 PM
Then it's not a WTFPL license anymore.
It probably wouldn't even stand up in court.
 
Who cares?
 
No one cares.
 
!!/eval global.whoCares = "everyone"
 
5:52 PM
@canon "everyone"
 
user2157210
@rlemon i asked all neighbours
 
user2157210
the last one had a universal adapter
 
user2157210
I GOT TEH POWER
 
@Zirak this particular licence infuriates a lot of people
 
@KendallFrey socket.io
 
5:54 PM
Oh, that's not websockets, is it?
 
I remember having defended it as morally perfectly right while most OS people were yelling basically that OS software should be free for anybody wanting to do evil too. I have a kind of similar (shorter) licence for one of my freewares.
 
@Kendall It is
 
@dystroy oh man...it's amusing (and a bit scary) how people take these kinds of things
 
@AmaanCheval Then how come is it not on MDN?
 
@Zirak The "problem" is that it limits redistribution.
 
5:58 PM
According to the FAQ, it doesn't even use WebSockets is Flash is available.
 
Personally I think that we're many enough to want to participate only in OS for not evil. Even if it's not really concrete, it could be an important moral position. After all, we code for free. [I should learn to write English. Even I can barely understand my sentences... ]
 

« first day (902 days earlier)      last day (4045 days later) »