« first day (1818 days earlier)      last day (3114 days later) » 

12:14 AM
 
OOP paradigm is only releated to high level language??
 
no, you can apply OOP to almost any language.
I'm sure there are some procedural languages where it would be difficult, but even in Javascript I apply OOP patterns.
 
even in assembly? :D
 
absolutely.
 
ok i came across this article so i asked thnks :)
 
12:22 AM
I use OOP in assembly. It would be very difficult to not.
write a method once, then reuse it. That's almost always the best practice.
for instance I used this procedure in a lot of my assembly homework:

PrintThankYou proc
pushad
mov edx, OFFSET thankyou
call WriteString
popad
ret
PrintThankYou endp
 
it's look good ;p what's that ?how does it make it OO
 
It makes it OOP because I create reusuable procedures that can be called from almost anywhere in the program
 
thnks :)
 
12:40 AM
interesting article, I did no know you could overload the "+" operator in C++
 
hahhah :D
 
12:56 AM
which is that song in starting in animation part?
 
1:24 AM
Hi
Does anyone know any good guides to PHP/MySQL because i've looked through online and I can't find a great guide that's current
 
@doctorow secure.php.net/docs.php is an absolutely amazing guide to PHP... dev.mysql.com/doc/refman/5.6/en does its purposes for MySQL.
 
I meant more the pairing
Like the MySQLi command
 
Especially prepared statements. If you learn PDO prepared statements, you'll be learning the currently top recommended best practice for accessing relational databases in PHP.
Also, the one resource that I always recommend to all web developers, regardless of language, platform, data source, or area of interest is OWASP.org. It really is universally important for all developers to understand the concepts described there.
 
Thanks!
 
1:49 AM
Here is your daily dose of WTF: reddit.com/r/PHP/comments/3npfe3/…
 
> without Zend there wouldn't be PHP 7
right, we'd have PHP 6
 
Yup
Well, not really, but...
 
2:09 AM
> there aren't any changes to be expected
^probably the worst possible outcome
 
2:22 AM
@ircmaxell Like, Dmitry was a big part of NG
But Nikita was pretty big too...
I wish we could squelch all the "PHPNG was made by Zend" type stuff.
"Zend" did not really make Zend Engine 3.
I know I'm preaching to the choir. It just really bothers me.
 
3:01 AM
good morning
 
Yup, the problem with it is the large number of people it insults.
 
Morning Orangepill
 
what if any control over php does zend really have?
 
None at all
 
That's what I thought.
 
3:10 AM
Which is all the more reason crap comments like that spread more fud.
Especially when you consider this chat room was responsible for more of php7 than Zend was.
11
 
yeah that's the truth :)
 
Don't get me wrong, Zend contributes a lot.
And we are far better for them
But statements like that spit in the face of the community.
 
yeah... just hanging out in here you get to really see how php is made...
 
well i am not very familiar with php community but people in room-11 have seen to be very dedicated for making php more better
 
3:27 AM
I know ... people like Joe... fixing stuff from the time they wake up in the morning until they pass out at night (with a peanut butter sandwich). Completely selfless. It's the people like him that are the soul of PHP.
And there are a large number of people like him that hang out in this room
 
true Orangepill (y) ,now i feel lucky i have room 11 now
 
 
1 hour later…
4:37 AM
hi
is anybody there
?
 
yes
 
I am trying to use sqlite with php but I am getting start up error
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/pdo_sqlite.so' - /usr/lib/php5/20121212/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name in Unknown on line 0
 
moin
 
am googling for "How to develop a framework?"... "Challenges in conceptualizing a framework?" ... "Why do we need more frameworks?"... kind of phrases to understand the need of new frameworks. Can someone help me with a good article? (am baking & caking from 2yrs and CI'ing from 3yrs)
 
4:51 AM
Morning Joe
 
what about "why php framework" @krishna?
 
Friends please help me .I am stuck at this from yesterday
 
hello guys, my wordpress shows the same title twice and I don't have any SEO plugin installed. Is there anybody who knows how to fix it. Did a lot of google search but no help
 
@FélixGagnon-Grenier yeah it came up with good references, while i go through them, can you suggest me any article which is like complete meal
@FélixGagnon-Grenier Also i've basic understanding of n-tire architecture and uses of it
 
@ircmaxell this is not an argument that can be won ...
moin @AnmolRaghuvanshi
@Orangepill that made me smile ...
 
4:59 AM
:)
 
not really @krishna. I haven't read those, but I'd hazard the bottom line is it depends on the time you have at hand.
 
