« first day (2049 days earlier)      last day (2892 days later) » 

Wes
i should probably watch the LoR
 
Ekn
you haven't seen it yet? then indeed :p
 
Wes
tried watching it at least a couple of times. got bored to death within 30 minutes and started a bruce willis movie instead
 
Ekn
hehe
if you didn't like it then don't push yourself tho :p
ugh I want this day to end
it's been a long and hard one
 
Wes
same goes with star wars
 
Ekn
12:12 AM
what's your top list?
 
Wes
it's not the worst movie i've ever seen but i hate it a lot since seems like the whole world likes it except me
 
Ekn
I'm not a fan of star wars either
 
Wes
i don't have a top list. i'm really bad at this kind of things
but maybe my fav movie is pulp fiction
 
Ekn
pretty sure you have a few nice movies you liked
 
Wes
terminator, matrix, 12 monkeys, sincity
 
Ekn
12:17 AM
heh right
 
Wes
die hard 3
 
Ekn
sin city... I want more movies like sin city
 
Wes
reservoir dogs
i don't even remember them. i have no time for movies anymore :(
 
Ekn
they don't make any alikes anymore, to movies like that I feel
yeah me neither :/
 
Wes
lucky number slevin
from dusk till dawn
desperado
ocean's 11
natural born killers, jackie brown
 
Ekn
12:21 AM
cool, some I haven't seen like slevin and the last two
 
Wes
departed, goodfellas, the aviator
taxi driver
 
Ekn
^ that I watched a few times
 
Wes
also die hard 1 & 2
 
Ekn
I went to cinema to see die hard 5 and it was totally not worth it, it was for first 2
 
Wes
fight club, dammit, i forgot one of the most important
 
Ekn
12:24 AM
heh right :)
have you seen mr. nobody?
 
Wes
minority report, edge of tomorrow, mission impossible (all)
nope, worth watching?
 
Ekn
imo yes, check the trailer maybe when you have time
 
Wes
could watch it now. i'm running out of tv series :B
 
Ekn
hold the doooor
me too
 
Wes
FUCK
i forgot trainspotting...
which could even be my fav movie, along with pulp fiction
 
Ekn
12:27 AM
that's a classic too I guess, good one
city of god was a good one too
 
Wes
forrest gump, also. i always love watching that movie. also indiana jones, back to the future
 
Ekn
I should watch it again sometime soon, been a long time
 
Wes
bookmarked
suggest me something :D what are your fav movies?
 
Ekn
hmm I realize again it's hard to answer that :p
 
Wes
:P
 
Ekn
12:33 AM
I think the ones I liked most were the fountain, leon, spirited away, back to the future, taxi driver...
 
Wes
i should make a list because my memory is failing
i'm getting old
ah leon, that too
....... blade runner. forgot another that is probably in the top 10
 
Ekn
amadeus, godfather series
scarface
the big lebowski!
 
Wes
argh, that too
 
Ekn
oh, into the wild
 
Wes
usual suspects!
snatch, lock & stock
 
Ekn
12:36 AM
ah that too yes, also shutter island was great too
aand in my all time top, I'm not there
 
Wes
contact with jodie foster :B. also mission to mars
apollo 13
 
Ekn
ah right
 
Wes
these are probably not as great as previous ones though
the italian job, both of them
catch me if you can
i loved that one
meh, i give up. there's probably some important movie that i'm missing :B
 
Ekn
:)
I think we made a good list though so far :p
 
Wes
lacks of scifi movies, but good ones are so rare
 
Ekn
12:45 AM
yeah, indeed
 
Wes
for instance i didn't like gravity, interstellar, martian
 
Ekn
me neither
 
Wes
pitch black!
that's top 10... or 20 for sure
 
Ekn
donnie darko.. I forgot
I think I haven't seen or don't remember pitch black, noted
have you seen ex machina?
 
Wes
yes, that too
moon, also good
 
Ekn
12:50 AM
armageddon :p
 
Wes
also independence day
 
