« first day (649 days earlier)      last day (4308 days later) » 

1:00 PM
 
ugh i'm trying to show you just post the link
onebox
ok now i'm off for a smoke then worky time
 
yes sure, "worky" time :D
 
@BeNdErR i love this one
 
which one?
 
1:09 PM
It's still funny, but SO's largely fixed that.
 
DenverCoder9
 
hehe
 
@Esailija updated ^_^
^_^
 
> Today, my daughter asked me when was the first time I had sex. After I told her 22 she quickly shouted, "Beat ya!" She's thirteen. FML
 
O_O
 
1:21 PM
@ThiefMaster when did you become a mod? or were u always a mod?
I am not up on recent news :-P
 
Since the last election..
 
@ThiefMaster the OP somehow just removed the "[closed]" from the title and the edit window isnt letting me readd it.
idk even how he removed it without an edit
you can ninja edit the [closed]??
 
Edit grace period i guess
 
@ThiefMaster cool ^_^
 
and it's still in the title
it's just part of the displayed title, not of the actual question title
 
1:25 PM
@ThiefMaster k cool. it got added back automatically i guess
@ThiefMaster That should have been closed as off topic i think...
It could go on one of thos eother sites (maybe)
 
Both OT and NARQ fit IMO
 
k
 
it's a crappy question, i doubt any other site would want it
 
-3
Q: Replace only whole word, not substrings with PHP

João Paulo Apolinário Passosmy problem is for example: I have the words "brasil" and "brasil-carinhoso", I want to replace only "brasil" to nothing, so if I have this list: "pac pac pac brasil brasil-carinhoso pac brasil", if I try to use this: //$_GET['exclusion_tags'] is 'brazil' //$tags_maior is the string: "pac pac pac...

couldn't someone just make infinite regex in there and DOS the server?
 
@ThiefMaster lol
 
1:30 PM
He edited his post
 
wow, three people upvoted him
 
SO needs that last option
facepalm I'm an even bigger idiot..
Too lazy to edit the image... whistles along
 
Hi guys, is anyone familiar with Phonegap?
 
The elusive for-case loop met in the wild: stackoverflow.com/q/11670478/995876
 
lol
 
1:42 PM
@breadbin: Don't use it. Looks horrible compared to native apps.
 
@ThiefMaster I agree completely, however at the moment I'm being forced to investigate it. I don't call the shots, unfortunately.
 
@breadbin I'm familiar with the pain it caused people
 
Good to have my opinion validated though :)
 
This happens on a daily basis. Why are managers so bad?
 
I'm trying to print the result of a function call, which I'm expecting to be a number. It's coming out as [object Object] instead. I'm not entirely sure what's happening here.
And the embarrassing thing is, it's copied and pasted directly from the phoneGap documentation
 
1:46 PM
@breadbin: That means you got some object. Use a debugger to view its contents.
 
JSON.stringify() it if you don't have a debugger
 
thanks @ThiefMaster
 
@Esailija: That one is even worse since he has the exactly same code in every branch
 
lol yeah
no wait
they are different
every branch is different, look carefully
;D
 
1:49 PM
lol that's awesome
i wish i could code like that
@ThiefMaster thanks for the tip, didn't know about that. That's giving me something I can work with.
 
@Zirak ffffffuuuuuuu for that link. and there goes the productivity for the next hour..
 
My pleasure ma'am
 
ma'am? /me eyes the destroy button for your account
 
Oh, sorry, m'lady.
 
@ThiefMaster Help, help! I'm being repressed!
 
1:56 PM
@RyanKinal ThiefMaster was democratically elected though....
I blame everyone but me
 
Well I didn't vote for him
(Not that I voted for anybody... but still)
 
Actually, I did vote for him (but third choice). I voted for the students/professor
 
@ThiefMaster I voted for you. Where's the free popcorn?
 
Anyone here have any idea why I can't draw an arc on canvas? I have copy and pasted about 5 other peoples' code and none of it shows up
 
You might have to copy paste code correctly for it to work
Or, better yet, not copy-paste, but understand the meaning behind it, and then replicate that meaning
 
2:00 PM
$(document).ready(function() {
var canvas = document.getElementById('1');
var ctx = canvas.getContext('2d');
ctx.beginPath(); // <-- start a path
ctx.arc(50, 50, 50, 0, Math.PI * 2, false); // <-- add the arc to the path
ctx.strokeStyle = "#FFFFFF"; // <-- set fill color
ctx.stroke(); // <-- draw the arc
});
 
plus if you copied and pasted about 5 other peoples' code, it's probably not going to come out right, jamming them all together like that ;)
 
well i thought i did understand the meaning, but apparently I don't know anything
 
yeah, do you have a canvas element with an id of 1?
 
yes, i stepped through, and canvas is a HTMLCanvas element
and then ctx is a canvas 2d context
 
