« first day (69 days earlier)      last day (4876 days later) » 
00:00 - 19:0019:00 - 00:00

12:07 AM
:kitten quote
 
> "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning." - Rick Cook
 
12:20 AM
:kitten quote
 
> "Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald E. Knuth
 
:kitten quote
 
> "Learning to program has no more to do with designing interactive software than learning to touch type has to do with writing poetry" - Ted Nelson
 
12:34 AM
hey there
anyone?
:kitten quote
 
> "Walking on water and developing software from a specification are easy if both are frozen." - Edward V Berard
 
1:01 AM
:kitten quote
 
> "I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." - Bjarne Stroustrup
 
1:48 AM
:kitten quote
 
> "When someone says: 'I want a programming language in which I need only say what I wish done', give him a lollipop." - Alan J. Perlis
 
2:21 AM
@CodingKitten Lollipop!
 
@YiJiang I always get nervous when assigning new Date() var hours = currentTime.getHours() var minutes = 'italics'
 
@CodingKitten What do you think about the GFW?
 
@IvoWetzel if you're doing hover effects though, you are using? or how are 123 in jquery
 
2:33 AM
uh... that QQ messenger is.... "interesting"
 
@IvoWetzel You mean the Tencent QQ thingadongdong?
 
@YiJiang Yes, just watching a talk on YouTube about censorship in China
Although I would just as well suspect ICQ to scan my PC these days
 
@IvoWetzel I still cling on to Pidgin
 
It's really ridiculous these days with all the censorship going on
All the time they talk about freedom being threatened by terrorist
and in the meantime, they them selfs are becoming a big threat to the thing they want to protect
 
@IvoWetzel It is, absolutely. The censorship in China is really egregious, and it's killing competition in the internet space
If you look at sina.cn, for instance, one of the most popular portal sites in China, you'll see how backwards the internet in China is
Portal sites don't exist in the West anymore, yet they still do in China. If you go there without ADP, you're immediately swamped with giant flashing animated advertisements that cover half the page
 
2:47 AM
well but what can one do? When the rest of the world just watches...
and happily sells their goods to china
:kitten quote
 
> "The best programmers are not marginally better than merely good ones. They are an order-of-magnitude better, measured by whatever standard: conceptual creativity, speed, ingenuity of design, or problem-solving ability." - Randall E. Stross
 
 
1 hour later…
4:21 AM
> "Understand that really good software developers are much more productive than average ones. In fact, some statistics say that really good developers are multiple orders of magnitude better than poor ones. " Neal Ford
 
