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

2:00 PM
@ereOn That's clearly two jellyfish, not a jellyfish.
 
@JerryCoffin: You got me. That was my plan all along.
Lying about the number of jellyfishes.
 
jellyfishi
 
@JerryCoffin does not exclude more then the one
 
Jellyfishi ? really ?
 
user142019
> Good news: instead of being alone with nothing but pocket change and a poor sense of aim to kill the monsters, Erlang gives you a flashlight, a machete, and a pretty kick-ass mustache to feel more confident (this also applies to female readers).
 
user142019
2:01 PM
lol
 
@R.MartinhoFernandes As opposed to the ones bred by Apple, the iJellyfish.
 
@ereOn All cephalopodi have plurals ending with -i.
 
courtesy of Australian water - one of the deadliest creatures on earth
 
I wonder how much more bullshit can I spew.
 
2:03 PM
@R.MartinhoFernandes Like the italian words ? Interesting.
 
@R.MartinhoFernandes mutexii, huh?
 
Mutices are not cephalopodi.
 
@rightfold what do these lines mean?
 
Don't encourage him.
 
top = _app_ctx_stack.top
if not hasattr(top, 'sqlite_db'):
 
user142019
2:05 PM
@BartekBanachewicz If top.sqlite_db doesn't exist, do X.
 
@rightfold i mean there's an import for _app_ctx_stack
 
@JerryCoffin how's the hotel or are you back home already?
 
and I am not sure what's the purpose of it
 
user142019
Well, it assigns _app_ctx_stack.top to top. :v
 
user142019
@BartekBanachewicz Me neither.
 
user142019
2:06 PM
It starts with an underscore and that's convention for THIS IS PRIVATE DON'T TOUCH.
 
@rightfold well I can read what it does, but I don't know why :P
i have to grep for "Application Context" I guess
 
user142019
Oh, I see. Well, _app_ctx_stack is in the flask module and it's private to Flask.
 
user142019
You shouldn't use it unless you're working on Flask itself.
 
it's kinda fail because that code is different from the tutorial
@rightfold but that's a sample application :/
 
user142019
Then the sample application is bad and the author should feel bad.
 
2:08 PM
in tutorial it's g.db.*
 
@rightfold Actually that's not entirely true. Single underscore is more for "this is protected, only touch in derived class" and double underscore gets decorated so it is for "don't touch, it is private"
 
user142019
Meh inheritance.
 
@CatPlusPlus so actually user code should use g, as in tutorial
 
Double underscore is for name mangling.
 
2:22 PM
anyone here knows perl?
 
yes, me
shoot
 
I am doing this:
 
¬_¬ just link to some code, or ask on Stack Overflow
 
I am sending data in Json format to iPhone
but $user_id & $message_id are ints
they are sent as strings
 
perl has no notion of types you realise
 
2:26 PM
but there must be a way?
 
also, you are using your while loop wrong
well, it will work, but it is not normally how you would do things
I see no problems with that code as such
I think what you will need to do is where this data is received convert the string to numerical form. Besides, with JSON isn't all data sent as string anyway?
 
yeah but strings are in "", ints aren't
 
what do you mean?
oh right
in the json text
well, where are you sending the json? perhaps it is there that you need to look at the problem
 
"id":"2","messageID":"5" instead of "id":2,"messageID":5
$hash{'results'} = \@contents;
my $json = to_json(\%hash);
 
so, basically, your problem is that your Perl script that is generating JSON is treating all variables as strings, and thus quoting them.
 
2:34 PM
yes
 
You can't just blanket convert all strings that are just numbers as numbers, as sometimes a string wants to only contain digits
I suggest you either add functionality to to 'to_json' meta data such as 'this field is a numerical, this is a string' or process $json afterwards to remove these quotes
 
Learn what typing is and stop using Perl.
 
user142019
Perl is nice.
 
(about to show how little I know about python) isn't python typeless?
 
user142019
No.
 
2:37 PM
no
 
I believe that the only typeless thing was lambda calculus
 
meh, stupid language anyway
 
everyone else has at least basic typing
 
user142019
>>> class Foo:
...     pass
...
>>> foo = Foo()
>>> assert type(foo) == Foo
>>>
 
2:38 PM
I guess you could dictate Python instead of typing it.
 
Ell
^what is the difference between these does anybody know?
 
one looks like shit
 
user142019
@Ell The first one looks good and the second one looks terrible.
 
Ell
they are both the same font & size, neither are bold
 
@thecoshman thanks ... I will try things out
 
user142019
2:39 PM
 
user142019
Buy a decent monitor.
 
@Telkitty猫咪咪 the latter is probably better
 
@Ell Hinting?
 
