« first day (1733 days earlier)      last day (3215 days later) » 

3:01 PM
-2
Q: Is there any method in native Magento Models to decrypte credit card number?

Aram KocharyanIs there any method in native Magento Models to decrypte cc_number_enc field. If no, how can I decrypte it? Thank you, for your time. Update: I have informed my client that it is very bad practice for storing CC info in database, but they dont care. Update 2: Dear stackoverflow community I und...

this is why we can't have nice things
 
user895378
lol
 
user895378
Not only is it very bad practice to store CC info in your own database ... it almost certainly violates your merchant agreement. The rules for storing CC info are very strict because banks tend to frown upon noobs insecurely storing credit card data in a way that leaves the lender on the hook when fraud inevitably results.
 
@rdlowrey Aren't you as a developer also responible at some point when the shit hits the fan?
*responsible
 
user895378
3:07 PM
@PeeHaa Sure. If your shoddy work leads to data theft and the lender sees that you didn't adhere to the PCI rules they can come after you.
 
This stemmed from a discussion I had with @cholt
I wonder what you would do if management insisted and you had kids to feed and minimal confidence in getting hired elsewhere.
 
user895378
I don't even want to know about all the inexperienced php devs writing code that deals with credit cards ... it's probably terrifying.
 
I've done some horrible things (many years ago) due to pressures from above.
@rdlowrey are you sure they can come after you as an employee? Surely the org is responsible for owning the code. Obviously they'd want to see the org took appropriate action (disciplined/sacked the dev).
 
user895378
@LeeDavis I was talking about if you were the lone developer acting as a contractor. If you're working under the direction of an employer then the organization should be on the hook.
 
@rdlowrey I see. Makes sense.
 
Morningslings
lol much laravel on the star list
 
@RonniSkansing Morning
 
Had a horrible legacy framework + encoding issue
bug today
ROOOAWR
 
Anyone know how to vertically expand the text input field in Google Docs for spreadsheets? In Excel, you can just drag the editor field down to make it larger.
^^ So yea, to make the input field multi-line
 
@RonniSkansing Oh god. Those are the worst
@DanLugg shift+return?
 
3:35 PM
@rdlowrey do you fancy merging #104 in Auryn, and then maybe tagging a 1.0 before the end of the week? That PR is the only one that is definitely a bug.
 
In the actual cell and not the thing above it
 
@DanLugg Click on the horizontal line between 1 and 2 for the rows ?
 
user895378
@Danack I do. I will try to do it later today.
 
@PeeHaa yep, it is [=
 
user895378
Is anyone successfully using php-cs-fixer with php7? All I get is I-invalid file syntax for everything.
 
3:44 PM
Alright, my final draft gist.github.com/srgoogleguy/7384a760bbf5f6077ccc if you have a few minutes I'd love anyone's feedback on this article. Feel free to jump in with whatever insightful critique you might have :)
 
@Danack Yea, that expands the columns; I meant the editor (where I put the text "MULTI-LINE PLZ")
@PeeHaa That adds a newline, but the editor still just shows a single (current) line.
I figured it would auto-expand or something, but it doesnt.
 
4:03 PM
posted on July 15, 2015 by kbironneau

/* by WhiteFox */

 
ARG: why does foreach() work on non-stdclass objects?
because FU
 
hey i have a simple question: I have a php which generates an html. On that html i want a button which redirects to the same page passing two integers.
Should i do this with a GET request?
 
@LucasP Are those parameters private, or okay to be seen by the public without any effort?
 
@Jimbo public
 
Then yeah, redirect to ?param1=x&param2=y
 
4:09 PM
ok, so my follow up question: how do i do this? do i just make a <button> with the parameters in the link?
i dont have to bother using <form> and <input>?
 
@ircmaxell I'd really love your input on this as well :) Much appreciated if you get a minute. Non-urgent.
 
Google.
 