4:39 AM
!kitten wisdom ircmaxell
awww
 
 
4 hours later…
Tek
8:47 AM
lol
 
 
2 hours later…
10:49 AM
is jsfiddle dead? :o
 
 
2 hours later…
12:44 PM
Good morning (I don't care about timezones)...
 
Tek
@ircmaxell good morning
@david :O! jsfiddle IS dead :(
 
Hi!
Merry Christmas and Happy New Year!
 
And the same to you @Nyuszika7H
 
@ircmaxell thanks :)
 
12:59 PM
I tell ya, I'll never understand what people upvote...
5
A: PHP variable question

ircmaxellThe problem is because since the query returns one row, there's nothing left to fetch. the mysql_fetch_* functions fetch the current row and then advance the row pointer to the next one. If the current row doesn't exist, it returns false. So on your second call to mysql_fetch_assoc, the pointe...

 
@ircmaxell It was 13:45 CET when you said good morning :P
 
Can you tell my why that's worth +5? (I'm not complaining, but it's also not what I would consider my best work)...
 
Tek
1:29 PM
@ircmaxell A common question means that a lot of people will find it a helpful answer and thus, upvote.
 
true
 
Tek
Remember what upvoting really is. "This answer is useful"
 
Yeah, I know... It's just counterintuitive
 
Tek
Not really, I think of the answers as which answer is most useful. Which makes sense, in my opinion.
 
true
0
A: Using GPL licensed PHP code in a commercial hosted web application

ircmaxellThe best answer I can give: Get a lawyer. That's the only person you should take advice on this matter from. As far as your questions, I'll try to answer (but don't trust me): Yes. But you don't have to abide by it since you are not distributing the application. Simply using it is fine. B...

I love GPL questions...
 
Tek
1:36 PM
@ircmaxell I was just messing with some 3D modeling and animation software. Then I suddenly wondered, "why can't a sphere be round? why does it have to be made up of squares to make a sphere and even more polygons to make it more round?" Though I know the answer to the question, what kind of architecture would need to be made to be able to process a true circle?
@ircmaxell no one can look at his php source, so why does it matter?
I always wondered how people can sue other people when they're not able to see other people's/company source
 
@Tek: are you asking me why spheres are made of boxes?
 
Tek
basically
 
because GPUs are built for calculating transformations of points, not formulas (as define a sphere), and for applying lighting and textures to triangles
just about every rendering technique modern graphics uses are based on triangles, you'd have to redefine everything to support spheres
then build all new hardware to do it fast
 
Tek
@DanGrossman That was what I wondered next. What would you have to redefine? I wondered if quantum computers could solve that problem.
 
Tek
1:41 PM
Drawing polygons to make round shapes seem so inefficient
 
there are no round shapes, you only have polygons to start with
 
Well, drawing round shapes to make polygons is inefficient as well
And polygons are able to conform to complex shapes a lot easier than round shapes are
 
if a game designer wants to put a ball into the scene, they put a ball mesh there, not an abstract formula for a circle
 
Tek
lol! of course, but why not be able to have both?
 
Tek...
write yourself a rendering engine.
 
Tek
1:44 PM
@DanGrossman True but I'm thinking in terms of quality. A round shape would look a lot better and with better architecture not require anti-aliasing (extra processing) to make it smooth when you could use that extra processing for something else :P
 
Then you'd need to have branch logic to determine which type of object...
 
buy the book, go through it
by the end, you'll realize
the extra processing to directly render spheres in a modern rendering engine, that supports 20 types of lighting and textures and bump mapping and... would be impossible
 
Well, in real time at least
 
just think about determining the color of your sphere if it was reflective
instead of being a mesh of a finite number of planes that reflect light in a finite number of directions, you have INFINITE reflection in INFINITE directions
infinite computations = a bad thing
3
 
@DanGrossman Under most conditions ;-)
 
Tek
1:46 PM
I see, but couldn't that be solved via an algorithm?
 
Happy Christmas! jsFiddle is working fine now - it's been broken for 4 hours.
 
= more computation, = slowing your game down again
 
Tek
touche
but it would be a good trade off, I don't think it would be as costly as having more polygons
or would you say that's incorrect?
 
yes, it's incorrect
because you have to GENERATE polygons for your algorithm
instead of just having them to start with
 
Tek
well I'll be damned
 
1:48 PM
and our hardware is already optimized to handle large numbers of polygons
 
Tek
lol
ok, I see what you mean
great discussion, thanks Dan
for clearing that up
 
part of a graphics class where I actually wrote a renderer =x
i did all the computation on the CPU, since it was written from scratch not using OpenGL/Direct3D/etc... compared to GPU, it took 11 seconds to render one frame
 
Someone just said that it's stupid to talk to a lawyer for that question...?
2
A: Using GPL licensed PHP code in a commercial hosted web application

ircmaxellThe best answer I can give: Get a lawyer. That's the only person you should take advice on this matter from. As far as your questions, I'll try to answer (but don't trust me): Yes. But you don't have to abide by it since you are not distributing the application. Simply using it is fine. B...

/me is flabbergasted by that...
 
Tek
@DanGrossman I always wondered why cows have to be included when rendering 3D stuff. Or maybe it's just a coincidence that I've seen cows in other 3D engines.
 
@ircmaxell lol
@Tek LOL... I don't know... maybe it's a famous mesh for teaching graphics
I downloaded it from somewhere
that picture of the fully reflective cow = "rendering time: 66 minutes" :x
 
Tek
1:52 PM
eek
 
following millions of rays of light bouncing off things back and forth
i didnt write very efficient code probably, lol
 
Tek
you live, you learn :)
keep at it, that's pretty awesome
 
few years ago now, I don't do anything with graphics now
 
Tek
what got you into it in the first place then?
 
:kitten quote
 
1:53 PM
I thought the usual object used for testing 3D render is the Utah Teapot?
 
> "Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter." - Eric S. Raymond
 
@CodingKitten Ya back!
 
@YiJiang thanks a bunch for that answer, that with your e-mail address floating around like that ;)
 
Tek
@YiJiang Do show. I don't think I've ever seen a Utah Teapot. o.O
 
