Nov 29, 2011
Problem: After installing Java 6 or Java 7 and the Java FX Runtime on Windows 7 64 bit, you can not launch JavaFX applications from your browser. Any attempt to launch an application results in a request from the browser to install Java. Which is silly because it is already installed. Or is it?
Solution: Most web browsers are actually 32 bit applications. Consequently, you must install the 32 bit version of the Java Runtime Edition (JRE) and the 32 bit version of the JavaFX runtime. The first will install the needed Java plugin for your browsers. The second makes JavaFX available for 32 bit apps. After the install, restart your browser and voila, everything should work fine.
Nov 28, 2011
Nov 23, 2011
This post documents the steps for setting up Apache on OS X Lion. Now the way I setup the server is a little different, but I will try to explain why.
- Start Apache Web Server
- Choose System Preferences in the Dock.
- Under Internet and Wireles and choose Sharing.
- Check Web Sharing.
Apache should start up. If it does not, see the Troubleshooting section.
- Uncheck Web Sharing. This stops the Apache server. The server should be stopped so changes can be made to the directory structure.
- Set up the Apache home directory.
The Apache home directory is located at /Library/WebServer/Documents. Of course you can set up your website and do your development there. However, if you perform an
ls -lon the directory you will see the permissions set to 755 with user of
rootand a group of
wheel. So effectively, you have no access to the directory. So you can either make files as root, or add yourself to the
wheelgroup. Neither is very convenient, so this is the approach I take.
- Open a terminal window
- Switch to the root user:
- In your home directory, create a directory to hold your web pages (e.g., www). Note that the permissions will be set to 775 with a user of
rootand a group of
staff. Since you are a member of the staff group by default, you have read and execute rights to the directory.
- Add write permissions to the directory:
chmod 775 www. Now this directory can be edited by both the web server and by you. Now we can have the web server point at this directory as its document directory.
- Change to web server directory:
- Rename the Documents directory:
mv Documents Documents.bk
- Link to the directory our created:
ln -s ~/www Documents
exitto exit from your root shell.
- Now enable PHP
- Open a terminal window
- Switch to the root user:
- Change to the configuration directory:
- Change the permissions so you can edit the configuration directory:
chmod 744 httpd.conf
- Edit the file with your editor of choice.
vi httpd.conf. Note: If you do not know how to use
vi, learning it is highly recommended as it is almost always available on Unix based systems.
- Uncomment this line:
LoadModule php5_module libexec/apache2/libphp5.so
- Restart the Web Server
This should setup the server to work with PHP and allows you to easily edit and manipulate files.
Problem: Apache will not start after upgrading from OS X Snow Leopard to Lion
Solution: The first thing to do is find out what error messages are being generated by Apache when it starts. This can be found in the Console application found in the Applications > Utilities > Console. This should list the error messages generated. In my case, the errors were related to directives in the Apache configuration file located at /etc/apache2/httpd.conf. Just commenting out the specific lines indicated in the console solved the startup problems for me.
Nov 21, 2011
Here are the best ones I could find:
- How to Diagnose Mac Problems | Mac|Life
- How to Reset iOS Apps | Mac|Life
- Why's My Mac Slow? | Mac|Life
- How to Boot Your Mac in Safe Mode | Mac|Life
- How to Fix Your Fonts | Mac|Life
- How to Recover Your Passwords | Mac|Life
- How to Sweep Your Drive Clean with Software | Mac|Life
I highly recommend a subscription.
Nov 19, 2011
Definitely worth a look. Check it out here.
Nov 14, 2011
A quick Google search confirmed this:
Microsoft revealed this week that Internet Explorer 10 Metro will not support browser based plug-ins.Full Story Here
“For the web to move forward and for consumers to get the most out of touch-first browsing, the Metro style browser in Windows 8 is as HTML5-only as possible, and plug-in free,” revealed Internet Explorer chief Dean Hachamovitch, in a blog post earlier this week. Microsoft is removing the ability to use plug-ins on the Metro style IE version of Windows 8 to improve security, reliability and battery life for end users. “Plug-ins were important early on in the web’s history,” admits Hachamovitch. “The web has come a long way since then with HTML5.”
Although I do find it hard to believe there will be no plug-in or add on capability in Internet Explorer. It looks like Flash really is gonna be dead soon. The times are changing fast.
Nov 11, 2011
To update your device do the following:
- Click Settings
- Click General
- Click Software Update
Nov 9, 2011
Flash: Crippled but alive...for now
Although Steve Jobs is no longer with us, his will is done. He stated early on that Flash wasn't a good fit for mobile devices and Apple would focus on HTML5. As of today, Adobe agrees with him. But don't make too big a deal out of this, Adobe will still support mobile apps using their Air platform. In addition, the story points out that most of us are still using PCs rather than iPhones or iPads.
Finally, in the end, Adobe is a tools vendor. Whether their tools target Flash or HTML5, they make money either way.
Nov 6, 2011
Found a couple of free tutorials.
HTML5 Offline Application Cache
PaperKilledRock: HTML5 LocalStorage
Of course, with new features like this, new libraries are always welcome. I have not tried this yet, but I intend to.
Finally, we have a book by one of the folks working on the spec.
Nov 3, 2011
The movie seems to be taken mostly from the vantage point of co-founder Eduardo Saverin. According to the movie, he was screwed out of his 30% stake in the company just because Mark Zuckerberg could. But according to this story, there is another side to things.Apparently Eduardo stayed to finish school and this really hampered Facebook's ability to obtain funding and move forward. In addition, he put free advertising on Facebook for a job site he created on his own.In this context, Zuck's decision makes a lot more sense. Someone with a 30% share of the company really needs to be all in.
On the whole a good, but not a great movie. I think startups are fun places to work. Just not fun in the rock star sense like the movie portrays. Friday keggers are much more likely than, club night with the Victoria's Secret girls.
Nov 1, 2011
By default Bash supports the use of EMACs commands to navigate through your command line history. You can move backward through the command history using
Ctl-pand move forward through it with
Ctl-n. Pretty much replaces the arrows.
In addition, I found out you can use
Ctl-rto search through the history. After typing
Ctl-r, enter the letters you are searching for and the command that best matches, is displayed. You can also modify the matched command line.
In addition to EMACs, there are a number of commands that work with the command line history. You can use
!!to run the previous command and
!3to run the command on line 3 of the history list.
I also figured out if you echo the command, (e.g.,
echo !5) you can use
Ctl-pto go back and edit the line.
Ctl-p - Display previous command line
Ctl-n - Display next command line
Ctl-a - Move to the start of the line
Ctl-e - Move to the end of the line
Search Command Lines
Ctl-r - Searches backward through the history for the letters you type
Just start typing the text you are searching for. The closest match will be displayed. The matched command line can be edited and modified.
history - Display the command history
!! - Repeat the last command
!# - Repeat the line number in the history
echo !! - Echo the previous command to standard out