The other day one of my clients sent me a screenshot from one of their users and they asked me if I could figure out what version of IE they were using just by the screenshot. I realized I couldn't. I knew IE 6 had the XP looking icons in the top but I really didn't know what else was different between the version. My goal is to continue to update this post as new versions come out so feel free to bookmark it.
Overall, 9, 10 and 11 are all extremely similar and I'm guessing this will be the layout going forward.
We've been working on writing unit testing for our code. One of the things I struggle with is that on our production server we're logging a message to New Relic when we run into a condition that isn't planned for (in the future we'll have unit testing for this but it's a large code base and it needs a lot of work).
The problem that I've been running into is that when we do this we want these messages displayed on the command line when we run the unit tests and not send to New Relic. The code below allows us to do this:
<?php
class Application_Model_Error{
public static function log($message){
if(php_sapi_name() === 'cli'){
echo PHP_EOL, PHP_EOL;
echo '*****************************', PHP_EOL;
echo $message, PHP_EOL;
echo '*****************************', PHP_EOL;
echo PHP_EOL, PHP_EOL;
} elseif (extension_loaded('newrelic')) {
newrelic_notice_error($message);
}
}
}
The following determines if PHP is running at the command line:
if(php_sapi_name() === 'cli'){
It was only some emails but not a good start for a company that's going to broker a trillion dollars a year...
Within the last 36 hours, we learned that unauthorized third parties obtained the e-mail addresses of some of our CurrentC pilot program participants and individuals who had expressed interest in the app. Many of these email addresses are dummy accounts used for testing purposes only. The CurrentC app itself was not affected.
We have notified our merchant partners about this incident and directly communicated with each of the individuals whose email addresses were involved. We take the security of our users’ information extremely seriously. MCX is continuing to investigate this situation and will provide updates as necessary.
With a heavyweight like Walmart behind CurrentC (say it out loud it makes more sense then) I'm guessing this will never go away. It's funny to me that very few people even knew this existed before Apple Pay went live. My guess is Apple Pay will be the default choice unless you must use CurrentC. Much like how I use my American Express first and then my Visa now.
SSL is starting to drive me up the wall...
I use branches a lot but occasionally I forget to delete the branch after I merge it into master and then when I look at my list of branches I get a list of branches that I can't remember:
user@server:/var/www$ git branch
feature-calendarupdate
feature-calltype-filters
feature-multiselect
feature-newbilling
fixduplicatefields
fixresults
* master
problemtracking
If you want a quick way to determine which branches have already been merged into the current branch (I usually run this at master because then I know they're "finished" branches) you can run git branch --merged to get just the merged branches.
user@server:/var/www$ git branch --merged
feature-calendarupdate
feature-multiselect
feature-newbilling
fixresults
* master
problemtracking
Then you can git branch -d blah to your heart's content.
You can also run git branch --no-merged to see the branches that haven't been merged yet.
So true...
http://www.commitstrip.com/en/2014/10/20/how-i-feel-when-i-audit-a-clients-current-website/
What are the real world consequences to signing up for a Twitter or Facebook account through Tor and spewing hate toward other human beings?
Facebook reviewed the comment I reported and found it doesn't violate their Community Standards. pic.twitter.com/p9syG7oPM1
— Rob Beschizza (@Beschizza) October 15, 2014
As far as I can tell, nothing. There are barely any online consequences, even if the content is reported.
But there should be.
Been there and done that.
I've always wondered if you could use Redis as a primary data store and just use MySQL for reporting. This statement makes me think I could:
So, as you can see, some unusual things are happening here - Redis is our primary data store and MySQL is our last cache layer.
subscribe via RSS