« first day (1124 days earlier)      last day (3817 days later) » 

2:00 PM
@Zirak What is "object WorkerErrorEvent]"?
 
@イオニカビザウ Zirak is afk: hurricane
 
hahaha ok imgur.com/4MVDdzh and that ends my reddit for the day
 
oh, that's the name
 
@AbhishekHingnikar no yaar
I am giving it a class name
 
@Mr_Green in the first approach the browser will make an array of the list elements
 
2:00 PM
@rlemon hahaha
 
@AbhishekHingnikar gn c u 2morrow
 
i know -_-
 
.list-item
 
its gonna get all those .list-item
then see if they have a next sibling
so that makes it two step
and doing it on every element of an array is stupid
when you can just hide it on first and last which will be just finding first and last element from an array O(1) vs O(n)
 
not sure whats happening here jsfiddle.net/stewbydoo/bncYE
 
2:01 PM
.list-item:first-child will also do the same I suppose
 
:first-of-type
not :first-child
 
that will work on li
 
give the container a class :P
.container > li:first-of-type ?
still faster ;-)
 
you suggest me to go with that instead of .list-item directly?
any source?
 
@Mr_Green common sense :P
how do you think the sibling selector will even work ?
 
2:03 PM
hmm
 
it has to select all elements first and then check if they have a nextElement
then apply the style to that
 
Can you explain clearly on the post which I linked?
 
In the SO chat bot source code where is the expression evaluated?
 
that could help also future visitors
 
No. I am against SO these days
 
2:05 PM
I guess that there is an eval(myExp) somewhere
 
hmm ok
 
besides :first-child , :first-of-type
came in existance for a reason :-)
so browsers can also optimize them
the ~ operator came in existance for different kind of stuff then applying different styles to first and last childs
 
0
Q: Stacked Bar Graph CSS / Jquery / Javascript

MikeI recently stumbled across an extremely helpful Bar graph tutorial: http://coding.smashingmagazine.com/2011/09/23/create-an-animated-bar-graph-with-html-css-and-jquery/ I am now in the process of trying to modify this into a "Stacked bar" graph and have been running into issue after issue the la...

 
.ul-container > li:first-of-type or .list-item:first-child?
 
either one :P
 
2:07 PM
no gain performance then ... hmm
 
it seems like an alias to me lol
fuck i should work
 
sweet. got some extra $$ today
always a good surprise
 
WHAT IS GOING ON
 
$$ means prototype right?
 
@rlemon pizzas all round?
 
2:11 PM
kidding..
 
i would totes throw a pizza party if people were closer
 
why isn't the image falling?
it is undefined, even though ive defined it.
 
@rlemon one day man, one day.
 
I'm gonna punch this thing in the face
 
if (keyPressed) {
    if (whichKey == keys.left) {
        move(movementMode.leftX,movementMode.leftY)
    }
    if (whichKey == keys.right) {
        move(movementMode.rightX,movementMode.rightY)
    }
    if (whichKey == keys.up) {
        move(movementMode.upX,movementMode.upY)
    }
 
2:13 PM
@rlemon may i come to teamspeak now ?
 
you have no code to move down
 
@rlemon
 
@deep get it together man!
 
if (x < 240) {
move(movementMode.downX,movementMode.downY)
}
it does it to emulate gravity
 
lolwut
 
2:13 PM
I have "got it together"
 
i hate cold weather
 
x < 240
oh wait !
 
HRP DERP DERP HERP
 
@deep no, no you really haven't
 
No wait. x is a variable.
Its should be called y, but its assigned to the y value
 
2:14 PM
Is it still a string or a number?
 
y = img.style.top;
y = "3px" do i parseInt
 
@mikedidthis it's a trap
 
Damn. I really havent got it together.
 
^
 
@FlorianMargaine sadly, you are right.
 
2:17 PM
does this make sense to you guys

if(this.x + this.r > parent.x +parent.r || this.x - this.r < parent.x - parent.r){
this.vx = - this.vx;
}
if(this.y + this.r > parent.y + parent.r || this.y - this.r < parent.y - parent.r){
this.vy = - this.vy;
}
this.y += this.vy;
this.x += this.vx;
 
this.vx/y *= -1;
^ just better
 
truth
 
!!> Math.pow(0, 0) === 1
 
@イオニカビザウ [object WorkerErrorEvent]
 
@stewbydoo bounds check?
 
2:18 PM
yea
 
is chat transcript ever removed ?
 
/= -1 // because fuck you, that's why
 
it works like half the time
 
@AbhishekHingnikar no :P
 
parent.y - parent.r?
 
2:19 PM
IT WORKS!
 
wouldnt it be parent.b
 
2
Q: Why Math.pow(0, 0) === 1?

イオニカ ビザウWe all know that 00 cannot be calculated in the world of mathematics. But, javascript says that: Math.pow(0, 0) === 1 // true and C++ says same thing: pow(0, 0) === 1 // true WHY? I know that: >Math.pow(0.001, 0.001) 0.9931160484209338 But why Math.pow(0, 0) doesn't throw any error? Or...

 
@CapricaSix are you chinese?
 
@Loktar center position
 
top bound
 
2:19 PM
is r radius or right?
 
@stewbydoo Use with. >:D
 
center of circle is x,y top bound would be y - r
 
I guessed radius
 
ah I assumed right
 
:P
 
2:19 PM
I have a lot of questions to post about JS and C++ today! :-)
I am so excited!
 
