0 Dislikes

It’s been a bit since I’ve posted and I plan to start making posts much more often. In the mean time I have been running into an issue with my laptop where the bluetooth device doesn’t turn back on after resuming from suspend. I have a bluetooth mouse and keyboard and they work great with my Fedora 20 install. When I put the laptop in suspend, and resume it, I no longer have use of the bluetooth devices. I have to manually reconnect them which is frustrating because I suspend my laptop a lot during the day.

I found after testing that the devices were still paired with the bluetooth manager but the bluetooth device on the laptop was no longer powered on. By turning it on, everything started to work again. Simple solution, make sure bluetooth turns on the adapter after resume from suspend.

I know I’m not the only person with this issue and after spending a bit of time reading and writing, I found the solution.

I actually found the solution from Arch Linux bluetooth section. Link: https://wiki.archlinux.org/index.php/Bluetooth


Edit or Add this file:



Add to this file:

# Set bluetooth power up
ACTION=="add", KERNEL=="hci0", RUN+="/usr/bin/hciconfig hci0 up"

By doing do this will make sure bluetooth comes on after reboot.


Here is the meat and potatos!

Edit or Add this file:



Add to this file:

Description=Bluetooth auto power on
After=bluetooth.service sys-subsystem-bluetooth-devices-%i.device suspend.target
#We could also do a 200 char long call to bluez via dbus. Except this does not work since bluez does not react to dbus at this point of the resume sequence and I do not know how I get this service to run at a time it does. So we just ignore bluez and force %i up using hciconfig. Welcome to the 21st century.
#ExecStart=/usr/bin/dbus-send --system --type=method_call --dest=org.bluez /org/bluez/%I org.freedesktop.DBus.Properties.Set string:org.bluez.Adapter1 string:Powered variant:boolean:true
ExecStart=/usr/bin/hciconfig %i up

This works flawlessly! I have zero issues and bluetooth always comes back on, connects the device and I go back to working!!!


10 Dislikes

After much thought I have decided I will no longer support or develop WePay Plugins. I have made this decision because I do not have the time and I can’t make the time to complete the updates.

I will also be ceasing development of all other plugins I have developed. I don’t have the time.

Things may change, but in the mean time this is where I am at.

0 Dislikes

Just a real quick post. There will be an update this week before the WePay API update cut off. This will patch all the plugins.

I will also release the new WordPress WePay plugin. It’s is basically a complete rewrite. So before Friday, there will be updates galore!

0 Dislikes

As some of you may know WePay has announced they will be getting rid of the widgets and buttons they offer. Since the email went out last week I have been getting many emails regarding this. In response to so many people I have decided it is best to build out some tools to fulfill this missing piece for many of you.

I cannot give an exact time but I should have it done in the next month or so. The plan at the moment is to provide a button system for the WP plugin and the some sort of basic button builder on my blog. Plans may change, for now it should help many of you and support your endeavors.

Please feel free to comment on this, send ideas, and or requests.

0 Dislikes

Just posted the updated files to the following WePay Plugins:

WePay Checkout 2.2 OsCommerce


WePay Tokenized Checkout 1.1 Oscommerce


WePay Checkout 2.2 Zen Cart


All plugins have received the latest version of the WePay PHP SDK. The code was also slightly cleaned up in the WePay Checkout 2.2 Plugin for OsCommerce.

0 Dislikes

I picked up a UX32VD Asus on Newegg about 2 days after Christmas for a pretty good deal. Since everyone in the reviews said you had to get an SSD drive, I swapped that out. I also upped the memory because 4GB isn’t enough for me. I’m using this laptop for programming and web work mostly, I don’t watch movies on it or anything graphic intensive. I may install Windows on the 24g internal SSD and play Battlefield but that’s about as graphic intensive as it gets for me. Also I have Fedora 20 installed on the main drive.

So I started out with the stock UX32VD and now I have a Samsung 500GB SSD and Crucial 8GB Memory to bring the memory to 10GB (Laptop has built in 2gb.) I should mention that this thing is amazing to upgrade. Most machines this small and thin would normally be a pain to work on. This was easy besides having to remove the battery to get the drive out but that was only a cable and 8 or so screws to be removed.

Let me say this laptop is amazing performance wise. Boot up in less then 3 seconds from the grub boot menu. Close the lid, straight into suspend mode, Open it up, instantly on. Battery life is getting better. Initially after install it wasn’t great maybe 3 hours if I pushed it. But now I get an easy 4.5 hours if not 5 hours. That’s with the backlit keyboard off, and the second to last setting on the screen brightness. I don’t think I could get 6 hours like some say. Maybe if I shut WIFI off but what is the point of a computer without internet? At least to me that matters. But 4.5 hours actually doing work and surfing the web, is really good. Some vendors say their laptop gets 7 hours but its with everything off and very light use. I’m using the laptop to the average level, not pushing the graphics or cpu but opening and closing programs, etc and getting work done. 4-5 of work time without a charge isn’t really that bad. Keep in mind I have made mods to the system to increase battery performance. One of those modes includes using bumblebee. I did use the nvidia drivers and not the open source ones.

