« first day (790 days earlier)      last day (4143 days later) » 

12:24 AM
If I'm making a JS vanilla drop-down and I have a mouseover event attach to the list item, does this look like the right method to show the LI's UL? My UL is inside my LI.

`this.ul.style.display = 'block';`
 
I guess I could do this.childNodes[0].style.display
 
this.getElementsByTagName('ul')[0].style.display
 
Use CSS
 
i wish i could
 
12:32 AM
The target browser doesn't have css capabilities?
 
class assignment
 
...?
ah
Tell the teacher some random internet guy with an awesome 'stache told you to use css
It'll be cool
 
lol
 
lol
 
@Zirak Yes, he's obviously using lynx
 
12:34 AM
.htm files only
 
Which is a good browser
@Howdy_McGee you should start using lynx
 
lol this is great
 
right, I really do hate style
 
> Do you get more code from StackOverflow than you write on your own?
 
Ahoy hoy
@Zirak Did you miss me? Don't lie.
 
12:37 AM
erm, who are you?
 
I'm you, 20 years from now.
 
Then how could I have missed you?
 
Don't worry yourself with technicalities.
 
@Howdy_McGee My approach to class assignments was to just make something far more complex than it needs to be... that way no one will ever bother looking at how all of it works..
 
Future me, you don't make much sense. Besides, living at 112? Must be shit.
 
12:39 AM
Yeah, heads up. You suffer a fairly severe head injury playing table tennis in 2018.
Also, she's not cheating on you. She's secretly running a fantasy baseball team.
 
That's how this chat looks in lynx
 
I just got a scam text telling me to put my information into a form... I may have to spam the living shit out of them...
oh... they're affiliate marketers... interesting...
 
@Esailija whaaa?
:P
 
I actually figure that the outsourced Indians do their code like that based on many questions I see daily on SO: P
 
!!/choose "game" "movie"
 
12:50 AM
@rlemon movie
 
the bot has spoken
 
game, or the game
 
!!/tell Esailija guesswhat
 
@Esailija you just lost THE GAME
 
