1 Likes
1 Dislikes

After a long 3 days the server is finally up. Technically. I’m still moving sites but I’m getting there.

** Update **

Sorry for the delay but its been crazy on my end with work and everything else. The server went down because of my old hosting provider too 3 days just to get them to install a new hard drive! Then I found out the raid card failed, so I requested that to be replaced. They said it would take 2 more days! Not because they didn’t have it, but because they were busy working on other servers and couldn’t get to mine. I offered to pay them more to get to mine right away and they said they couldn’t. After that I decided it was time to move to a new provider.

I have always use dedicated servers because of the options and performance you get with them. This time around I went with cloud hosting. I did my research and the provider I selected was RackSpace.

For a few major reasons:

1. Support

2. Scalability

3. Price

With RackSpace support is the number 1 selling point. They are amazing at support and they handle support problems properly. You can scale out with in minutes with RackSpace and add more servers or a load balancer. Plus with the lowest server costing roughly $16/mo you cannot go wrong.

So far the performance of this new server is amazing and if I need more power I just press a button and I have more CPU power, more memory, and hard drive space. Just like that!

After the headache of the old server, I will say that there was good that came of this mess!

 

0 Likes
0 Dislikes

For anyone looking for a method to know that a user has completed payment from the iframe checkout without supplying the redirect_uri var, here is your method.

The WePay Iframe sends a PostMessage back to the parent window during the transaction. The message sent when the payment is completed is:

{ “wepay_message_type”:”iframe_checkout_complete”, “checkout_id”:”CHECKOUT_ID” }

Now there are many ways to handle this and the way I prefer is via Jquery. How I did this is using the plugin from Ben Alman. He has built a PostMessage plugin for jquery.

On the parent page make sure you have the plugin from Ben Alman and the lastest version of jquery.

Here is the script I came up with:

<script>
$.receiveMessage(function(e) {
if (e.data.indexOf("iframe_checkout_complete") > 1)  {
alert("Payment Processed");
}
});
</script>

There are many other ways to do this but I like this method. Simple and short. Easy to work with. When the customer processed the payment and gets to the order total page it will post a message saying “Payment Processed.”

0 Likes
0 Dislikes

I run a multi monitor enviroment, and it defiantly helps with work. One of the other things I run is two dev servers for testing using VNC to control them. I use to run virtual servers but I like having them on dedicated hardware, that way I can shut off my main PC and access the dev servers at any time. Virtual machines have there place but it just didn’t for me.

The more I deal with the VNC, I wish I could just slide my mouse to the left and be on one of the dev servers. I searched assuming someone has built something like this, and I was right. First I wasn’t sure how to word it but I came accross this post:

http://forums.cnet.com/7723-7586_102-235439/dual-monitor-via-vnc/

Which lead me to Synergy!

http://synergy-foss.org/

This thing is awesome! Its exactly what I need and works flawlessly! I setup my main PC as the server, set the devs as clients and about 2 minutes later, I have a working setup. It’s a multi O/S environment, (Centos,Windows 8, and Ubuntu) and I had no issues installing and setting this up, very simple setup!

I got the free version but I will defiantly be sending a donation to this team! These guys did an amazing job! Thanks again!

 

0 Likes
0 Dislikes

I saw this commercial on TV the other day and I thought to myself, “Best political commercial ever.” Now, I know nothing about the candidate. Don’t really care about politics honestly, its beyond corrupt but thats another blog post. I keep up on politics when I can but I do not take sides since both sides are wrong most of the time.

Besides the point this is the way political commercials should be. Not bashing their opponent but making a point and catch the attention of the viewer. To the companies making political commercials, take note from this one. Because all the others I flip the channel on. Actually I watch most entertainment via Netflix or Amazon VOD so I don’t have to hear the BS they are trying to feed us this week.

Ether way this guy hired the right team to put this together or he had a great idea. Government is way too big and needs to downsize a bit in certain areas. So if you haven’t watched it or your not a US citizen, watch it you should like it. Even if its just for the comedic aspects of it.

http://washington-pizza.com/

0 Likes
0 Dislikes

I thought I would put together a list of why people should use PHP vs all the other options out there.

1. Scalability – PHP is so simple to scale! In the event your project goes viral, you can bet PHP will be there to make sure its done. Since it has the share nothing architecture, you can for the most part drop another server in a cluster and go. With very little configuration.

2. Programming – PHP is simple to program with. There are more PHP programmers then other languages. So when your company needs a new programmer, it won’t take weeks to find him or her. If you hit odesk or people per hour, you could have a programmer in 10 minutes. Not many languages can say that. Most PHP applications you can hand any PHP programmer and he or she will get it. If its complicated, ether your code is wrong or method of doing the job is too complicated to begin with.

3.  Made for the Web – PHP was designed for the net. Its life is on the net. Its not like other languages that try to do everything and anything. That is when things get bloated.