Biggest draw back that so many buyers reviewed as a positive is the screen. Now it s beautiful, it looks great. The issue is the the resolution. 1920×1080 on a 13″ screen means really tiny text. And I love small text and high resolution but 1920×1080 on this screen makes me squint a bit. And I have great eye sight. I would lower the resolution but the options don’t offer anything that fits the screen. I thought about manually adding some other resolutions to see if I could try something smaller but I have yet to try that. For now I have increased the default font size slightly, increased wine fonts, increased cinnamon fonts, and increased chrome (default browser) to zoom to 125%. That seems to make it work for me.

The charger is pretty nice. I do wish the ac/dc adapter block wasn’t so big, maybe in a different shape or something. Minor issue though. Really more of a preference.

Fedora 20 installed without issue! I’m running the latest everything and it works without issue. Some other owners of this laptop have mentioned issues with the touch pad not being responsive and other issues. I didn’t find that issue with this laptop when I installed Fedora. I did bump up the settings to be ultra sensitive but that’s because I like a mouse that is ultra sensitive.

One of the things I added that is a must have in my book is a startup script to adjust power preferences and a few other things. I added one line to my script that turns the backlite off on boot, which I really like. If I want backlite ill turn it on, I don’t want it to be on every single time I reboot, or boot the machine.

Overall I will be replacing my main machine with this laptop and honestly its perfect. Their are minor issues to be resolved to get it perfect but it’s a great machine. I can plug it in to two displays if I want. Its light and easy to take on the go.  Fits me and my lifestyle very nicely. I can’t say if Windows 8 on it is good or no because I only booted it up once to see the performance at first. Took it apart and installed Fedora. And then the fan began! If you thinking of getting one I highly recommend it!

Here are some links to sites I got some help while making changes.



***Update: I will note that after having it for awhile it runs beautifully. It seems to be getting a better battery life, slightly. Some what expected. It’s running the latest updates from Fedora and haven’t hit a snag yet. Never had an issue with the touchpad like others have mentioned. I didn’t mention in the original post about the vga adapter or the USB to Ethernet adapter functionality. I ran into a situation where were I had to test out both. And to my surprise, they both worked. With no changes needed. This laptop has probably been the most painless Linux setup and install I have ever dealt with in my life. ASUS did an amazing job designing this laptop. The Fedora team did an amazing job on 20! All in all, I can’t complain.


0 Dislikes

Just did an update to one of my Fedora machines and ran into an issue with yum after the update. Yum no longer works, so after a little fiddling, I found the best solution to the fix. Below is the error.



Warning: group core does not exist.
Warning: group gnome-desktop does not exist.
Warning: group multimedia does not exist.
Warning: group firefox does not exist.
Warning: group guest-desktop-agents does not exist.
Warning: group base-x does not exist.
Warning: group anaconda-tools does not exist.
Warning: group fonts does not exist.
Warning: group hardware-support does not exist.
Warning: group dial-up does not exist.
Warning: group printing does not exist.
Warning: group libreoffice does not exist.
Warning: group input-methods does not exist.
Warning: group standard does not exist.

The solution to fix yum is fairly simple. Its a matter of installing the latest version of yum and that’s it.

Go to:


Under the section, “RPMs” Download the “noarch”

As of this post, this is the file name: yum-3.4.3-127.fc20.noarch.rpm

Once downloaded, double click to open and select install.

After the install is completed yum should be working.

1 Dislikes

Happy Thanksgiving to those in the US! I will be updating all the plugins I have built. Its been a long time coming and many fixes are coming.

Quick run down:

WePay WordPress Plugin: I will stop development of the API plugin and integrate it into this one. The WordPress plugin is going to be one large plugin instead of more then 1. I will also clean up the code a bit and throw in some documentation. And I will be getting rid of all the menu tabs and moving the WePay settings to the settings tab.

OsCommerce/ZenCart WePay Plugin: I will be cleaning up the code, fixing an issue with discount codes, and updating the sdk.

OpenCart WePay Plugin: Will be updating the sdk, cleaning up code.

Magento WePay Plugin: I will be releasing this free of charge in December.

WP Thumbs: I will be updating that a little bit. Setting it up so you can clear stats. Better control of placement, pages, posts, etc.

SimplyCaptcha: I will be updating the site, adding a registration form to get access to keys, and adding many more questions.


I will not say a specific time but it is coming soon. I’m looking at releasing some new WP plugins and I have some thoughts on a few OsCommerce plugins.


4 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!


1 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:

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

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 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:


Which lead me to Synergy!


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 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.


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 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.