« first day (976 days earlier)      last day (3974 days later) » 

user1648409
3:00 PM
@AlexanderKludt: All that model loader code is in the init function, after the init function animate() gets called (and is executed) and animate starts the rederer. - But still won't display anythign.
 
@Shiuyin as @rlemon stated, post a Q and put the link here
Maybe add a jsfiddle so people can inspect it better
 
general language questions -> super fun
specific shitty ass control that is ~4k LoC and has it's own community forums and tags on the main site -> not so much fun
not to say don't ask here... but don't often expect people to jump to help
 
user1648409
@AlexanderKludt, @rlemon: When adding a jsfiddle, how can i tell the jsfiddle to use my .obj file? I don't know where to upload the .obj file so there will be actually a working online-example.
 
you can't
you need to host that file somewhere
 
use an ultra simple .obj file and load it from string
 
user1648409
3:03 PM
The problem is i don't know where i can host it.
 
well, you are a web developer - you should be able to host stuff
 
user1648409
The freehosters i checked don't allow .obj files and i don't own a server.
 
user1648409
No, i am a student and i don't any servers.
 
then try to load from string
base64 encode/decode and stuff might help
 
reddit really has everything reddit.com/r/lefthandproblems
but it's written in python, so it sucks currently (under heavy load bla bla bla)
 
user1648409
3:05 PM
Hm, wait. googling for base 64 encoding .obj files.. But thanks a lot for the help.
 
youtube is written in python
 
srsly?
 
srsly
 
wow, I should learn some python to sell my project for 4.5 billions
 
