« first day (1280 days earlier)      last day (3684 days later) » 

8:00 PM
had today off :P
 
> visited 400 days, 302 consecutive
 
We should start trolling with Rick Astley until we all forget kfVsfOSbJY0
> 1054 days, 6 consecutive
 
I am making a gameCP for my website, basically I need to start/shutdown and controll services such as java servers. Is it possible to execute linux commands with PHP?
 
Hi, my name is Amal and I'm an addict.
 
@user3123545 yup
 
8:01 PM
@HamZa exec() right?
 
@user3123545 or shell_exec()?
 
proc_open
 
@Jimbo y u no 10k
 
@CarrieKendall: y u no bounty?
 
@CarrieKendall Not repwhoring, and not enough upvotes :-(
 
8:04 PM
@AmalMurali i've probably given him more upvotes than your bounty total ;]
 
Probably. Because my bounty total was just 50. I wouldn't even call that a "bounty". I was long ago :P
 
@HamZa: I was about to post that here. Just saw it on meta. rofl
And that user's suspension period ends on 2027 haha
 
@HamZa imho there's a lot of BS in there. It claims to be not pro or anti, but the guy clearly misuses .map(parseInt) using the array indexes as radix and calls it "nonsense"
 
@HamZa Lmao, that's awesome
 
8:08 PM
-42
Q: Is it true in Python that you can import specific functions from a module unlike in PHP?

user2398036In PHP it is not possible to only get specific functions from an included file. I would usually create five different include files and each would have like 5-6 functions in it. This way, it would be faster. But I hear and see examples on Google where it seems like in Python you can do something...

 
> IF YOU GUYS ROLL BACK AGAIN, I AM CHANGING MY NICK TO " ALLAH AKBAR " AND YOU WILL ALL LOOK LIKE JIHAD CLUB MEMBERS OF OSAMA BIN LADEN.
 
LOL @HamZa
 
@Jimbo inb4 someone flags that as offensive
 
@AmalMurali Ah let them, it's a quote :-p
 
inb4 I leave
Bye guys!
 
8:09 PM
meanwhile in room10
 
I throw around E_INDIAN all the time, it's not offensive :D
 
lol
I find it funny
 
@Jimbo that's why one never should enter into an edit war...
 
Why did they suspend him. We lost an artist!
@HamZa: No, this is exactly why you should enter into a rollback war. Such jokes!
 
Is there a big difference in security with PDO and Mysqlii?
 
8:12 PM
@FabrícioMatté it was fun, got another talk?
 
9
A: Which method is more secure between MySQLi and PDO

RobertBoth libraries provide SQL injection security, as long as the developer uses them the way they were intended (proper escaping / parameter binding with prepared statements when it's needed). There is no difference in security. The main difference between PDO and Mysqli is that PDO supports variou...

 
@HamZa I haven't watched many talks lately, I'll finish watching the one you linked =]
 
Good, good.
 
@Colourity ^
 
8:12 PM
Thanks :)
 
> php://input may now be reopened and read as many times as required. This work has also resulted in a major reduction in the amount of memory required to deal with POST data.
@ircmaxell Do it, do it.
 
@TOOTSKI already done... well, in part :-)
unittest/alltests
Running main() from gtest_main.cc
[==========] Running 2 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 1 test from zend_atoi
[ RUN      ] zend_atoi.basicOperation
[       OK ] zend_atoi.basicOperation (0 ms)
[----------] 1 test from zend_atoi (0 ms total)

[----------] 1 test from zend_string_to_double
[ RUN      ] zend_string_to_double.basicOperation
[       OK ] zend_string_to_double.basicOperation (0 ms)
[----------] 1 test from zend_string_to_double (0 ms total)
 
How'd you think of your username? Is it supposed to mean anything? @ircmaxell
 
Guess: he likes being on IRC and so he chose ircmaxell. But I'd like to know too
 
@NikiC ping?
 
8:16 PM
@ircmaxell pong
 