@ircmaxell some immutable facts: Steve Jobs is responsible for all of OSX, Bill Gates is responsible for al of Windows, Zend is responsible for all of PHP, and Sarah Palin is responsible for all the stupidity in the world ...
 
I like that the rest of those, while wrong, are still more accurate than the zend one.
 
@FélixGagnon-Grenier I just want to invent a framework but before I do it, I want to understand why a new framework evolves everyday!
 
my humble opinion is inventing a framework might be not the best way to use your time, especially if you're wondering why to use them... what about learning one first?
apparently symfony is amongst the not-so-frowned-upon ones out there.
 
5:07 AM
Yeah though I didn't add any feature to any of the frameworks' libraries or to its core, I managed to deliver handful of websites in Cake & CI. I feel pretty comfortable. So what do i do now?
 
@PaulCrovella Interesting! I wish I could get more such ref from our PHP'ers
 
5:24 AM
0
Q: Not receiving gzencode response

Muneem HabibI have compressed data using gzencode. Everything was working fine before gzencode. The issue i am facing now is that i am not recieveing any response at all from server. My code snippet for compressing data is as follows: $isAcceptGzipEncoding = stripos($_SERVER['HTTP_ACCEPT_ENCODING'], "gzip"...

 
Abe
morning
 
moroon (morning+noon ~11am IST)
 
@krishna UGT
 
yeah even I greet the same in late evenings :P
 
Abe
also, i've been told that earth is not flat. like, it's morning here and afternoon there. crazy, right?
 
the earth is both flat and round: pizza theory
 
Abe
:D
 
0
A: How to share memory between HTTP requests in PHP?

Joe WatkinsI wrote (forked from APC and maintain) APCu: A shared memory cache is not going to help you. Their internal storage area already has a defined structure, you can't change it. You can store your structure as objects, but these, and no other value, are actually shared between instances of PHP. Shar...

 
Abe
6:04 AM
i wish i know why DateTime has both ::add() and ::sub()
 
probably for the same reason perl has unless
 
I don't pick on ext/date anymore ...
it's really hard to do it at all, getting it "right" for everyone is just not a sensible target ...
 
Abe
it's not that bad imho. sure there are odd things but they can be fixed
atm the only thing of it i don't like is the lack of proper microtime support
@JoeWatkins now i'm curious, what of it you don't like?
 
I'm overwhelmed that it works at all, I won't complain about it ...
some of the internals don't make sense, but whatever, it works ... and is really really hard ...
 
Abe
@JoeWatkins ahah :P
 
6:19 AM
Good morning
 
Abe
morning
 
Morning
 
o/
 
good morning
 
6:27 AM
so .. I have been working on a gaming PC build: docs.google.com/spreadsheets/d/…
any recommendations regarding what should I alter?
 
R.P
I would switch SSD to Samsung 850 Pro
price range should be almost same, but it is best in the market for price/value
 
@R.P that adds like +€60
 
R.P
holy crap
I got mine for under 100€ and that was like 8 months ago.
and why buy separate cooler?
 
@R.P that probably was the 128GB version
 
R.P
256
 
6:32 AM
the EVO is under €100
 
@tereško no HT ?
 
what is "HT"?
 
hyperthreading
 
what would be the point on a gaming machine?
 
morning
 
6:36 AM
@tereško If you don't have it all ready (or not planned to) I would strongly recommend buying a regular 7200RPM HDD for storage
 
@tereško the os can make use even if the games can't, and you're surely going to want to do things other than just play games, what about the things you do while you are playing games ...
not suggesting a monster
4 cores is enough, if you can run 8 threads ... I'm probably wrong never built a gaming pc before ...
 
@R.P Better cooling? :D
 
@Epodax that's additional €110 .. and not necessary for the initial build
 
@tereško You don't need to buy a 3TB NAS
 
posted on October 08, 2015 by aliceljdc

/* by Jorpheus */

 
6:38 AM
A 500GB or even 1TB regular 7200RPM HDD for storage is more than enough
256GB SSD is not a lot, you will quickly run out of space, even if you only install games.
 
hi guys
 
@JoeWatkins can you recommend a decent CPU then? (keep in mind that it not for me .. nobody will compile anything on it)
 
how can i make FROM order` WHERE YEAR(DateTime)= '$Year'OR MONTH(DateTime) = '$Month'` this mysql statement to search for month or year or month and year?
 
@tereško I'm slightly curious why you are using a mini tower for a gaming rig? :o
 
What's better to use for merging x items per array? ie. get first 5 of $a and first 5 of $b and merge into one?
 
6:42 AM
@tereško I just went through a wikipedia list of i5's, none of them are 4 cores with ht, so you're looking at an i7 ...
 
.. with the i7 price
this thing (unlike my own PC) actually has a limited budget
 
extra $100 the intel website says ...
 
also, let's drop the "K"
 
there's probably something underneath that, that would still be good ...
 
@Ekin you're looking for array_slice & array_merge perhaps?
 
6:45 AM
hm .. yeah google comes up with the k page, I didn't put it in the search ...
 
i7-4790 is a bit under €300 (+€50 for "k") .. so, yeah, that's additional €100
 
@tereško what is the budget?
 
€800-ish
 
is allienware not enough for gaming?
 
@PaulCrovella Yes indeed! Thanks :)
 