ive been googling a lot but i don't seem to understand. If i do it by using <form> and <input>, where do i put the actual values i want to pass? in the action?
the values are defined not by user input, but by a php variable
 
@rdlowrey it probably fails due to the fact that it doesn't work with PHP-Parser 2.x
 
user895378
4:16 PM
@Ocramius I was thinking that as well ...
 
user895378
Although, looking through the dependencies it doesn't seem to use PHP-Parser anywhere that I can see.
 
user895378
It's annoying that so few tools actually support php7 when I've been running code on php7 for like 8 months :)
 
user895378
I guess most userland devs just aren't closely in touch with php-src developments :/
 
@rdlowrey Well, most devs have to work on production code most of the time and don't typically run non-stable releases of PHP in production.
So they would rarely have the opportunity to work on PHP 7 in their jobs.
 
user895378
Sure, but it's not like there are massive BC breaks all over php7 ... being compatible shouldn't be that much work. It's not a tough transition.
 
4:24 PM
That's rather optimistic given I find most companies have a hard enough time just upgrading to PHP 5.5 :)
Besides, regardless of how smooth the transition will be, no company is going to upgrade to an unstable version of PHP in production.
 
user895378
I'm talking more about open source projects with lots of users, though. I don't usually associate those with company time ... though perhaps I'm being naive about that.
 
Who do you think the biggest users of OS projects are?
 
@LucasP You can put php in your HTML... <form action="http://website.com?var1=<?php echo $var1; ?>&var2=<?php echo $var2; ?>"></form>. Or, if you're using PHP 5.4+, <?=$var1?>
 
user895378
I'm sure it's companies. But as a developer I would make sure my OSS pet projects were compatible with a forthcoming new php release ASAP.
 
Yea, in an ideal world you would. Easier said than done. Take a project like WP, for example.
There are still enough BC breaks there to thwart such an effort.
Besides, it's too soon to be trying to support a version of PHP that hasn't even been released yet.
 
4:28 PM
@rdlowrey I just started 2 weeks ago, heh
 
user895378
lol, I don't mean WP. I mean projects by devs for devs ... things like php-cs-fixer.
 
user895378
Development tools should be on the leading edge of new compatibility.
 
oh, is php-cs-fixer even useful? I wouldn't know. Never had a use for such things.
 
user895378
I never did until I started collaborating with lots of people and no one wants to budge on stupid things like their own idiosyncratic style preferences.
 
Yea, but that's not a technical problem, now is it?
:p
 
4:31 PM
@Sherif I run it as part of the CI tests, it simply removes any need for commenting on any CS. I wish it went into some OC, but it's just alignment and such :)
 
@Ocramius That would be a pretty scary thing from my perspective.
I do not approve of automated tools magically fixing my code without my express approval.
Plus this entails your just making it easier for your developers to be lazy.
If I want to be PSR compliant I want to comment on your PR and see that it's PSR compliant or otherwise you've defeated the entire point.
Consistent coding style is meant for human consumption, not machine automation.
 
user895378
@Sherif Neither do I. But the same tools can be used to fail your commit without changing anything and tell you what's wrong with it.
 
@rdlowrey Oh sure that part I would be fine with.
 
user895378
I agree though, I hate tools that just say, "I changed something and didn't ask permission"
 
As long as that tool doesn't actually prohibit me from making the commit. I don't fully agree with everything in PSR*.
 
user895378
4:37 PM
Yeah I don't either. I'm just tired of everyone nitpicking details that don't actually matter. Everyone can get more done faster if they just compromise on things that don't truly matter.
 
user895378
PSR-2 is easy. Tools support it. The community at-large has agreed it's fine. I don't see good reasons why OSS projects shouldn't just use it (and I'm the absolute last person on the PSR/FIG bandwagon for sure).
 
@Sherif I don't run the fixes, I run just the checks
I've been bitten by auto-fixes via php-cs-fixer in the past, not going there again
the build simply fails if the CS is not in line with what I specified
 
