Wednesday, January 26, 2011

How to make Redmine boot with Windows..

There are three ways we can configure a Rails application (redmine) to rub as a service on windows..


1. using webrick:

ref: http://www.redmine.org/boards/1/topics/4123

  • Download and install the Windows NT Resource Kit fromhttp://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

  • Create the service running:

    path\INSTSRV.EXE your_service_name path\SRVANY.EXE

    in my case path is:

    "C:\Program Files\Windows NT Resource Kit\INSTSRV.EXE" redmine_webrick "C:\Program Files\Windows NT Resource Kit\SRVANY.EXE"

    could be also C:\Program Files\Windows Resource Kits\Tools\.

  • Run regedit (Start -> Run -> regedit)

    • Add the following registry key if it's not already there:

      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\your_service_name

    • Right click on this registry key and select New -> Key. Name it Parameters.

    • Add two values to the Parameters key. Right click on the parameters key, New -> String Value. Name it Application. Now create another one named AppParameters. Give them the following values:

      • Application: PathToRuby.exe, eg. C:\ruby\bin\Ruby.exe
      • AppParameters: C:\RUBYAPP\script\server -e production, where RUBYAPP is the directory that contains the redmine website.

      Example: C:\redmine\script\server -p 2000 -e production (-p indicates the port webrick will be listening to, and -e the environment used)

Now you can go to Administrative Tools -> Services. There you can start your service (the one with nameyour_service_name) and test whether or not it is working properly. It should be noted that the service will be marked as started prior to WEBrick finishing its boot procedure. You should give it 1min or so before trying to hit the service to verify that it is working correctly.

2. using mongrel:

ref: http://mongrel.rubyforge.org/wiki ref: http://mongrel.rubyforge.org/wiki/Win32

first install mongrel and mongrel_service gem

gem install mongrel

gem install mongrel_service

then create the service

mongrel_rails service::install -N redmine_mongrel -c c:\redmine -p 3000 -e production


Then goto RUN=>services.msc scroll down to the service redmine_mogrel and make the startup type automatic from manual.. do the same for all depend services needed by the application like Wampapache wampmysql and such..


3. using thin:

ref: http://code.macournoyer.com/thin/http://www.astarbe.com/es/trucos/windows/srvany_convierte_una_aplicacion_en_servicio

first install thin

