« first day (1120 days earlier)      last day (3843 days later) » 

12:05 AM
probably highly imperfect, but you get the idea.
This allows you to get more control on the caller level, where you can make better decisions about the validation rules you want to follow.
(Perhaps, like Danack said you want different validation rules for registrations than you do for admin created accounts, etc)
 
@MadaraUchiha Yeah that looks good. Screw my old way of doing it I am doing it like this from now on. I am afraid of spending the next 10 hours changing all my code and then finding out there is a massive pitfall
 
@David That's how you learn and grow though :P
 
It there is one I don't see it yet so I will just go ahead with it
So overall would you say it was a good idea?
 
Yes
It gives you sufficient flexibility (more than hard-coded, less than full fledged classes), and you can do pretty much all you want with it.
 
It allows for more control and much more complex validation if needed. The complexity of the validation is only limited to the scope of the data which the closure has which is all you need
 
12:10 AM
Yup
 
I am proud of myself
 
I am going to enjoy implementing it for the next 30 mins
After that the repetitiveness will kill me
As usuall
 
12:23 AM
so, wordpress, anyone?
 
SLEEEEEEEP
nite boyz
 
:p
 
12:44 AM
@MadaraUchiha btw is you nginx/php-fpm working yet?
 
1:08 AM
@morgred wordpress everyone if you'd assume statistics were right :p
 
Guys, is it possible to create OOP-acceptable data accessing classes without mapping them to the tables in the database?
 
anyone actually in here right now?
 
here..
 
Okay I have a unrelated question but related to our field.

Say you currently work for web company making $42k no benefits then an outside company offers you $52k with benefits, 401k, profit sharing. Would you consider staying with the web company if they counter if so how much? or go work for the other company?
 
morninbg
 
1:16 AM
Heh.. that's a very personal question
For me it boils down not to the amount... but the work and environment
what makes you happy
I'd be happier doing a lower rate and feel fucking joy and loving it every single day than get a higher rate and having to deal with crap
but that's just me..
 
I agree with @wtfzdotnet but I read a professional article about that situation that says you shouldn't consider the counter-offer
 
Web Company only employee minus owner casual dress - WordPress and Magento websites

Other Company only one other Web Developer but on a team with graphic designers and marketing people. Building custom php applications
 
@NickDarley you just answered it yourself based on how you formulate the candidates :-)
 
1:22 AM
@wtfzdotnet so you think i answered it my choosing other company
 
@NickDarley I do
 
@NickDarley lol...you know you want to :)
 
@NickDarley to me it seems you have greater ambitions than A
@NickDarley just by reading how you formulated both candidates
@NickDarley :-) take a closer look at what you did when formulating, you even uppercased Web Developer
@NickDarley to me that means you have a high expectation of what candidate B has to offer even outside of the salary, compared to your "A" casual dress
 
yes i want to be a Web Developer/ PHP Developer rather than Web Designer/Developer and just build themes for wordpress and magento...
so i guess writing it out helped, you know sometimes putting stuff in writing makes more sense even with pay put aside
 
1:25 AM
@NickDarley to be honest I've been in the same boat for a long while, and still am, but untill recently I got assigned to bigger projects beyond the scope of Magento and it's a blessing
 
@NickDarley guess from where we are coming from, we're not that far apart :-) and if you can find a better work environment, that makes you happier ( AND AS A BONUS... more money ) than you'd be stupid not to go for it unless you have a reasonable argument to stay where you are
 
Yeah like right now I am working on a Project Management System mixed with a CRM using CodeIgniter and I can't tell you how nice it is to be able to build an actual Web Application rather than theme a site and do customizations to it.
 
Just as long as you don't sacrifice your own happiness in your work environment, and get better from it you got my +1 :-)
The only thing you'd have to question from a company the size you name it to be
Will they be a continuous "client" or not
is it a good deal even on the long term
if not how could you be a part of that ...
making sure it would be
in the end we all love more salary
but... it doesn't get the job done
wether you do something for 20k a year you absolute love doing
or something for 40k you hate doing... but hey you got to make a living
i'd guess the progress between the 2 projects woulden't differ much
do you? :p
I've quit before at places where the code was more rubbish than I could ever imagene
the salary was better than the jobs I had after
but
the jobs after were much more satisfying to deliver because I could stand behind the quality
 