user895378
@Ocramius do you use pre-commit hooks for that or do you just fail in travis?
 
user895378
(or other, if applicable: _____________)
 
@rdlowrey Because it doesn't matter which side of the road we drive on, as long as we all drive on the same side. Not all PHP OS projects need to be interoperable and certainly not all of them are trying to appease the same group of developers. Quite a few are feeding from a closed trough actually.
 
4:40 PM
@rdlowrey It's the principle - who are these people who say we should use this "standard"
 
user895378
@Sherif Right. But code style has nothing to do with interop. It has everything to do with everyone driving on the same side of the road.
 
@rdlowrey That's entirely my point. We don't all share the same roads :)
 
@rdlowrey Disagree with the analogy, it's the law that says we must do...
 
Who are you to dictate that I should drive on the left from halfway across the ocean when I clearly have already established that one must drive on the right?
 
Hey now, let's not get onto how the left is actually the correct side
;D
 
4:42 PM
Just remember ... when in a foreign country... it is you who is the foreigner.
@Jimbo That wasn't the point at all. It's not about being right or wrong. It's about established style.
Projects that have already established their own standards, don't care to adopt new ones just because "pretty"
 
@Sherif Yeah, try telling that to people who have "the right to practice their religion even if it affects others" in our country (off topic but a sore point for many, not really me)
 
It's usually not worth it.
 
user895378
Although religion is an adequate parallel for code style disagreements please don't take this conversation there lol.
 
:D
 
@Jimbo I'm just saying, when in Rome ... do as the Romans do, right?
 
4:44 PM
@Sherif Not sure, they all bummed goats didn't they?
Agree though :)
 
@Jimbo No idea as my recollection of ancient Rome is poor at best, but this notion of a universal coding style in PHP is rather hypocritical. Had PHP actually enforced the style for good reasons to support better coding practices, this might be an entirely different conversation.
PHP has much history though and PSR is fairly new.
Bringing fresh thoughts to established modalities is fine as long as you don't try to force your thoughts on the pre-existing modus operandi.
... because then you are just as much guilty of hypocrisy as the guys saying PHP shouldn't have coding standards, right?
 
Right.
Not just coding style, standards too. Like ContainerInterop... 'bridges' built by those who put up the walls in the first place.
 
I mean ... I get it. People want things to co-exist and they certainly can. Sometimes happily, sometimes not so happily. Striking a good balance for a specific use case is key though.
That's where trying to overly generalize a use-case-specific solution just becomes obscene.
 
@NikiC nice refactor
@NikiC just pushed the intersection type refactor changes
 
5:04 PM
@ircmaxell btw I've wondered why you're handling stuff like union / intersect in the parser
shouldn't the parser only generate simple asserts and the union / intersection implicitly handled at the phi join points?
 
@NikiC that's what happens
I detect type assertions in the parser
 
@ircmaxell So why do you need to specially handle And/Or in the parser?
 
and I need to compute what type is being asserted so I can generate the assert
 
Shouldn't this happen implicitly?
 
well, I could generate assert($a, int), assert($a, float), but then I'd have to special case it
here, I can generate assert($a, int|float)
I find it easier to detect at the AST level
now, I let Phi handle the un-assert side
 
5:07 PM
@ircmaxell It may be easier to detect at first, but it looks less general to handle it there
E.g. if it's two separate nested if statements
 
oh, I see what you mean
 
Then you'll have to handle the type union at the phi level anyway, right?
 
so the problem is that it's not the assert expression that does the assertion, it's the branch based off of that expression
for example:
$a = is_string($foo);
that generates no type assertion for $foo
unless I bind the type assertion to $a and then issue it when we branch off of $a
 
yeah, I get that. You essentially need to insert a positive assert on the if and negative assert of the else of any conditional jump if it depends on a type-checking instruction
I'm typing too slowly ^^
 
then again, following the variable would be easier at the graph level
and hence more generic
but that means I have to do typeAssert reconstruction as well as Type reconstruction
which is no problem, just needs programming
 
