775700+ entries in 0.479s

davout: not saying it wouldn't be possible
tho
davout: mircea_popescu: you'd be paying
them fees for
this
mircea_popescu: wait,
that's still in business ? didn't it
turn scam a while back ?
mircea_popescu: so basically i can just put
the price anywhere by reporting
trades on localbitcoins
FabianB_: coindesks bitcoin price index might be an option, but with only stamp and btce it's a joke
too
r3wt: btw, openex lua is done man, it is a complete rethink. i would have a few days of moving/converting
the db
to
the new structure but it is basically all done except for sockets and
the migration of
the db structure
mircea_popescu: ThickAsThieves you know
that's pretty serious an issue.
pankkake: r3wt: just keep in mind if you write more php. almost all other languages have libs in
the style of PHP PDO
mircea_popescu: seems
to be exactly counter
to what im
trying
to do
tho
mircea_popescu: peterl i could. and
then my own bitcoin and my own planet
ThickAsThieves: my openex withdrawals are done,
the delay was partially due
to Chrome autofilling my username into
the address field
r3wt: pankkake: should i waste my
time with
that or should i continue writing ssl sockets for LUA?
mircea_popescu: there's officially no bitcoin average price signal out
there.
mircea_popescu: 23293.31 from bitstamp, 17237.53 from btc-e, basically
this is a joke.
pankkake: r3wt: an advice for your current php code is not
to use mysql escapes directly, but use
http://php.net/PDO especially prepared statements.
that way, you have less chance
to forget an escape
mircea_popescu: herpderp we've
taken out mtgox, but we count bitfinex.
mircea_popescu: how
the fuck is one
to
trust an avg which includes > 25% pure unadulterated crud.
mircea_popescu: so
TIL
that bitcoinaverage uses a
ton of fictitious volume from crap like bitfines.
davout: procedural is easiest
to comprehend
davout: also easiest
to get started with
r3wt: yeah, php is an odd language im not sure why i learned it other
than
there is just alot of info on it out
there and it seemed easy for me
to learn
pankkake: my innefiencies with php was mostly… looking up
the order of function arguments, as
they were so inconsistent
davout: r3wt: what makes a language hard
to me is
the lack of internal consistency it can have
mircea_popescu: nevertheless, absent any effort for deep understanding of meaning and grammar, no actual language learning
takes place.
r3wt: well
this is my first project but i can already see
that i do not want
to do php forever.
mircea_popescu: learning more languages never heart anyone, be
they computer or natural.
davout: but wanting away from PHP sounds like a sane
thing if you're going
to be programming moar
r3wt: that is a
tough
task for me. i find myself doing alot of reading and
then some
trial and error
davout: r3wt:
tbh i
think what matters most isn't
the language, is
to strive
to understand exactly what's hapenning
mircea_popescu: I passionately hated PHP for a long
time after
that, but it's just not relevant enough
to my work anymore
to hate.
mircea_popescu: In other words, I was unsuccessful in explaining
this rather basic concept.
They got it blisteringly wrong, and hacked
this wrongness into
the language for all
time. I attempted
to explain (much more patiently
than here)
that no,
this is not what === is supposed
to do, but I wasn't heard. Not by Zeev, not by anyone else on channel. No one got it at all.
mircea_popescu: does === fail
to do object identity
testing, it's simply '==', does all
the "deep comparison" of ==, but also bothers
to compare
the
type.
mircea_popescu: Amen
to
the cavalier attitude. You know about PHP's Javascript-esque === operator? (that's
the one with
three equals signs).
That got designed on
the spot in an IRC session with Zeev and some other devs. Because I actually had
to explain
to
these folks what
the concept of "object identity" was, i.e. what lisp does with 'eq', python does with 'is', and Javascript does with ===. Yes, because PHP's is different. Not only
mike_c: kako, defend
that. "133" == "0133"
davout: i don't want
to live on
this internet anymore
mircea_popescu: For
the same reason, "6" == " 6", "4.2" == "4.20", and "133" == "0133". But note
that 133 != 0133, because 0133 is octal. But "0x10" == "16" and "1e3" == "1000"!
mircea_popescu: == converts
to numbers when possible ( 123 == "123foo"
although "123" != "123foo"), which means it converts
to floats when possible. So large hex strings (like, say, password hashes) may occasionally compare
true when
theyre not. Even JavaScript doesnt do
this.
blg: mtgox also uses
tcp/ip case closed
Apocalyptic: <davout> ==> "is
this cube equal
to
this sphere?" sure,
they're both made of wood! // sure, because maleability
mircea_popescu: so according
to php is "1" = 1 evaluated
to 1, 0 or what ?
davout: PHP looks like
the language of choice for quantum physics
davout: ==> "is
this cube equal
to
this sphere?" sure,
they're both made of wood!
davout: how
the fuck could it have
the same value if it's not
the same
type
mike_c: it means "equal in
type and value"
Namworld: === in PHP? What
the heck does
that do? Can't recall ever using 3 =
ozbot: Unexpected
T_PAAMAYIM_NEKUDOTAYIM - PHP Sadness
davout: sorry if (x ===
true) { return
true; } else { return false; } <<< i've actually seen
this
mircea_popescu: out of which
there were maybe even 2 actual programmers.
davout: if (x ===
true) { return
true; }
r3wt: php is shit. i will always like it because its my first
thing i learned but even i can realize
the problems it has
mircea_popescu: Weak
typing (i.e., silent automatic conversion between strings/numbers/et al) is so complex
that whatever minor programmer effort is saved is by no means worth it.
mike_c: it is. but node.js says
that don't matter. you can build with anything.
mike_c: r3wt. but don't worry, he's converting it
to a custom lua engine
kakobrekla: Apocalyptic fortunatley being real phpers is not something
to brag about
ozbot: Unexpected
T_PAAMAYIM_NEKUDOTAYIM - PHP Sadness
mircea_popescu: or w/e, a digital scrapbook for
the information superhighway
mircea_popescu: i still don't believe
there's anything
that even comes close
to php for as long as what you're doing is basically... a blog.
mike_c: it's not automatically insecure, it just
tends
that way. which is bad.
davout: "PHP
takes vast amounts of inspiration from other languages, yet still manages
to be incomprehensible
to anyone who knows
those languages." <<<
truth
mike_c: you don't see other languages accidentally crapping
the source code all over
the web when something goes wrong
mike_c: mircea_popescu: here's one reason: "PHP is built
to keep chugging along at all costs."
davout: kakobrekla: not
too long, my eyes are only partly melted
kakobrekla: <?php print('so basically you are unable
to read
this davout?'); ?>
mircea_popescu: mike_c what's so insecure about php anyway. it securely failed
the === "orly"
test
mircea_popescu: to prove
this : consider cheating wives.
the dumb ones don't.
davout: Apocalyptic: yeah, sorry, i guess i'm used
to my language being insecure, not dumb
davout: then it has
to be $validity = $wallet->validate($address)["isvalid"]
mircea_popescu: i can hear
the collective multifacepalms of log reader ppl already.
davout: r3wt: listen
to what kako said goddommot
r3wt: $address = mysql_real_escape_string(strip_tags($_POST["recipient"])); $wallet = new Wallet($idtw); $validity = $wallet->validate($address); if($validity == false) { $errors[] = "Not a valid address"; $error =
true; }
davout: drop your equality
test and keep
the if
davout: r3wt: why would it have
to be a string??
r3wt: the class is
the wrapper