i'd guess the progress between the 2 projects woulden't differ much? what do you mean
 
1:38 AM
that was a comment to lure you out but I guess it didn't work :p
 
lure me out?
 
get a response
how do you think those 2 situations match up?
same sort of project
 
and I would be going to the other company as full-time employee, with it being a long term relation
 
one with a bigger salary and shitty environment where you always get to do the same crap
or one with less salary and less crap, but actually projects you love working on
to me as long as you differentiate employers that way, and take the salary as a bonus, you really know where to go to
 
no false

Current Company - Low pay, no benefits, repetitive work, not challenging, casual dress
Other Company - Higher Pay, Full Benefits, challenging work, casual dress

neither one will have a crappy work enviroment
 
1:41 AM
depends on how you define that...
for me too much repetitive work is a wound that will never heal
I just love doing code
not being bothered with fucking templates
sure every now and then we have to sacrifice and just do it
 
Okay that is true, I am the same I rather get dirty with code and yeah not deal with templates on a daily basis
 
but I've had times it's been like that for months
 
yeah gotta provide for the family
its been like that for 8 months with this company with an occasional challenge
 
so getting back to my <personal> point of view
you really should consider the extra salary not really the point
we make enough in our business to get around from
the point is
what kind of situation can you put yourself in, where you will be loving what you do for years if that is the case?
templating or coding?
 
that is true, so salary aside. I would say the new job sounds be the best fit because I will be doing different stuff on a daily basis, writing actual applications (coding) with only time I would do a template is for the company website every year or two.
 
1:45 AM
learning from other peoples perspectives or be in some office where everybody thinks they know what they're doing :P ( I've been there.... good lord )
 
and i much rather code every day for my life, cause its more challenging than a damn template
 
why would you stay where you are now?
( not cynical, mostly meant for yourself to think about it :-) )
 
Because I am a nice guy and when I leave it's going to severely hurt this place until they can replace me
 
there's a middle way~
 
which is
 
1:47 AM
Being a nice guy never works in politics, neither does it in work atmospheres... let's get that straight? :p
 
haha thats very true.
 
being a nice guy won't get you where you want to be
if you have the certainty you can move, you need to make an agreement with them you need to support you current employer through the transistion
try to find a replacement and when you do adios
if not, after a certain time you will have to cut the rope and move on
atleast you tried to help finding a good replacement instead of just sitting there for the last month since you resigned ( or however that works where you are from :P )
 
in America (idk if you live somewhere else) typical is 2 weeks notice
 
back in The Netherlands here... 4 weeks notice :-)
usually
 
gotcha yeah usually 2 weeks notice and then you leave.
and go to other company
 
1:51 AM
I know the bigger salary sounds attractive, but if you have family to take care of
also consider how viable they are to actually support you on the long term
if you feel like they can, because you've seen the place and what people are working on or whatever
you got a hint of how busy they are I assume
 
They are really busy. New Company has 80 locations in over 6 states with the HQ in my town.

Current Company: 1 place, 1 employee (me), 2 owners
 