5:22 PM
I want to create a 'like' system for my posts in my website. now my question is: should I create a new table (related with my table) or should I add a new column and store 'the number of likes for each post' in that column ?
 
@Sajad actually you should do both
 
composition versus decomposition
:)
 
@tereško ha ? why both ? I just need to one of them ...
 
you should keep the total score with the post and re-compute it from the "votes" table only when new entry is added
@Sajad because counting all votes every time is expensive
 
@tereško create a new table is not expensive ?
 
5:25 PM
but you also need to prevent users from voting multiple time on the same post and be able to adjust the count, when user is removed or vote is changed
 
How can I return the name of the column in which a specific value is found ?
 
@Sajad what ?
 
This question is about SQL
 
Well, I wouldn't necessarily do that with every new entry. You might want to consider keeping the decomposition out-of-band and just having write-through-cache to do the on-write aggregation there.
 
@ZahidSaeed you have two tables: Posts and Votes
 
5:26 PM
@tereško your mean is: I add a new column for the number of likes. and create a new table for what ?
 
@tereško then ?
 
you do not create a separate table for each post
@Sajad what the hell are you talking about ?!/
 
@tereško I didn't get it
 
You'd have a join table relating post id to user id, most likely
 
@tereško likes system !
 
5:27 PM
Explain a little bit
 
Posts (postID, title, content, timestamp, totalVotes)
Votes (voteID, postID, userID, value, timestamp)
 
@tereško ahhhh I see ! that's the best idea
 
What would it do ?
 
@tereško what is value in the Votes table ?
 
@Sajad +1 or -1 , probably
or 1 .. 5 (depending on whether you have a "stars" or "likes")
 
5:30 PM
That's a rating not a vote :p
 
@tereško ah, but I need to store it ?
 
yes, because if someone votes for the post, you need to recompute the value
 
If you only have a like button, like facebook, then there's really no need for a normative value at all since it's just a like.
 
@tereško you right
@Sherif I want a system like stackoverflow (voteup - votedown)
 
or "values", if you have totalUpVotes and totalDownVotes
 
5:32 PM
@Sajad Yea, that isn't a like button now is it?
:)
 
@Sherif originally FB had a "dislike" button,IIRC
 
They did.
 
the probably removed it, because it was triggerring
 
@tereško and why should I store timestamp ? (sorry for asking)
 
When did they have that? or was it only rolled out to a subset of users?
 
5:34 PM
Apparently if you want to stop the haters from hate you just remove the "dislike" button.
@KevinMGranger Years ago.
It just didn't test very well.
Turns out it's more meaningful to just have a like button.
 
@Sajad because you might need it .. also, it's not like you would be adding it manually. Instead you should set the default column value to CURRENT_TIMESTAMP
ya know, for detecting abuse or just collecting user activity statistics
 
Or displaying votes in a news feed
 
Or rebuilding from source of truth in a batch job :)
 
@tereško emm, you right, This is more fully
 
bottom line is this: "timestamp, because you might need it later"
 
5:37 PM
hint hint there is no CaS in UPDATE table SET value += 1 ;)
 
@Sherif :-)
@tereško can I aks a new question ?!
 
you already did
 
Your question quota has been exceeded for the day. Please try again tomorrow.
 
@tereško I don't know english very well, you already did means can I ask or not ? :-)
 
^^
 
5:40 PM
@Sajad he means: when you ask if you can ask a new question, that itself is a question.
 
@KevinMGranger ahh I see, That was interesting
so, here is my new question: how can I implement 'limit edit time' for the comments ? like stackoverflow, just 5min for editing.
 
you can ask questions and someone will probably answer
 
@Sajad do you really need to implement it right now?
 
@KevinMGranger now, just I want to know, should I use of session ?
 
put a timestamp on the table (created)
 