question for you
google test suite requires compiling from source (there's nothign local to link to)
so do you think it would make sense to ship with the source included inside of the repo?
or still do it external as an optional dependency
 
@ircmaxell It's a header library?
 
@NikiC no, using it for source as well
 
not sure I understand what makes it different from any other dependency
 
it's not linked, it's compiled directly. I'm using the main() function from that library
so it's not a system library that we can just statically link against. It needs to be compiled from source directly against our binary
 
8:20 PM
ah, now I get it
hm, not sure
I guess that'll just depend on how much people are interested in this
We do bundle the source for most of our important dependencies, after all...
 
It's a light lib, not really that big...
 
@ircmaxell I wonder how much we can really test like this / how useful it would practically be
a lot of the functionality is very heavily interdependent
 
@NikiC I don't know. It's an interesting experiment though. Especially around variable config, etc
 
Most of it will require a valid VM state at least
 
@NikiC well, since you can include the .c file directly, you can stub or fake most of that out pretty easily, at least for the non-massive functions
 
8:24 PM
I found out today that mozilla is writing a rust based browser engine
 
Oh? I know they are building a asm.js compiler
 
<input type="text" name="ntitle" style="resize: both; overflow: auto;"><br>
why this piece of html doesnt work!
 
Really wonder what will come of it. Rust is an interesting language
 
Cobol is da best
COMPUTE R_X = A_X + A_Y.
 
Should I put my php in an external file. Like action="form.php" or should I just combine HTML and PHP together?
 
8:29 PM
what should my mysql db structure be if I plan to store the different interest tags that each user has subscribed to?
 
Oh we playing dumb questions, i see
What should I use include() or require()!
 
Include!
 
?
Not sure if you're referring to me, but if you are, it was a serious question.
 
If each user on my site can subscribe to different channels (like youtube), how should I design mysql db?
 
so that was a real question
 
...yes
 
The users profile, then inside that add say a subscribe section. And let users update it.
I'm not sure whats difficult about out?
 
well yeah, i am talking about back end
how would i store it?
would I just create a column in the user list table and dump all the subscribed tag ids in the slot separated by commas?
 
Ignore the commas. Just take the word itself
 
8:34 PM
What if its a two word tag?
 
If you only use an id and you have many tags, itll be harder for you if you need to through
Then have them user a -.
So like this html-css for example
 
Maybe I should just create a separate table altogether with a userid column and a tag id column and add an entry as the user subscribes to a tag.
 
@DemCodeLines Ummm, no.
 
@TOOTSKI yeah, i figured.
Look at the solution just above your post
 
Someone remind me again, when is PHP allowed to not obey exit / die?
Because it's totally ignoring me right now and I am really, really upset.
I hate SOAP so, so much.
 
8:50 PM
@Charles Didn't know it can continue execution after exit?
 
@TOOTSKI Well tell that to this code.
 
Maybe some goto? :)
 
it's like treating it as a return or something
 
Ah, could be some voodoo. Can you trace the calls?
 
not easily in this environment...
and, also, SOAP.
 
8:54 PM
If I have an array of integers and I want to retrieve a row from a table where one of the column matches some of the array numbers, how would I do it?
{1, 4, 6}
that column could have anything. I need to see if it's 1, 4 or 6 and only then retrieve
 
... so I added a try { } finally {} block with an echo and exit in the block.. it exits now, but the echo is eaten. WTF is this crap...
 
I had similar experience with, can't recall, SOAP or RPC or something.
 
god*damn* that's infuriating.
I just set the SOAP version manually to 1.2 from the default to see waht'd happen
and the code just returns.
doesn't throw an error, it just returns.
OH LOOK A TRY/CATCH THAT EATS THE ERROR
I hate this codebase so, so much.
 
LOL
Life is too short to work on horrid codebase.
 
var_dump($caught_soap_fault); // NULL MOTHERFER
 
9:08 PM
:D
 
Holy shit if I did not need this working I would so give up right now.
Unfortunately as long as it's broken we can't ship via fedex ...
THERE we go.
> Internal system error. Please try again later.
Thanks, fedex
 
lol
 
There, finally. All because the SOAP client magically decided that a typo in the method call I was using was actually a service request that isn't in the WSDL.
So, it looks like the current version of the SOAP client isn't properly setting the specific value I need. Instead, empty element in the XML. Well, at least that's a puzzle I can look at...
Yup, there we go.
 
You did well, Charles, you did well.
 