4.  Frameworks – Tons of frameworks for PHP. I can’t even name them all off the top of my head. Some people love frameworks. My personal opinion is that frameworks are for people who need to get up and running fast or are too lazy to write the code from scratch. Every app I have built is fresh from the ground up. Sure it take more time, but I know every line of code to that app. I have less overhead since it is just my code and not the framework included. Frameworks have their place but that place generally isn’t with me.

5.  Failure rate – As long as your app follows the 5 > PHP version method of programming you should have code that doesn’t fail. If it does its probably the programmer, 9 times out of 10. PHP starts requests every time fresh, one request will not corrupt another. Other languages need some work to handle something like this.

6. Loving Google – PHP is so well documented. It’s not even funny. You can search any function in google (i.e. date php) and you will get the function along with examples and very good explanation. I would say the SOAP server side of PHP needs some more work and documentation but that is the only area of PHP that I have come to dislike. And of course the tried and true method, if you can’t figure it out, just Google it! :) When I have run into an issue I didn’t create, I Google it and bam! I got the answer! I recently had a chance to work on another app with a language I was less familiar with and documentation along with general posts on the net just didn’t exist. If you want to learn PHP, just come up with an idea to build and hit the php.net documentation. It will be slow going but you will figure it out. Not many languages can say that ether.

7. Community – Kind of going back to 6. but there is huge following behind PHP of full time and hobbyist of programmers with questions and solutions. One thing that separates the PHP and the ASP.net group of developers is the willingness to help. If you have some code that doesn’t work, post the PHP code on any one of the major forums and most if not all the responses will have the answer and the completed code for you! ASP.net not so much. I have seen a ton of occasions where the answer was given but it was vague. And for funny, see the response times. On PHP forums you will see responses in minutes. Other languages its hours, or even days, and some times no response. I have never posted something about PHP and didn’t get a response. Now this is personal opinion with the forum stuff but from my experience this is the case for me.

8. Sharing – PHP code is shared more then any code I believe. Anything you can dream of has been built and a lot of the times its just given away. Open source rocks and PHP is another great case point.

9. Mac friendly -  Remember the days when stuff didn’t work with Mac or it didn’t work with Windows. I mean that still happens a little bit today but 10 or so years ago, this was the norm. My first computer was a Mac Preforma, No clue as to what the model was but it was a all in one unit.Well buying software or accessories was a pain in the, well you get the idea. There are languages out there that are like the Mac of years ago. PHP is NOT like the Mac. PHP pretty much hooks into everything. Native stuff like MongoDB, MySqlDB, Memcache. PHP powers 30% of the internet. You know that one site, called facebook. Yeah, they used PHP. Banks, governments, you name it use PHP. PHP is not a fly by night language. It has plugins to just about everything. Generally your normally apps will be PHP, Linux, MySql. That’s about 90% of all PHP installs.

10. Greatest thing ever: Dynamic Typing – You do not have to declare the type of var. Oh my gosh, this is the greatest thing in the world. Other programmers call it lazy, I call it the right way of programming. A life time programmer taught me you should not code to code you should code to stop. In other words, you don’t over develop the application, simpler the better, and above all program itself should not be complicated. If I had to declare the type of var I was working with on every var I worked with every day I would have gone crazy. Not to mention the lost in time, it would add up.

11. Cost of ownership – The overall cost of PHP is less then any language. Initially and overall. The over abundance of PHP programmers brings cost down. The initial investment in hosting is always cheaper with PHP vs other languages since most installs are Linux based and they do not have to pay the licensing cost of the O/S installs. PHP solves issues quicker, easier then the next language.

12. If it hasn’t been built, its getting built. – Ease of learning PHP and the abundance of PHP developers mean applications are being developed faster, quicker, and more often then the next language. See Hotscripts.com and compare the amount of scripts for PHP vs other languages. Its huge. WordPress the application I use to control this site, is PHP based. Go to the extend part of wordpress.org and see it grow by checking in every day!

 

There you go, thats my simple list. Some fact, some opinion. I admit I’m a PHP programmer but I have converted ASP.net, Coldfusion, even Ruby on rails guys and gals to PHP after chatting for only a few minutes. I generally say, how would you go about this and have a random example. Tell them to write the code and before they are done I have it done on my laptop. That says a lot I think.

Posted in PHP.
0 Likes
0 Dislikes

I’m kind of playing catchup with posts. This is a post I wanted to make a few months back. I was going nuts because I have a 1gbps nic and a wifi N card running. Some downloads would slow down and I knew it was because the wifi nic was taking priority over the 1gbps nic. Since it has been awhile since I did it on my last machine, I found a post by techrena.net. See that post here: http://techrena.net/view-change-network-adapter-card-priority-binding-order-windows-7/

Its a repost but I thought I would help anyone else looking for it, thats the link to the info.

0 Likes
0 Dislikes

