Was having a big issue with selinux limiting access to my old legacy cgi-scripts in apache. Ended up removing selinux restrictions from this particular script file.
chcon -h -t httpd_unconfined_script_exec_t slides_by_pcd /usr/local/apache/cgi-bin/my_script
Some of the symptoms from apache access_log included :
1. Can’t open perl script
2. Premature end of script headers
Posted 1 year ago at 2:17 am. Add a comment
Typing \n printed out \n, typing <br/> printed <br/> in the text area.
Until I found this:
Posted 1 year, 1 month ago at 9:59 am. Add a comment
I have been working with XML parsing recently using the StAX (why use StAX?). However, I ran into an issue with the & (ampersand) since it is a reserved character in xml and needs to be escaped. But when the & was escaped the parser would fire multiple events, 1) text before the &, 2) the &, 3) text after the &. This was a bit hard to integrate with, so instead of putting a & in the xml file I just replaced it with a different character and did a search and replace once the data was parsed. This strategy saved me quite a bit of work.
Posted 1 year, 2 months ago at 3:36 pm. Add a comment
While you can use twitter to follow movie stars, I think there’s a more practical use for normal information hounds.
Here is my analogy:
A normal competent, capable, say software manager, usually seems a few steps ahead of his subordinates with technology, company news, and issues. Usually you talk to your manager to find out what is going on and to get your task assignments. Where does he get this information? I think he has subordinates sending him feeds of information in the form of status reports, quick conversations, etc. That’s why he always seems a few steps ahead of you.
Twitter is exactly the same thing. If you follow the RIGHT people, you can get the same feeds of information for tech, news, issues, event proceedings, basically what ever you want to know about. The emphasis is on the RIGHT people. Don’t just follow anyone, be discriminating or you’ll just have a ton of noise.
Don’t for get to follow @jamescway
This is just one perspective on why twitter is good. I’m sure there are others. What do you think?
Posted 1 year, 3 months ago at 10:38 am. Add a comment
As shown here
Just to sumarize, there is a netbeans.conf file that needs to be modified. You can Ctrl-Click on the netbean app file to access the directory behind it from Finder. Also, I just set it to the current JDK as follows:
netbeans_jdkhome=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
so that it always uses the most recent JDK.
Posted 1 year, 3 months ago at 12:50 pm. Add a comment
I tried to update JAVA on MacOS X by using the /Application/Utilities/Java/Java Preferences.app. It seemed to work, but if you want it to work for root, then you need to run the application as root. you can do it on the command line as follows:
root# ./Applications/Utilities/Java/Java Preferences.app/Contents/MacOS/Java Preferences
I’m not sure if it was necssary but I also modified the symlinks also to point to 1.6 instead of 1.5.
ln -s /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK 1.6
you can delete the original symlink if necessary. As a word of warning, I have read that changing symlinks isn’t recommended by apple.
Posted 1 year, 3 months ago at 12:24 pm. Add a comment
…was a terrible ordeal. Apple provides 3 different updates for OSX 10.5 and I ran them all. Once I installed them, I did a java -version from the command line and it still said 1.5. Apparently, there’s a /Applications/Utilities/Java/Java Preferences.app program you can run to change these settings. I ran it and it didn’t seem to do anything, until I restarted (was it my computer or my terminal?). Then it seemed to work in user mode, but in root or sudo it still says 1.5. I ended up just writing an alias to the java I wanted
alias java=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java
Posted 1 year, 3 months ago at 2:05 pm. Add a comment
Is a new developmental demo to explore what email would look like if it were implemented today instead of 40 years ago. The system keeps data on a central server instead of creating a copy for each recipient. Ultimately, this gives you (and everyone else) the ability to modify messages on the server. What that means is that it becomes an incredibly cooperative process because people can immediately see what is updated on a wave (the message). It leads to a bunch of different tools and gadgets that allow very impressive recording/playback and collaboration. Effectively, this char by char updating, from an html5 interface developed in GWT, looks almost like an instant message. Other features include drag and drop, inserting various media, and collaborative games.
*Twave is a twitter wave. Implements interface to post updates using Twitter.
*The system is very impressive, but it is still a little bit buggy since it’s still in development.
http://wave.google.com
Posted 1 year, 3 months ago at 11:08 pm. 1 comment
This was one of the best conferences that I have ever been to. Food was amazing, very informative talks, lots of snacks and drinks, oh and don’t foget the free gphone! WOW!
But seriously, I attended mostly the App Engine talks and it seems to be a force to be reckoned with. More on this later…
Posted 1 year, 3 months ago at 12:17 am. Add a comment
The MovieTix application uses a native Android client application which accesses RESTful web services exposed on the internet via HTTP. The architecture that we used was based on the standard 3-tier model. The client tier is represented by the native Android mobile application. The web tier uses the Mongrel application server, which uses the Ruby on Rails framework. Lastly the database tier uses MySQL. The data is passed between client and server by using XML representations of the data as rendered by the Rails controllers. Once the client receives the data SAX is used to parse the data instead of DOM so that we don’t need to load the entire XML object into memory.
Partners: David Kuo, Ryan Zhou
Posted 1 year, 3 months ago at 7:22 pm. Add a comment