The Python programming language is actively used by many people, both in industry and academia for a wide variety of purposes. Integrated development environments * Boa Constructor, a cross-platform IDE for Python development * EasyEclipse, an open source IDE for Python and other languages * Eclipse with the [http://pydev.org Pydev] plug-in. Eclipse supports many other languages as well. * Eric, an IDE for Python and Ruby * Geany, IDE for Python development and other languages * Komodo IDE an IDE for Python, Perl, PHP and Ruby * NetBeans, is written in Java and runs everywhere where a J...
 
user1648409
3:06 PM
Youtube is really written completely in Python?
 
o_O
 
mostly, yes
 
user1648409
Wow.
 
user1648409
Didn't know that.
 
I'd really like to know why they settled for python
 
3:07 PM
"settled for" or "settled on"?
 
speed of development vs speed of language.
 
Should be closed ?
0
Q: Using javascript to analyse image level of contrast

James HerdI'm wondering if it is possible to analyse an image from an api call to find out if the image has a high or low level of contrast. I know there is resemble.js which finds the differences between two images. So I think what I want to do is possible. How would I go about analyzing the contrast le...

 
@dystroy Why?
 
@RyanKinal sorry english is not my native language
 
user1648409
I assume Google's server farms are fast enough, so why not throw away a bit of software speed to get the software faster
 
3:08 PM
@BenjaminGruenbaum too vague
 
user1648409
that might be why they decided for pythong
 
@AlexanderKludt No worries. They just have slightly different meanings.
 
@BenjaminGruenbaum Can you see something more to say than my comment ?
 
"settled for" implies that Python was kind of a secondary, lower choice. Not the best option.
 
@dystroy Ask for clarification
 
3:09 PM
well, thanks for clarifying that
 
"settled on" implies a specific thought process, and a decision on Python for real reasons (because it was the best for their situation)
 
If you look at the Google App Engine you can kinda see they have a bias towards Python anyway
php support is experimental
Java has no styleguides
 
Google App Engine is a hell of a bitch
damn thing
 
Python is the only language with good, full support
anyway
 
hey all
 
anyone have a good answer:
0
Q: Walking vs Biking a mile

NealI have about a mile walk every morning -- would I get more exercise biking or walking that same mile? Some background: I am trying to lose weight -- I am right now using MyFitnessPal to track my eating habits and exercise et al -- but I need to lose more than 20-25 pounds since I am right now ...

I need to lose weight!
 
user1648409
@AlexanderKludt: I don't see any way to convert the .obj file into base64 string, because there is no object loader for base64 encoded stuff in three.js...
 
@Shiuyin if the library allows to load files and parse them it also has to allow to load strings. The way would be "File => b64 => put as string into var => b64 to string => load string"
 
@JanTheHuman ?
 
Yeah?
 
3:12 PM
Anyone have any insight as to why this wrapDateLine: true is not working for OpenLayers? Based on the examples I've seen, this should be OK. No errors in JS console, btw. codeshare.io/3GQIH
 
You linked to that answer... why?
 
Man, my bad. I was supposed to link to the question. I was wondering why it didnt popup into a pretty link
0
Q: Re-use controller functions and templates in different controllers in Angularjs

JanTheHumanThe title is a big ambigious, but this is the problem. Assuming I am working in AngularJS and I have several views that largely need the same logic. Code overview app.js $routeProvider .when('/sheet/:sheetid/:screenid', { templateUrl: 'views/sheet.html', name: 'sheets', controller: 'She...

 
@JanTheHuman you know that javascript functions are just objects that can be reused ?
 
Everything is an object. Sure.
 
so you can do $scope.setScreen = myGlobalOrParamFunction
namespace the global a little or make a parameter out of it
voila - multiple controllers using the same function
 
3:17 PM
Seems dirty doing it in the scope, I would have to type out $scope.functions variable 10 times right?
I tried doing this with a service but obviously the service can't really access the current $scope
 
how in the hell would the header be sent if I goto lemonmeme.com/index.html but not lemonmeme.com/file.mp4
 
sure, i don't know if you are using some kind of build script but if you do you could just do some mixin technique for that
@rlemon depends on your server config - maybe you have no mime type for that mp4
 
erghad
I hate servers
 
I hate sewers
 
or use some kind of pseudo sub classing to achieve that
but i don't think that would work for your example
 
3:19 PM
:wq
 
@Neal I believe that (in terms of calorie burning): Running > Cycling > Walking. You might want to look up the exact differences and then just do the Math
 
XHR status: 200
XHR status text: OK
XHR exposed response headers:
Last-Modified: Tue, 18 Jun 2013 15:02:20 GMT
Content-Type: video/mp4
 
Maybe using 10 controllers that inherit functions from $rootScope would be easiest right now.
 
Eating well is much more important in any case
 
you working on cors?
 
3:20 PM
trying to get it working
 
let me know when you do
 
@Shiuyin the front end, yes
 
I cant figure that crap out either
 
@copy Well I am trying to figure out basically if it is worth it for me to rent a citi-bike for the mile from the train to my office or just walk it
 
@KevinMurphy
 
3:20 PM
yes sir
 
@Neal walking is more beneficial by far
riding 26.2 miles = not a big deal
 
@Loktar 'splain if you can
 
@JanTheHuman I think so - this is not the solution one would expect, but it will work is still maintainable
 
running it = a marathon and hard.
 
Incoming result of some fiddling.
 
3:21 PM
your heart rate is elevated longer @Neal when walking the same distance
 
@Loktar when walking? really? I would have thought the opposite.
 
walking does nothing for your body..
 
text/x-vcard                                    vcf
video/webm                                      webm
video/x-flv                                     flv
video/x-ms-asf                                  asx
video/x-ms-wm                                   wm
video/x-ms-wmv                                  wmv
video/x-ms-wmx                                  wmx
video/x-ms-wvx                                  wvx
video/x-msvideo                                 avi
video/x-sgi-movie                               movie
 
sonofa
 
3:21 PM
@Shashank Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@KevinMurphy proof?
 
@Loktar you ever peek in /etc/mime.types
 
nope
haven't had to ever
 
see if there is a mime type for the files we're trying to serve
 
only have had to add mime types for stupid IIS ever
 
3:22 PM
@Neal read any article about what your heart rate needs to be at to burn fat, or give a decent work out. walking 2-2.5 mph will do nothing
 
did you check what content-type your server sends?
 
speed walking, or walking 4-4.5mph probably could give some benefits, but nothing like running
 
@KevinMurphy I do not think that is true at all.
 
@KevinMurphy Got any feedback on that style?
 
^ walking definitely helps
 
3:23 PM
Thanks @AlexanderKludt
 
3 mins ago, by rlemon
XHR status: 200
XHR status text: OK
XHR exposed response headers:
Last-Modified: Tue, 18 Jun 2013 15:02:20 GMT
Content-Type: video/mp4
@AlexanderKludt
 
running is great sure, but you are adding stress on your joints as well.
 
@JanTheHuman np
 
but to say walking isnt beneficial is crazy lol
I walked everywhere in basic training. And I lost an insane amt of weight in 6 weeks
 
@rlemon hmm, maybe there is really a bug with all of this CORS and videos
 
3:24 PM
but the image didn't work either.
 
oh well
then your server is crap or something like that
 
lol
 
was the header sent for the image?
 
depends how much you weigh to be honest..
 
@KevinMurphy has nothing to do with that
walking will burn calories
 
3:25 PM
nope :(
@Loktar not much
I wish it did
:( I'm getting fatter
 
Every time. Every time I think "Hey, I'll work from Tim Hortons", I forget that they block SSH.
 
@rlemon same here
 
@rlemon It depends, of course, on your other habits as well.
 
@RyanKinal wait..... you guys got timmie hoes there?
 
but to say walking is not beneficial is stupid.
 
3:26 PM
@Loktar how can you say it doesn't
 
@rlemon hellz yeah, man
 
o/
you understand good coffee then
 
I mean, we're about as far South as they get... but we have one :-)
 
@KevinMurphy a fit person walking 5 miles is beneficial as would an out of shape person walking 5 miles.
 
3:27 PM
physical activity === good
 
XHR status: 200
XHR status text: OK
XHR exposed response headers:
Last-Modified: Fri, 10 May 2013 17:06:15 GMT
Content-Type: image/png
 
@rlemon No he doesn't. He's American.
 
@KendallFrey they got timmie hoes there
 
sure they're both beneficial but on different levels.
 
TIMS!
 
3:27 PM
I appreciate good coffee, thank you.
 
But it's still American coffee.
 
And as far as chain-store coffee goes, Timmy Ho's is about the best.
 
American coffee is the shit.
 
@rlemon are those all the headers you got? Do you have the direct url to that image?
 
@KendallFrey You know "the shit" and "shit" mean different things, right?
 
3:28 PM
@KendallFrey is shit, or the shit?
lol @KendallFrey loves american coffee it seems
 
if you check any calorie burner calculator.. your weight will be a big influence. the heavier you weigh when doing the same amount of activity, the more calories you will burn
 
@KevinMurphy yes, but weighing more or less doesnt negate the positive effect
 
i never said it did
"sure they're both beneficial but on different levels."
 
@Loktar My attempt at being less boring has failed.
 
I said walking definitely helps and you said
> depends how much you weigh to be honest..
 
3:29 PM
@KendallFrey Are you saying that you think American coffee is good ? That's one of those rare moments when I want to put a sequence of interobangs.
 
No, it's bland.
 
it helps heavier people more :)
 
it helps all people just some more than others
 
@AlexanderKludt tinker.io/0d397
 
yes i agree. that's what i've been saying.
 
3:31 PM
@AlexanderKludt or this vid: http://lemonmeme.com/iGLIDE - HADOUKEN - LEVITATE - DUBSTEP.mp4
 
but to tell a fit person at 160lbs that walking will make him lose 5 lbs is crazy
without working out/running
 
gahhhh fucking spaces
 
no one said that though :P
@Neal asked if its better to bike one mile or walk one mile.
 
walk one mile... see how long it takes you to do it... bike that length of time.
 
@rlemon Still having trouble enabling CORS?
 
3:31 PM
all i said was that the closer you are to being fit, the less walking will do for you
 
@Zirak you betcha
 
@KevinMurphy Did you look at the image?
 
@rlemon yeah his commute is only one mile though
 
@rlemon Did you double-check you added the header, and enabled mod_headers (should be on by default, but...)?
 
@KendallFrey i did - a little too retro :P don't worry about it. i'll mess around myself thanks though!
 
3:32 PM
ohh.
 
@rlemon headers are fine - but sent twice
 
@Zirak double checked that it was enabled, it is. Added the header in a .htaccess file.
 
@rlemon I mean Access-Control-Origin is sent twice
 
0
Q: Three.js camera rotation and behavior

Att1caI'm just getting into Three.js and the camera is causing some problems. Basically, I want to implement spectator-like movement controls, so that I can move around freely in the scene. The problem is that the camera seems to have it's own coordinate system, so rotating it rotates the camera, while...

 
@KevinMurphy Hey, I'm not done yet. I just wanted feedback.
 
3:33 PM
with the same value
 
@AlexanderKludt might have doubled them up in my attempts
 
I need to get back into the habit of practicing my solo jazz dance very day. I was losing weight like crazy when i was doing that.
 
@KevinMurphy well i am not fit... im @ 205 lb. I want to get down to at least 185
 
@rlemon you really should not send headers twice, but this does not look like the problem
 
@KendallFrey ah ok. here's what i did in 10 minutes: fluxil.com
 
3:33 PM
@AlexanderKludt obvy that is not intentional
 
@KevinMurphy Do you want an icon for it, or just text?
 
@Neal there's no doubt walking will burn calories
 
@rlemon let me check how i did that
 
@Neal You're a programmer. Get used to disappointment
 
@KendallFrey just text please!
 
3:34 PM
@Neil .... :-P
 
lol
 
In that case, I probably am useless. The one on the website looks great.
 
blarg. I stopped going to my daily workout and now im gaining weight slowly again
tis annoying
 
same
 
@Loktar what was your daily workout?
 
3:35 PM
I bike to work everyday.. 2 kilometers to get to work and 2 kilometers to get home
 
Agreed
 
if you don't mind me asking
 
I used to lose weight doing that, but my body got efficient damnit
Now I'm gaining weight again
 
@KevinMurphy 60 mins of cardio every other day, and 60 mins of weight training the other days
break on Sunday
 
yeah perfect workout
 
3:36 PM
@Loktar but I have a secret... i'm really a 31... you see I take a pen and change all of my pant tags to say i'm really a 30!
 
@KevinMurphy Why do you include 2+ scripts for a grey background and an image?
 
Losing weight is 80% diet, just sayin'
 
was getting in good shape :?
 
@rlemon lol I just checked what I did - as far as I can remember it never worked out really so I just used a simple php proxy script
 
@copy haha yeah thats so true man
 
3:36 PM
@rlemon Hacker
 
@rlemon LOL
Im a 32
 
@Zirak just messing with centering with JS hehe
 
@rlemon I dropped the whole cors for images - only using it for JSON communication now
 
@Loktar why'd you stop? :P
 
lost motivation somehow
was everyday at 6am
was sick of waking up at 5:30
 
3:37 PM
@halfcube Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
add a break day or something in the middle
 
how are you doing?
 
usually helps.. do mon, tues, break wed, thurs, fri, sat
 
3:37 PM
Guys I need your help. Some of my friends invited me to web conference. I need to select some interesting subject and make presentation about it. What you'd suggest?
 
yeah, i did at first :P
then that break day turned into 2, then 3, then 4 :P
 
ok guys, leaving now - have to put myself into a "biergarten" now :D
 
ermahgahd
 
@alex
 
gotcha.. do you work from home?
 
3:37 PM
@TuralTeyyubogluAliyev Something that you find interesting.
 
@TuralTeyyubogluAliyev Something you know enough about.
 
@AlexanderKludt Seems like scope inheritance (dynamically loading a new controller + view) works pretty well
 
@KendallFrey there's something about it that I hate though lol
 
@TuralTeyyubogluAliyev Conway's Game of Life
 
@JanTheHuman great to hear
 
3:38 PM
@TuralTeyyubogluAliyev Zirak isn't being flippant. Doing something you find interesting will likely be interesting for them as well
And if not, at least you don't ever realize it
 
@copy lol. what's that?
 
@JanTheHuman be sure you don't get into the javascript hell of pass by reference / pass by value
 
(It's very simple and small , but it's a nice poc)
 
@TuralTeyyubogluAliyev progressive enhancements. with todays modern web dev this concept has been lost.
 
3:40 PM
@TuralTeyyubogluAliyev bitstorm.org/gameoflife
 
Right now im simply loading functions and data from parent scope. Works like a charm. Not as clean is I'd like it to be but I'm sure I wont et in reference hell
 
It seemed flippant? I'm serious. If we say what interests us, you might be bored to death. But if you talk about something which really interests you, and you think and feel about, it'll be interesting and you'll have fun (well, there's a bigger chance you'll have fun).
 
ok, really leaving now - bye bye
 
fish interest me...
 
@rlemon finish your boat game bro :P
 
3:40 PM
So...if you don't have anything which you genuinely feel for, doing a talk might not be a good idea.
And your life is sad etc
 
var nemo = Object.extend(new Fish(), { isLost: true }),
    dory = new Fish();
while(nemo.isLost) dory.swim();
 
@Zirak I was just clarifying the state of your flippantness
 
@Loktar I got distracted with the damn audio/video shit
 
haha yeah I figured
 
@RyanKinal Is that you on the right, struggling to keep time?
 
3:43 PM
@Shmiddty I'm not in that video
 
@Neil I have a feeling he'll ignore me anyway
 
if (dory.found(nemo)) { nemo.isLost = false; }
 
@Zirak I have a feeling he'll ignore everyone
 
if (nemo.in(airFiltrationSystem)) { nemo.getTornToShreads(); }
The API is incredibly thorough
 
we should try to overview popular movies with code.
 
3:45 PM
if ( isFood(item) ) return "Mine"; }
 
... after lunch
 
lol
 
@mikedidthis Do people use the bot in the web-design room?
 
@rlemon do a fish tank simulation in js/canvas
 
@Loktar so when I get this boat game done and it's working but shitty you're going too do a code cleanup ;)
@Shmiddty thought about it
fish AI would be a pain in my ass to do right.
they don't just 'swim'
 
3:47 PM
they poop too
 
lunch
 
@Zirak rofl
 
time for poutine
 
@Zirak Hahahaha
 
3:48 PM
@Zirak lol
 
@Zirak I think so, though its been pretty quiet in there.
 
@rlemon what about my suggestion from yesterday? Did you understand what I was suggesting for the auto-bin?
 
@BenjaminGruenbaum Your mail box had ferocious sex with the landlord so now you've got a special little envelope. You have mail
 
@rlemon Okay. Why the hell doesn't Tim Horton's have poutine? I want some. Right now.
You're Canadian. Get on that.
<!-- This is why I don't want to claim the front-end of SlickText -->
<span class="greennumber">
:shakes head:
 
@KendallFrey logopond.com/gallery/detail/152055 something like this would make me so happy
 
3:57 PM
@Zirak Would you stop sending me pictures of your balls? Seriously, this is not an appropriate email:
 
This is a list of unusual deaths. This list includes unique or extremely rare circumstances of death recorded throughout history, noted as being unusual by multiple sources. Some of the deaths are mythological or are considered to be unsubstantiated by contemporary researchers. Some other articles also cover deaths that might be considered unusual or ironic, including List of entertainers who died during a performance, List of inventors killed by their own inventions, List of association footballers who died while playing, List of professional cyclists who died during a race and the ...
Quite amusing
 
In before quotes of unusual deaths, getting 2 stars
 

« first day (976 days earlier)      last day (3974 days later) »