radius is correct guess
 
Math.pow(0, 0) === 1 // true
 
probably should change that for readability
 
you're still doing a rect check
not a radial check fyi
 
2:21 PM
search for variable-phobia in transcript
 
dx = x1 - x2,
dy = y1 - y2,
d = Math.sqrt(dx*dx+dy*dy)
if( d < obj1.radius+obj2.radius ) {
    //   HIT!!!
}
 
@stewbydoo do a distance check ^
 
I'm happy i've finally memorized these things :)
ohh also @Loktar jsfiddle.net/EEfFJ/show
requires webcam
I know you like having fun fucking with colours ;)
 
Aug 8 '11 at 13:48, by Darkyen
@Raynos this might sound crazy but any guidelines on how to connect php to Node
 
@rlemon dont have a webcam at work
 
2:25 PM
Dear jesus i have been reading my stupdityu hahaha
 
ahh, well it kinda warhols the image
 
son of a
 
then the filters are the colour manipulations
 
i saw one you posted last night
4 colors or something
the one on codepen didnt work btw
forgot to mtn it
I was heading to bed
 
@rlemon hmm
thats friken awesome stuff :D
 
2:31 PM
how do you detect right clicks?
document.onmousedown = function () {
            keyPressed = true;
            whichKey = event.which;
            console.log("You Clicked the mouse. The Char code is:" + whichKey);
        }
that doesnt detect right clicks
 
i dont think distance check is what I want
 
@deep in the mousedown
 
like that?
 
@deep thatll work
 
2:33 PM
@rlemon i am kind of shocked by the second one though ... u see how distinctly it shows my skin ?
 
1/2/3 left, mid, right
 
@Loktar works for me :/
strange.
 
@rlemon weird yeah I even had my cam hooked up
it never prompted me on codepen
 
@Loktar what always irked me was .which and .button are 1 index off from eachother
@Loktar hrm.. I will add a button to initiate the request
 
oh really?
I didnt know that
 
2:35 PM
Thanks
 
@Loktar yup
button is 0/1/2
I assumed they would be the same at first. screwed me for a little
 
love the transitions
 
that is cool
 
yeah I bet they used svg for the images
I've seen a lot of pens do that lately
and animate the draw in effect
 
damn all of that sexy svg
 
2:38 PM
> This is offset somewhat: the PS4 can broadcast all game audio (and voice chat) to the audio/mic jack on the DualShock 4, which is compatible with all headphones and mobile headsets using 1/8th inch audio adapters — though enabling game audio output on the Dualshock 4 disables all audio via HDMI and optical out.
wow wtf havent seen that since the 3DO
sound inputs on the controller that is
 
doesn't the WiiU have those?
yea that gamegear like controller has an audio jack
but idk, that is like cheating right?
 
@rlemon ah it might on the wii-u
I always forget about that system
 
bye
 
and yeah handhelds dont count they all should have an audio jack :P
 
well it is labeled as a controller ;)
I've never used the WiiU so I have no idea
 
2:44 PM
the gamegear?
 
no the WiiU gamegear like controller
 
the game gear is just a sega handheld
oooooh
 
looks like a gamegear if you ask me
 
I thought you were talking about the gamegear
haha yeah the wii-u one counts
since it is a controller
requires the system to play
wii-u is so friggin weird
 
@Loktar nono, the WiiU just has like 4 controllers so I was specifying which one
 
2:45 PM
Nintendo has done TERRIBLE marketing for it..
 
and agreed, the WiiU is strange
 
makes me sad I love Nintendo.. but they are failing imo
on next gen that is. Thier handhelds are still killing it
 
the Wii was innovative. but now they need to shift focus on something else.
or at least make sequels to the games we all loved and stop brining out stupid ones
 
yeah definitely not sure what but thats why they get paid not me
next gen is so weird now. Looking at the PS4 stuff, and sure its cool..
but the PC kills it
 
for sure.
 
2:47 PM
o/
 
Before when consoles came out they were better than the pc for a bit, at least 6 months to a year
 
but I am sad having made the recent realization that the next gen systems will be around for ~5-7 years at least.
which mean they will probably drive graphics in mainstream games over that period
 
