Vimeo, OAuth and CakePHP Session Security Settings
Posted by Timothy on Jan 12, 2011 in PHP, Programming, Software
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 MoreWindows 7 UAC & “Drag and Drop” Issues
Posted by Timothy on Jan 13, 2010 in Random Babble, Software
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
Must have G1 Android Apps
Posted by Timothy on Mar 16, 2009 in Android, Gadgets, Programs, Software
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.
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.
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.
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.
ConnectBot
Read MoreThis 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.
svnserve rc.d/init.d start up script for Fedora/RedHat
Posted by Timothy on Aug 22, 2007 in Software
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
-
#!/bin/bash
-
#
-
# /etc/rc.d/init.d/subversion
-
#
-
# Starts the Subversion Daemon
-
#
-
# chkconfig: 2345 90 10
-
# description: Subversion Daemon
-
-
# processname: svnserve
-
-
. /etc/rc.d/init.d/functions
-
-
[ -x /usr/bin/svnserve ] || exit 1
-
-
### Default variables
-
. /etc/sysconfig/subversion
-
-
RETVAL=0
-
prog="svnserve"
-
desc="Subversion Daemon"
-
-
start() {
-
echo -n $"Starting $desc ($prog): "
-
daemon $prog -d $OPTIONS
-
RETVAL=$?
-
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
-
echo
-
}
-
-
stop() {
-
echo -n $"Shutting down $desc ($prog): "
-
killproc $prog
-
RETVAL=$?
-
[ $RETVAL -eq 0 ] && success || failure
-
echo
-
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
-
return $RETVAL
-
}
-
-
case "$1" in
-
start)
-
start
-
;;
-
stop)
-
stop
-
;;
-
restart)
-
stop
-
start
-
RETVAL=$?
-
;;
-
condrestart)
-
[ -e /var/lock/subsys/$prog ] && restart
-
RETVAL=$?
-
;;
-
*)
-
echo $"Usage: $0 {start|stop|restart|condrestart}"
-
RETVAL=1
-
esac
-
-
exit $RETVAL
/etc/sysconfig/subversion
-
# Configuration file for the Subversion service
-
#
-
# To pass additional options (for instace, -r root of directory to server) to
-
# the svnserve binary at startup, set OPTIONS here.
-
#
-
#OPTIONS=
-
OPTIONS="–threads –root /svn"
Visual Studio + Subversion
Posted by Timothy on Aug 22, 2007 in Programming, Software
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