The Utah teapot or Newell teapot is a 3D computer model which has become a standard reference object (and something of an in-joke) in the computer graphics community. It is a mathematical model of an ordinary teapot of fairly simple shape, which appears solid, cylindrical and partially convex. A teapot primitive is considered the equivalent of a "hello world" program, as a way to create the easiest 3D scene with a somewhat complex model acting as basic geometry reference for scene and light setup. The teapot model was created in 1975 by early computer graphics researcher Martin Newell, a...
 
Tek
1:55 PM
Interesting.
 
:kitten quote
 
> "They don't make bugs like Bunny anymore." - Olav Mjelde
 
Tek
lmfao
@CodingKitten I don't know why that made me laugh so much.
 
@Tek That's the point, isn't that "protect images question" got a quick javascript ona separate page...any ideas?
 
:kitten quote
 
1:58 PM
> "I think Microsoft named .Net so it wouldn’t show up in a Unix directory listing." - Oktal
 
gnah, give us some new ones we already had those yesterday
 
Tek
@IvoWetzel not sure I get the .net one
 
:kitten say :kitten quote
 
:kitten quote
 
@Tek ls usually ignores files and directories starting with a . when listing directory contents
 
Tek
1:59 PM
@DanGrossman Aw, I almost thought that would send it into a loop
 
@CodingKitten Merry Christmas!
 
@YiJiang No problem this: if ( $j('#menu-navegacion-principal > li').has('ul').length != 0 ) or what your loop?
 
Tek
@YiJiang Don't you know jQuery gibberish is the new way to say Merry Christmas around here?
 
:kitten quote
 
> "Perfection [in design] is achieved, not when there is nothing more to add, but when there is nothing left to take away." - Antoine de Saint-Exupéry
 
2:01 PM
@Tek On UNIX systems, file that start with a dot, are hidden by default
 
Tek
I've read that before somewhere, once I think.
 
@Tek $.greetings('seasonal')
 
Tek
sad part is that I'm on Ubuntu lol
 
@CodingKitten Give us more!
 
@IvoWetzel if i want to do...
 
2:02 PM
:kitten quote
 
sigh
 
> "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
 
@CodingKitten Sure you want to! We'll make you want to
 
@IvoWetzel The class="replyMsg123; expand50-100"> F#*$ing awesome! clever way! You need to tell us more about this please
 
Tek
I didn't think about that enough to get it I guess :p
 
2:03 PM
:kitten quote
 
> "Lisp isn't a language, it's a building material." - Alan Kay
 
Tek
@YiJiang $.greetings('ditto')
 
@IvoWetzel You changed it to :kitten?
 
:kitten help
 
@Nyuszika7H both : !
 
2:06 PM
:kitten think
 
Tek
:kitten ? cats
 
missing 2 params there :P
 
Huh? What's a "cats" supposed to be? If you can't type you should reconsider your profession, what about writing the next Harry Potter? Can't get any worse with that...
 
:kitten quote
 
> "Computer system analysis is like child-rearing; you can do grievous damage, but you cannot ensure success." - Tom DeMarco
 
Tek
2:06 PM
LOL
 
:kitten think cats are cute
 
cats? Sounds interesting, gonna write that down, yes on real paper, and no, papers's not edible.
 
Tek
:D
 
:kitten ? cats
 
are cute
 
Tek
2:07 PM
haha
 
:kitten quote
 
> "There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies." - C.A.R. Hoare
 
:kitten ? rchern
 
:!kitten can you handle that? :P
 
Tek
2:08 PM
:kitten wob
 
@Tek Not enough rep
 
:kitten wob
 
It's Marc Gravells fault!
 
:kitten wob
 
Tek
2:09 PM
oh I see
 
:kitten quote
 
Tek
I would love to answer more questions if people didn't beat me to the punch all the time D:
 
> "I don't care if it works on your machine! We are not shipping your machine!" - Vidiu Platon
 
@CodingKitten These quotes are brilliant!
 
@YiJiang but way more scalable) what can one do? When SO maybe you'll get a button that appends that whole box with the appended items working, the last thing i need the != 0.
 
2:10 PM
:kitten quote
 
> "First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." - George Carrette
 
:kitten quote
 
> "Python's a drop-in replacement for BASIC in the sense that Optimus Prime is a drop-in replacement for a truck." - Cory Dodt
 
:D
:kitten quote
 
> "In the one and only true way. The object-oriented version of 'Spaghetti code' is, of course, 'Lasagna code'. (Too many layers)." - Roberto Waltman
 
2:14 PM
:kitten quote
 
> "In theory, theory and practice are the same. In practice, they’re not." - Yoggi Berra
 
:kitten wob
 