6:47 AM
@AnmolRaghuvanshi lol
(you were making a joke, right?)
 
hi guys
 
for pdo, when you call 'fetchObject()' in a loop, is each iteration a query/connection to the db? or is there a certain number of rows that are stored in memory by default, until it has to query the db again for more rows?
 
@tereško all peripherals already accounted for?
 
@PaulCrovella yes
 
:D actually no don't have any idea abt hardware! @tereško
 
6:50 AM
if it's same socket, I'd consider it ... you could probably get the price down a little, but even if you had ht disabled, that's a better cpu ...
 
for additional +50% cost it of course would be a better CPU
 
omg 50%
 
@JoeWatkins well, i5 is €180, i7 is €280 .. that is somewhere around +50%
 
@AnmolRaghuvanshi Allienware is a glorified calculator.
 
i'd say wait for next gen cpu
 
6:52 AM
If there's not already a hdd laying around to put in it for storage, you might consider dropping down to a 128g ssd to make room in the budget for one. Games are just way too huge these days and the ssd alone will fill in no time.
 
yeah that changes things a little ...
 
I am going for a balanced investment here
 
gonna take on faith that you've spec'd out the power requirement already (550w seems low to me, but it's been a while since I've looked at what things are sucking down)
 
@Epodax :D so for gaming it's always good to assemble a PC according to need
 
@AnmolRaghuvanshi yeps.
 
6:54 AM
@PaulCrovella the system would clock in atound 400W
 
Hi.
 
well there is something to be said that's positive about buying HT machines today ...
 