one company I worked for ( and I won't name it )... was able to overprice websites by tens of amounts anyone would calculate, and the worst part for me was I had to look at horrible php4 code being deployed for those amounts :( Just horror
 
Current company under charges a lot
 
For me that sounds slightly like becoming a number, however having alot of people around you with a shitload of expierence doesn't hurt either
you can only grow as fast alone as you can read and work at the same time :p
I can't complain about my past 2 years.... been in and out of the country for months without anyone complaining
not the best salary but hey... I got to travel the crap out of these planes :D
 
brb
 
1:56 AM
that's what I love doing and that's what I picked the companies out for
in the end it's up to you what you choose but.. again.. seeing the way you formulated your options earlier it seems like you have already chosen B, but trying to find some support for ditching A because you feel bad/sorry for the miss they will have
If that honestly is the case... get out
 
yes, i think what you said is 100% accurate cause with company B i wont be just a number. I am being hired on as the "Expert" because the current Web Developer don't have the skills to do what the company wants so that where I come in.
 
 
1 hour later…
3:16 AM
morning
is that a good idea to serialize multi selectable dropdownlist value array, and store that into db, instead of imploding and storing it?
 
@N0nh4x0rツ It is probably never a good idea to store multiple values in a single field the way you're describing
 
 
1 hour later…
4:30 AM
Hello Guys, any Phone Gap developer is here
Question: Different between this & this
 
4:42 AM
how to add http auth headers in php web services?
 
 
1 hour later…
5:50 AM
if one compiles PHP with the --enable-opcache , does one still need to use APC?
 
 
1 hour later…
7:06 AM
Attaching 10 files in email using PHPMailer, and using gmail SMTP settings. Sending email to gmail account on the same business domain. We are using gmail for business. When email is received it has only 7 files attached. Total attachment size is < 8MB
 
7:51 AM
@Kneel-Before-ZOD Not for generic opcode caching. If you use the APC functions then you'll need APCu.
 
morningz
 
morningz
 
@LeviMorrison so, both can be combined together?
 
You can't have both opcaches running.
But you can use APCu if you use the APC functions
It's APC without the opcode caching.
 
alright......just checking.......thanks
 
7:53 AM
morning
 
@hek2mgl shoot with Tiny on it and see what happens. It can perhaps turn this into something valid HTML while keeping some of the information.
 
@LeviMorrison is there a best practices page (or something similar) on php.net for developers to use?
 
Not really. What kind of stuff do you have questions about?
 
nothing really........looking at this link, I think that it might really help a lot of PHP developers if they know about some basic good practices.
 
8:15 AM
<?= is being deprecated?
 
Hey guys, I updated to latest version of php and mysql, now I'm getting an error from the database whenever I try to insert null values into the database. Error tells me that the column has no default value, which is understandable, but before I didn't have to have the table have a default value or tell it that null was ok, it just inserted a null value regardless. Is there a way to set it to disregard this as an error and stop it from crashing my query?
 
why is it advising you to enforce type safety in a loosely typed dynamic language ??
 
@Kneel-Before-ZOD there is a lot of bad info in that link. I would not recommend using it as a learning resource.
 
nor would I ...
 
@crypticツ apart from the classes sections, which parts (and why is it bad info)?
 
8:19 AM
@Kneel-Before-ZOD Honestly there is way to much to even list, I'm still going through the slide. If you want to learn better use phptherightway.com
 
a lot of it is just wrong ...
 
it says to use ereg*() over preg*() if the regex is simple...ok
 
@crypticツ that's actually a good link; if only a lot of PHP developers know of its existence :)
 
Done with slide, I feel stupider after having read it =o( It needs to be deleted from the interwebs.
 
@crypticツ yeah....there are parts of it that I disagree with, but I think it also contain some nuggets that helps
 
8:24 AM
@Kneel-Before-ZOD just forget you ever looked at that slide, chances are the nuggets you think helped are outright wrong.
 
@crypticツ no. on the contrary. its enabled by default by now.
 
@Gordon that link said so =oP
It also mentioned PHP6 >.<
 
You should check out the slide link, you'll be shocked at the things it is telling are best practices.
 
I wonder why it says that memory is not free'd if you throw inside a loop
you can quite clearly see that it does not such thing ...
 
Good morning.
 
morning @Duikboot
 
Almost friday.
 
hehe
 
9:19 AM
@JoeWatkins Hi. Do you know whether it is possible to express a pecl dependency in a PEAR package.xml ?
 
@JoeWatkins what do you get?
 
9:51 AM
0
Q: MySQL upgrade 5.5 to 5.6 created issue

DariusI guess before, I was setting up my databases incorrectly by saying the column is not null, and there is no default value. ( I THINK, never paid attention ). Now after updating to mysql 5.6, a lot of my columns say it is not null and it doesn't have a default value, and when I try to insert some...

 
10:14 AM
@Danack Yeah, thanks
 
Morning
 
> [09-Nov-2013 11:23:51] WARNING: [pool www] child 30433 exited on signal 6 (SIGABRT) after 50.400280 seconds from start
[09-Nov-2013 11:23:51] NOTICE: [pool www] child 30435 started
every other page load, php-fpm apparantly crashes =o\ I can't figure out what is causing it.
 
@bwoebi just deconstructed silex without errors :)
 
10:42 AM
@JoeWatkins what's that?
 
@Gordon it's explain for PHP ...
somewhere in-between EXPLAIN for MySQL and VLD ...
only, pretty :)
 