Ekn
now that I think, sci fi series are made way better lately
than recent sci fi movies
 
Wes
pacific rim, godzilla, the one from the '90
was much better than the new godzilla
 
Ekn
I think I haven't seen the new one
 
Wes
alien movies, too, planet of apes
 
Ekn
12:56 AM
there was also source code with Jake Gyllenhaal, it was ok iirc
 
Wes
how's that movie with robot robin williams becoming human
benjamin button also nice
 
Ekn
huh?
aah bicentennial man?
 
Ekn
asimov's novel
I haven't seen benjamin button
 
Wes
gattaca, starship troopers, ghostbusters!!!
total recall :| how did i forget that? fifth element
 
Ekn
1:01 AM
ooh right I forgot them too
 
Wes
predator :P
i've never seen dune, primer - 28 days later was nice too, resident evil
 
Ekn
heh resident evil
underworld was not that bad too
 
Wes
yup
 
Ekn
lynch's dune?
I haven't seen that either
 
Wes
yes
 
Ekn
1:06 AM
me is going to finish the manga tereško linked the other day and try to pick one of the movies above now
today mom started undergoing chemotherapy
so I've been drinking a lot and haven't slept properly
 
Wes
:( sorry for that... i know what it feels... been there too with my dad
 
Ekn
sorry to hear that too... it's quite a hard situation to be in
 
Wes
i know...
 
Wes
1:26 AM
i think i'm going to bed now
will watch "how it's made" documentaries so i get to sleep fast :B
 
Ekn
hehe, nite nite Wes
 
Wes
gn :P good luck to your mom
 
Ekn
thank you
 
2:23 AM
 
 
1 hour later…
3:43 AM
MORNING
 
4:03 AM
this summer record 51° C temp
 
quick question, is there a way to do preg_match_all and preg_replace at the same time?
 
@AnmolRaghuvanshiVersion2.0 F Climate Change.
 
 
1 hour later…
5:15 AM
@littlepootis yeah hope monsoon will start soon...
 
5:36 AM
moin
 
@AnmolRaghuvanshiVersion2.0 youtube.com/watch?v=ztninkgZ0ws this actually was really interesting
 
I want to make online billing software in php , I was thinking about an issue , the issue is that when we are going to select the product everytime its stock has to be accessed from the server , , how to customize this entire process so that we don't need to send request again n gain to the server .....any suggestions then plz do answer here or send me the mail at er.arun.agarwal@gmail.com
 
6:02 AM
Moin.
 
Ekn
'nin
 
lawl, those analogies.
 
> Therefore, disabling pthreads in apache is no different from banning soda and/or guns, it's amoral.
fucking seriously ?
 
mornin
 
:P
@tereško o/
 
6:13 AM
 
@SergeyTelshevsky 'nin
 
linked in sent me an email explaining the last situation, I don't know.. I wished to cry reading that
@tereško 2y warranty or?
 
?
 
@tereško on SSD
 
6:18 AM
everything has 2yr warranty as minimum
 
yes, this has more? for a $700..
 
yeah, I've already looked for that
 
@JoeWatkins 'merkin like typing detected "I want mah freedomz"
 
Morning
 
6:19 AM
and I dont know whether it has a longer warranty
 
but I think having only 2 years for that price storage is a bit.. less than looks sane
 
@Wes Do you want me to spoil Forrest Gump forever for you?
 
6:41 AM
@Danack merkin
 
6:55 AM
o/o/
 
7:21 AM
morning
 
'nin
 
@PaulCrovella makes me wonder how you know such a thing :P
 
sometimes you gotta dress up for special occasions
 
lol
 
I love where this is going already :D
 
7:30 AM
moin
 
o/
 
\o
 
@bwoebi @rdlowrey @kelunik I've concluded that there's probably actually no good reason to expose the $name arg for creating prepared statements. It only really exists at all because of the way libpq itself deals with prepared statements (execute by name, and the ability to retain the handle across a reset) rather than it being actually useful in userland.
 
user895378
@DaveRandom would omitting the name prevent me from preparing a statement once and reusing it many times and getting a perf benefit?
 
@rdlowrey No, that would still work fine, we just auto-generate them
As with the connection state I would like to keep the ability to get at the information (via Statement#getName()) if you want it for debugging/logging purposes, but auto-generate all of them and not require it to be specified to simplify the API
btw @rdlowrey do you have any issues with what I was saying about connection state? I have no problem with abstracting it away such that you never need to do anything with it, but I'd rather not actively prevent you from getting it if you want it
Will definitely implement OPTION_AUTO_RESET, hadn't considered it until yesterday but it's definitely doable and useful
!!version
 
Hi guys i have issue in uploading image to a folder using php..The image is not uploaded to the folder the path is right ..You can check my code here..pastebin.com/3AMAr770
 
do you have permissions on the specified path?
 
@user12688 Any errors? Does it enter that code path at all? i.e. does isset($_POST['add_chk_doc']) return true?
 
Yeah i checked the permission of the folder as suggested in one of the forum like this and uploaded it to the server.
 
Also, I highly recommend that specify paths as BASE_PATH . "/upload/" . $newfilename instead, as it will cause problems when BASE_PATH is missing the trailing / the way you have it now - but it won't break when it does have a trailing / as a double // will be normalised to a single /
And note that when you are accepting uploads, just checking the file extension stated by the client is not nearly enough to reject files
The best tradeoff between security and simplicity is to load the file into gd and use imagecopyresampled() to copy the pixel data to a new canvas and save that instead, rejecting the upload if any step of that fails
 
7:52 AM
I was trying to pecl install pthreads, and this error popped up:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

ERROR: `phpize' failed
 
@Dave I included the base path to the code above ..the base path is added in the autoloader file
 
@Saitama yum install autotools (or apt-get)
 
thanks!
 
@Saitama you may need a C compiler as well if you don't have autotools, so check that you have gcc
Also note that you won't be able to install pthreads unless you have a zts PHP build
 
I have both, gcc and g++ atm...
 
7:54 AM
@Naruto i checked the permission also checked with chmod("upload/",0777); but still not working
 
OK, autotools should be all you need extra then (which includes autoconf, automake etc)
 
@DaveRandom I explicitly did --enable-maintainer-zts :P
k :D
 
wait, you built PHP from source but you don't have autotools?
Did you build from a src zip?
 
yes
 
I usually build from git, I forgot that you can do a zip without autotools
 
7:57 AM
:P
 
@user12688 error_reporting(-1); ini_set('display_errors', 1); at the top of your script
 
yay! successfully installed pthreads again!
 
@DaveRandom please check the new link the above link specifies only the uploading code but here the entire details of the form ...pastebin.com/FsjE2KW3
 
'nin
 
8:01 AM
hoi
 
ohai \o
 
@DaveRandom autoconf and automake should be enough, no etc., right?
 
@Naruto do you know any other solution for it...I dont know why its not working i specified the correct path
 
@kelunik dunno, it's a very complex and incestuous toolchain, I always find that things have unexpected deps... I just know that autotools is a grouped package of "everything you need to build things which are based on the autotools toolchain"
 
8:13 AM
o/
 
@DaveRandom Or buildessential, autotools doesn't exist on Ubuntu. ;-)
 
@user12688 seriously, you need to check PHP errors. Chances are PHP is telling you want is going wrong if you turn error reporting up to max - which you should always do while developing, no exceptions.
@kelunik oh I don't speak ubuntu
 
@user12688 what dave says.. check your error log, turn on error reporting... make sure data is being passed.. check if parameters have the correct value...
 
@kelunik I'll do it, they already have my address
 
8:21 AM
@DaveRandom Mine probably, too. I don't actually care about my address there, it's just the general process.
 
@DaveRandom I'm getting a warning error like this: Warning: move_uploaded_file(upload/show booking detail.png): failed to open stream: Permission denied in C:\Inetpub\vhosts\www.mytestbench.co.uk\httpdocs\lankanacademy\admin\check_docum‌​ent_save.php on line 41
 
@kelunik You are contributing code that is shipped with a retail product. It's no different to what you would sign when you start working for a company on one of their retail products (because that's what you are doing, effectively)
@user12688 OK, so it is a permissions issue then
You need to go verify the user account that PHP is running under really does have write permissions to that directory
If it has write permissions via group you may need to reboot, Windows processes group memberships at logon and doesn't ever reconcile them
 
@DaveRandom It's licensed under Apache 2.0. That should be enough. Signing a document brings them nothing, because anything can sign such a document with my name. If I state on GitHub, that it's fine to use it, that should be enough.
 
You should also use an absolute path to the upload directory
 
@DaveRandom Yeah i made it full controll through cpanel->htdocs->change permission. I also checked by choosing the folder properties->security it also has the full controll which i uploaded in the server...What else change or options do i have to check with permissions.
 
8:31 AM
@kelunik For lawyers it isn't, and their lawyers will not allow them to accept contributions from the general public into protected IP without it (I've been around this before with a previous employer)
If you aren't FOSS from the ground up, it's really hard to open source part of a project
@user12688 what's the full local file system path of your uploads directory?
i.e. where is it relative to C:\Inetpub\vhosts\www.mytestbench.co.uk\httpdocs\lankanacademy\admin\check_docum‌​‌​ent_save.php ?
also... are you using IIS??
 
@DaveRandom It's already open source. It's not that I'm contributing to a closed source project as an external contributor.
 
@kelunik the intellij platform isn't though, and this will be classed as a sub-project thereof from a legal standpoint. I realise it sucks but I've tried fighting this kind of thing before from the other side of the wall and it's a massive waste of time. Sorry :-(
 
What was again the command to 'duplicate' a folder on a server and give it a new name? It's not possible to do any changes on the original one, it's all the time in use, but I need a duplicate for it. (linux serve) in terminal . ( mv foldername duplicateName
 
cp??
 
whupppssup
 
8:36 AM
@DaveRandom It's like every open source library that's used. The IntelliJ platform is open source as well. Just not the ultimate features.
 
@Webeng The main thing that's "up" is that this is neither a Budweiser commercial, nor 2002
 
@kelunik Lawyers are terrible. That's really all there is to it.
if ($lawyer) throw new (╯°□°)╯︵┻━┻;
4
 
@DaveRandom well the lack of budweiser commercials doesn't impact me give that I don't drink. I used to, but the killing of my neurons was too much of a tragedy
 
@DaveRandom so : "cp originalFolderName NewFoldername"
 
it's frequently not the lawyers calling for this sort of thing.. a CLA isn't a contract (signed or not, there's no contract without consideration) and carries basically zero legal weight
 
8:38 AM
I also used to drink, but not budweiser because it's terrible.
@Duikboot will need a recursive flag, maybe other options as well depending on what you are doing, but basically yeh
!!man cp
 
...
 
cp?
 
!!version
@PeeHaa ...I'm actually pleased that it's crashed so I can finally see some logs :-P
 
-R, -r, --recursive copy directories recursively

cp -r originalFolderName NewFoldername ( I just need an exact copy ) :)
 
!!eval class (╯°□°)╯︵┻━┻ extends \Exception {} var_dump(new \(╯°□°)╯︵┻━┻);
 
I'm already landed there ;)
 
You should read all the options and consider whether you need them for what you are doing, probably cp -r will be enough but it depends what's in the dir and what you want to do with it
 
yeah I don't need any ther of the options
 
@DaveRandom Yes i'm using IIS ...Is there any facility to post image so that i can send the screen shot for the reference...
 
@Sara No matter what. They do a lot of open source. If they don't get it to work without such agreements, I won't contribute my free time.
 
8:42 AM
thanks :)
 
@user12688 I only want to know the full path of the uploads dir at the moment ;-)
 
Wow, cp -r is so much faster then 'duplicate' inside a FTP application :D
 
no shit :-P
There are some FTP extensions that implement cp locally, but basically don't use FTP for anything... ever
 
@kelunik Good. Companies need a tiny amount of bullying to get their heads out of their asses on open source.
 
@daveRandom lankanacademy/admin/upload
 
8:48 AM
@DaveRandom I use SCP now for copying large dirs between my computer and a server. That's also insane fast... FTP is so slow
 
@user12688 try $upload_path = __DIR__ . "/upload/" . $newfilename;
@Duikboot That's because SCP invokes cp locally, whereas FTP transfers the entire file to the client and back to the server again
 
@Sara you and Jean-Baptiste Quéru should start a support drinking support group for former leads of corporate-driven open source projects
 
@DaveRandom this is the image i uploaded directly for testing: mytestbench.co.uk/lankanacademy/admin/upload/…
 
OK so... it worked or are you just showing me a pretty picture? :-P
It's a very nice picture
 
@DaveRandom i tried DIR."/upload/".$newfilename too... but its not working...Shall i seek server side help
@DaveRandom That image i loaded directly
 
8:55 AM
@user12688 well if it's failing with a permissions error then you need to sort out the permissions, as I'm not the sysadmin of that server I can't really help you so... probably.
 
@DaveRandom What are the way to set thepermission : I tried using chmod(),Then changing with change permission in htdocs and setting full control any other thing i can do ?
 
chmod doesn't work on windows, you need to set the ntfs permissions
 
is there a way to use the symfony DIC with symfony's router?
(I don't want to install the entire framework)
 
\o Mibble
 
nevermind .. I think I found it
 
9:02 AM
question: what's wrong if you are trying to do an insert .. update, and it keeps giving me 0 in return? no connection errors.. and in the db, id just increments, but no values are being stored..
 
http://stackoverflow.com/questions/37388426/cybersource-how-to-add-m‌​erchant-defined-data-field-in-woocommerce
 
@Naruto what's the full query?
 
sec pastebinning
@tereško pastebin.com/D11sxNga , do you think it has something to do with a the NULL value?
 
id=LAST_INSERT_ID(id), doesn't look right
You don't need to specify the id of the target row(s) in an ON DUPLICATE KEY UPDATE, it knows which rows to update because of the duplicate key constraint
 
@DaveRandom it is right
 
9:09 AM
also I've never seen that groepid = VALUES(groepid) syntax, is that valid?
 
yes
go and learn SQL
 
@DaveRandom Thanks for your time dude atlast i got it..
 
I apparently have forgotten how MySQL duplicate key update works
 
@Naruto which is the UNIQUE value that you are trying to update there?
 
That to me reads wrong because LAST_INSERT_ID() isn't being used in the insert values portion
 
9:10 AM
combination of groepid, code and naam
@DaveRandom yeah removed it, did a little much copy paste
 
@Naruto when you run just an insert from a client, do you actually see it triggering constraint violation?
 
you mean if it actually fails the insert of the same row?
 
@DaveRandom WHAT THE FUCK ARE YOU TALKING ABOUT ?!?!
@Naruto yes
 
I learned to wrap always a try catch around those insert statements...
 
it seems it just adds a new row.. ignoring my unique value combination
 
9:12 AM
I would have thought that query should just be INSERT INTO groep (groepid, code, naam, actief) VALUES (?,?,?,?) ON DUPLICATE KEY UPDATE actief = VALUES(actief) (assuming that VALUES(actief) takes the value of the 4th ?
"Try and create a row with this groepid, code, naam combination, if it already exists just update the actief value"
 
what are you talking about ?
yes, that how it works , but it has nothing to do with "value being 4th"
 
so you don't need to update groepid, code, naam because they are already correct, you know that because they are the cols that triggered the constraint
@tereško by 4th I mean "corresponding with the named insert column position"
Which in this case is the 4th
wait in fact is groepid auto incremented?
 
if you were trying to say, that in his query he was pointlessly updating the rows, which would be triggering the CONSTRAINT violation, then - yes, it's lazy (but wouldn't actually trigger any errors)
 
well no I know it's not triggering errors but it reads... odd
@PeeHaa can haz log file?
 
If you want to lock a row so others can't modify it during a certain process, is it better to lock it on the database level or have a tinyint flag and let the application check for locking?
 
9:19 AM
it reads as "I copied this query from another part of code and just modified"
 
@tereško adjusted the query only to update actief if needed, but it keeps adding the rows
 
@Naruto because that is NOT the cause of problem
6 mins ago, by Naruto
it seems it just adds a new row.. ignoring my unique value combination
^ this is what's wrong
is your UNIQUE key actually a composite?
 
yes it is:
 
@Naruto are you sure there is a single unique index across groepid, code, naam? I would have expected groepid to be an auto-inc PK and a unique constraint across code, naam (based on the names)
 
@Naruto then were you laying when you said
7 mins ago, by Naruto
it seems it just adds a new row.. ignoring my unique value combination
?
 
9:20 AM
id = primary key, groepid = index, and unique value combination= groepid, code and naam
 
@DaveRandom groepid is a foreign key
 
on a table called groep? that also reads weird
 
no, because a foreign key can reference the same table
 
groepid in this case is his parentid, if there is one
 
bad name is bad then, but w/e
 
9:23 AM
@Naruto how exactly did you define that UNIQUE key?
 
131
A: Does MySQL ignore null values on unique constraints?

Mark ByersYes, MySQL allows multiple NULLs in a column with a unique constraint. CREATE TABLE table1 (x INT NULL UNIQUE); INSERT table1 VALUES (1); INSERT table1 VALUES (1); -- Duplicate entry '1' for key 'x' INSERT table1 VALUES (NULL); INSERT table1 VALUES (NULL); SELECT * FROM table1; Result: x NU...

^ I suspect is the issue
You are creating a row with a NULL groepid
that won't trigger the constraint
 
@DaveRandom you are absolutly right!, but then the question is, how to prevent it? ^^
 
Use 0 instead of NULL to indicate no parent?
not sure
that doesn't feel brilliant
 
@Naruto by passing the id
 
but if there is no parent, the column should be empty..? so you can't pass an id then?
 
9:28 AM
wat
INSERT INTO fuck(id, poipid, whatever) ...
if id is NULL then a new row is made, if not - it gets updated
 
@DaveRandom it's fine. null in sql doesn't mean "none", it means "i don't know" - so using something other than null for explicitely "none" is appropriate
 
also, I would like to publicly state, that Symfony's documentation is fucking useless piece of shit
 
:D
 
Hmm. I could create a lock table, a tinyint(1) lock flag, or attempt row level locking on InnoDB. Not sure what to do.
 
codeigniter had good documentation, it's either code, either docs :P
 
9:39 AM
@SergeyTelshevsky you could read through all of CodeIgniter's code in an hour
 
Anonymous
jollow.
 
Anonymous
Ah, tereško being tereško ...
 
Anonymous
what else is new rommies
 
@tereško @DaveRandom thx for the help
@Sean just lock the row by setting a column to 1 or 0 ? unless people have access to your database?
 
@NikiC good point, I was mostly looking for a compromise, for now
@JoeWatkins the cleanest solution would be to have scoped property accessors, which includes also private API
Basically, I need to trigger __get (or something that replaces it) even with class Foo { private $bar; public function thingThatUsesBarAndTriggersLoading() { return $this->bar; } }
 
9:54 AM
can someone illuminate this for me: why is Symfony's docs for DIC saying, that it should be used for "services"?
... and then they have:
services:
    my_namespace.my_router:
        class: "%my_namespace.my_router_class%"
        tags:
            - { name: router, priority: 300 }
what the actual fuck
 
pls advice how to prevent sleep function execution through url stackoverflow.com/q/37457369/1158603
 
A router is a service? What is more annoying is that they have the request as a service
 
I don't understand what bit you are referring to
this is just adding a service tagged as "router" to be injected into the chain router. Still a service
So it's basically new ChainRouter([new Router1, new Router2, new Router3])
 

« first day (2049 days earlier)      last day (2892 days later) »