waffles profile is gone!
 
no, that link is still broken
 
2:15 PM
:kitten wob
 
It's balphas fault!
 
:kitten quote
 
> "Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald E. Knuth
 
:kitten quote
 
> "In My Egotistical Opinion, most people's C programs should be indented six feet downward and covered with dirt." - Blair P. Houghton
 
2:19 PM
I think this should be in Sandbox!
 
0
Q: how can i have a script that install on client machine and runs every time client open his/her browser

LostLordhi my dear lords : how can i write a Javascrip code that install on client machine (by viewing my web site) and run every time client open his/her browser... we know with server side codes we can not do this job // but is it possible with client side ? thanks for your attention best regards...

:kitten quote
 
> "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning." - Rick Cook
 
Tek
lol cute quote, very humorous
 
:kitten quote
 
> "It is easier to port a shell than a shell script." - Larry Wall
 
2:33 PM
blah
!kitten wisdom ircmaxell
 
3:12 PM
:kitten quote
 
> "On two occasions I have been asked [by members of Parliament]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question." - Charles Babbage
 
3:40 PM
@CodingKitten Talk to me, fill all that loneliness with... gibberish :/
 
@IvoWetzel just change the ...!
 
@CodingKitten The what?
 
@IvoWetzel i ask wich browser you want
 
@CodingKitten A faster version of Firefox
 
@IvoWetzel It's work good that the site is there for stuff like your comments. I prefer a 20 character regex for checking whether a lot of mails like that reminds me off too. :P
 
3:41 PM
@IvoWetzel Flux Capacitor!
@CodingKitten Right?
 
@YiJiang Image search for loop in milliseconds?
 
4:33 PM
@CodingKitten Wup
 
@IvoWetzel thats why i thought it would be better if i append the whole box and class of what i want because the top :S
 
:kitten quote
 
> "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
 
@CodingKitten That's brilliant! QFT!
 
@YiJiang He actually did mean horrible typo!
 
4:37 PM
:kitten quote
 
> "Programming is like kicking yourself in the face, sooner or later your nose will bleed." - Kyle Woodbury
 
4:51 PM
:kitten quote
 
> "Fine, Java MIGHT be a good example of what a programming language should be like. But Java applications are good examples of what applications SHOULDN’T be like." - pixadel
 
5:06 PM
0
Q: git not uploading all my directories

user256007I am not that good with git. I've just committed an existing directory to github (did git add .). but on github Web I see some of my directories and subdirectories are not listed there. If I run git commit -am "message" on my local machine I get # On branch master nothing to commit (working dire...

 
@user256007 are the directories empty?
 
Nope some directories have been uploaded and some directories have NOT BEEN UPLOADED at all
 
I am totally confused.. and afraid too............ Its my year long source code
 
@user256007 Have you tried to do a clone of the stuff on github? Just to make sure it's not Github that's failing?
 
5:08 PM
This is the first initial Commit
Why would I clone github
 
still, might be a bad cache
 
So What should I do Now ?
 
@user256007 To see whether it's just a display issue on Github
@DanGrossman Hey I just wanted to read that!!!
 
I dont think Its a display issue cause I am refreshing it for last 30 mins
 
@CodingKitten Scratch @DanGrossman
 
5:10 PM
@IvoWetzel go read the whole container multiple times?
 
@user256007 Bad cache of a GitHub project can take a long time until it fixes itself (or a quick support ticket)
@CodingKitten I can't read it at all he removed it!
 
@IvoWetzel go down to black once it's clicked on?
 
@Ivo Wetzel: one stupid question I donno The Command to Clone
Whats that
 
git clone <url thingy>
 
What If I download it from git Web ?
Would it be the same ?
 
5:12 PM
@user256007 "Git web"?
 
I meant git Website
github Website Sorry
 
@user256007 Well if you download a zip/tarball all the projects contents should be in there
if they are, than it's just a GitHub display issue, if not then git did indeed not push all the stuff up to GitHub
 
Just Downloaded and Checked
Nope
Still some directories are missing in the tarball
@Ivo WetzelNow What Should I do from My Side ?
@Ivo Wetzel Now What Should I do from My Side ?
 
@user256007 Hm, you could either do some brute force attempts to get the stuff pushed, or just delete the GitHub repo and create a new one and push to that one, if it still fails than something with the repo itself could be wrong
 
Hiya.
Happy Holidays.
I was wondering if it is possible to check if $('html') is clicked and not a specific class? Something like... $('html !.someClass') or such?
 