5:43 PM
That's a pretty general question. That's like asking, "should I use a variable". Do you mean storing the last time in the session?
Get the base system working first, then build in that rate limiting. As long as you write clean, SOLID code, it shouldn't be too hard to add later (just check in the same place you check for any other permission to vote / post)
 
@Sajad that might mean that, if your browser crashes, you loose the ability to edit said question
 
@KevinMGranger yes exactly
 
@Sajad what if I just clear my session cookie(s) and log in again to edit?
 
@RonniSkansing If I want to use of timestamp, I new to check the database for each edit. I think it is not optimized
 
no
just add a updated timestamp
 
5:45 PM
@KevinMGranger Apparently yes
 
you also do not want people to be able to reedit their comment forever
so two columns
created, updated
 
@Sajad I personally would create TRIGGER in database for that
 
@Sajad we already discussed using a caching layer to help with stuff. But I think you need to define what problem you're trying to solve before throwing a ton of solutions at it
 
@tereško and how use of it ? TRIGGER is boolean ? you want to add a column just for 5min ?
 
user895378
@Danack merged your auryn PRs. I'm going to do some cleanup today (like adding php-cs-fixer checks to travis). Definitely planning to tag 1.0 before the end of the week.
 
5:47 PM
Cool.
 
Guys, are there any free mail servers out there for your domain? Lets say i have the domain 'www.example.com' and I want an email 'hassan@example.com' how would I achieve it?
 
@tereško thanks, but you don't have a link in stackoverflow ?
 
@HassanAlthaf I'm certainly no expert but using free mail servers sounds like a surefire way to get sent to every spam folder ever
 
trigger are intermediate-to-advanced level stuff in SQL. You would have to learn it properly/
 
5:50 PM
@rdlowrey fail in travis
 
@KevinMGranger I am very sure there must be some which are good. :P
 
There are paid services out there that are relatively cheap, though, and some web hosts may offer packaged email deals
 
@tereško yea, I think I need
 
Mainly because I can't distribute git hooks, afaik
 
My client wants a free one. -_-
 
5:50 PM
@HassanAlthaf if you can find one which is somehow free but hasn't been found / used by spammers, be sure to let me know :)
 
Lol okay.
 
@tereško do you know stackover flow use of what system ?
 
@HassanAlthaf is it for sending only
 
@HassanAlthaf gmail?
 
@RonniSkansing Sending and receiving both.
 
5:51 PM
@Sajad I wouldn't use a trigger, that's inflexible and puts more load on the DB than possibly necessary (unless your rate limiting is inherently connected to the DB)
 
@HassanAlthaf you CAN install a fully functional mailserver on your own server
 
@HassanAlthaf what peehaa said
 
@tereško ;O how?
 
@PeeHaa I don't think google apps for your domain is free anymore
 
@PeeHaa my client wants his domain not @gmail.com
 
5:52 PM
@HassanAlthaf that would depend on the OS you are using
 
@NikiC I remember why now. Because of phi nodes
$a = foo();
if (is_string($a)) {
    return $a;
}
return (string) $a;
 
@tereško Ubuntu ofc
 
@HassanAlthaf You can add your own domain
But check what @KevinMGranger said
 
@PeeHaa Oh, how?
 
5:53 PM
@KevinMGranger no it is not inherently connected
 
@HassanAlthaf 10sec google usage: ubuntuguide.org/wiki/Mail_Server_setup
 
since $a isn't written in the branch, my type assertion wouldn't work (since both returns use the same variable)
 
I saw the truth:
Conspiracy theory: dumb crypto questions are actually asked to lower the average status of #PHP devs
 
actually, that gives me an idea...
 
@Sajad then do it in PHP-space. It'll be simpler for you and more flexible (you might want admins to be able to edit with no limits)
 
5:55 PM
this is just too much btw (related to that): plus.google.com/+HimanshuDhirajMishra/posts/hzY5zMQ3bsv
 
@KevinMGranger ok, but what is php-space ?
 
@Sajad meaning in your PHP code
If you did it as a trigger, that would be DB-space
 