2:02 PM
works for me
 
Is your background white by any chance? :P
 
lol
that threw me off first :P
 
Because you're drawing a white circle
Also, strokeStyle sets the stroke style, not the fill style
 
no, i checked that by putting the background of my canvas to black in my css
yeah, those comments aren't mine
 
IIRC, #1 isn't a valid CSS selector
So, wild guess, your canvas doesn't have a black background
 
2:04 PM
@rlemon that is beyond frustrating because that code doesn't work for me when i load it under my environment, it does work in the jsfiddle though
 
what is your 'environment'
 
it has a class
 
are you trying this in IE
 
chrome, im not new
 
putting your getBy in $(doc).ready says otherwise ;) :P
 
2:05 PM
okay, show us your entire code. Dump it somewhere (not here).
 
I kid.... but no really... I don't get that.
 
There's A LOT
would jqueryui tabs have anything to do with it?
 
Just the canvas related thing
Besides making the canvas sweaty, because it's a steaming pile of shit, I don't think so
 
Alright, it could have been my id before
but now it's drawing a circle that looks like it's stretched vertically
 
Goblins are doing that. no solution
 
2:11 PM
@rlemon is there something wrong with the getBy in my .ready()?
 
include you <script></script> before </body> and you generally never need to run your code inside $(document).ready() { }
also if you are using a buncha native DOM functions like the getby's what are you using jQuery for? (just wondering)
 
Oh, i usually use jquery selectors, but just to make sure that i was getting my element
 
@Zirak it is, in HTML5
 
ok if you are just using jQuery for selectors.... document.querySelectorAll() and now you don't need jQuery
or if you need.... Sizzle.
 
I use ajax
 
2:13 PM
And what does html5 have to do with the css spec? The id might be valid html, but it isn't valid css
 
and some of the jquery methods
 
hm
indeed
 
lol I'm just saying... pretty much aside from animations I haven't been able to see anything in jQuery that I cannot get a smaller more specialized lib to do. (ajax et al)
 
&amp; is valid html, but it sure isn't valid js/css
 
Also, we load the javascript before everything else OH NO!!!
 
2:15 PM
anyone complained about performance yet? first page load times?
 
well seeing as most of our styling relies on jqueryui tabs, it's a necessary evil
 
Anyone complained about the demons spawning in the bathroom?
 
The ducks in the bathroom are not mine.
@notbad.jpeg ewwww
 
@rlemon I find myself saying that irl when someone says something about ducks or bathrooms...
I live a sad, sad life.
 
2:20 PM
You say that like I didnt know it
It's so stupid to dick with too
 
any link to an open font website but google font ?
 
Thanks. But I can't find either :s
 
what font are you looking for
 
But truthfully, I find them annoying (or at least not done right.) I hate staring at a contentless page for several seconds without knowing wtf is going on, and then realizing the font isn't loaded yet...
 
2:27 PM
Futura Medium Condensed style
 
We do not have the licence for it
 
Tie my hands with a flaming barb rope and throw me down a well why don't you?
 
then buy it?
 
2:30 PM
@FlorianMargaine it's for a single page. It's why i'm looking for something that looks like
I won't ask for a font licence if it's for a single static page
(which is not really beautiful btw)
 
Why do you care about the font, then?
 
omg this is epic.... last pic then back to work.
 
Just slap on Tahoma and call it a day
 
wtf
 
2:32 PM
Alright guys, here's how chrome renders a context.rect() and a context.arc() imgur.com/MyeK6
 
And ?
 
It's stretched vertically
 
Cause you surely modified your canvas size
 
Messages should have a "hide" button
 
what a joke
 
2:34 PM
I'm getting tired of some guy getting his junk smashed. Funny the first 30 times, starts to lose it after the 200th
 
i.e : your canvas css is like "height:100%" and you resize your browser window. The content will stretch
 
your canvas size should be set in its attributes... IIRC if you do not there are some unexpected behaviours
@Loktar is the best to ask for these question s
 
so i can't use css to size a canvas element?
 
you can but ... oh hell let me find an article
> The intrinsic dimensions of the canvas element equal the size of the coordinate space, with the numbers interpreted in CSS pixels. However, the element can be sized arbitrarily by a style sheet. During rendering, the image is scaled to fit this layout size.
 
lol:
8
A: /me command for chat

devinbThe "Chat" aspect was created for discussion. It was created so that issues which were being hammered out in long convoluted comment threads could be discussed in real-time on in a separate area. This is in no way enhanced by the ability to say "Devin likes ponies". Or even devinb: I feel ...

 
2:39 PM
dont use css for canvas size
it just stretches it like an image
ah @rlemon said that already
 
thanks, duly noted
 