Ell
@R.MartinhoFernandes Not sure exactly what hinting is
is that moving letters together/apart?
Or is that kerning?
 
@Telkitty猫咪咪 also, consider that the server (recipient of this json) should know that id is to be treated as a number can be able to convert form string if required. If you have access to recipient code
 
2:40 PM
I am trying to write 'pretty' code here :p
so ints are transferred as ints
 
I could be wrong here, but json is pure text any way... so I don't quite see what you are trying to achieve, save sending two extra characters
 
but Json lib interpret things in "" as strings
 
@thecoshman C++ is text too.
 
@R.MartinhoFernandes your point
 
are the trolls gone?
 
2:43 PM
@thecoshman Text is the medium, not the message.
'x' : 42 is a number, 'x' : '42' is a string.
 
@Telkitty猫咪咪 you mean the library you are using? still, if you no field 'id' is to be converted to a number, why don't you just do it?
@R.MartinhoFernandes true enough
 
Json should automatically encode numbers as numbers
but this time fields are obtained from the database
 
what do you mean 'Json should'?
json is just a format
it doesn't do anything itself
it's like saying html should draw pictures
is that 'to_json' function your own code? if so, link me to it
 
god damn it, my build system is failing to see that the source file has been modified more recently than the object file ¬_¬
 
than*
 
@thecoshman What is your build system ?
 
and your build system sucks
it fails to do the only thing it's supposed to do
 
it's one of my own devising... I broke it some how... it was doing this...
 
3:08 PM
¬_¬ I don't remember seeing that smiley before. It's quite clever.
 
oh for fuck sake
 
Ell
Dern I broke the tumble dryer's door. I wonder what glue I should use o.O
Araldite?
That's the only glue I can think of xD
 
@Ell: Use apple juice + cat urine
 
of course it is not going recompile example/main.cpp when I am updating src/main.cpp
@Ell depends how exactly you broke it
 
Ell
@thecoshman I caught it on my shorts and continued to walk away :3
Basically one of the ends has snapped. Not like the door itsself, but a rod it was attached to the front by
 
3:10 PM
@Ell let me rephrase that. depends in what way the door is broken
 
@Magtheridon96 does it look like I'm trying to binge rep somehow?
See here in case you're genuinely worried
 
!sehe, your newb avatar :'(
 
@not-sehe, you're not sehe right?
 
@not-sehe dude... I think you fail at taking a break
 
3:20 PM
not-sehe is ... sehe? wut o.o
 
Such blatant lying.
 
not-sehe is sehe is disguise
 
Oh, I see now. That's one inventive disguise.
 
@StackedCrooked 3 million views. This video says everything about the Internet
 
user142019
Yay.
 
user142019
3:22 PM
Distributed sum workz!
 
@TonyTheLion Yes it says that felines rule the webz
 
And you rule my heart <3
 
oh baby <3
but where is my other baby??? @ScottW??? <33333
 
at last! I have this shit finally workning!
 
user142019
3:26 PM
> ToS;DR
 
user142019
lol
 
WTF Did I just watch???!!! Slightly NSFW, but more in the weird WTF kind of way.
 
It's too damn hot in here!
 
@TonyTheLion old
 
user142019
3:28 PM
@TonyTheLion zomfgüberwtfpwnbbqmsgcream
 
I think I've seen it before, but its still WTF
 
@TonyTheLion it's art man, art
 
user142019
I wonder if Erlang compiler does inlining.
 
Ell
@TonyTheLion I've seen the guy with the stick attached to him doing that with music, and it was really funny but I can't find it anymore :(
 
-1
Q: Barcode stopped unexpectedly

user1175121I am using phonegap barcode scanner plugin to scan QR code. When i read the QR code app crashes, i m getting "unexpectedly barcode scanner stopped" . This is the stack trace 06-16 19:02:36.347: E/AndroidRuntime(12607): FATAL EXCEPTION: main 06-16 19:02:36.347: E/AndroidRuntime(12607): java.lan...

 
3:30 PM
@thecoshman its weird, that's what
 
like I said, art
 
(╯°□°)╯︵ ┻━┻
 
user142019
Man.
 
user142019
I'm getting rep for an RTFM answer.
 
@rightfold Can I help?
 
user142019
3:31 PM
With what?
 
@rightfold My highest upvoted answer is for a question where the guy had 2 main functions >.> I guess I win?
 
Ell
I think I'm going to learn erlang
 
By downvoting
 
user142019
@Ell +1
 
user142019
@ShuklaSannidhya That's not helping. :|
 
user142019
3:33 PM
@Ell Learn You Some Erlang for Great Good! is a great book.
 
user142019
Yes, it's called Learn You Some Erlang for Great Good!
 
Ell
I'm reading that now
Is erlang as pure as haskell?
 
For Good Great, to emphasize how parallel it is. :D
 
user142019
No, Erlang is impure.
 
3:33 PM
lol
 
user142019
Terms are immutable and you cannot rebind variables.
 
user142019
But you can do I/O wherever you want.
 
When I find my code in tons of trouble,
Mother mary comes to me,
Speaking words of wisdom:
"Write in C."
 
user142019
Erlounge.
 
3:35 PM
@ShuklaSannidhya Your friends suck
@Jeffrey lol
 
@ShuklaSannidhya While I must admit the "Let It Be" reference is cool, the actual content sucks.
When your code is in trouble, switching to C is a kinda bad move.
 
@not-sehe Ah, okay
 
Write in C. Great song. :)
 