So, in our shipping code, we, for some stupid reason, request a shipping quote for each Order Line Item as an individual box.
Because this is a non-programmer thing, the boxes start with box number 1
So when we build the request, we do this:
$request['RequestedShipment']['RequestedPackageLineItems'][1] = array(
Guess what SOAP does to this array in PHP 5.5?
If you guessed "well there is no element zero so there's nothing in the array so we will send no data", then you guessed right!
 
9:19 PM
Yay for ++$i - 1.
 
Replaced the [1] with just [] and BOOM, working.
Stupid idiotic code.
 
Ah, LOL.
 
@ircmaxell That's a nontrivial collection of ... wait, what are we looking at here?
Changing the unit testing framework?
 
@Charles not changing, adding one
 
9:23 PM
Hah
 
9:36 PM
yo peepz
 
yo
 
@bwoebi you're using a reference. shouldn't be a big surprise there.
people have used that to make hard types.
 
@ircmaxell The thing is that you cannot destroy a closure during it's lifetime
 
@bwoebi why not?
it's not actually during its lifetime
 
9:51 PM
because that fatals?
 
after the closure returns, its variables are garbage collected
 
@ircmaxell yes and that's the trick?
 
so the closure is destroyed after it finsihes exeucting
 
I just didn't know that that trick is already known
 
ah yeah, people have been using things like that for a while to simulate strong typing
 
9:52 PM
strong typing? eh how is that related here?
@ircmaxell any example?
 
I don't remember where it was. I'd have to go look for it
 
10:10 PM
hello
 
$password = hash('sha256', '$_POST["password"]');
why this doesnt work?
 
why are you adding ' ' to it
 
true dat
thx
 
@corpseRott look into bcrypt
561
Q: How do you use bcrypt for hashing passwords in PHP?

Vilx-Every now and then I hear the advice "Use bcrypt for storing passwords in PHP, bcrypt rules". But what is bcrypt? PHP doesn't offer any such functions, Wikipedia babbles about a file-encryption utility and Web searches just reveal a few implementations of Blowfish in different languages. Now Blo...

 
why would I do that? o.O
I am to lazy to convert all the passwords now :p
 
10:18 PM
@corpseRott because sha256 is fast which means crackers hackers could crack the passwords very fast if your database get powned
 
its an intranet app, they would first need to get through a fortigate fw, break through proxy and all other stuff
fast is good in this case
the less network admins have to worry about load balancing the better
 
@corpseRott that's a bad reason to not use better security measures. Also it's not hard now a days to implement bcrypt
Anyways it's just an alert. If you won't implement it now, just take a look at it in the future
 
dont like, the faster, the better, optimize code, good :p
 
3 more things to code and project finished
eta 10h
wish freelancing was still worth something
nowadays freelancing portals are crowded with hindi
 
10:30 PM
you mean indian?
 
"hello frend i do guuud site for you, very chip 20 dollar"
yup
 
I am sorry to say, but you strike me as one yourself. Maybe not by nationality, but by behavior.
 
Why would you suggest me being a hindi?
 
I find this conversation very racist. Moreover, the cheaper small simple websites are the better. The ideal is that building a website would be so simple it'd be free.
 
@BenjaminGruenbaum use google sites :P
 
10:32 PM
And then you end up without a job, not quite sure if that logic speaks to me
Do you work in a corporation perhaps?
 
If your job is to build simple small websites you don't really have a job anyway.
 
You really underestimate hindi, and thats racist, these guys can pop up a huge portal, or a full out application just fine
 
As for Indians, no Indian has ever been successful in development. That's why an Indian leads the company that powers the most desktops and most word processing software in the world.
@corpseRott do you have some problem reading English? Where did I claim Indians have a problem coding large portals? All I said is that small websites, "20 dollar" sites should be simple enough to make on your own in my opinion.
 
I am not suggesting them being anywhere near inferior in coding or anything at all. They do an excellent job.
I am just stating a remark that due to heavily cut costs of living they are far more competetive than europeans or americans
Making a huge portal that would take me roughly 3 weeks to do wouldnt be even close to 100$
and thats what some indians charge for projects like that
 
I have not found it to be the case. The interesting jobs are just as easy to come by as they were 10 years ago. In fact, I'd say the demand is much bigger now.
 
10:36 PM
they re just incredibly competetive
 
Unless you want to code database skins all day, that is.
 
Not even a site coder tbh,
Just a remark
I checked out freelancing portals and couldnt find any jobs at all, I mean they re there, but if you look at huge projects that will consume you tons of time and a salary that you can easily get cleaning corridors as a school keeper
hmm
 
I have no idea what you're talking about, then again - I don't code database skins.
I don't seem to have trouble finding freelance work when I look for it, and it usually pays very well.
 
I dont even follow you, I never coded database skins >.>
 
What work were you looking at in freelance portals?
 
10:41 PM
I was checking out the general coding jobs
 
@BenjaminGruenbaum you're clearly an experienced developer. At least in my eyes, you are
 
c++, web design, java
and note that I have previously never freelanced, nor did i do any freelance projects
as said, just a remark i had after visiting a few portals to check out the prices
 
@NikiC He's too proud of his nation i.e. nationalist, not racist.
 
naw bro, I have huge respect towards Asian culture in general
I am only racist for gypsies
But pretty much 90% of europe is racist toward gypsies, they earned it :p
 
Because they don't work, steal, and massively apply for asylum in EU causing honest people troubles?
 
10:44 PM
@HamZa And if I am, so?
 
TOOTSKI pretty much, but since Romania is in EU, they dont really need to apply
 
@corpseRott please stop that.
 
@corpseRott Well that just confirms you're racist too, then.
 
you American?
 
No, I'm from Bosnia.
 
10:46 PM
@TOOTSKI oh cool, I didn't know that :)
 
and Benjamin?
 
I've lived a year in Baltimore, but I'm not American, why?
 
@BenjaminGruenbaum Thanks ^^
 
but you live in the US
 
We had friends from Bosnia, although they moved a few years ago, nice people.
@corpseRott No, I just said I lived in the US for a year at some point in my life, that implied that I don't live in the US if that was unclear.
 
10:48 PM
just wondering if you live or you're from Europe, preferably eastern europe
 
I have a Polish citizenship because of my mom, but I never really "lived" for a prolonged period of time in Europe. in Europe, I've spent several months in places (most recently I spent this September in Finland). Generally, I'm from Israel though.
 
Israel it is, so you dont really have to deal with gypsies alot?
:p
 
@corpseRott no, but I have to deal with racists, and I don't like them very much.
 
@BenjaminGruenbaum Very diverse country :) Bosnia is a mix of 3 nationalities (major), Bosniaks (Bosnian Muslims), Serbs (Orthodox Christians) and Croats (Catholics). I'm the second one by origin, but feel like just Bosnian (same thing as American i.e. no race no religion).
 