@Zirak but.... but.... skype has it too :(
/me sad now
 
wow
the bookmarklet is buggy now
 
0
Q: CSS3Pie doesn't apply, instead border disappears

LethjakmanI'm trying to get CSS3Pie to apply to a div. I need rounded corners (border included) and a linear gradient for the background. I got it working with another DIV that I just needed rounded corners, but when I apply the behavior htc to this div all that happens is the border disappears. Any easy w...

 
2:57 PM
0
Q: Save data asynchronously php

GarbageToday one of my client required that he need to save the form data to the server asynchronously when it CHANGES ex : i have a form for filling the user details ,including text box,select,radio,check etc... so when i change a value in text box i need to save them back to server. is there any l...

 
@Garbage you put the same link here? wth...
 
3:15 PM
0
Q: Highcharts highstocks - Dual chart axis issue

GregLooking through the documentation for Highstocks, I found this example: Shown here is two series on the same chart, therefore with a linked range selector - this is really really useful, but I wish to display something different which is proving to be very difficult. What I'm looking for is ...

 
@rlemon do you have a HN account?
 
@SimonSarris o/
how's the book doing?
 
@SimonSarris nope but I should make one
 
@GNi33 slowly but surely. About 120 pages in. It's nice to write the canvas performance chapter, because that was something I wanted to write for a long time (was gonna be a little e-book)
 
I'm Twitter / SO/SE and I have linkedin and facebook and stuff but I barely use them. Heck if twitter and g+ were not embedded into my android phone I probably wouldn't use them. (ok twitter is just fun way to kill 3 minutes)
 
3:23 PM
creating all the figures and code examples takes a lot longer than I thought it would.
@rlemon you should make an HN account, lots of good discussion to be had on that site
 
@SimonSarris I suggest go pure ebook
publishers rape you in the end
 
@SimonSarris you going to include the new stuff they are talking about?
like hit testing and such
 
I'm including an "in the future" section that talks about all the methods in the spec that are not yet implemented, like resetClip() (my personal victory)
 
few years back a few of us (from an old job) dabbled on a concept that if we put an open website for people to confess their deepest and darkest secrets then organized them and after one year published a book of secrets... Every single person who posted to the site would not be intrigued to buy the book to see if their secret made it in.
 
3:26 PM
LOL @rlemon thats an awesome idea
 
I mean postsecret already has a book
 
@SimonSarris yea there are some sites similar. at the time there was not (this was 2002 or something)
but then we looked into the publishing costs...... no effing way.
 
ahhh
yeah self-publishing is a great thing
I'm not really writing for the money though
 
lol well for that project we were :P
I might still do it... release it as an ebook.
meh, it's a little side - fun project
 
those are the greatest kind of projects
 
3:30 PM
pproblem is I have too many of them now.
 
that is the greatest state to be in!
 
I need to hold off on starting new ones and actually finish the old ones
 
how can you be bored when you have so much to do
 
ohh trust me.... it still happens.
that is what beer and Diablo 3 are for.
ohhh and the #1 way to kill ones productivity: Women
 
I've started writing about 10 novels, countless short stories, games, libraries, didn't finish tabbing (or learning) scores of songs and I have an entire library (made of books) which I haven't read yet. And here I am, flipping through FML.
 
3:33 PM
@rlemon yes girls are a second job .___.
 
@Zirak i know exactly what you mean
 
(or any significant other, for that matter)
 
See, I was born with this thing. It's called laziness.
 
0
Q: Build process for compiling client JS modules into one script

leviI am currently writing a rather large client-side JS application which is made of of multiple modules, each in different files (before compiling). I am using Node.js to build the final script based on all the individual modules. For the script to work properly all modules must be added in the p...

 
laziness is OK
 
3:34 PM
@Zirak don't even get me started on the thousands of dollars spent on my guitars and stands and amps and pedals etc.... and I know three songs..... not well... from tabs.
 
hehe... SO is a second job... and so are SO's
 
@rlemon You bought guitar*s*? And amp*s*? And why the fuck did you buy pedal(s)?
 
@Zirak Dost thou not know that what is best
In this too restless world is rest
From over-work and worry?
 
@FlorianMargaine Looks nice !
 
girls are a second job until you marry them :)
 
3:35 PM
@rlemon You could, I dunno... donate some of your guitars, amps, stands, and pedals to me :-D
 
or im just really lucky.
 
@Zirak two guitars. (acoustic/electric and electric), two amps (one is a microcube amp) and then a grunge pedal and a strange one that I have never used.
 
@SimonSarris D'oh! --Homer Simpson
 
and stands... I love stands.
and I needed the grunge pedal to play warpigs properly :D
 
