Sunday, July 18, 2010

How to work around “sorry, you must have a tty to run sudo” without sacrificing security

Edit the /etc/sudoers file and comment out this line:

Defaults requiretty

Done!

Tuesday, July 13, 2010

Notes for Twitter image aggregator

Need per-twitter-user stats

in order to show other pics by the same user.
==================================================

Image rate up/down
favorites

comments

/reply

===========

most commented
most liked
most favorited

============

By tags....

How to best display other thumbs? In carousel or just on side block?


The idea is to auto retweet every new one

User may "Retweet", "Favorite", "Like", "Hate"

and "Comment" and "Reply"

Also may "Follow"

===================\\

Home page will have thumbs of new images + hash tag + tweet...
+ 'minutes' ago.... use JS for that?
+ javascript will auto-insert new images to top

==============

Nav column will have just recent tweets with auto-update

=============

Will also have tabs with most viewed, most commented, most liked, most favorited....


And will also have a per/tag pages...
=========

Settings to not include the user in 'viewed' image
Setting to not auto tweet the "Like" action

========

Keep tab on Next/Prev per image

========

store image paths like 23/54.jpg
then can easily create mini thumbs, thumbs, orig


===========

Sunday, May 30, 2010

Cannot start XAMPP on Windows 7?

If you having problem starting apache server on Windows 7 after installing the XAMPP, the problem is most likely that you already have a web server running.

Windows 7 comes with the IIS server and it's started up by default on many Windows 7 installations.

This is usually a very bad security risk, mainly because you should never have any server running that you don't need. Even more important, you should never have any server running that you are not aware of.

Anyway, on Windows 7 you should check if IIS is running and stop it if it is running.
Do this:
Start -> Control Panel -> System and security -> Internet Information service.

You then look in the right panel to see if Start button is grey and stop button is green. This would indicate that IIS service is running. Just click on Stop button to stop it.

Then you should be able to start the Apache server from the XAMPP control panel