• Home
  • Programming
    • API
      • Google
    • Javascript
    • Php
    • Server
  • CMS
    • Magento
    • Yahoo! Store

How to change file permissions after SVN UPDATE

Tuesday, 12 November 2013 22:15
Tim Ramsey
0 Comments
I was frustrated because SVN takes umask to assign file permissions for the user and I had one file that needed different permissions to run. After researching for a while at the best approach, I decided to create a 3 line bash script to do change the file permissions afters the svn update.

1
2
3
4
#!/bin/sh
cd public_html
svn update
chmod 644 index.php


I named the file svnupdate.sh so running bash svnupdate.sh from shell changes the directory to public_html, updates the files, and then changes the permissions of the index.php file.

This is not meant to be an elaborate solution, but hopefully will point someone to a direction quicker that it took me.

Solved X11 GUI not working in putty

Monday, 04 November 2013 23:53
Tim Ramsey
0 Comments
I was having all kids of issues trying to get a RETS server admin GUI display up and running. It uses java and the first error I was receiving from the command line was

Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.

I am sshing into the server with putty on Windows. The error above led me to download and install Xming. After downloading and installing I went to Putty > Connection > SSH > X11 > Click enable and set display location to 127.0.0.1:0.

Still no dice. It wasn’t getting any error in putty window, but learned if you right click putty window > Event Log will give you tons of information. I found this gem:

2013-11-03 17:20:26 Remote debug message: No xauth program; cannot forward with spoofing.

of course, xauth wasn’t installed. I ran the follow to install and had gui up in no time.

yum search xauth
yum install xorg-x11-xauth


Another thing to look at is your sshd_config make sure you have the following set X11Forwarding yes

Finding the Google Places Reference String

Wednesday, 30 October 2013 15:07
Tim Ramsey
0 Comments
The illusive Reference String. A client needed to pull their reviews from google and after research I found out that I needed to use the getDetails() method to gather this information. Upon going to their API docs, I was left with this

This method takes a request, containing the desired Place’s reference value.
If only they told you how to get the value…ugh… After playing around with it, I found that the textSearch() method included this value in its response. I put together a client side script that uses a jQuery geocomplete plugin to get the lat/lng to pass the textSearch() method to retrieve the Reference String. You only need to know the address of place you are searching for.

I am not going to provide the script for it, but if you view source you can pull the appropriate code. ——> Find Google Places Reference String Now

How to add a favicon to Yahoo Store Checkout

Tuesday, 29 October 2013 20:06
Tim Ramsey
0 Comments
If you want to add your own custom favicon to your store checkout then follow these 2 simple steps.

1. Upload your icon to the “files” section of your account and copy the https:// version. This way you won’t get a security warning at checkout. note: IE pretty much only accepts .ico and .jpg so if you are trying to tailor to the 12.1% market then you will want one of those extensions.

uploadfiles

2. Then on each of your checkout pages you would put the following in the “HTML Head Section” note: I am using single page checkout, but all checkout pages need the code for it to show up on all pages of checkout

1
2
<link rel="icon" href="https://lib.store.yahoo.net/lib/youraccountnumber/icon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="https://lib.store.yahoo.net/lib/youraccountnumber/icon.ico" type="image/x-icon" />


uploadfiles

You could also paste the two lines of code above into your “Head-tags” global variable in the store editor to have a favicon on call pages. Good Luck 🙂

Page 14 of 15

  • Previous
  • 1
  • …
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • Next

Categories

  • CMS
    • Magento
    • Shopify
    • Yahoo! Store
  • Programming
    • API
      • Google
    • Javascript
    • Php
    • Server
    • SVN
  • VOIP

Recent Posts

  • How to write to Google Sheet with API in PHP
  • How to Migrate FreePBX server to a new server
  • Unifi Controller Java CPU 100%
  • Update Unifi Controller on Linux
  • Code Signing Desktop App