user895378
@Ocramius lol nice
 
@KevinMGranger I see
 
@KevinMGranger My client doesn't want to pay a cent. But thanks for the linking.
 
5:58 PM
hmm, maybe not
 
@tereško Thanks for the link.
 
@HassanAlthaf email always has a cost, even if it's just server administration (and doing that yourself is quite the process).
 
@KevinMGranger eh, I'm a freelancer. I don't have to worry about the maintenance.
 
@HassanAlthaf get them google's company-branded accounts stuff, then bill them for one hour of your time a year
 
@Ocramius what do you mean? :P
 
6:01 PM
@Ocramius Where the fuck do you find shit like this?
My personal favorite so far:
> To protect the password, use encryption.
To protect attacks "brutal force" be professional, use a firewall.
It is also simple to prevent one algorithm, but a firewall is professional.
 
user895378
Such professional. So brutal force. Much firewall. Wow.
 
posted on July 15, 2015 by kbironneau

/* by eXes */

 
@PeeHaa brutal force needs firewalls indeed
I'd also suggest metal walls for too much brutality
 
:P
 
6:06 PM
I am sure the Yii framework is pronounced WHY!!!!!!!
6
 
lololol
 
lol
Yii is the sound I made when I dropped a refrigerator on my foot
 
Dilbert?
 
Between Dilbert and Room 11, which one is making me a better (cynical) programmer?
 
@Ocramius Dumb question. Room 11, what else?
 
6:09 PM
well
 
@RonniSkansing it sounds like you have been attached to a Yii project
 
you could always search for snippets of insecure code examples :B
 
@tereško bout 5-6 months now (Yii 1) .. the framework is horrid to work against
 
@ScottArciszewski it sounds like there is some stupid tutorial out there
 
I only wish I knew where
so I could nuke it and all its mirrors from orbit
 
6:10 PM
@RonniSkansing I worked on it for a year (about 3 years ago, IIRC)
debugging anything in it was a fucking nightmare
 
@Ocramius does g+ allow you to link to a specific comment?
 
yep @tereško
 
@RonniSkansing feel free to expand my list of complaints: stackoverflow.com/a/10960679/727208
 
@PeeHaa no clue
 
It really looks like it cannot be done. Wow that is full retard
Oh wait. It haz ids
WTF it redirects and removes the fragment
g+ you are stupid
 
@ircmaxell not sure I get what you mean there. the type assertion would still "write" to the variable
 
@NikiC yes, but I need to compute that prior to sealing the graph
otherwise the phi nodes are already optimized out
 
any idea on what the message should be?
"Invalid invocation on null|array|int|float" (not string because string gets a different error message)
"Invalid invocation on instance of Foo "

"null|the given array|int|float is not callable"
"instance of Foo is not callable"
+bool
 
@Danack I like the first response <_<
that said, Dilbert makes me accept the day-by-day-doom-process, much like endorphin
 
user895378
@Danack FYI, rdlowrey/Auryn is now rdlowrey/auryn. You don't have to change anything because github is kind enough to redirect old references from before the rename. Just giving you the heads-up.
 
6:33 PM
actually "not string because string gets a different error message" i could change that as well to be conforming to the others
 
@rdlowrey so lowercase ftw?
 
user895378
@RonniSkansing yeah I decided lowercase all of the things a long time ago but just hadn't ever gotten around to updating all of my stuff.
 
does the c-land autoloading practice mentioned here php.net/manual/en/function.spl-autoload.php#92767 has anything to do with that lowercase preference? Different hosts seem to react differently to CamelCase, which gets me thinking lowercasealltheway is more spreadable.
 
@FélixGagnon-Grenier Always CamelCase classes / namespaces
 
how check the current time with timestamp (from database) and generate something like this: '2 min ago' (it should be noted that I use of CURRENT_TIMESTAMP)
 
6:45 PM
@FélixGagnon-Grenier Most people don't use that auto-loader for that amongst other reasons.
 