:(
 
1:09 AM
The Game's still goin'?
Anyone know of a decent OSX-friendly way of testing web projects on IE?
 
Would something like this be a useful command?
 
!!/google "current time in london"
 
@Zirak a bar chart showing 2 bars: no (100%), yes (0%)
 
Wasn't sure if that would display it in the results...
 
1:17 AM
I'd love a weather command and a currency converter, but haven't found a compatible API for any of those yet
@copy Where is your research data?
 
63% is from experimental tests on mice
A chart generator for the bot would be nice
 
...?
 
Exactly
 
We have a deal
 
@Zirak just curious, the bot is all JS, right? so what is the bot running on?
 
1:23 AM
Fuel
 
gasoline powered?
 
Semen
And a treadmill
 
What are the carbon emissions like with semen?
is it an ecofriendly sex-bot?
 
There's some concern for global and personal warming
 
0.o
 
1:24 AM
haha
 
Is slippage an issue?
 
but really, I mean is there actually a server involved, or is like just running in a browser or something? ha
 
Some clients report compatibility problems, especially with the more complex models
 
@Zirak somehow I missed that... ha
and my question is answered in the first sentence....
 
0
Q: Find the new coordinates using a starting point, a distance, and an angle

dqhendricksOkay, say I have a point coordinate. var coordinate = { x: 10, y: 20 }; Now I also have a distance and an angle. var distance = 20; var angle = 72; The problem I am trying to solve is, if I want to travel 20 points in the direction of angle from the starting coordinate, how can I find what ...

 
1:35 AM
ggrr, I want to make some changes, but I need to have the bot run for awhile...need to collect command usage stats. See which commands aren't used, which commands need to be pimped, how many goats were teleported, etc
!!/info
 
@Zirak I awoke on Thu, 13 Dec 2012 22:57:42 GMT (that's about 2 hours ago), and got invoked 12 times, learned 9 commands, but forgotten 2 commands
 
@rlemon ^ so no refreshes pl0x
 
!!/teleportgoat
 
@twiz Command teleportgoat does not exist.
 
!!/learn teleportgoat "$rand(1,100) goats teleported; awaiting further instructions"
 
1:40 AM
@Zirak Command teleportgoat learned
 
!!/tell twiz teleportgoat
 
@twiz 67 goats teleported; awaiting further instructions
 
//FUN QUIZ TIME: guess what's the purpose of this babe:
str.replace( /(something.*)something\s*(.*)/, '$1$2' );
No takers? Just talking to myself? ok :(
 
Wait
Remove something which is also at the start and in between something and keep the rest
 
Not sure I completely got that, but nope
Simpler
 
1:50 AM
A B A C -> A B C
 
Yep (the regex is incomplete behaviour), so simplify what you said
Actually, just slap a g at the end of the regex and the behaviour will be complete
 
That's also what I said, how could you not get that >:-(
 
!!> 'this is something and something else without something starting stuff something'.replace( /(something.*)something\s*(.*)/g, '$1$2' );
 
@Zirak "this is something and something else without something starting stuff "
 
bah, forgot the g...
bah, what?
...did I hallucinate that it worked?
Anyway, purpose was to delete all something in str, but keep the first instance
 
1:55 AM
Why not split by something and then take every second element starting at 0
 
Yeah, it working globally was purely my imagination.
Which is weird
 
Or something
 
That could work. But regexp.
 
insert xkcd comic about regexes here
Implementing quicksort in brainfuck is pretty impressive
 
2:03 AM
anyone ever use chrome nanny?
its quite useful for reminding you not to waste your time doing stupid shit
 
pfft, like we'd ever do that
 
SO contributes decent portion of the time I waste...
which isn't much of a sentence...
 
 
ok... I think now would be good time for me to block myself from SO...
or to just develop some self-control...
but I prefer the lazier option
 
yeah I have the same problem
 
2:08 AM
What are you even doing on SO all the time ?
 
answering canvas questions :D
at one point I had answered 11% of all canvas questions ever asked
 
@copy not much.. .but I seem to just end up in this chat room like 50 times a day out of habit
even if its for like 30 seconds
 
That's not bad
@ both of you
 
yea, except then I end up doing the same with like facebook/my email/some stupid youtube video
I have occasional fits of distration
where I visit like 20 sites for really short periods of time
at which point I forget I already looked at half of them and end up doing it again... haha
 
Day six: 'The hell?  Who mails a bobcat?'
2
Let's do it
 
2:23 AM
Most items for $1 on ebay with free shipping are phones with a contract
... and tiny car parts
 
I just find paper
And spam
 
That's like 20 million Reichsmark
 
 
2 hours later…
4:49 AM
Hello G M...
 
5:05 AM
Looking for porn? Google makes it tougher!

CNET reports the world's leading search engine made the changes Wednesday night. The biggest changes can be noticed when using the "SafeSearch" option in settings. But in a Reddit thread Thursday morning, some users said images were blocked even with "SafeSearch" turned off "The changes led to an explosion of complaints online about censorship and users demanded explanation from Google."

Our Curator Subodh Brings The Full Story, Here: http://bit.ly/GoogleCensored
Uh Oh , google will lose its edge now :-/
 
@Abhishek ha that's really odd for google...
I wonder if it was accidental haha
Ironically, I'm sure a ton of people have searched for porn simply because they want to know if it really is censored...
 
@twiz :P
Madness that is madness , they cannot ban porn I mean beginning with porn they will soon start to
ban other things too for their financial benifit , slowly and slowly all you will get is where google wants you to go
 
JESUS FUCKING CHRIST!!! they actually did....
they may have banned porn, but this just raped my mind
hahaha so weird... type in "pussy", no porn. type in "vagina" lotsa porn.
I guess they didn't censor vulgar images, just vulgar search terms...
 
Still :-/
 
@Abhishek yea, makes no sense
 
I think Google is falling apart
 
lol
Were you guys already talking about Google when I got here?
 
I am having a lot of fun figuring out what words they find acceptable...
 
And I coincidentally posted a Google fail at the same time?
 
@andrewjackson clearly haha
 
5:17 AM
I swear I'm psychic, I had the urge to go here and post that right now as I found it lol
 
@andrewjackson maybe google just fails a lot...
 
Is it just me or is Firefox sprite based animations a little choppy on really large sprite sheets?
I'm pretty sure it's just my code so far
I haven't made the animations engine yet, it's just a bunch of setTimeouts so far
 
Hot linking fail
 
I just spent way too much time testing what will or wont bring up porn on Google... haha
 
5:22 AM
Turn image safe search off and everything is porn :D
Oh I think they've improved it lol
 
@andrewjackson yea, thats what we were talking about
It kind of makes sense actually...
 
Imo, everything should be filtered, except for when explicit terms are added
 
I mean if you type in some random vague word you probably aren't looking for porn
 
And then turning on/off safe search becomes filtering explicit terms
 
interestingly, searching "porn" doesn't bring up all that much porn...
 
5:25 AM
well, there's a certain degree that it should be meta based
 
well, its all pornesk
 
I mean, it would be hierarchy....
it pretty much is now...
They just need to improve sorting results based on terminology
It's all about teaching the search term parser how to read
I think that's what they did though, I haven't even gotten a chance to search Google for some porn yet lol
 
@andrewjackson Of course, at the same time they were basically solving a problem that didn't exist.
 
@twiz That's called adding new features lol
 
I suppose you could technically call it an improvement, but no one actually cares either way...
@andrewjackson a new feature no one really wants... or opposes... not sure what their accomplishing
 
5:31 AM
It's just gonna get more and more sophisticated, continuing to add all those little tiny things that people take for granted, making it easier for stupider people to use, and deepening their foundation in the search engine industries.
It's business strategy, in the sense that your search engine is never going to be better than theirs, and theirs will always have more users because of it.
 
@andrewjackson But what about the people who took for granted the random porn they got to see while searching for completely unrelated topics
 
Well that's introduces opinion into business, and there's no place for opinion when you're trying to please everyone.
No one will even notice it's there in a few months, so anyone who didn't like it at first won't mind, and it becomes win win.
 
@andrewjackson honestly, my main reason for using google is the fact that bing is the only other acceptable search engine I even know of, and bing is just covered in a heaping mess of shit I don't want.
 
The best thing a business is able to do is change things without letting too many people notice at first.
 
@andrewjackson Well of course, its just like facebook, how everyone freaks out every time they make any change
@andrewjackson but at the same time, its best to not change things that wont have any positive outcome
I guess something good might come of their new algorithm, but I don't really see what that is...
 
5:39 AM
That's also a really hard area in computer science to be able to perfect. Change it necessary if you want to perfect your product.
 
@andrewjackson I think that's a big problem some sites have actually. They aim to perfect things in a technical sense, when it doesn't necessarily make improve anything in a business sense
Basically, building for the devs, not the users
 
That's wrong though, perfecting your product is extremely important in a business sense. Otherwise you'll end up like MySpace getting stomped out by Facebook.
 
@andrewjackson Myspace had a completely different business model... kind of
 
Remember when MySpace started all of the online social crap, and Facebook came in and shit all over them? lol
 
Myspace was public-ish and spammy and ugly and annonymous
 
5:43 AM
They started out exactly the same, MySpace just didn't perfect enough and failed. Part of perfecting your product is also perfecting your business model
 
No, facebook started out with none of the problems I just said
 
So who's to say they couldn't have been better?
 
@andrewjackson Of course they could have changed, but it would be a completely different site.
 
MySpace had the audience at one point, and they let it go. Getting the audience is the trick, but perfecting is the key to holding that audience.
 
@andrewjackson well thats true
But there is a difference between perfecting and completely pivoting your product
 
5:46 AM
MySpace did what any failing business with an audience would do, and changed their focus, hoping to hang on to a percentage of that audience they already had, who would agree with the new focus.
Completely pivoting your product is what you have to do to stay alive, and that's what they did.
 
@andrewjackson I'm not arguing that point, but that is a HUGE decision
not quite the same as altering your porn algorithm... haha
 
Which is exactly why we go back to small things at a time like Google Safe Search
 
any one free to take a look at my SO question :) ?
 
@Dave No! We are very busy discussing the importance of Google's porn algorithm.
haha
 
lol
 
5:49 AM
lol
 
fair enough :P
SO has slowed down this week i have noticed
 
!!/learn porn "Google MUST perfect its porn algorithm, so it doesn't end up like MySpace"
 
@twiz Command porn learned
 
something going on that im unaware of :O ?
 
!!/tell andrewjackson porn
 
5:53 AM
@andrewjackson Google MUST perfect its porn algorithm, so it doesn't end up like MySpace
 
@Dave college finals...?
 
why do you use google for porn :P tube galore is the porn google equivalent surely
oh is it ? im not from usa :P
 
@Dave google changed their "safe search" algorithm... and lots of people have found this to be big news... haha
 
I'm with @Dave on this lol
 
mines off by default
for safe search
 
5:55 AM
Honestly, it probably wont ever effect me in the least, so I'm just glad to see Google improving.
 
its interesting tho with google images safe search off you can type any thing and at least one image will be porn
 
@Dave not anymore
 
for the best when im at work lol
 
now i must go complain to who ever made getImageData and kill them for not making it work
 
5:57 AM
@Dave wait what ?
 
@Dave yea. looked at your question, but I don't really know anything about it
 
alpha on my image - it returns a number rather than 0 - its clearly bloody alpha
either that or chrome has broken that function on an update
 
show code
at once!
 
0
Q: getImageData returns wrong information

DaveI don't know why but my script is returning the wrong value for alpha channel. This is what i have: function getPixel(x,y,px,py,i){ //user click: x y //picture location: px py //array key: i //location of click has to be changed to be relevant to this temp canvas //as image will now be at ...

code + image + console.log numbers
 
mine work just fine
so leme see what happens
 
6:00 AM
I have gotten to the point that I'm to lazy to think about questions if the poster doesn't include a fiddle... haha
why is my eye sore.... do I have glaucoma?
 
more likely pc strain
 
@Dave In one eye?
 
if one eye's vision is not equal to the other
which is very common
one might be long sighted the other short
so one strains
 
well, its equal with my contacts...
which I'm wearing
actually, I think their equal regardless haha
 
maybe CVS then
 
6:02 AM
@Dave can u put it on a jsfiddle /
 
ok @Abhishek gimi 10 mins need to get a drink
 
@Abhishek hahaha I'm glad you share my laziness
 
@twiz actually i am half dead writing c++ binding for node.js ^_^
adding new features to a code u did 4 months ago is PITA , cause i have forgot what the heck was what doing :-((
 
@Abhishek oh... I'm being lazy and doing nothing productive.
 
yo lad i was so for past 4 days
 
6:05 AM
fr?
 
but then i played the prince of persia , and i found out ... I CANNOT CHANGE THE TIMELINE IN REALWORLD CANT SLOWDOWN OR REVERSE TIME ... SO LETS GET TO FUCKING WORK BEFORE THE DAHAKA Comes for me
 
!!/urban DAHAKA
 
@twiz [Dahaka](http://dahaka.urbanup.com/1676314) An ancient Persian god of death and demon of deceit and mendacity. He loves destroying life. Dahaka is usually depicted with three heads, while scorpions and lizards crawl all over his body. Dahaka is an alternate name for Azhi Dahaka. Also know as Zohak (Zohak appears as the human form of Azhi Dahaka).

This is also a powerful humanoid character from [Prince of Persia] - Warrior Within. The prince changed the timeline with the Sands of Time in order to save his own life. The Dahaka is called to kill the prince in order to resore that timeli
 
@Abhishek wow... just keep a glass of water around...
 
or just piss on it
 
6:08 AM
apparently the Dahaka is one of the aliens from signs...
@Dave haha even better
 
@twiz i meant actual death dude
 
It sounds like human beings, or any living thing really, is perfectly adept to killing the god of death
@Abhishek well, you do need water to survive
in case you didn't know that
 
@twiz i keep bout 4 water bottles
 
@Abhishek hmmm time for a 1am bowl of cereal... then I may have to ban myself from SO and join you in running from the Dahaka
 
lol
 
6:13 AM
don't forget the nonsense 21st end of the world
man i hate jsfiddle
 
!!/tell dave google "Fuck the mayans and their calendar"
 
hahaha
 
lol
 
wow... 2 of those links are the last 2 times I said that in this chat
@Zirak my god... this probably needs to be done...
 
6:19 AM
jsfiddle.net/UCSU2/3 i dunno how to add an image to test
can't use external url i dont think
edit : jsfiddle.net/UCSU2/8 @Abhishek
 
@Dave not seeing anythihg...
 
yeh i know
 
u have to make the CORS :P
urgh just put it on a free host
or base64
the image and data url it as src for the image
 
wait what do you mean
 
canvas.toDataUrl(); // execute this function after loading ur image
console .log its output
 
6:25 AM
you can use alerts
 
thats ur DataUrl :P
put it as src in the canvas , [ this is a cheat for sharing images ]
 
you mean c.toDataUrl(img.src); ?
/me lost and confused
 
AAAAAHHHHHHH!!!! THE DAHAKA!!!!!!
 
nvm
 
yeh thats the image im testing with
 
6:28 AM
lemme data url it for u :P
 
ok
 
ok
notice it says not alpha
well im pretty sure 1:1 is transparent in my image
i knew i wasn't insane :P
 
JSFIDDLE IS BEING PITA TO ME >_<
 
how so ?
 
6:33 AM
not opening :-(
 
you in chrome or FF
its a known issue in FF
 
Ffox :-?
it used to work with my gecko
 
yeh but FF has really gone down hill
 
wanna know what u ar doing wrong ?
seriously tahts crazily stupid (XD)
lemme post ur answer ^_^
 
in my defence that code was given to me by some one with 60k rep on SO :P
 
6:38 AM
(rofl)
 
damn
such a tiny thing missed out
i see it holds RGBa in .data then
 
0
A: getImageData not working correctly on alpha channel

AbhishekWell as per specs the .getImageData(); returns an imagedata object. In that object there is an array data which has all your data. You were missing the data , so basically since d is the imagedata element there for it has not element defined for index 3 => d[3] === undefined, hence it was fai...

@Dave so me and som1 did the answer same time (x
 
lol yeh
i'll tick yours anyway seeing as you helped in here :P
 
Thankx :-)
 
hi friends. i am having a doubt about the java-script custom object. i know how to create a object and assign few properties and method to it. but the problem is how to implement this idea in real project.
 
6:44 AM
that depends if you even need it in the project
 
@nareshkumar Vaguest question of the history ...
 
ok. can u give me some useful link about this topic.
 
ok. thanks
 
never use w3School. mozilla is much better
 
6:46 AM
+1
 
yes, w3scholl is very basic.
 
Its not only basic but it lies sometimes. www.w3fools.com
 
ya, you are right.
 
Its ran by a father and his two son , MDN is a wiki so content comes by 1000's of people
you can tell which one will be better :P
 
7:01 AM
w00p got pixel perfect detection in my canvas :D
 
@Dave Yeah? What you making?
 
@AmaanCheval \o hello
valgrind is SLOW
 
o/
What's that?
 
7:16 AM
a memory checking toolkit
it slows down execution by miles but thats understandable
:-/ not so use ful for this though
i am trying to fix *a memory leak which leaks like 0.1mb / 10 mins :-/
 
You're trying to create a memory leak?
 
sorry brain fart , probably my brain is having memory leaks aswell
@AmaanCheval ffmpeg.org
 
7:42 AM
I think i have fixed it :-/ , havent leaked any memory is stable at 11.2 now :-/
lets just wait
 
7:59 AM
@OctavianDamiean haha, your code reminded me of github.com/Ralt/remoteprez/blob/master/extension/src/…
 

« first day (790 days earlier)      last day (4143 days later) »