« first day (1934 days earlier)      last day (3014 days later) » 

12:35 AM
@tereško since the day you asked why are there so many people who believe that earth is flat all sites I use have at least 2-3 posts about it
 
When using disable_functions in php.ini does it also disable aliases of the function? So say I disabled show_source() would/should it also disable highlight_file() and vice versa?
 
@crypticツ I believe it should.......I suggest just trying it though.
 
1:18 AM
I hate PHP's inconsistent naming tempnam so instead of doing tempname or tmpname let's just drop the last 'e' because why not?
 
That's the name of the C library function it's wrapping.
 
@crypticツ man7.org/linux/man-pages/man3/tempnam.3.html - yeah it's consistent.....just not with PHP.
 
ah ok, not into C. One day =o)
@Danack you're a maintainer for Imagick right? Are there any plans on getting it into core? It's so much better than GD.
 
It doesn't belong in core......what we need though is better ways to distribute extensions, and have them be installable per project.
 
hmm
now that the trend is towards using php-fpm rather than mod_php, there's probably actually a sane way to do that.
 
1:29 AM
yes - and I still haven't had time (aka been arsed) to look at github.com/FriendsOfPHP/pickle
 
if php-fpm can be marginally aware of the applications it's serving, it could fork itself for different applications and load in those modules on a per-child/per-app basis
and since safe mode is gone, it's not really that much more risky than running arbitrary php code on each access.
 
@crypticツ some things are better, some things are frightening
 
@jbafford ... it already does that. You just need to set up a pool per app.
 
yeah, that's what I'm doing right now, per project I enabled extensions via php-fpm pool config.
 
well, then, problem solved.
let's all go get beer and/or ice cream
 
1:32 AM
cough if you're still on PHP 5.6, you might want to double check that you never have Imagick loaded twice......apparently that can cause random crashes..
 
wait, how can you load imagick twice?
 
once through /etc/php.ini and once through the fpm pool config.
 
2:10 AM
Hi guys,
My laravel 5 app won't work properly if I access it from `localhost/laravel-project/public`. But, if I set the project to `localhost` then it works perfectly.
Anyone experienced this before?
 
2:51 AM
mornin
@Ekin I know, It's scary. It's as if your brain till then was magically filtering out that particular type of crazy and now you can't stop noticing.
 
haha. Apparently comments can not contain the content "What have you tried?"
 
Jan 1 at 15:30, by tereško
"What have you tried?" is not a permitted content for a comment.
 
3:13 AM
Morning room
 
morning
 
morning
 
 
1 hour later…
user5722584
4:26 AM
0
Q: Wordpress - Shopping Cart That works with Ultimate Product Catalog Plugin

Jack SmithI need a Shopping Cart That works with Ultimate Product Catalog Plugin I want the Ultimate Product Catalog Plugin to be the plugin to list the products then I want a shopping cart that will work perfectly with the Ultimate Product Catalog Plugin, Is this possible do i need to write a custom one ...

 
user5722584
@everyone
 
5:01 AM
no
 
5:28 AM
@tereško
 
o/
 
5:57 AM
Mrng
 
moin
 
hey i hav little problem on date
i got start and end date from date picker.. as format (dd/mm/yyyy)
how can i get diff from both date?
 
moin @Anmol
 
in php!!
 
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given @tereško im using PHP Version 5.3.13
 
you probably should update, 5.3.13 is four years old
 
yes
is thr any options with out datetime?
 
why can't you use datetime?
 
@dinesh what code did you have on that line?
 
6:06 AM
$start = new DateTime('Y-m-d',$search['start_time']);
$end = new DateTime('Y-m-d',$search['end_time']);
both $search values as timestamp
 
lol\
 