i know :(
 
I have windows server with excel on it. Now I want to communicate with excel via PHP. How can achieve it? using COM may be?
 
in 5, maybe 8 (hehe) years, it will be commonplace for normal computers to have 8 cores, games of the day will be targeting machines of the day ...
 
6:56 AM
riiiiight
 
quite honestly what you've got there looks pretty good given the budget, aside from storage space
 
it's not really balanced, it's a long term investment, but that counts, when the alternative is just throwing what you have away and starting again ...
and also, I'm probably wrong ... I did say I can be wrong ...
 
@PaulCrovella the intention is to buy a 3TB (or 4TB) HDD later
 
I wouldn't worry too much about the cpu. i5 is fine and games are getting better about not being cpu bound anyway
 
the operating systems that execute them aren't ...
plus you do other things, play music, chat, whatever ...
all those things do other things, internet stuff and whatever ...
it never ends ...
we wouldn't be piling cores in if it weren't required, it's pretty hard ya know ...
 
7:02 AM
right, but it's a gaming rig and none of those other things take priority, least of all when actually gaming
 
@JoeWatkins a i5 is also pretty cable of playing music / chat / surfing and stuff
and all of those are a lot less demanding than playing a game :P
(note: we are not including any form of editing here)
 
the machine will not be used for video rendering :D
.. though, someone might want to attempt streaming on twitch
 
@tereško Then you can buy a streaming card or what ever they are called
or upgrade the CPU if that comes to be.
 
i have i3 palyed so many games on it that's my laptop is taking last breath!!
 
@PaulCrovella probably right ...
 
7:05 AM
@Epodax I think you mean "capture card"
 
R.P
Better cooling for what? You aren't overclock it, INTEL-s stock coolers nowadays give enough cooling for never having to worry about overheating.
 
@AnmolRaghuvanshi you need a better machine
 
@tereško Properly.
But as long as you don't spend 3333 euro (roughly) on your machine you should be good.
 
yeah i am planing to buy a new PC or laptop by this new year
 
I did that, and it's expensive
 
7:06 AM
it would need to be a case lined in gold for that much ...
 
Or, just break a couple of motherboards and have to replace them
 
what did you get for that ? any servants, a maid perhaps ?
 
hello guys
 
My first few attempts of building my own computer didn't go that well.
 
7:07 AM
where can I get all the list of PHP modules available like php-cli php-common php-gd php-ldap php-mysql php-odbc php-pdo php-pear php-pecl-apc php-pecl-memcache php-pgsql php-soap php-xml php-xmlrpc
 
R.P
@Epodax - same here. Got overclocking board, special rams and a64 CPU that just didn't clock
 
@R.P Yes?
ah
 
Capture card would be for using a second rig to handle the streaming - not applicable here. An i5 may struggle a bit, depending on your quality settings and the type of game, but I wouldn't expect a moderate-low budget box to put out the highest of highest quality stream anyway.
it'd be enough for them to have fun with and see if they want to invest more in the future
 
@R.P Depends on your build, but the cooler you can keep your hardware the longer it will (usually) last.
 
R.P
Does i series CPU-s have problem with longetivity?
 
7:10 AM
@R.P it has less to do with cooling and more with managing the air flow. Also, I think the CPU is not a full "box", but only the tray.
 
I'd rather you didn't try to destroy justification for buying expensive CPU's ... my misses seeing it would ruin my life ...
 
@JoeWatkins Don't get us wrong you clearly need a very high quality CPU. There's just no arguing about that.
 
... and if I really intended to overclock it, I would have gone with an AIO cooling solution
 
@R.P I bent some pins on my motherboard when mounting the LGA1366 CPU, it was at then I found that the LGA1366 socket had been out of production for some time and I had to roam every store and internet shop in my country to find a mobo still supporting my LGA1366 socket, the only one I found was really expensive.
 
@AnmolRaghuvanshi that actually says nothing. You could have at least done a Valley benchmark
 
7:12 AM
is this correct extension list php.net/manual/en/extensions.alphabetical.php
 
there's no list of extensions that work @John
 
@JoeWatkins Expensive CPU = Better power / performance / more value for the money
Is the miss still looking?
 
@Epodax actually, the higher you go the less performance per dollar you get
 
@tereško I was trying to be funny :(
 
@tereško kk i am downloading it and let me try..
 
7:16 AM
.. I could probably shave additional -€40 by going with GTX 960 .. but that seems like a waste
 
@tereško Add a 10 to that 960 and you're good to go :D
 
380 is better bang for the buck right now
 
@Epodax 970 is in the €340 range (compared the current €200 pick) ... I am starting the get this feeling that you know nothing about hardware
 
@JoeWatkins if you look at my question then you will get an idea what exactly I am looking for..
 
@tereško 970 best card ever.
 
7:24 AM
ehm.. no
that would currently be gtx 980 ti
it's on par with the newest titan x at a significant lower price (-300$ IIRC)
obviously it's probably out of your budget though ... :D
 
I guess you gotta be a gamer to be interested in graphic cards
 
morning
@FlorianMargaine gotta have a good GPU for those flash websites ;)
 
@MarcelBurkhard that would actually depend on whether you are interested in a DX12 performance :P
 
well I'm running windows 7... so ... I'm screwed anyway
 
... an then there is that, yes
 
7:36 AM
Implication "running windows => screwed" is version-independent
 
well If you intend to play games like Battlefield the opposite is true
 
Mornin'
 
anyway, the initial subject was a review of this build: docs.google.com/spreadsheets/d/… (unfortunately the dropdown's do not work in the read-only mode)
the alternative options (except for RAM .. because I am lazy) are in the other sheets
 
7:44 AM
@tereško It looks ok. Parts seem to match and I don't see a way to get more out of the budget
 
@MarcelBurkhard heh .. I could get a cheap case and cheap PSU and get it to 700 :)
 
yeah barebone... fire hazard.. don't
:D
 
8:05 AM
"You made the fires worse!"... "Worse, or better?"
 
@AlmaDo you actually update? :P
 
@Naruto nah, I'm on unix..
 
@AlmaDo you're on unix? how much do you pay for it?
 
Morning
 
i.stack.imgur.com/u4kgE.png @tereško is this you want
 
8:18 AM
hi
 
@AnmolRaghuvanshi gimme a sec, I will run my test
 
anyone know how to delete slug because google still indexing the old slug.....
like example the old slug is: sample.com/archive/something which is not existing what i want is when they visit the sample.com/archive/something "archive" was deleted so the page show
 
hehe my score is worst
 
@AnmolRaghuvanshi yeah, I kinda got score 2935 (and that was with 8xAA)
 
8:28 AM
:P no comparison my score is hanging 3 digits and your 4 digit
 
you need a better PC
 
yeah will buy on new year will consult you!! :)
 
@FlorianMargaine a lot .. :\
 