You're overacting in my opinion
 
10:51 PM
Always a good approach to steer clear of religion ;)
 
@corpseRott you've called a whole people thieves and dishonest, I'm not making a fuss of it, I just told you I dislike you that's all.
@TOOTSKI heh, defining ethnicity is pretty hard in Israel too, for example, I'm Jewish but I'm also an Atheist (more precisely Agnostic but meh). Generally, I define myself as a person first. I don't really care much about race or ethnicity except for ethnic foods :P
 
I almost always notice its either Israel or Americans that are super sensitive over that kind of things. Besides racism suggest a dislike towards a race
gypsy is not a race
thats an ethnic group
 
@corpseRott I'm not sensitive, I just dislike bigotry that's all.
@TOOTSKI where from in Bosnia by the way?
 
Thats my dislike towards my goverment rather than the ethnic group itself.
You see, where I live we have to pay roughly 60% of our income in taxes, which goes mostly to social welfare
and just as my hard earned money goes to needing people, sick people, people who can't help themselves, I am alright with it
But I am clearly unhappy when all of my money is transfered over to people who just simply don't want to work, and worse they just steal and laugh at it.
So many honest people have nothing to eat, and they will never get it because a few are just leeching it over. That bugs me
 
So help those people, don't hate on a racial group that did nothing to you. Even if some individuals from the group did things you dislike
 
10:58 PM
^ that
 
@corpseRott Uh, I get the feeling that you have some severe misunderstandings as to how social security works.
 
I don't even have enough money due to the sky rocking taxes to actually help myself.
 
lol php
 
It's usually not defined as "Take money from hard working people and transfer it to criminals", which seems to be your understanding ;)
 
NikiC that is?
please, read again what I wrote, I dont mind it going to people in need
but if its going to criminals, I oppose
and unfortunately in my country, this is how it works
 
11:01 PM
That's nice
I'm gonna start robbing banks
 
Benjamin you really need to visit Poland some day, its actually the opposite, theres a few individuals from the group that can be liked.
 
And cash in money from the government!
 
I will, and lucky for you I know enough decent Polish folk to not form a poor opinion based on one guy.
 
I don't like muslim extremism neither, which doesnt change the fact I have several muslim friends which I like alot, they re nothing like the murdering extremists. Which proves its not the nation or race but the people doing it.
Similar with gypsies.
Benjamin that would make you racist isnt that true?
 
lol
 
11:07 PM
:)
 
@corpseRott it would, lucky for me I got saved this time :)
 
lol
 
Also, being half Polish myself, it would be pretty dumb for me to consider myself half racist.
 
Hitler was half-jew
not quite sure if you realize :D
 
No he was not.
That's an historically incorrect statement.
 
11:11 PM
Prove it :p
besides, can you be half racist?
 
Well, his parents was Roman Catholic , so there's that..
This sort of conversation is why you get beat at freelancing by people who say (and I quote) "hello frend i do guuud site for you, very chip 20 dollar" :P
 
Nope, simply because I dont freelance
I am getting my full income from working at companies, and since I study alot outside of that, I just dont have time to do freelancing.
 
a lot, two words
 
@nikic I respect everyone's :) But IMHO root of all evil.
 
dude
 