(you'll need to install rack gem, if not already installed)

gem install rack

gem install thin

follow the same steps indicated for webrick, but add another value named "AppDirectory"

(this is needed in order to avoid using c:\ruby\bin\thin.bat If I just pointed to the bat file, I couldn't stop the service)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\redmine_thin\Parameters

Application: c:\ruby\bin\ruby.exe AppDirectory: c:\redmine AppParameters: c:\ruby\bin\thin start -p 4000 -e production

--

you can control your service with the following commands

net start redmine_xxx

net stop redmine_xxx

sc config redmine_xxx start= auto

sc config redmine_xxx start= auto dependency= MySql

sc delete redmine_xxx


I completely recommend the 2nd method which is simple and safe..


Thanks stackoverflow

Saturday, February 7, 2009

40 most usefull websites

1. beFunky - Awesome web app that turns images to cartoonized paintings and videos to cartoons.
2. DisplayWars - Incredibly simple tool that helps lots of people. Want to buy a new screen? DisaplyWars lets you compare screen sizes by mapping one display size on top of the other.
3. DocSyncer - Synchronize office documents in your ‘My Documents’ folder with Google Docs account.
4. JotYou - By using this service you can send messages to others so they get them only when they are in the area you specify.
5. Keybr - Online keyboard to practice your touch typing skills.See also Typing Master
6. Mint - The simplest way to manage your finances.
7. Numbr - Free disposable phone numbers.
8. PDFHammer - Merge, edit and rearrange PDF documents online. Solid PDF Tools
9. PhoneSpell - Ever wondered if you phone number spells something memorable ? PhoneSpell will find it out.
10. SecondRotation / BuyMyTronics - Want to cash in on your old iPod ? Or mobile phone ? Both of these services will buy your old (broken) gadget, regardless of its condition.
11. BeamIt - Send pictures, music, videos, docs or any other file to your cellphone.
12. BooksInMyPhone - Download and read copyright-free books on a mobile phone. Comes with its own book reader.
13. CallTheFuture - Schedule text messages and get them delivered (as a voicemail) on any desired date in the future.
14. CameraSummary - Extracts so called EXIF data from the images. Shows what model of digicam was used, image creation date and time, resolution settings, location and so on.
15. CanYouRunIt - One-click web app that inspects your PC’s hardware and software settings to determine whether or not it meets gaming requirements for a game of your choice.
16. CellSwapper - Transfer your current mobile contract to someone else. Or get a free plan with only a short term contract.
17. CivilAnswers - Free legal assistance.
18. ControlC - This small cross-platform (Win, Mac, Linux) monitors your clipboard and saves everything online.
19. Definr - Incredibly fast online dictionary. It takes abt 14 ms to lookup a word.
20. Drop.io - By far the coolest service for private file collaboration and transfers. Add files by email, send voice messages from phone, etc.
21. File-Destructor 2 - Generates files (Doc, PDF, … ) that look genuine but won’t launch properly. Basically, it’s a tool that helps you put all the blame on your “faulty computer”.
22. File-encryptor - Secure encryption tool to freely encrypt/decrypt sensitive files online. Quite handy for sending over sensitive files.
23. FlashPhone - Free flash-based SIP-softphone. Simply add your SIP account and you’re good to go. No need to install anything.
24. Google Mobilizer - Makes your fav. websites mobile friendly. Must-have for your mobile bookmarks.
25. GetMyFBIfile - Here you can generate letter templates that you can use to request for a free copy of your FBI file.
26. LetterMeLater - Offers one feature that your email doesn’t have, ‘the ability to schedule when an email should be sent’. Coolest part about, you can use it directly from your email program (GMail, Outlook, etc.).
27. Mailbucket - Finally, a tool to help you forward emails to your feedreader.
28. Mobical - Over-the-air mobilebackup and restore service. Backup phone contacts, calendar, bookmarks and settings.
29. MoDazzle - Access Facebook, LinkedIn and dozens of other web services (weather, stock quotes, etc.) via email or mobile text messaging. Update Facebook ’status’, get un-read messages from Facebook inbox, get someone’s profile info from LinkedIn, and lots more.
30. Nanoscan - Super fast yet compehensive online virus scanner.
31. OhDon’tForget - It does only one thing, but does it really well: Schedule text message reminders to any phone.
32. ProQuo - Reduce junk mail by removing your personal data from telemarketing lists.
33. PPCalc - Comprehensive Paypal fees calculator.
34. Rondee - Fast, easy and free way to arrange phone conference calls with as many people as you want.
35. SpokenText - Convert PDF, Word, plain text, PowerPoint files, ,RSS news feeds, emails and web pages to speech.
36. Sullr - Obtain information about telephone lines in reverse mode. Get address, location, owner’s name etc.
37. WakerUpper - Schedule wake-up phone calls. Lots of useful features.
38. WebMarkers - Adds additional option to your ‘Print’ menu that lets you print documents (or webpages) directly to the web.
39. WhatShouldIReadNext - Book recommendation service. Simply enter the author and title of your latest book and it will give you a list of recommended readings.
40. WorldTaxiMeter - Calculate the cost of a taxi ride in a number of top cities worldwide (London, New York, Rome …). Accessible both from the web and mobile phone.

Wednesday, June 25, 2008

Time Fix Frm Windows..

Start=>run=>at hh:mm shutdown -s

If u want 2 ShutDown The Computer at 10PM then Type "at 22:00 shutdown -s" @ Run Box!!

Commands to run From RUN!!

SQL Client Configuration - cliconfg
System Configuration Editor - sysedit
System Configuration Utility - msconfig
System File Checker Utility (Scan Immediately)- sfc /scannow
System File Checker Utility (Scan Once At Next Boot)- sfc /scanonce
System File Checker Utility (Scan On Every Boot) - sfc /scanboot
System File Checker Utility (Return to Default Setting)- sfc /revert
System File Checker Utility (Purge File Cache)- sfc /purgecache
System File Checker Utility (Set Cache Size to size x)-sfc/cachesize=x
System Information - msinfo32.
Task Manager – taskmgr
System Properties - sysdm.cpl
Task Manager – taskmgr
TCP Tester - tcptest
Telnet Client - telnet
Tweak UI (if installed) - tweakui
User Account Management- nusrmgr.cpl
Utility Manager - utilman
Windows Address Book - wab
Windows Address Book Import Utility - wabmig
Windows Backup Utility (if installed)- ntbackup
Windows Explorer - explorer
Windows Firewall- firewall.cpl
Windows Magnifier- magnify
Windows Management Infrastructure - wmimgmt.msc
Windows Media Player - wmplayer
Windows Messenger - msmsgs
Windows Picture Import Wizard (need camera connected)- wiaacmgr
Windows System Security Tool – syskey
Windows Update Launches - wupdmgr
Windows Version (to show which version of windows)- winver
Windows XP Tour Wizard - tourstart
Wordpad - write
Password Properties - password.cpl
Performance Monitor - perfmon.msc
Phone and Modem Options - telephon.cpl
Phone Dialer - dialer
Pinball Game - pinball
Power Configuration - powercfg.cpl
Printers and Faxes - control printers
Printers Folder – printers
Private Character Editor - eudcedit
Quicktime (If Installed)- QuickTime.cpl
Real Player (if installed)- realplay
Regional Settings - intl.cpl
Registry Editor - regedit
Registry Editor - regedit32
Remote Access Phonebook - rasphone
Remote Desktop - mstsc
Removable Storage - ntmsmgr.msc
Removable Storage Operator Requests - ntmsoprq.msc
Resultant Set of Policy (XP Prof) - rsop.msc
Scanners and Cameras - sticpl.cpl
Scheduled Tasks - control schedtasks
Security Center - wscui.cpl
Services - services.msc
Shared Folders - fsmgmt.msc
Shuts Down Windows - shutdown
Sounds and Audio - mmsys.cpl
Spider Solitare Card Game - spider
Malicious Software Removal Tool - mrt
Microsoft Access (if installed) - access.cpl
Microsoft Chat - winchat
Microsoft Excel (if installed) - excel
Microsoft Frontpage (if installed)- frontpg
Microsoft Movie Maker - moviemk
Microsoft Paint - mspaint
Microsoft Powerpoint (if installed)- powerpnt
Microsoft Word (if installed)- winword
Microsoft Syncronization Tool - mobsync
Minesweeper Game - winmine
Mouse Properties - control mouse
Mouse Properties - main.cpl
Nero (if installed)- nero
Netmeeting - conf
Network Connections - control netconnections
Network Connections - ncpa.cpl
Network Setup Wizard - netsetup.cpl
Notepad - notepad
Nview Desktop Manager (If Installed)- nvtuicpl.cpl
Object Packager - packager
ODBC Data Source Administrator- odbccp32.cpl
On Screen Keyboard - osk
Opens AC3 Filter (If Installed) - ac3filter.cpl
Outlook Express - msimn
Paint – pbrush
Keyboard Properties - control keyboard
IP Configuration (Display Connection Configuration) - ipconfi/all
IP Configuration (Display DNS Cache Contents)- ipconfig /displaydns
IP Configuration (Delete DNS Cache Contents)- ipconfig /flushdns
IP Configuration (Release All Connections)- ipconfig /release
IP Configuration (Renew All Connections)- ipconfig /renew
IP Configuration(RefreshesDHCP&Re-RegistersDNS)-ipconfig/registerdns
IP Configuration (Display DHCP Class ID)- ipconfig/showclassid
IP Configuration (Modifies DHCP Class ID)- ipconfig /setclassid
Java Control Panel (If Installed)- jpicpl32.cpl
Java Control Panel (If Installed)- javaws
Local Security Settings - secpol.msc
Local Users and Groups - lusrmgr.msc
Logs You Out Of Windows - logoff.....
Accessibility Controls - access.cpl
Accessibility Wizard - accwiz
Add Hardware - Wizardhdwwiz.cpl
Add/Remove Programs - appwiz.cpl
Administrative Tools control - admintools
Adobe Acrobat (if installed) - acrobat
Adobe Designer (if installed)- acrodist
Adobe Distiller (if installed)- acrodist
Adobe ImageReady (if installed)- imageready
Adobe Photoshop (if installed)- photoshop
Automatic Updates - wuaucpl.cpl
Bluetooth Transfer Wizard – fsquirt
Calculator - calc
Certificate Manager - certmgr.msc
Character Map - charmap
Check Disk Utility - chkdsk
Clipboard Viewer - clipbrd
Command Prompt - cmd
Component Services - dcomcnfg
Computer Management - compmgmt.msc
Control Panel - control
Date and Time Properties - timedate.cpl
DDE Shares - ddeshare
Device Manager - devmgmt.msc
Direct X Control Panel (If Installed)- directx.cpl
Direct X Troubleshooter- dxdiag
Disk Cleanup Utility- cleanmgr
Disk Defragment- dfrg.msc
Disk Management- diskmgmt.msc
Disk Partition Manager- diskpart
Display Properties- control desktop
Display Properties- desk.cpl
Display Properties (w/Appearance Tab Preselected)- control color
Dr. Watson System Troubleshooting Utility- drwtsn32
Driver Verifier Utility- verifier
Event Viewer- eventvwr.msc
Files and Settings Transfer Tool- migwiz
File Signature Verification Tool- sigverif
Findfast- findfast.cpl
Firefox (if installed)- firefox
Folders Properties- control folders
Fonts- control fonts
Fonts Folder- fonts
Free Cell Card Game- freecell
Game Controllers- joy.cpl
Group Policy Editor (XP Prof)- gpedit.msc
Hearts Card Game- mshearts
Help and Support- helpctr
HyperTerminal- hypertrm
Iexpress Wizard- iexpress
Indexing Service- ciadv.msc
Internet Connection Wizard- icwconn1
Internet Explorer- iexplore
Internet Setup Wizard- inetwiz
Internet Properties- inetcpl.cpl

Saturday, November 24, 2007

Clean Ur RAM and make ur computer Faster then ever!

U may recognize that ur system gets slower and slower when playing and working a lot with ur pc. That's cause ur RAM is full of remaining progress pieces u do not need any more.

So create a new text file on ur desktop and call it .. uhm.. "RAMcleaner" or something...

Type

FreeMem=Space(64000000)
in this file and save it as RAMcleaner.vbs
[ You may choose the "All Files" option when u save it ]

Run the file and ur RAM may be cleaned :>
Of course u can edit the code in the file for a greater "cleaning-progress".


FreeMem=Space(1280000000)

just try it out.. it worked for me

Orkut banned u fool!!

Orkut banned And cannot use Firefox


Due to the attack of w32.USBWorm , the users may not be able to use Mozilla Firefox. When Mozilla Firefox is opened, a message like below is shown:



And, when you use Internet explorer to open Orkut,
you see a message like below
:



Also, the hidden files are not shown, even if we have selected Show hidden files in Folder Options.To resolve this problem, click here after you complete the below given steps.

Warning: Turn off System Restore before following these steps.
Tip: Its better to do the work in Safe mode.


You can try the following steps to resolve the problem:

Steps:

1. Press Ctrl+Alt+Del to open Task Manager. (Task Manager Disabled?)
2. Go to the Processes tab.
3. Click on Image Name tab to sort in accordance to name.
4. look for Image Name svchost.exe . There will be many, but click on which has User Name as your user name .





5. After clicking on it, press Delete button (or click on End Process button). Click on Yes for confirmation.

6. Soon after the above step is done, select Run (?) from Start menu.
Type as follows:

C:\heap41a and press Enter. (Where C: is the Windows drive)

That takes you to a hidden folder heap41a in Windows drive.

7. Delete all files in that folder.

8. Now, start Registry Editor. (Start > Run > regedit) [(No Run?)(Regedit disabled?)]

9. Press Ctrl+F . Type heap41a and press Enter.

You can find two entries while you are finding, such as..

C:\heap41a\svchost.exe
C:\heap(some number)\std.txt

Delete both the entries.

10. Close the Registry Editor.

Read this Carefully:

This virus is activated when we double click open the Pen Drive.
The autorun file in that drive runs a .exe file to activate the virus.
So, you must remove these two files (autorun.inf and a .exe file) from the pen drive.
Otherwise, the virus will roll back whole things what we have done to remove them.
These files may be hidden system files, to show the files, follow these steps:

1. Select Run from Start menu.
2. Type cmd and hit Enter.
3. Type the pen drive letter with a colon (for eg: J: ) and hit Enter.
4. Now type as following:
attrib -h -a -r -s and hit Enter.
5. Now, from My Computer, right click (do not double click) on the pen drive and select Open.
6. Delete the files autorun.inf and a .exe file from there.
Restart the system.