So I am making a game at work. A dressup game, but I cant use canvas :(
since we are all on IE8
makes me mad.
 
3:37 PM
So, flash?
 
@RyanKinal hahaha If anything I might sell the electric. keep the acoustic.
 
its a dressup game that teaches you what to wear in certain disasters fyi
@FlorianMargaine no im going to use JS still
just going to use the dom
 
@Loktar ohh so not a 'undress' game? those are more fun
 
screw flash fo life!
3
 
3:37 PM
VML might do OK
@Loktar ilu
 
@rlemon lol
@SimonSarris haha
I had to edit my comment since this is family friendly chat
 
is anyone using developer chrome? This tearing is really bad i.imgur.com/3VSmd.png
 
@rlemon What kind of electric? I don't have one right now.
 
@rlemon I've had the same classical guitar for over 15 years now, a trusty Raimundo, and just last year bought a Fender with a cheap amp (I plug in my headphones), and I've yet to use any pedal or multi-effect. You don't need a lot of crap to rock out
 
@Abhishek thanks
 
3:39 PM
@Zirak It depends on what kind of rocking out. Tell these guys you don't need a lot of crap.
 
@FlorianMargaine :-)
 
(Their lead guitarist has a pedalboard about the size of California)
 
@SimonSarris I am
 
having it working is another story though :D
especially with the code right now
I definitely need to refactor once this db support is in
 
@RyanKinal To play Blues, you only need a soul.
 
3:40 PM
@Zirak Truth
 
see the greatest thing about piano is that there are no accessories, and nobody expects you to bring your piano anywhere to play it for them. It is the most private instrument!
 
^ 18 y/o me with a shag trying to learn how to play it
 
superbowl
a bowl cut that kept on growing
 
how does Bane shave?
 
3:41 PM
(Warning: shameless self promotion follows)
 
@FlorianMargaine i have to make a mobile shop management system today
 
@SimonSarris He doesn't have beard
 
for college project the best part the features they want.
 
@dievardump But one must surely grow!
 
it looks more like a mobile shop inventory managment system .. written in pure C!
oh i am so excited LOL
 
3:43 PM
@RyanKinal Nice!
 
@RyanKinal that oyu ?:
if so wowieee!
 
@RyanKinal nice :)
 
sigh /me finds guitar picture
 
yep, that's me
 
i played in a punkrock-band for some time
 
3:44 PM
@Loktar lol, nice
Join the club :-D
 
did an austria-tour back in 2006 and they made a video about it a few weeks ago
funny times
 
sigh I run sound.....
 
@GNi33 Dude, that's awesome
@SomeKittens That is a noble and necessary job
 
wow im a facebook noob
I cant find my pictures..
 
@RyanKinal its great :-) i am loving it :-) you have a good voice !
 
3:45 PM
I should record another video at some point
 
so who wants to help me write some C ?// please i need it (XD)
 
OLD pic
from like 2000
 
@Loktar wow
how old were you
 
@Loktar Hah, badass
 
18 or 19
 
3:45 PM
hah, thumbs up for the atticus-shirt ;)
 
lol so like 10 years ago :(
 
@Loktar Awesome guitar
 
@Loktar oh. god.
 
Less-than-awesome face
 
3:46 PM
@GNi33 unavailable content
 
have you guys got access to that stuff on facebook?
oh, okay, thougt so
 
newer-ish pic :)
 
I wanna play
but got no time
 
3:47 PM
@Loktar HAHAHAHAHA ohhh wow my red shag doesn't look so bad anymore
 
I like that one better.
 
Agh! Scary man with a gun! :runs:
 
meh, it's not on youtube. okay
 
haha yeah I try to take the most retarded pics
 
@Loktar :-|
 
3:47 PM
esp for facebook
 
u cant still beat me :D
Wait
 
dude I got my knife pic!
I love that one
 
just wait i can garuntee yall will die laughing when u see this
 
2004/05 iirc
Oktoberfest :P
 
hehe
 
3:49 PM
haha nice
"I LOVE ALCOHOL!"
every time I see Oktoberfest I think of Team Fortress 2.
and it makes me want to play
 
hell of a long time ago
 
Guess who ?
 
Everytime I see Oktoberfest it makes me think of Beerfest.
 
Guess whose that ?
 
You before the surgery?
 
3:51 PM
geez that's harsh
 
typical Zirak ;)
 
@Zirak that me , but when i was like 2 my parents dressed me as a girl to take pictures!
so no surgery!
just some makeup!
 
Hey guys... remember how I launched a startup about 2.5 months ago?
 
@RyanKinal nay but tell us more
 
@RyanKinal which one ? well did ya ?
 
3:53 PM
Well, I launched a startup about 2.5 months ago. SMS marketing. slicktext.com
Well, it's profitable.
2.5 months, and it's paying for itself and more
 
how much will you pay me ?
 
that's great!
 
@RyanKinal amazing website by the way and its awesome :-)
 
Thanks
It's good to have a graphic designer as a CEO
 
@RyanKinal Awesome
Your website...it has space for content!
 

« first day (649 days earlier)      last day (4308 days later) »