I see. I'm atm somewhere at an hybrid step, filenames in lowercase but classes and namespaces in CamelCase. I can't say I like it.
Would you be so kind as to expand, even briefly, on what those other reasons might be @Danack ?
 
6:58 PM
@tereško the comments on the post is quite funny.. I loled at *Have you ever tried to replace a core class in Yii ?! It is a nightmare. * yea it is
actually lol .. the comment with this link slideshare.net/samdark/… .. wow =]
 
7:42 PM
@ircmaxell sure, the assertions have to go in during the cfg generation (like now)
 
@NikiC got it working, just working on the boolean and/or case
 
cool
ah and I see you already dropped the typeunassert
 
yup
did a while ago, just forgot to delete the file
what other type assertions exist that I'm not thinking of?
        'is_array'    => 'array',
        'is_bool'     => 'bool',
        'is_callable' => 'callable',
        'is_double'   => 'float',
        'is_float'    => 'float',
        'is_int'      => 'int',
        'is_integer'  => 'int',
        'is_long'     => 'int',
        'is_null'     => 'null',
        'is_numeric'  => 'numeric',
        'is_object'   => 'object',
        'is_real'     => 'float',
        'is_string'   => 'string',
as well as instanceof
 
Where does isset fall into the mix? Or does it not work with un-declared/instantiated variables
e.g. where people are depending upon undeclared variables to be null
Wait that doesn't make sense, nevermind
 
I don't handle it right now, but it's also not a "type" assertion (though it is an assertion of sorts)
 
7:58 PM
I was wondering... BSc. Computer Science vs. BSc. Software Engineering vs. BSc. Computer Engineering.
Differences?
 
@ircmaxell is_resource => 'resource'
 
/me is trying not to support resources
 
Yeah, resources are complicated because the resource has a type too.
 
Death TO RESOURCES!!!1111
4
 
I have some stream functions that require resources though, what would Tuli do with those?
 
7:59 PM
Sorry I have been doing GD for the last 2 hours
 
ohnoes, where my imagecreatefrompng gonna go!?!
 
@PeeHaa Unfortunately, they are still a necessary evil in the current state of PHP.
 
@Trowski right now, treat them like generic objects of class resource
which actually isn't far from the truth
 
@ircmaxell Yep, that makes sense.
So you could treat is_resource like instanceof resource
 
@ircmaxell There's also === null
 
8:12 PM
yeah, good point
 
They asking for $100 to teach that sht
loooool
 
100$ does seem like a fair price. The certificate in itself may not be worth much, but as a self thought person, doesn't the value of learning about this talk to you?
 
What do you mean?
 
@HassanAlthaf Perhaps they can hire somebody with that money to fix their site
 
@PeeHaa You're a genius!
I'm just 15 and I myself wouldn't code an application as shit as that lol
 
8:24 PM
:)
 
Hi friends, anyone worked in Laravel before? I need to clear cache of a site and found this answer http://stackoverflow.com/a/30025175/1541016

But I don't where is cache driver located. I am totally new to Laravel.
 
Laravel is a pain in the ass
Trust me mate.
 
Seems to me, :(
Just found wandering in files. Is that the directory? app/config/cache.php ??
let me try
 
storage folder
I believe
has the cache files
 
@NikiC … any reason why we have that Uncaught Error: Cannot assign by reference to overloaded object in %s:%d ? Just because we have no extra ASSIGN_OBJ_REF opcode which could handle that?
 
8:41 PM
@bwoebi How would that work?
 
@NikiC the issue is that objects only overloaded with __get() fail too
but in that case probably not worth it.
(I mean no __set())
@NikiC I just wondered whether that was the issue.
 
@bwoebi You mean you want to allow __set($x, &$y)?
 
no.
@NikiC see bug 70083 bugs.php.net/bug.php?id=70083
 
almost a bad conflict there @NikiC :-P
 

« first day (1733 days earlier)      last day (3215 days later) »