...somewhat damaged.

Vimeo, OAuth and CakePHP Session Security Settings

Vimeo, OAuth and CakePHP Session Security Settings

So after ripping my hair out for a good 2-3hrs trying to figure out why my Vimeo OAuth requests wasn’t returning any sessions variables, I finally figured it out.

CakePHP’s Configure::write(‘Security.level’, ‘medium’); sets PHP’s session.referer_check and denies any other hosts from setting session variables. I was wondering why half my sessions vars were gone and it would appear I was logged-out. Setting Configure::write(‘Security.level’, ‘low’); seems to have fixed the issue. But anytime you read ‘Security Low’ in the same sentence, it leaves you with some sort of uncomfortable feeling.

I’m not exactly sure what the status of this is. But I found a link that pretty much explains it all. session.referer_check PHP ini var should be decoupled from ‘High’ and ‘Medium’ Session Security levels

Read More

Windows 7 UAC & “Drag and Drop” Issues

So apparently Microsoft is at it again– providing some of us with hilarity and leaving the rest scratching our heads as to just WTF they were thinking. So apparently when you leave User Account Control (UAC) on even on a lower setting, you’re unable to “Drag and Drop” items onto applications. For example, I’ll typically open a file in Textpad by dragging the file over the Textpad window and Textpad will happily display the file contents. Another common task I perform is using WinSCP to copy files up to my server. UAC strikes again and I’m unable to drag files to the WinSCP ‘Explorer View’ making it nearly impossible to even use the application. So, anyhow– Long story short. If you’re used to dragging items over the respective application to open them and you’re getting the ‘No Access’ mouse icon, disable your UAC!

Note: If you prefer not to disable UAC, you can go into:
Control Panel -> Administrative Tools -> Local Security Policy -> Local Policies -> Security Options and Disable the “User Account Control: Only elevate UIaccess applications that are installed in secure locations” option

Read More

Must have G1 Android Apps

Must have G1 Android Apps

I’ve checked out most of the available Android Market– I go through it almost nightly to see what’s been added. The options are a bit limited, but here’s a good list of apps I’ve found very useful and hopefully you will too.

 
 
 
 
Power Manager

This application adds NEW power settings to the phone (e.g. how long the screen is on during a call, if device stays on while the keyboard is open, etc.) and allows you to quickly view and change other phone settings depending on different conditions (e.g. turn off the GPS when the battery level drops below 30%, lower the brightness of the screen when on battery power, change the screen timeout if on A/C power, etc.)

It comes with a set of predefined profiles and automatically starts working after installation.

Unless you want to change any of these definitions or use advanced features nothing else has to be done after the program is installed.

http://nettogo.net/powermanager/

StarContact

StarContact allows you to search for contacts in so many different ways. It really should be built into Android. You’re given a few different search methods along with an on-screen t9 like keyboard which is easy to use without fat-fingering letters.

http://mobile.starobject.com/starcontact/index.html

Useful Switchers

Useful Switchers is great for quickly turning on/off G3, Wifi, GPS, and all the other commonly toggled items on the G1. There’s a few extras included such as screen brightness and it’ll even give you a little display about your battery and memory usage.

http://www.maximyudin.com/

Missed Call

Missed call allows you to actually use that tiny little RGB LED in the ear piece for different types of events. Such as a missed call, incoming SMS or Calendar event. It also allows you to configure custom ringtones for each event and even periodic reminders. Now you don’t have to pick up your phone to see if you have any pending events.

K-9 Mail

K-9 Mail is a fork of the original email client that ships with Android with a bunch of bug fixes and a number of extra features. The bug fixes along are reason enough to install this app.

http://code.google.com/k9mail

ConnectBot

This one is for the techies! ConnectBot is a complete SSH Client for Android. ConnectBot allows you to SSH into a linux/solaris or (other unix flavor) machine and remotely control it, read email with mutt/pine/elm or even IRC or MOO.

http://connectbot.org

Read More

svnserve rc.d/init.d start up script for Fedora/RedHat

I forget where I found this at. But again, I figured I would share this since I’m sure others are looking for the same thing.

/etc/rc.d/init.d/svnserve

  1. #!/bin/bash
  2. #
  3. #   /etc/rc.d/init.d/subversion
  4. #
  5. # Starts the Subversion Daemon
  6. #
  7. # chkconfig: 2345 90 10
  8. # description: Subversion Daemon
  9.  
  10. # processname: svnserve
  11.  
  12. . /etc/rc.d/init.d/functions
  13.  
  14. [ -x /usr/bin/svnserve ] || exit 1
  15.  
  16. ### Default variables
  17. . /etc/sysconfig/subversion
  18.  
  19. RETVAL=0
  20. prog="svnserve"
  21. desc="Subversion Daemon"
  22.  
  23. start() {
  24.         echo -n $"Starting $desc ($prog): "
  25.    daemon $prog -d $OPTIONS
  26.    RETVAL=$?
  27.    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
  28.    echo
  29. }
  30.  
  31. stop() {
  32.    echo -n $"Shutting down $desc ($prog): "
  33.    killproc $prog
  34.    RETVAL=$?
  35.    [ $RETVAL -eq 0 ] && success || failure
  36.    echo
  37.    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
  38.    return $RETVAL
  39. }
  40.  
  41. case "$1" in
  42.   start)
  43.    start
  44.    ;;
  45.   stop)
  46.    stop
  47.    ;;
  48.   restart)
  49.    stop
  50.    start
  51.    RETVAL=$?
  52.    ;;
  53.   condrestart)
  54.         [ -e /var/lock/subsys/$prog ] && restart
  55.    RETVAL=$?
  56.    ;;
  57.   *)
  58.    echo $"Usage: $0 {start|stop|restart|condrestart}"
  59.    RETVAL=1
  60. esac
  61.  
  62. exit $RETVAL

/etc/sysconfig/subversion

  1. # Configuration file for the Subversion service
  2. #
  3. # To pass additional options (for instace, -r root of directory to server) to
  4. # the svnserve binary at startup, set OPTIONS here.
  5. #
  6. #OPTIONS=
  7. OPTIONS="–threads –root /svn"
Read More

Visual Studio + Subversion

I recently found Ankh which integrates SVN into Visual Studio. Just thought I’d throw this out there. I haven’t had much time to tinker with the Add-In yet, but so far I was able to easily Commit and Update files. Works with authentication as well.

Read More