@JoeWatkins what tool is that?
 
I wrote it, it's called explain, is on github
 
potentially useful for PHP devs: https://github.com/krakjoe/explain
 
10:52 AM
@JoeWatkins It breaks when compiling
 
what does ?
 
tried explain
/tmp/explain/explain_opcodes.h:130:2: error: 'ZEND_RETURN_BY_REF' undeclared here (not in a function)
/tmp/explain/explain_opcodes.h:173:2: error: 'ZEND_ADD_TRAIT' undeclared here (not in a function)
/tmp/explain/explain_opcodes.h:174:2: error: 'ZEND_BIND_TRAITS' undeclared here (not in a function)
/tmp/explain/explain_opcodes.h:175:2: error: 'ZEND_SEPARATE' undeclared here (not in a function)
/tmp/explain/explain_opcodes.h:176:2: error: 'ZEND_QM_ASSIGN_VAR' undeclared here (not in a function)
/tmp/explain/explain_opcodes.h:177:2: error: 'ZEND_JMP_SET_VAR' undeclared here (not in a function)
 
old php
 
which version do I need?
 
what are you on there .3 ?
 
10:53 AM
(having tried with 5.3)
 
master from php-src works always :-)
 
.4/.5
 
ok, have to ssh to vm ...
 
@bwoebi I deconstructed PHPPHP too, not without errors ... segfault at end ...
we've a puzzle to solve
if we copy constant, memory usage soars
 
@JoeWatkins constant? which constant?
 
10:54 AM
if we don't, mm will complain sometimes, I've not worked out the circumstances where it occurs yet, deconstructing silex no error but phpphp generated segfault (after successfull execution)
I mean IS_CONST IS_TMP_VAR|IS_VAR
need to find a way around it ... hopefully not by copying ..
 
@JoeWatkins where does it segfault?
 
I thought maybe we could offset it by returning IS_REF explained opcode strings ... but it didn't work out very well ...
remove zval from buffer
 
forgot refcount increment?
 
using add_* api does it for you I think ?
tried being explciit
using proper hash api adjusting is_ref and stuff but it just didn't work out too well ..
wait it doesn't
 
@JoeWatkins no? add api just copies the zval to the HashTable, but doesn't change it's refcount
 
11:00 AM
it doesn't seem too, I thought that was the point of add_ api ...
didn't work anyway ...
literals don't use zval_ptr_dtor dont' think it cares about refcounts
what about another constant cache
that would only lead to 2x not ^2
still a bunch of memory though ...
its fast to parse out phpphp, I dont' wanna slow it down really ...
 
@JoeWatkins ^2? :o
 
constants include things like function and class names, copying them causes huuuuuge memory increase
copying to a separate cache limits the usage to 2x whatever the constants use now, instead of a massive number ...
 
@JoeWatkins haven't tried… but when you're talking about removing from buffer it sounds like something that it ffreed too early…
@JoeWatkins that's what I had tried with manipulating the globals yesterday
 
PHP by default has the session.save_path set to /tmp is that safe to use? I just see if I had to for some reason reboot server anyone who was logged in would lose their session since that directory clears itself on boot. Is there another widely used directory that people use as an alternative?
 
11:10 AM
@bwoebi yeah its not important, it doesn't need to parse itself, it's just introducing complexity where it is not required ...
 
@JoeWatkins well… I tried to parse another file which had also a function table
It's not just about parsing itself
 
@crypticツ you could add an rc script to copy out session files to a persistent directory on shutdown ... chances are you don't want to move out of tmp directory, it might even be a ramdisk ...
 
having the same issue at the moment :)
php explain.php explain.php :)
 
@bwoebi lets just give the functions really obscure names, simples :)
 
@JoeWatkins
I want the problem solved, not hidden…
 
11:12 AM
it's not a problem ...
 
A failure which might be not there is always a problem.
 
you might use closures.. this could circumvent the problem..
 
@hek2mgl true. But as you say… it's just circumvention…
 
@bwoebi Yeah and it would lead to other problems.. Was already about the delete the message)
 