posted on October 08, 2015 by aliceljdc

/* by r3arv13wm1rr0r */

 
Hey all, I have a question about includes. I understand that when I have a file that includes a file that includes another file that the last file in that nest has a base location of the first file.

Is there a way to detect this so that I can include the second nested php file in other files of a different directory?
 
8:40 AM
use autoloading
 
? sorry I'm not sure what you mean.
I'm going to try this right now and see if it works:
include dirname(__FILE__) . DIRECTORY_SEPARATOR . '[RELATIVE_PATH]';
 
and instead it would be much better using some kind of autoloader
 
@Porlune you can use __DIR__ in place of dirname(__FILE__)
 
Thank you paul! this seems to be doing the trick :)
tricksy php :D
 
8:45 AM
thank you teresko!
It's working :D very happy now!
This community is my favorite on stackoverflow.
 
wait really? what sort of bastards are the other communities?
 
@PaulCrovella have you tried IRC?
 
Used to be on irc all the time. Downright friendly folk there.
 
we must have traveled in different circles
 
9:02 AM
I have a panel where in every table row there are two date input box for 'from' and 'to' date and a link to click like the following

<a id="editcboxElement" href="#http://localhost/mycompany/production_entry/viewEdit/3798" title="Production Statement to edit">edit</a>
Then I have a PHP function to query database by receiving data via ajax.

PHP function is

public function viewEdit()
{

$parsingData['employeeID'] = $this->input->post('employeeId');
$parsingData['fromDate'] = $this->input->post('mysqlFDate');//'2015-10-06';
Can anybody help?
 
ok, I am off to my round2 job interview
 
All the best o/
 
good luck @tereško
 
Don't forget your kit-kat @tereško
 
:D
I think this time I am actually speaking to devs
 
9:13 AM
mrorrogj
 
@tereško Good luck! I haven't actually had an interview so far... just coffee shop chats, so my first one will be scary
@PeeHaa \o
 
o/
 
@PeeHaa morning
 
morning
I have a question about composer I have 1 webpage with a contact form and I would like to use phpmailer. github.com/PHPMailer/PHPMailer
can I just: run github.com/PHPMailer/PHPMailer and then require the script in my page?
Which is require 'vendor/phpmailer/phpmailer/PHPMailerAutoload.php';
 
create a composer.json file with the required dependency
 
9:26 AM
> If you're not using composer's autoloader, PHPMailer provides an SPL-compatible autoloader, and that is the preferred way of loading the library - just require '/path/to/PHPMailerAutoload.php'; and everything should work.
 
Im indeed not using it's autoloader. Ok thanks. -- @PaulCrovella and @Rommy
 
Damn lack of DMs on here. @PeeHaa How's that plugin/extension coming for it?
 
DM plugin?
 
Yes, I delegated that responsibility to you.
 
:P Missed that memo
 
9:35 AM
whatever it is, my guess is this is how its going
 
So I can send you edgy gifs
heh
 
@Fabor :)
 
hehehehe
 
I didn't think magic.gif would ever be replaced, but there it is.
 
9:42 AM
hi guys, i want to include php code inside css?, is that possible?
 
@Fabor nice one
 
hello everybody
@santho check out this link
5
Q: How to include PHP code in CSS?

Jack BillyI have a script, and I will be needing to include PHP code in the CSS stylesheet. But when I try adding PHP code in my CSS file nothing occurs! Is it possible?

 
how shall i use this code inside css background,
"<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('image_area')) : else : ?> <?php endif; ?>"
 
9:57 AM
i think you can perfom it in other way
just do apply condition in php code and include the required css as conditions satify
 
how can i do that in other way?
 
ThW
10:11 AM
Why do you need dynamically generated CSS? It usually is a bad concept because it makes your styles more difficult to maintain.
 
10:21 AM
but it is user friendly right?
 
10:50 AM
what exactly do you mean by dynamically generated css?
CSS should be static because you want people to be able to cache it.
Do you mean that the sites UI should be dynamically generated?
if you want a different background to be generated, then I suggest you try using jQuery to alter the CSS on the fly of your DOM.
 
@santho Learn how to use css instead
 
Abe
@Fabor rofl
 
hmm ..
back from the interview
 
@tereško You are going to do shit again?
 
not sure how it actually went .. since I was pitted against the entire dev team
 
10:58 AM
did you leave any survivors?
 
it was more of a stalemate, since what they mostly asked was about Sf2.x
also, they were really stingy regarding they system architecture, deployment process and hardware setup
 

« first day (1818 days earlier)      last day (3114 days later) »