As most people with a WordPress site, it seems like you can never get up to date. I thought I would be a good idea to clean up the server. Dump the current install and do a fresh install, remove all the unneeded plugins, and start fresh. Kept all the comments and data but thats it. Defiantly runs better. I also use Piwik for tracking visitors on this site as well as others since Google Analytics has a site limit. Before I had it hard coded to the template, now I’m using the WP-Piwik plugin by André Bräkling. I must say this is a great plugin! It does much more then I need and it uses little to no overhead. Shows all my stats without logging into my Piwik install. Beyond that, WordPress 3.4.2 runs great!

0 Likes
0 Dislikes

Recently ran into this issue where I was trying to enable mod_rewrite thru the httpd.conf file. I went in to edit it and saved it. They I went to restart the apache service. And I would get this issue:

Windows could not start the Apache2 on Local Computer. For more information, review the System Event Log. If this is a non-Micorsoft service, contact the service vendor, and refer to service-specific error code 1

After some time searching and messing around I found the issue. It was because of permissions. My way of getting around this issue maybe a bit more complex then needed but it works.

1. Go download Notepad++  and install it.

2. Once installed go to the programs directory. Generally its “C:\Program Files (x86)\notepad++\” and find the application notepad++.exe.

3. Right click on said program and select “Properties.”

4. Hit the “Compatibility” tab, and check the box at the bottom – “Run this program as an administrator.”

5. Hit “Apply”

6. Now open Notepad++ and go to the location of your httpd.conf file location. Generally its “C:\apache\conf\.”

7. Once your done editing it save it as “httpd.conf.bak1″

8. Now go to your httpd.conf file location. Copy the current httpd.conf file and paste it in that directory as a backup.

9. Delete the current httpd.conf file. Rename the httpd.conf.bak1 file to httpd.conf

10. Restart Apache and see if it works.

 

I would be glad to help if it doesn’t work for you. This was a total pain for me, but hopefully I can help someone else that runs into this issue.

 

0 Likes
0 Dislikes

Just posted the SimplyCaptcha WordPress Plugin, Click here to see it. Really simple to install. Drag and drop, like most WP plugins. Once installed you will need a key and your URL to start using the SimplyCaptcha system. In the next hour or so I will post the new SimplyCaptcha website which will allow you to register your site and get your key.

I made SimplyCaptcha because I was sick of all the other captcha systems. SimplyCaptcha solves the number one issue with Captchas, they don’t convert. I have worked with clients where they would loose 30% to 40% of they’re customers because the customer couldn’t read the captcha. So I went with a simple format for the captcha system. I use simple questions anyone can answer, instead of the image based systems.

Now, I know the question based versions have been done. The thing is, they are just question based. SimplyCaptcha is not. SimplyCaptcha has multiple spam monitoring features and blocking capabilities.

Two of the biggest are the bot and IP monitoring features. As queries are made to SimplyCaptcha, the input is monitored, including the user agent and IP address. If they’re are too many attempts at a form, the IP is blocked. If the same user agent is constantly showing up on other sites, its blocked. When an IP or Bot is blocked, they cannot submit the form at all.

Let me know what you all think. I have some additional plans to add more layers of security and I’ll be rolling out another layer in a few weeks. So far since I have built SimplyCaptcha, I have seen 100% spam blocked. On all the sites I run, Including client sites.

0 Likes
0 Dislikes

I built this simple form to help users get API credentials faster from WePay. Some plugins have the capabilities to have the API credentials sent right to the plugin. With this form it will tell you if you can have the API credentials sent right to it or not.

When your using this form it will setup PRODUCTION API credentials. Their isn’t away to get staging. So, make sure you set your plugin to Production when using the API credentials supplied by this app.

http://www.alanpinnt.com/wepay-api-app/

0 Likes
0 Dislikes

Just released the new version of OsCommerce WePay Plugin. Its now 2.0!

Some of the new features include:

Request API credentials from the Plugin Directly

Prefill customer information on the checkout

New method of tracking order for the IPN.

For more information on this update see this post.

 

Whats Next

Update for ZenCart – 8/29/12

Update for WordPress – 8/30/12

Update for OpenCart – 8/31/12

A few new Plugins. 9/1/12

 

Tokenization plugins are about to roll out soon. There will not be a tokenization plugin for ZenCart. There will be for the other shopping carts and applications.

 

0 Likes
0 Dislikes

So after some emails and friends letting me know their is a “t” in captcha, I thought I should change the name. I knew there is suppose to be a “t” but I thought the misspelling made it easier to remember. Never the less I changed the name to SimplyCaptcha.

http://simplycaptcha.com/

Other News

SimplyCaptcha so far is blocking 100% of all spam comments on all websites using SimplyCaptcha right now! Some new security features will roll out this weekend that will make SimplyCaptcha even stronger!

0 Likes
0 Dislikes

SimpleCapcha is now live. Still in beta testing to a select few. Very simple to setup and use. There will be a WordPress SimpleCapcha Plugin in the near future among other things!

Its great because now I can get rid of the 50+ comments I get a day of spam! And Ill get a chance to see if their spam bot can break the capcha!

www.simplecapcha.com