5:27 PM
0
A: What is the best online, free JavaScript tutorial?

Ivo WetzelMDC AND ONLY MDC: https://developer.mozilla.org/en/JavaScript/Guide w3schools is outdated and teaches more than enough bad practices to make Douglas Crockford hunt you down. For a bit of History watch Crockfords Talk Series from last year. Google TechTalks also has a lot of good videos on the T...

and the w3schools one has already 1 up vote ;_;
 
Tek
nope :D
 
JavaScript Rescue Rangers
 
Hi, can I ask a question?
 
Tek
@David19801 Of course!
 
okok 1 sec preparing
 
5:31 PM
Any ideas on my question? :)
 
:kitten asktoask
 
Don't ask if you can ask a question. Just ask your question and if someone can help they will...
 
ok ready! I have
1. var req = new XMLHttpRequest();
2. req.open('GET', 'http://www.mozilla.org/', false);
3. req.send(null);
4. if(req.status == 200)
5. dump(req.responseText);
now, how can I make this into a javascript bookmarklet?
I tried, but it does not work
 
Tek
you can't
 
really? how ocme?
*come
 
Tek
5:32 PM
In computing, the same origin policy is an important security concept for a number of browser-side programming languages, such as JavaScript. The policy permits scripts running on pages originating from the same site to access each other's methods and properties with no specific restrictions, but prevents access to most methods and properties across pages on different sites. This mechanism bears a particular significance for modern web applications that extensively depend on HTTP cookies to maintain authenticated user sessions, as servers act based on the HTTP cookie information to reveal...
 
but if I make it into a page.html then it works fine
 
just not as a bookmarklet
 
Tek
What do you mean by bookmarklet?
You can't bookmark the page you mean?
 
Tek
5:35 PM
That's the first time I've ever seen it typed as "bookmarklet"
 
really?
what did you call it?
 
Tek
a bookmark
 
ah, this is ++ advanced version of bookmark
it has javascript in it
 
Tek
ah, I've never used it then
 
ok
np
 
Tek
5:36 PM
If no one else here can answer your question you might be better off asking the question on the main site
 
@David19801 Depending on your browser you could go with a userscript
 
true I will do that now. thanks
I really want to do it as a bookmarklet
Its something new for me to try
 
Then there's no way...
 
so more fun :)
really no way? how come?
 
Did you read the Same Origin Policy article?
In short: You can't make XMLHttpRequest over different domains
 
5:38 PM
hmmm...
I guess the cheat way would be GET through url
but I need to send lots of data, so require POST
 
Tek
It has to be the same domain the javascript is being hosted at
 
but the javascript is hosted on the users computer
 
Tek
if you put a different domain other than yours xmlhttprequest will not work
basically, if the javascript is hosted in www.mysite.com the javascript in mysite.com cannot connect to othersite.com
 
uep, I just tried it
with a html page, if its on the hosting, it works ok, but not from my comp...
so its just GET then I guess...
is there any other way to send POST data other than xmlhttprequest?
 
Tek
depends on what server technology you're using
 
5:43 PM
shared hosting, apache cpanel thing
 
Tek
If you make a file called send_data.php
You can send POST Like this
 
ah I already have a php form
thats what I want to send the data to via javascript
then it processes it and puts it into the mysql
 
Tek
You want to send the data to your page?
 
yes
with javascript
from my browser
 
Tek
You should try using a javascript library like jQuery, it makes it 100% easier.
In my opinion anyway.
 
5:47 PM
jquery?!?!?!
ah not another language :( I have done php html mysql this week
overload!!!! haha
 
Tek
jquery is javascript
 
ok thanks
 
Tek
so don't worry
it's just a library that makes it easier to write javascript
 
I will take a look
 
Tek
the code that you showed us above
retrieves data from another host
it doesn't send data
Maybe that's why we weren't able to answer your question properly
What are you trying to do with the form?
Send form information via javascript?
 
5:58 PM
Is there a neat way to check if html is clicked but not the class topIconContainer?
 
Tek
6:20 PM
Why does $.post("test.php", $("#testform").serialize()); still send the data via $_GET?
nevermind, I didn't read the documentation properly
It's loading the data via post.. not sending it /facepalm
I think. I don't even know anymore :(
I take it back, I confused my self big time somehow. lol.
@David19801 did you get it to work?
brb
 
00:00 - 19:0019:00 - 00:00

« first day (69 days earlier)      last day (4876 days later) »