11:20 PM
@BenjaminGruenbaum Same, religion only ignites stupid people to do bad things... spirituality is another thing. We smart :P Tuzla (salt city), Bosnia
 
ircmaxell has tricked me into c++ ... sneaky sneaky ...
 
Awesome :D
 
@JoeWatkins cool :D
 
C++ is the best thing ever, you go for it
 
@JoeWatkins that's why I had to stop reading that chat :-/ Too much C++.
 
11:21 PM
"How I stopped worrying about resources and learned to love RAII" by @JoeWatkins
 
if the need calls for it, and it does ...
 
I am atheist, if you're implying something :p
RAII is evil
reference counting smart pointers are for retards
 
I'm wondering why there is 3 ways to initialize a variable in C++:
int x = 0;
int x(0);
int x{0};
 
@corpseRott I now know you don't know C++, glad we got that covered.
@HamZa historically, or practically?
 
@BenjaminGruenbaum practically
 
11:23 PM
@HamZa practically you mostly use the foo{} form if you're programming c++11
 
resource acquisition is inicialization, a concept suggesting that memory allocation should be performed upon first use, and released immedietly when resource is no longer needed
 
@NikiC really?
 
In theory looks fine, but in practice its being implemented as a hoarding of smart pointers
Which causes huge memory leaks in the end
 
Argh, go to the damn lounge… I know it's languagism, but please...
 
@NikiC Hmmm, I think I need to "see" it. I guess I should just continue my reading in cplusplus.com/doc/tutorial
 
11:24 PM
@BenjaminGruenbaum Well, I guess there's different opinions on that ^^
 
@bwoebi the lounge will make a joke out of it
 
@HamZa pscht! that's why you should go there!
 
@corpseRott yep, don't know C++, got it.
 
But uniform initialization is both more powerful and safer, which is why I'd usually go for it
 
Well, you're being horribly insultative towards me
 
11:25 PM
@NikiC well, sometimes you want to invoke a constructor.
 
which I dislike as I never have been aggresive towards you.
 
@corpseRott no, I have not. Anyone who would say what you just said about C++ clearly never used it, or at least haven't bothered learning it before using it.
 
@BenjaminGruenbaum so, that's what you're doing, right?
 
@bwoebi Let's try the same question there!
 
good luck
 
11:27 PM
lol
 
Well hes just being offensive since he considers me racist, but thats a long story.
 
@NikiC don't know, reminds me of C struct initializers and collections so I use constructors often, but it doesn't really matter. I just didn't think about it as 'better'. Just 'more useful in scenarios with c++11'
@corpseRott you are racist, to Romanis and then to Americas and then some more...
 
dear peergroup and friends, stop arguing about shite, code or stfu !!
 
haha :D
 
@HamZa practically, it's there for historic reasons :P
@JoeWatkins at least we're not talking shit about PHP :P
 
11:30 PM
@BenjaminGruenbaum lol, I've read that uniform initialization is introduced in C++11
 
@JoeWatkins too late to code
 
@HamZa it helps
 
@NikiC never too late ;)
the night is quiet ...
 
hard to do anything useful late at night...
 
Well i am out for today, gotta finish the project tommorow.
Cheers y'all
 
11:33 PM
difficult to program during the day, it's school holidays, so I'm being bombarded with "do dragons exist in real life?" "can we go to the beach?" "why is all the grass green?" "what colour was our old car?" "do motorbikes go faster than cars?" ... all day long ...
 
@corpseRott cyaa
 
@JoeWatkins well, do they?
 
@BenjaminGruenbaum I'll tell you what I told her ... you have a computer in your bedroom and know how to find out ...
 
Should have told her to read "the dragon book" ;)
 
Google doesn't know what color our old car was :(
 
11:35 PM
that's my younger boy, I just have to answer those ones ...
 
I asked google if we could go to the beach, first result is "10 reasons you should never go to the beach" :(
 
never enjoy it when I get there ...
 
@JoeWatkins "why is all the grass green?" sounds like a pretty complicated question
 
@NikiC photosynthesis
Chloroform and stuff
Chlorophyll is green or something
 
you over estimate the boy, he wasn't asking me what the processes are that lead to grass being green, but more inquiring as to why it isn't stripy or or multi-coloured ...
he's 4
 
11:41 PM
 
@JoeWatkins "Daddy, why are there more than 5 functions that sort an array in PHP?"
Now that's a tough question to answer :P
 
@BenjaminGruenbaum Why are there ten functions to diff an array?
 
because php ...
 
Current status.
By the way, if anyone is traveling for the summer, my doors are open :D
 

« first day (1280 days earlier)      last day (3684 days later) »