« first day (1028 days earlier)      last day (4145 days later) » 

19:01
@Loktar Not perfect yet, but now you can has circle's rolling: dl.dropboxusercontent.com/u/2332843/box/index.html
Tek
Tek
Is there a way to get the name of an inherited object? obj.constructor.name seems to only return the parent object's name
@IvoWetzel forgot inertia ? nvm i guess you wanna stay basic
@Darkyen Guess I put the density of the circle way too low :P
nope.. the box on top just slides
the whole setup is bogus, but it should all work
ah yeah, the boxes aren't setup correctly
19:03
yeap works awesome :-> , just looked somewhat weird to me
your circle rocks though
@IvoWetzel may i give a suggestion ?
there's still some jitter and stuff I need to get out of the calculation, I also need to clean up the code a bit. Right now all the vector math is inlined as x and y parts... will switch to using functions and one or two temporary vector objects. I just don't want to generate a ton of objects because then GC will kill it on low end devices.
@Darkyen Sure
When the boxes fall down, can you use modified - aabb to find out how much part of them is out of the ledge ? And rotate them ?
is there a physics variable that represents everything in the universe?
@eazimmerman most likely
@eazimmerman x
19:05
i wonder what it is equal to
42?
Tek
Tek
@eazimmerman How about ∞?
e^(pi * i) - 1 = 0
@Tek not sure what you mean by name of an inherited object
vs parent
@Darkyen That won't with AABB's though (after all they are Axis Aligned Bounding Boxes) I'll add abritary polygons next, so you can build a box from those ones
19:06
makes sense
Originally I only had the most simple stuff for a 2D platformer in mind :)
Mind....... a mysterious place .... a very crazy one
let's say I'm working in a statically typed language
19:07
like Go or C
@Darkyen shouldn't the boxes be falling at that point?
@Darkyen Lisp is strongly typed, not statically typed
@eazimmerman Thats why i asked IVO
oh. sorry :)
19:07
what would be the type of a function decoding some JSON?
Struct or a Class?
^
but wait.
@copy how is this struct/class defined?
any example?
@FlorianMargaine v8
Tek
Tek
@beta0x64 Here's a quick JSFiddle. jsfiddle.net/tekky/2N2MD I want to get Student not Person. I know WHY it happens, but I don't know if there's a way to get the name of the inherited object.
Probably union, I think
Handle<Value> // one parent class which can contain anything
a simple struct example.
In computer science, a union is a value that may have any of several representations or formats; or it is a data structure that consists of a variable which may hold such a value. Some programming languages support special data types, called union types, to describe such values and variables. In other words, a union type definition will specify which of a number of permitted primitive types may be stored in its instances, e.g., "float or long integer". Contrast with a record (or structure), which could be defined to contain a float and an integer; in a union, there is only one value at any...
@copy union in c wont be a wise choice
19:11
No?
@FlorianMargaine see I am no expert but this came first in my mind inspired by libffmpeg which is written purely in C , in it they use structures which can be contained by each other using a parent structure AVClass
Anyone here into LEDs? These are the brightest led I have ever seen
@rlemon show :P
Haha, umm well atm it is battery powered so under amped
@FlorianMargaine There's no simple struct example, unless you know the exact format of the JSON upfront. In any other case, you'll need a wrapper object like @Darkyen pointed out by the V8 example.
19:12
I'm working on a little circuit the I'll show
@IvoWetzel there is a simple example but thats in C++ , well not simple but works (xD)
@rlemon if you stare at them long enough they will dim ;)
then arduino for the controller.
@RaoulGeorge 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.
@copy unions share memory, end up in data-curroptions
19:14
That's why PHP uses unions, right?
@FlorianMargaine digip.org/jansson
2 days ago, by Esailija
PHP is the bogosort of language implementations, literally everything uses the easiest to implement but worst performance and memory use algorithms.
adding to that worst possible solution aswell
@Tek I think it's working but ... I don't think it's using your Student ctor at all
Tek
Tek
@beta0x64 It's working... only on the parent object. Not student of course...
yea you're right
hmm
@FlorianMargaine HashMaps are the most efficient for handling json , from what i can think off.
19:17
@Darkyen You still need some custom struct to enclose the data
@IvoWetzel but still better then anything.
I'd rather have JSON_OBJECT class in C++
wrapping std::map of itself and boost::any for value pointers ;-)
Okay back on backbone.
ping me when you are on
roger that
@Tek I think I got it
Tek
Tek
:O
19:26
it's ugly though
Tek
Tek
lol
Lets see it anyway :P
@Darkyen see the flashes
@rlemon :-> yeap bright :D
@rlemon's flashing us
the batteries are really not right to run it
19:27
rudey.
might have damaged the led actually.
@rlemon :-(
haha
it's ok
I got 8 to demo before I buy a lot to run all of my fish tank lighting with
@rlemon :-( you made me realize a good and bad fact
I am relatively famous now :-( ... darkyen is already taken :'(
> Light output Up to 493 lm @ 4.9 W
fucking bright leds man
19:29
@rlemon you in lazers ?
cree XLamp XP-G R5
or making sci-fi gauntlets ... to blast baloons ?
umm, kinda
I don't own any, but I have looked into them
@Tek sorry bad internet connection issues...vpn went down
@rlemon wanna make the Predator Gauntlet ?
19:30
i'm more interested in making things that grow
if these 8 lights work out i'm using three of them for an indoor vegetable garden over the winter.
hmmm
@dystroy ping me when you're around
interesting, i seem to be the only one destructive here (xD)
I was, ten years ago, when I was your age ;)
nevermind
still doesn't work..
there's no way to do it with multiple inheritance
Tek
Tek
19:34
haha right? xD
um
well...
Tek
Tek
It's fine, I was just wondering if it was possible
@rlemon the led's for plantation, did you made sure they emit proper wavelength for emulating sun ?
I am assuming you are trying to build an Indoor greenhouse, no ?
Backbone.js is great!
@BadgerGirl Good AfterNoon Sis
19:50
Hey
@copy totally not at 64 chars
!!choose "convert html to dom" "use regex, but bail out if you get more than one match" "go ahead and assume there will be no false positives"
@JanDvorak convert html to dom
damn :-)
@Shmiddty I'm almost there
20:02
of the 5 responses to my code review comments, 4.5 were "My way is better" and 0.5 was "If you want to fix it, you can"
@copy o_o is that why you're not talking to me?
ooooh
I know
@BadgerGirl But I'm almost there!
Quick C question, probably a brain fart
    int thePowerOfAssemblyWithReadabilityOfAssembly;

    #include "test.h"

    #include <stdio.h>
    int main(void){
        printf("\n%d\n",asd());
        return 1;
    }


//header file


int asd()
{
return 1;
}
This compiles and runs
However, if I move int thePowerOfAssemblyWithReadabilityOfAssembly; below the include, it doesn't.
( warning: implicit declaration of function ‘asd’ [-Wimplicit-function-declaration])
@BadgerGirl that's the one! Thank you!
20:08
@BenjaminGruenbaum uh what happens if you remove it completely?
@beta0x64 the int global?
Same error. Try it yourself :(
@BenjaminGruenbaum lol works for me
20:11
yea
 #include "test.h"
 #include <stdio.h>
 int main(void){
    printf("\n%d\n",asd());
    return 1;
}
WTF, no global? Just a .h file and a .c file including it and calling the function asd implemented in the .h
in test.c
What's in test.h?
int asd()
{
return 1;
}
@BenjaminGruenbaum are you running gcc test.h test.c -o test
?
20:12
  gcc test.c -o test
you must include your header
Why? I #include it in the .c file
I still don't get an error
( I still get the error if I run gcc test.h test.c -o test)
gcc 4.1.2
you?
20:14
gcc version 4.7.3
hmm
5
Q: warning: implicit declaration of function

AngusMy compiler (GCC) is giving me the warning: warning: implicit declaration of function Please help me understand why is it coming.

I know what the error means, I don't understand why it happens
@BenjaminGruenbaum works fine for me in every situation with clang -Wall
It's just a warning
still
20:16
@Jeremy warnings should be considered as errors
Does gcc have any type of strict compile opton that he could have enabled accidentally?
@FlorianMargaine @beta0x64 ^ there
uh my only guess is that C isn't seeing your header
You have to declare the function signature in test.c
almost time for Friday office drinking! Yay!
20:18
@copy it's done in the h file
I always thought function signatures went in header and definitions went in the C files
yes...
@kkkkk 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.
Oh, right
that's why it's weird
I cannot reproduce it anyways
20:20
uh what happens if you switch the order of the includes? :/
now we're just guessing
yep cannot reproduce. bug report it
Oh, nvm
@copy the header and source file are in the same dir :(
Anyone here used PhoneGap before?
@Zirak implementing SEN in a statically typed language would be really painful...
20:22
Any way to incorporate Apple maps into web app?
@JoelKidd Bananas.
@SomeKittens Oranges.
posted on August 09, 2013 by Victor Rodriguez

El miedo al ‘caso Snowden’ atenaza a las empresas de correo electrónico seguro Mozilla Custom Keywords Seguridad Agile: Ethical carroñero Watch Sprite Lightning Flash at 10,000 frames Per Second Ancient Astronomical Calendar Discovered in Scotland Predates Stonehenge by 6,000 Years

20:24
@FlorianMargaine Lul wut
That was February man :p
user1596138
@Jhawins I'm done having a pissing contest with you too. "Teacher"? Key-riced boy, get off your high horse. — Fred 2 mins ago
user1596138
Some people...
user1596138
And then the next guy indirectly called him stupid it seems...
@copy 15 chars to go
for(a=i=[];a[i++]=readline(););for(k=0;~k+i;)print ... am I doing it wrong?
20:33
close
I'm using it to store the values
@sushain97 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.
Isn't it undefined?
no
maybe, I dunno. you don't have to initialize it
for(n=0;it[i=++n]=readline();); is my first loop
@copy let me know when you get to 61 so we can combine our efforts
20:45
@DavidPeterson 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.
anyone here know anything about cvs ?
trying to run command to see all available modules
annoying fail :(

« first day (1028 days earlier)      last day (4145 days later) »