@PaulCrovella I got `Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given ' error
 
did you try reading the manual?
 
@dinesh so fix the error
 
seriously, @dinesh, making shit up is not really good way to write code
 
6:08 AM
kk
 
public DateTime::__construct ([ string $time = "now" [, DateTimeZone $timezone = NULL ]] )
 
@PaulCrovella he doesnt need that
10 mins ago, by dinesh
how can i get diff from both date?
 
> i got start and end date from date picker.. as format (dd/mm/yyyy)
but I don't really know wtf he's got anymore
 
start_time/end_time are these unix timestamps?
 
6:13 AM
Tysm guys @tereško @PaulCrovella i did it.
yes those are tiemstamps.. @Ekin
$start = new DateTime(date('Y-m-d',$search['start_time']));
$end = new DateTime(date('Y-m-d',$search['end_time']));
$dDiff = $start->diff($end);
 
so you ignored everything we wrote
 
@tereško not lyk that man u said go and read properly then y i go and find my issue..
 
please use english
 
good morning
 
'nin
 
6:25 AM
@tereško not like that man u said go and read properly then why I go and find my issue..
 
Morning @JoeWatkins
 
moin rudi
 
Raj
hello every one
i am php developer having one year experience is any feature as php developer ???
 
@Raj do you mean "future"?
 
Raj
ya
many people told me change your plateform dont became as php developer?
 
6:33 AM
What do you want to do?
 
Raj
m so mutch familiar with php and scripting language...
 
It should be easy enough to change platform if that's what you want to do.
Don't lock yourself in to only one thing because you're familiar with it.
4
 
@Raj if you ever become good at this, you will also naturally learn some javascript .. and knowing those two languages is a ctually quite good
2
but, dont expect any of "modern languages" to be the-current-hype in 2025
 
Raj
thanks but when i thinks join as .net developer or java developer in any company they asking about my past exerience so what i can do then?
 
what are you trying to ask?
the main thing you should actually learn is "better English"
you suck at it :(
 
6:38 AM
@JoeWatkins I wonder if I can claim dormancy on this github.com/ds
 
ah crap
other exts do that ... memcached off the top of my head ...
php-memcached-dev actually ...
 
php-ds is quite nice actually.
 
@AnmolRaghuvanshiVersion1.0 well yeah that's the example I'm basing my code on
 
@rtheunissen yeah ... extension=ds.so is nice too ...
 
@SamIbraheem so there is some typo in your code recheck with that example header('Content-Disposition: attachment; filename="'.basename($file).'"');
 
6:41 AM
@Raj if you want to work at companies that focus on .Net or Java, then you should know .Net or Java. Having skills in other languages is an advantage, but only an advantage.
 
@AnmolRaghuvanshiVersion1.0 let me check my code again
 
Raj
so can i change or not?
 
@tereško yeah, I know a couple of guys that know python, go, java & ruby besides php & js, but they suck hard as developers in general..
 
.. then there is that, yeah
 
both, business & technically wise
 
Raj
6:44 AM
is php developer not getting high salary in india?
 
forget about learning languages, learn about programming ... you should be in a position that whenever a new language comes along, you only need to skim through a manual and you can use it ... favourite languages will emerge, eventually ...
 
@AnmolRaghuvanshiVersion1.0 I just checked my code, I can't find any typos :(
 
@Raj how the fuck should we know that?
 
@AnmolRaghuvanshiVersion1.0 I feel so stupid right now
 
6:49 AM
How do they usually implement these inline relations like @mentions & #tags? Is the post parsed on created/updated, or is it done somehow dynamically? Maybe someone has some experience with this? Interested in user mentions & tagging internally in the project..
 
@AnmolRaghuvanshiVersion1.0 still getting the same problem, the file is corrupted
 
what exact error message are you getting??
 
afk, walking dogs
 
when I'm opening the word document, it says that the file named office open XML rules_file cannot be opened due to content problems
 
@SergeyTelshevsky I have no clue, but, if I had to implement something like this, I would have a parser to go through the text, filter out the mentions and tags and then store them in separate tables
 
6:53 AM
@tereško that is to fire the parser on create/update, I thought it would be like that..
 
@AnmolRaghuvanshiVersion1.0 it also says that the file is corrupted and cannot be opened
 
Raj
so in short is any future scope as php developer (yes/no )???
 
@SergeyTelshevsky whether you do it using TRIGGER or on the PHP side of things is more of an implementation detail
though I think it would be easier with PHP
having sizable chunks of logic in DB tends to backfire
 
@SamIbraheem refer an pro now ^
 
@AnmolRaghuvanshiVersion1.0 I'm sorry???
 
7:00 AM
@tereško oh no, I don't like triggers, what I meant was if it's usually done realtime (using fulltext search etc.) or creating many-to-many realtionships on creating/editing
 
definitely not realtime
 
'sorry' for what i can't help in question further,me to in learning phase @SamIbraheem
 
@AnmolRaghuvanshiVersion1.0 thank you for trying, let me post my code again, maybe someone would be interested
<?php
$file=$_GET['file'];
ob_start();
header('Content-Description:File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition:attachment;filename="'.basename($file).'"');
header('Content-Transfer-Encoding:binary');
header('Expires:0');
header('Cache-Control:must-revalidate,post-check=0,pre-check=0');
header('Pragma:public');
header('Content-Length: '.filesize($file));
while(ob_get_level())
{ob_get_clean();}
readfile($file);
ob_end_flush();
exit();
?>
 
but use pastebin or gist @SamIbraheem
 
@AnmolRaghuvanshiVersion1.0 are those php functions or formatting tools??
you guys the problem is that the file downloaded with this code is getting corrupted
 
7:20 AM
this game looks awesome: kingdomcomerpg.com
 
Morning
 
@tereško it's like a renfaire, but without the smell
 
,mornings
 
7:40 AM
@tereško looks promising when watching the trailer, but it feels kinda generic
 
7:50 AM
@SamIbraheem so, what would be games that it mimics?
 
@tereško When I watched the trailer, I couldn't help but thinking of Assassin's Creed, maybe it's just me
 
@tereško LOL, I really like talking to you
 
I am kinda serious
 
@tereško Have you played Undertale?
 
7:57 AM
AC games are 3rd person claiming games, where fights are based on unstoppable counters
 
The best fight system I've yet to see is in KH2 though.
Closely followed by the Arkham series
 
@MadaraUchiha nope. It's not available on linux (on which I am currently stuck) and it didn't look like anything I would actually enjoy
 
@tereško I think you would.
 
Are you guys fans of strategy stuff? (CIV5, Cities XL)
 
7:58 AM
Deep story.
 
Wes
ENRIQUE Iglaesias everyone
 
@tereško same reason why I only get to play Portal 2 lately
 
@Ekin I have been mostly playing XCom and Mount&Blade
unfortunately I finished both Portals more than 3 months ago
 
yeah my bro plays M&B a lot
 
@tereško You get a decent FPS on Linux?
 
8:01 AM
I sometimes take his win7 for tomb raider I bought on months ago
 
@MadaraUchiha there is CS (which I dont play), HL2, Serious Sam 3, Metro series, Shadow Warrior, Borderlands 2 .... that's from what's available in my steam lib
 
@tereško I meant frames per second
 
oh
 
I only play low graphic games on my linux
Otherwise it's unplayable.
 
they are alright, but it was a bit tricky to install AMD's Crimson
but it's not for the faint of heart, because it need one to have ability to function in black'n'white terminal
@MadaraUchiha what specs do you have?
 
8:05 AM
@tereško I have two PCs, one's decent (i7, 16gigs) but crappy generic intel graphics card
 
yeah, you need a GPU
 
The other is a monster with GTX 970, although admittedly I haven't tried messing with the linux there
 
GTX970 is not a monster, it's a mid-range GPU
although, setting up an nvidia-based linux machine is easier
@Ekin you could try Transistor or Don't Starve
 
Wes
ever happened to you to rewrite something completely several times? how do you fight your brain from telling you "hobo life would be better than this"?
 
Transistor, Bastion those I played a lot
 
8:12 AM
hmm ...
 
Wes
apart from alcohol i mean... and drugs
 
what games would you guys recommend for an average laptop?? (Intel HD graphics 1GB, Intel core i5, 4GB RAM)
 
I want to go for something like CIV Beyond Earth nowadays
 
@tereško It's a monster relative to the average level here in Israel
 
@Ekin it's rumored to be actually really bad
 
8:14 AM
Gaming isn't really strong here -_-
Mostly because any and all PC parts are stupid expensive for no reason whatsoever.
 
@SamIbraheem old ones. Browsing gog.com would be a good start.
 
yeah? I hope it's not I really waited it
 
@Ekin here's a "review": youtube.com/watch?v=IydX8R2xxe4
 
Wes
would you prefer:
$map->contains(new Entry($key, $value));
$map->asValueBag()->contains($value);
$map->asKeySet()->contains($key);
or:
$map->contains($value);
$map->asKeySet()->contains($key);
$map->asEntrySet()->contains(new Entry($key, $value));
(cc @LeviMorrison)
 
@tereško that's a one cool website, I found this game looks cool
https://www.gog.com/game/anno_1404_gold_edition
 
8:19 AM
yeah, it's in my wishlist
 
somehow it made me remember ogame
 
@Ekin It's on humble bundle
 
Beyond Erth is also on steam with -67%
 
yep I saw
 
afaik, Endless Legend is said to be better than Beyond Earth
 
8:24 AM
I got deus ex series, now I might get both Beyond Earth and XCOM
I better don't though
 
/me has played XCom for 230 hours .. it's scary
 
:)
 
well .. ok, 100 hours of it has been the Long War mod, but still
 
good meurning!
 
@MadaraUchiha it's not like you live in Brazil :P
the tech is quite affordable in Israel, AFAIK
 
8:27 AM
@tereško I live in Israel, everything here is at least triple the price you'd get in the US.
 
oh
then it is just like Brazil
 
how much is 1,000 ₪
 
$1 =~ 4 shekel
So about $250
 
about 465eur
 
8:30 AM
Most of what you get here is the low-end, generic shelf crap.
And ordering the good stuff selectively is even more expensive.
 
@MadaraUchiha those two first picture are for 980
 
here in Uruguay it's $525+
 
@MadaraUchiha you should see tech prices in Syria, now that is a heart attack
 
@tereško Just to show you what we're dealing with -_-
 
prices for same card in Latvia: salidzini.lv/search.php?q=Gigabyte+GTX+970+4GD (fixed link)
 
Wes
8:31 AM
@MadaraUchiha price of gtx970 is 400$ here
 
@SamIbraheem You mean before the war? (I'd imagine it had a "small" impact on prices)
 
375 EUR, cheapest I could find in belgium / holland ($406 I guess?)
 
Wes
let's all move to israel to buy that gpu! :P
 
@MadaraUchiha well before the war it was bad but affordable
Now it's just a nightmare
 
@SamIbraheem I can imagine, wars suck.
 
8:33 AM
after reading reviews I've decided to take MSI 970
 
^ that I remember
 
@SergeyTelshevsky I recently ordered new pc, you building new one or just buying new graph card?
 
@Naruto why would you "order" a PC?
you should order parts and build it yourself
are you technologically inept?
 
well I do ^^ but I've ordered all parts from the same dealership which was the cheapest :) sorry for the misuse of 'new pc'
 
you guys speaking of which, what does it mean when it's said that a PC has 4GB (2.86 usable )?
 
8:35 AM
are you running are 32bit OS?
 
@tereško yes
 
well .. there is your problem
32bit CPUs cannot "address" 4GB of memory space
 
@Naruto I've bought it last summer while building the PC under the guidance of tereško san
 
32bit = Maximum of 4GB
 
@tereško will a 64bit OS fix the problem? Or I need to do something else?
 
8:37 AM
@SamIbraheem yes, a 64bit OS would fix that (of course you would need to make sure that your CPU is 64bit)
@Epodax yes, but that for ALL addresses. There is other stuff on PC besides just those RAM sticks that your CPU needs to talk to
 
^ e.g. GPU
 
@tereško Indeedio, alas, do they even make 32bit CPU's anymore? I mean, for what purpose would they make 32bit CPU's, they're baaaaad.
 
@Epodax because 32bit chips are easier to make. Less complexity. It's not like your refrigerator or car radio needs 4GB of address space
 
@tereško btw with that video I've not yet stumbled upon a game where I would get <60fps on ultras
 
8:43 AM
@SergeyTelshevsky you probably have a standard 1080p screen
my 3440x1440 seems to be chocking on some games with ultra preset (that's 2.4x more pixels)
 
@tereško I just found out that I have a 32-bit processor, I fucking hate this laptop
 
meh, just re-purpose it as a refrigerator or car radio
 
@tereško Okay, let me rephrase, why do they even make 32bit CPU's for computers
 
dang, it's 6am already. I'm out for One Piece, have a great day everyone
 
@Epodax if you mean standard PCs, then the answer is: they actually dont anymore
@PaulCrovella most if that stuff runs on low-power ARM stuff: youtube.com/watch?v=Jyp6jFCzW44
 
8:48 AM
That's a relief to hear. It's nonsense, I mean, you can hardly find anything these days that doesn't have more than 4GB ram.
 
I think there are still chromebooks with 32bit chips
 
yeah my laptop is like 7 years old or so, oh well, at least I can enjoy The Sims 3 with occasional crashing
 
pretty sure my chromebook has like 9 or 10 bits, tops
 
Morning 11
 
@SamIbraheem I am serious about those older games. Try playing Diablo 2, Deus Ex, Arcanum, Vampire: The Masquerade and Planescape
 
8:51 AM
man, planescape was soooo good
 
also, Heroes 3
 
A lot of Blizzard games are great for old computers.
 
@tereško Thank you for the recommendations, I'm totally checking them out
 
@tereško yep :) but I've been sitting on a 1600x900 for 3 years before this screen, so I'm a bit out of date in my requirements :D
 
Misread that.
 
8:53 AM
@SergeyTelshevsky I am already thinking about what I will have to upgrade to be able to run HTC Vive
 
I' can't wait for 4k screens to get cheaper.
 
@Epodax naah, curved 3440x1440 is awesome
@SamIbraheem btw, with "Vampire: The Masquerade" I mean the Redemption and not the Bloodlines (which is a lot newer)
 
yeah, I've been looking on these tasty curved ones..
 
gm people :)
 
o/
 
8:59 AM
@tereško Maybe so, but I find that the curved displays are expensive as well.
Or atleast the ones with IPS panels are.
 
I picked one with a VA panel
 
@tereško I'm looking for it in gog right now, have you guys ever tried The Sims?
 

« first day (1934 days earlier)      last day (3014 days later) »