haha yea if they do that I wonder how long they will last
Lots of people are coming around to the PC
lots of dev companies that abandoned it for console games
even MS has said they are going to dedicate more to the PC now
 
but the games that I like that are available for PC and Console (today) seem to be limited because of the console
 
the pc gaming market surpassed the console one this year, so people are taking notice
 
2:48 PM
well, I hope that does change.
 
@rlemon yeah in most cases. But some for example BF4 arent
 
currently it doesn't feel that way
 
BF4 was the first game in a while that said FU to the consoles
and made the PC version much better, because they could
 
well like I said, I hope this is the forward motion
I would like to not have to buy a console just to play a game or two
 
it is for sure. Indie devs are pushing it too
Minecraft is so enourmously popular now
and it was a pc game first, and is still much better on the PC
gets updates sooner, has more features, ect
 
2:51 PM
I'm not opposed to buying a console.... if there were a good number of games I would play on it.
 
so stuff like that will continue to drive the pc market
@rlemon yeah the PS3 has a shitload of good exclusives thats why I got two lol
 
but I can't even get through half my pc collection now that i've found how awesome buying bundles are
 
and I imagine the PS4 will still too
yeah thats another thing pc has going for it.. amazing prices
 
like $100+ in games for $5
jesus how can I say no
 
haha yea
 
2:52 PM
I pay $12 for a pack of smokes!
I literally cannot say no to a deal like that
 
digital hoarding
 
$12 for a pack of smokes? god
 
@FlorianMargaine yes they are expensive for premium brands in Canada
I can get some that taste like a camp fire for like $7
 
I paid 60 euros for tobacco 2 months ago in Tunisia
 
2:53 PM
but I would prefer not to
 
haven't bought smokes since then
 
@rlemon Stop smoking! You can buy everything on Steam then!
 
^
 
and I smoke like 20 cigs/day
 
easier said than done people
 
2:53 PM
haha sorry for giving you crap about smoking I know to some extent how you feel
my parents smoked my whole life, my dad just quit 5 years ago
mom still smokes
 
I gave up smoking after my first time with a cardboard tube.
never again
 
for some people its hard as hell to kick the habit
 
@Loktar I can't remember if you ever smoked, but basically it is VERY hard to quit an addiction unless you are actually convinced you want to quit.
 
no I havent, so i dont know what you're going through, just seen my parents try to quit many times
 
for most people this means they are disgusted in their own habbit. For others it means they have a stronger will to not smoke than the addictions cravings will them to smoke
 
2:55 PM
my dad finally did cold turkey when they detected the start of emphazema
 
for me it always comes back to, well, right now, I still enjoy some aspects of smoking so every time I try to quit will power fails me
 
Yeah, I know how you feel. I'm addicted to breathing.
 
@KendallFrey just stop cold turkey dude
 
I will actually get a few weeks / months in then go out with some friends or something and think... "wait... why am I sitting here wishing I was smoking and not. I'll just smoke"
 
you will fell so free afterward@
 
2:55 PM
my mother finally quit smoking this year... after it nearly killed her
 
@Loktar Tried. Gave up after about a minute and a half.
 
so I plan on quitting, when I'm ready. I know it is bad for me (i'm not a moron) and I know there are aids to help me quit ( I use them ) however for me personally that hasn't been enough.
 
@KendallFrey wow I would call you a quitter... but I dont know if thats the proper term for someone who quits trying to quit something
 
It is a slow road convincing yourself you don't need something your body tells you you need
 
@Loktar If you try to fail and you succeed, have you failed or succeeded?
 
2:57 PM
hi guys I need to know how to pass an integer using url.Action
can anyone help?
 
@rlemon I quit. When I say quit, I just moved my addiction to the e-cig.
 
I tried the e-cig, but I think I just don't want to quit.
 
@Hanady Isn't that ASP.NET?
 
now on a related kinda funny medical note: I quite most recently for 3 months. after the first month I was having trouble breathing (I already have chronic bronchitis) so I went to the clinic - quitting smoking indirectly gave me asthma... Started smoking again few weeks later and no longer needed my puffer
 
@KendallFrey yes it is
 
2:58 PM
Try asking in the C# room
 
@FlorianMargaine yeah you have to want to quit. Otherwise you already lost.
 
^ my current problem
 
I did it based off finances. A 20 pack here is £7.50. The e-cig was £20 for around 100 smokes
 
@KendallFrey but i'm using url.Action in javascript
 
I've tried to quit for other peoples reasons, not my own
 
2:59 PM
anyway i'll ask there
 
so i always relapsed
 
@Hanady What? I thought that was C# or Razor
 
@mikedidthis thing is, I've only spent 60 euros since 2 months...
 
Does JS have Url.Action?
 
@KendallFrey it's Razor
 

« first day (1124 days earlier)      last day (3817 days later) »