like I said yesterday there is no tidy way to do it, short of initializing a new context which is not possible in nts setups, there is no good way to clean the compiler ...
nor do we want to, the classes compiled have to exist in order to output their constants, we cannot parse a file, put references in return values and then destroy the source, the doesn't make sense ... we don't need or want to touch the global structures ...
 
11:20 AM
I still don't get the problem with touching global structures…
 
@bwoebi don't commit code you have not tested
gotta go out a while ...
 
@JoeWatkins I had tested code… in my another copy in my docroot … and when I applied the changes to the file I forgot to put the semicolons there…
 
ok, well make sure code you commit works before committing it, just be sure, okies :)
 
@JoeWatkins ^^
 
yeah easy mistake to make ... easy to avoid too though :)
 
11:24 AM
@JoeWatkins $scanpath = function + $table = function(), at least makes it possible to execute php explain.php explain.php
(hope you understand. meant using closures... have tested)
 
@JoeWatkins got segfault… (with current master) ah… a function redefintion failure
 
@JoeWatkins .... and output looks good
If you namespace the variables like $explain_internal_scanpath = function it should be a usable workaround
 
@JoeWatkins I have (real) code which includes the one or the other file… which both declare a same function. … and then get redefinition error … :/
@hek2mgl I had fixed that already?
 
@bwoebi ?
 
11:33 AM
@bwoebi awesome!!! :) exactly the same then my :)
didn't git pull
 
@hek2mgl ^^
 
:)
will go and buy some food.. but the tool is really nice.. will play around with it later
just a thought.. is it possible to hook into those ZEND functions which are responsible for accessing the symbol tables? (From an extension?)
 
@hek2mgl no.
 
expected that..
 
Anyone here uses BitCoin and willing to help me get started with it?
 
11:42 AM
Hello everyone :)
@MadaraUchiha Why?
It's pointless.
 
@Cool2beblue Why not?
 
It wont make you money
 
0
Q: Should a controller convert the data it extracts into the desired data type?

DavidLet's say we have a Controllers\Cart which has a method postAdd(). This method gets called when you send a POST request to http://www.site.com/cart/add. This is the controller method for adding a product to a shopping cart so obviously the productId will be posted. Since all the POST data will c...

 
You end up basically paying more in electricity from running your cpu then you could earn using bitcoins....
But im not a n expert :P
 
HI
Anybody here with the knowledge of magento?
 
11:57 AM
hi i put link here please reply me if anybody know
1
Q: I Want to send id of respective textfield when respective dropdown is select in ajax

parth khatrii want to send id by ajax while selecting respective dropdown. my code is here. here i have dropdown for all row and when i choose any dropdown id of that particular row will go but here only first row's id goes everytime. <?php include('adodb/adodb.inc.php'); include('inc/config.php'); ...

 
@Cool2beblue really? gizmodo.com/… If you had bought $5k worth of bitcoins over a month ago when the FBI took down Silk Road and the value of the coins dropped to around $30/coin each coin would be worth over $190 each now. So you'd have made an amazing $26K+ in profits.
 
LOL
 
Bitcoins do make people money, there is a reason why bitcoin mining is so popular.
 
Indeed. If Bitcoins didn't make people money I'm pretty sure it would have died off by now
And governments wouldn't be interested in regulating it
 
reply of my link i need answer
 
12:08 PM
@parthkhatri yeah, no.
 
@parthkhatri Go look at the jQuery documentation
Seriously RTFM
You clearly know how to make the AJAX call...it is right there in your JS
 
if you have any link then post her
here*
 
@parthkhatri ho about you help yourself first instead of demanding we do it for you.
Google it!
 
@parthkhatri Would you like me to code it for you?
 
Honestly, I don't get how people can start developing websites and not know how to use Google. It astounds me every time it happens.
 
12:12 PM
@benjamin: yes help me if you know
 
@parthkhatri Great! Just wanted to make sure you wanted someone to code it for you, there are plenty of people who'd love to do it for you - in fact there is a whole list at careers.stackoverflow.com
I'm sure you'll find the right person for your issue.
 
ok thank you
 
>.<
 
i need only one syantax that take value of respective row
 
12:15 PM
@parthkhatri no, what you need is to learn how to create a self contained sample illustrating your issue without posting tons of code. You need to learn how to ask a question well, and you need to learn how to use the internet to search for answers because you're not the first person to have this issue.
 