@thecoshman I found a 'hacky' way, this:
                $user_id =  $row[0]+ 0;
                $message_id = $row[1] + 0;
& with this I call it off a night :p
 
3:40 PM
@Telkitty猫咪咪 did that actually work?
 
Is that PHP? :O
 
@ShuklaSannidhya lol
 
@ThePhD Perl
 
Ooh.
 
Here's an evil idea: PHP as a C++ preprocessor
 
3:42 PM
that's not an idea
 
Ell
oh god
PHP: Personal Header Preprocessor
 
<?php include "iostream"; ?>
 
@Jeffrey lol.. so strange
 
<?php /* I can't take it anymore, that's enough PHP for the day, good night */ ?>
2
 
@thecoshman sad, mostly...
 
3:45 PM
@Jeffrey how so?
 
hmm
I've been looking at creating a VS package, and holy shit, there is so much crap
absolutely everything, ever, must be stringly typed
 
@thecoshman I pity that robber. When people are starving and they have kids they don't think twice about robbing or killing. That man was almost crying...
inb4 he was manipulative
 
@DeadMG you mean you don't think stringly typed code is the best thing ever and you just love spending all day wading through the delightful code it results in?
@Jeffrey oh yeah, I no what you mean there
 
lol
 
2
Q: Will automatic return type deduction work for main?

template boyWill I be able to do the following for the main function in C++1y (C++14): auto main() { // ... } So will the return type automatically be int even though we don't need to use an explicit return 0;?

What a good yet bad question
 
3:51 PM
@Jeffrey That's how canadians would rob each other. /cc @EtiennedeMartel
 
@ThePhD Eh.
 
> 7:30 Canadian robbery
 
user142019
@milleniumbug PHP is way better than the C preprocessor, actually.
 
yeah lol
 
@rightfold And it works ;)
The only thing that gets broken is old GCC extension of min/max
and macros are explicit
<?= function_style_macro() ?>
 
3:54 PM
@milleniumbug auto main() {} is important for the impending zombie apocalypse. What if they make int main(); an invalid signature and make all who fail to conform to the new zmb::tits main(); signature perish? ;__;
 
user142019
@milleniumbug That's the best part.
 
user142019
In Erlang macro expansion is also explicit.
 
Ell
Are erlangs atoms like ruby's symbols?
 
user142019
@Ell Very similar, yes.
 
user142019
The only difference is that Ruby symbols are garbage collected, and Erlang atoms are not.
 
user142019
3:55 PM
Once you create an atom in Erlang it will stay there until you shut down the VM.
 
Ell
Oh, I didn't know symbols were garbage collected o.O
 
@Magtheridon96 One-time protection only ;(
 
@EtiennedeMartel you there?
 
user142019
@ShuklaSannidhya C
 
3:56 PM
@ShuklaSannidhya char *x = "dump"
@ShuklaSannidhya There's your problem
 
user142019
Also, char *x = "dump" you suck.
 
user142019
Needs more const.
 
@Ell Yes.
 
either const char *x = "dump" or char x[] = "dump"
 
user142019
Like in Ruby, atoms are compared by reference unlike strings. This is their strength.
 
3:57 PM
@Jeffrey Without C we'd be stuck choosing between Pasal, obol, and Hasell (okay, technically, not a C, but close enough...)
 
@rightfold You double-suck.
 
user142019
@Ell Also, because atoms are never freed, be very careful when creating them from strings, especially if those strings come from user or network input.
 
oh wait, those are compiler errors
 
@ShuklaSannidhya Code that attempts to define a function starting with str has undefined behavior.
13
 
@JerryCoffin Ok, I'm stupid. Now I get it. The first time I read the C's anyway.
 
3:59 PM
@JerryCoffin In German, C would be a K. :D
 
@JerryCoffin That's a useful tip for the future o_O
 
Ell
@rightfold Right yeah
 

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