@crypticツ Lol :P Nevermind. Mayber I should also start minning
 
ok i try
i think u all ae laughing but i m in tension here
 
hai all
any one know how to create chat server in php with socket
:12844917
:12844848
:12844688
:12844764
 
@parthkhatri So hire a developer - seriously.
 
ok thanks
 
12:22 PM
:12844998
 
what?
I thought you mine bitcoins
What happened to minning them :o
 
<3 code
 
ANyone ever used any other gateway method except payplal?
I am over them :(
If i have clients who need to receive funds I want to implement another option in their website...
Just don't know which one.
 
Anonymous
@Gordon Make it 3 months this time.
 
Anonymous
12:37 PM
If you can spare me the AJAX room, it would be cool
 
hey guys and girls
enjoying the day?
 
ok so the weirdest thing, visit page and it displays refresh once displays, refresh again 502 error, refresh again 502 error, refresh again displays and the same 2 refresh cycle starts again. I can't figure out what is causing it. Using Nginx and php-fpm. I think maybe it might be something to do with child processes spawning, seeing it's a consistant cycle.
 
@crypticツ sounds horrid.
 
hmm ok increased the limit to 5 and was able to refresh 5 times before the 502 error. php-fpm seems to crash each instance and moves onto the next and crashes it as well until all are crashed and then 502s
 
Morning
 
12:48 PM
hey, @Fabien -I've written that function for you
 
Evening @Fabien
 
but it's not Levenshtein (in your question)
 
Anonymous
@Fabien Morning
 
@AlmaDo Yeah, was looking over it. thank you, I need to understand why that was so hard for me to figure out :p
 
Levenshtein allows also inserting/deleting of symbols.
0
A: How to get all the similar strings based on an array of letter variations

Alma DoYour case can be easily implemented with recursion. That will be like: function getVariants($string, $variants) { //here's about stripping 1 symbol from string's right, so //may be you'll prefer to work with string functions: $string = is_array($string)?$string:str_split($string); ...

I mean this
 
12:49 PM
Yeah.
 
mORNING FABIEN
 
your question is much simplier
 
Rub my back Fabien
:)
 
@AlmaDo Yeah, but so is my brain.
:)
 
if you want I'll create function for levenshtein too (but then it will be any replacement, i.e. any symbol to any symbol + insertion + deletion)
 
12:50 PM
........... :(
No reply
 
@Cool2beblue Morning :P
 
btw
 
ping @DaveRandom going to need your help when you have a chance =o(
 
@Fabien Not talking to you again
 
12:51 PM
:(
 
Cheer up. It's Saturday.
 
@crypticツ but may be we also can help ? :p
 
@AlmaDo My only concern with the levenshtein function is whether it meets the needs of the task. I wouldn't want you to use your time for something we may not apply. :)
 
@Fabien so I think exactly the same way :p
 
:P
 
12:53 PM
Its saturday and I am still coding.
And on I am still here :(
 
however, we can use modified levenshtein
 
@AlmaDo see chat.stackoverflow.com/transcript/message/12845114#12845114 and the next message by me. I've been trying to figure out what is wrong for hours.
 
And I came back from a conferece :(
THat was boring.
Im hot and tired
 
@Fabien i.e. combine your current request with levenshtrin
 
@AlmaDo Thinking about it now, we most likely would use it. I can also use the variant switch for a shorter list, but if I missed a variant it would be pointless
 
12:54 PM
hm
 
@AlmaDo Yeah that makes sense
levenshtein for all possibles, variant for all possible possibles
 
@crypticツ sorry, I just didn't get that oO
 
@Cool2beblue What conference?
 
@AlmaDo do you use Nginx with php-fpm?
 
@Fabien I mean - create function that allows replacements with defined variants and also insertions/deletions
@crypticツ not here, but on some hosts - yes
 
12:55 PM
@AlmaDo What's insertions/deletions?
 
@Fabien it's, for example, add a symbol. fabien is similar to fabiens
 
@Fabien SASOP event.... Has nothing to do with programming,or web development ...
South African Society of Psychiatrics.
 
@AlmaDo Do you think it's a good approach to the task though? The main thing to keep in mind is to catch all domains that are potentially attempting to be fraudulent
 

« first day (1120 days earlier)      last day (3843 days later) »