Tuesday, December 10, 2013

Source- http://groups.yahoo.com/neo/groups/linux_ipsr/conversations/topics/5818
http://192.168.1.125/~web/cgi- bin/webmo/login.cgi
WEBMO configuration for Ubuntu 10.04 [  Apache/2.2.14 (Ubuntu)  Server at  192.168.1.125 Port 80  ]
1) sudo apt-get install Perl 
2) sudo apt-get install libapache2-mod-perl2
3) sudo apt-get install VIM
4) $ sudo a2enmod module_name        
 (i) cgi,
(ii) cgid and
(iii) userdir 
         

 5) $ sudo /etc/init.d/apache2  restart
6) $ cd  ~
7) $ mkdir /home/web/public_html/webmo
8) 
$ mkdir /home/web/public_html/cgi-bin/ webmo


  • htmlBase: /home/web/public_html/webmo
  • cgiBase: /home/web/public_html/cgi-bin/ webmo
  • userBase: /home/web/webmo

9) $ cd /etc/apache2
10) $ sudo gedit  sites-available/default
11) ScriptAlias /cgi-bin/ /home/web/public_html/cgi-bin/
                     ScriptAlias /cgi-bin/  /home/web/public_html/cgi-bin/ webmo                    

 12) $ sudo /etc/init.d/apache2  restart

13) $ web@ubuntu:/etc/apache2$ sudo cp default defaultxyz

14) /etc/apache2/sites-enabled/

15) ln -s ../sites-available/default

13) $ web@ubuntu:/etc/apache2$ sudo cp default defaultxyz
14) /etc/apache2/sites-enabled/
15) ln -s ../sites-available/default
13) $ web@ubuntu:/etc/apache2$ sudo cp default defaultxyz
14) /etc/apache2/sites-enabled/
15) ln -s ../sites-available/default
13) $ web@ubuntu:/etc/apache2
$ sudo cp default defaultxyz
14) /etc/apache2/sites-enabled/
15) ln -s ../sites-available/default13) $ web@ubuntu:/etc/apache2$ sudo cp default defaultxyz
14) /etc/apache2/sites-enabled/
15) ln -s ../sites-available/default13) $ web@ubuntu:/etc/apache2$ sudo cp default defaultxyz
14) /etc/apache2/sites-enabled/15) ln -s ../sites-available/default

web@ubuntu:/etc/apache2$ sudo vim sites-available/default

    ServerAdmin webmaster@localhost

    DocumentRoot 
   
        Options FollowSymLinks
        AllowOverride None
   

   
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
   


    ScriptAlias /cgi-bin/ /home/web/public_html/cgi-bin/ webmo
   
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                SetHandler cgi-script
        Order allow,deny
        Allow from all
   


    ErrorLog /var/log/apache2/error.log


Wednesday, April 06, 2011

Six C of Career control

The Six C’s of Career Control

 
6 Votes

There are six methods that you can use on a day-to-day basis to help manage your chemistry career. These are applicable whether you work in a laboratory, management, sales, a non-traditional chemistry career or are self-employed. Practicing the “6 C’s” of career control will enable you to meet deadlines while providing high-quality work that meets your manager’s requirements. By practicing the 6 C’s, you’ll also reduce the stress associated with deadline pressures and increase your productivity. So what are the 6 C’s of control?
Control the clock
Some of us spend our entire careers struggling with time management. Time management is a skill that we are always developing. Even the best of us probably can improve. Some people manage their time well getting through an impressive amount of work in an 8-hour day. My manager in my first industrial research job used to advise me, “Work smarter, not harder.” I was doing the second but it took a while to learn how to do the first. Others work longer hours than necessary to complete an adequate amount of work. If you are a chemical consultant paid by the project, not by the hour, this means earning less than you otherwise would.
Effective time management requires productive work habits. Learn the length of time you can work productively without a break. Then schedule your time to provide for daily blocks of this length during which you work without interruptions. Use other, perhaps shorter time blocks, for checking e-mail, telephoning, reading, and other workplace chores. Also understand what times of day you are most productive. Then schedule your most demanding tasks for this time.
Tracking and scheduling your time helps you manage it more efficiently. I find the simplest methods are the most useful. I record deadlines and times of meetings on a large month-at-a-glance calendar hanging on the wall above my desk. I put my to-do list and appointments on a daily calendar. I’m old fashioned and list my daily tasks and note their completion on a paper planner with a separate page for each day.
Control your interruptions. Interruptions can kill productivity – primarily by disrupting your train of thought. The main culprit is the telephone. So use caller ID to screen phone calls and answer only the truly important ones immediately. Otherwise, schedule time blocks to answer telephone messages and to make calls of your own.
Control your concepts
Make good use of your creative imagination. When I’m exercising or engaged in intellectually undemanding tasks, I think about work projects. This strategy seems particularly useful for short tasks. As a result of my preliminary thinking, I often can write short memos, e-mails and other documents manuscripts quite quickly using short time blocks or unexpected openings in my schedule.
Control your contacts.
Who you know is how you grow. So focus your attention on productive colleagues both within and outside your employer. While you should strive to be helpful to others, your time is too valuable to spend it on people who are overly demanding or ungrateful for your assistance.
By the same token, make your networking contacts value you by providing value to them. This can be by providing advice, helping on projects or just being a sounding board when they want to talk about their problems or frustrations.
Control your communications
Periodically keep your manager, team leader and coworkers apprised of your progress on work projects. If there is a miscommunication regarding one of your assignments, this strategy can help resolve it before you spend too much time working on the wrong things.
Control your commitments
It’s hard to say no to managers and colleagues when they ask you to take on extra work. However, over-commitment can lead to slapdash work and missed deadlines. There is nothing that will destroy a relationship with a manager or team leader faster and more completely than not meeting a deadline or turning in substandard work.
I use a four-step process to meet deadlines:
• Use a month-at-a-glance calendar to track deadlines and your progress in meeting them.
• Set your own deadlines for all your projects. Make these at least a week before your manager’s deadlines. That way, if you fall behind schedule, you can still meet your deadlines.
• Develop intermediate goals (milestones) and deadlines for large projects. Achieving your milestones on schedule helps the entire large project on schedule.
• Negotiate a revised deadline as soon as you can see there will be a problem meeting your manager’s assigned deadline.
Meeting commitments is more than just meeting deadlines. It is also submitting high quality work that needs minimal changes to be acceptable. Doing this helps you win rewarding assignments later. During the course of my own career, I have found that what managers value most in their staff members is completing high-quality work on time.
Control your concerns
Much of our workplace is beyond our control. Frustrating situations are commonplace. One has to focus on productive projects and not dwell on these frustrations – easier said than done.
Controlling your emotions means not venting to a manager or a coworker who might not respect the privacy of your communication. Having trusted colleagues can enable you to vent your frustrations and discuss ways to bounce back from disappointments. This can be very valuable to both your emotional health and your career. You can develop these trusted relationships with a mentor, an occasional coworkers and friends from your academic days. Confiding in family members can also be helpful although if they aren’t chemists they may not understand the nuances of your workplace problems. Getting over these frustrations and moving on will enable you to better direct your energy towards future success.

Wednesday, March 16, 2011

Samsung Spinpoint F3 and SHA-1205SA

I have a Dell 667R desktop running as my NAS/web/ssh server and I always wanted to add some SATA drives to increase the storage and retire age old PATA drives. So, I got a Adaptec SHA-1205SA PCI Sata controller. Why Adaptec- I thought it should work since Adaptec is in the business for so long. I also got a Samsung Spinpoint F3 1Tb drive from Newegg in the mean time. I fired up my system with the new drive connected via Adaptec and bahm! it does not beyond Adaptec's BIOS post screen.
Aparantly, there can be problem with my SATA1 adaptec card and newer Sata2 drive. So, I downloaded estool from Samsung's website, remove the Samsung drive's SATA connector and fire up my linux server from a WinME floppy drive (really? I still have some around) and power on ESTOOL. I reconnected sata connector to the 1Tb drive and started estool. Estool recognize the drive with no problem and I assigned its speed to sata150 aka sata1 and rebooted the system.
All I get at the end- same old result. System hangs at Adaptec card's BIOS post page that identifies the drive and stays there infinitely. Bottom line, do not buy Adaptec SHA-1205SA card if you want to add SATA ports to your old machine.

Friday, February 18, 2011

STAB reaction

US2008261972Al, page 24

Sodium triacetoxyborohydride (14.5 g, 68.7 mmol)
was added to a solution of2,3-diaminopyridine (5.00 g, 45.8
mmol) and N-(tert-butoxycarbonyl)-4-piperidone (9.58 g,
48.1 mmol) in dichloroethane (75 mL) at room temperature.
After 5 h, additional sodium triacetoxyborohydride was
added (1.8 g) and again after another 2.5 h. The reaction was
stirred overnight, and quenched with 5% aqueous sodium
hydroxide. This was extracted with methylene chloride, and
washed with 5% aqueous sodium hydroxide, water and saturated
sodium chloride solution. After drying over sodium
sulfate, the solution was filtered and evaporated to give the
crude product. This was purified by chromatography (silica
gel, 3 to 5% methanol in methylene chloride gradient elution),
which gave the title compound (4.44 g). MS 293 (M+ I)
IHNMR(500MHz, CD30D) 67.32 (dd, J=5, I Hz, lH), 6.85
(dd, J=8, I Hz, lH), 6.59 (dd, 5 Hz, lH), 4.04 (d, J=13
Hz, 2H), 3.46 (m, lH), 2.98 (br s, 2H), 2.01 (dd, J=12, 2 Hz,
2H), 1.46 (s. 9H), 1.37 (qd. J=12. 4 Hz, 2H).
Step B. 2-0xo-l-(l-tert-butoxycarbonylpiperidin-4-

Saturday, November 20, 2010

Groupon- a "no deal" deal

I hate Groupon! I was burned twice for the incompetent groupon so far. I purchased a $25 Gap coupon for $25 from Groupon so I can buy a gift for my dad. I got the gift and needed to exchange the sweater. Now Gap says we can not get the refund applied to a new sweater and that's how groupon works! So, no replacement/exchanage of your item if you use a groupon coupon.
Next time, I got a weekly cinema coupon- now weekly cinema went under. I lost my 4 tickets; only plus sign, Groupon did refunded the purchase price.

Wednesday, October 20, 2010

Low transfer speeds on Dockstar, but why?

Low transfer speeds on Dockstar, but why?
Format your Data Partition with XFS

mkfs.xfs /dev/sdX
Add it to /etc/fstab

/dev/sdX /mnt xfs noatime,logbufs=8,allocsize=128m 0 2
Create file /etc/rc.local.durchsatz with this content

blockdev --setra 16384 /dev/sdX
ifconfig eth0 txqueuelen 5000
echo deadline > /sys/block/sdX/queue/scheduler
then do

chmod 700 /etc/rc.local.durchsatz
Edit /etc/sysctl.conf and add the following line to the end of the file

vm.dirty_ratio=8
vm.dirty_background_ratio=5
vm.vfs_cache_pressure=50
vm.swappiness=100
net.core.netdev_max_backlog=5000
net.ipv4.tcp_sack=0
net.ipv4.tcp_timestamps=0
net.ipv4.tcp_fin_timeout=10
net.ipv4.tcp_tw_recycle=1
Reboot your device

Monday, August 09, 2010

Py-N-Oxide

1. Procedure

In a 1-l. three-necked flask equipped with a stirrer (Note 1), a thermometer, and a dropping funnel is placed 110 g. (1.39 moles) of pyridine. The pyridine is stirred, and 250 ml. (285 g., 1.50 moles) of 40% peracetic acid (Note 2) is added at such a rate that the temperature reaches 85° and is maintained there. After the addition, which requires 50–60 minutes, the mixture is stirred until the temperature drops to 40°.

A. Pyridine-N-oxide hydrochloride. The acetate is converted to the hydrochloride by bubbling a slight excess over the theoretical amount (51 g.) of gaseous hydrogen chloride into the reaction mixture by way of a 7-mm. gas inlet tube which replaces the dropping funnel in the reaction flask. The acetic acid and excess peracetic acid are removed by warming on the steam bath under vacuum (Note 3). The residual pyridine-N-oxide hydrochloride is purified by heating under reflux for 30 minutes with 300 ml. of isopropyl alcohol, cooling to room temperature, and filtering. The colorless crystals are washed with 50 ml. of isopropyl alcohol followed by 50 ml. of ether. The yield is 139–152 g. (76–83%) (Note 4), m.p. 179.5–181°.

B. Pyridine-N-oxide. The acetic acid solution is evaporated on the steam bath under the pressure of a water aspirator, and the residue (180–190 g.) is distilled at a pressure of 1 mm. or less in an apparatus suitable for collecting a solid distillate (Note 5). The vacuum pump must be protected with a Dry Ice trap capable of holding about 60 ml. of acetic acid, which distils as the pyridine-N-oxide acetate dissociates at low pressure. Heat is provided by an oil bath, the temperature of which is not allowed to rise above 130° (Note 6). The product is collected at 100–105°/1mm. (95–98°/0.5 mm.). The yield is 103–110 g. (78–83%) of colorless solid, m.p. 65–66° (sealed capillary). The base is deliquescent and must be stoppered immediately.

2. Notes
1. A convenient seal for stirring under vacuum (see (Note 3)) is made by running an 8-mm. glass rod, with propeller or paddle stirrer at the end, through the outside member of an 18/9 spherical joint which is inserted into a suitable rubber stopper. The inner member of the 18/9 spherical joint is then slipped over the stirrer and held in place with a piece of rubber tubing. This rotating seal may then be lubricated with a drop of oil. Alternatively, one may use a Trubore stirring system.

2. Becco peracetic acid (40%) was used. The composition and properties of this commercial preparation are described fully in Bulletin 4 of the Buffalo Electro-Chemical Company, Buffalo, New York. The manufacturer's recommendations for storing and handling should be followed. Experiments using proportionate amounts of 10% or 20% peracetic acid in acetic acid were equally successful. The strength of the peracetic acid, as well as the progress of the reaction, can be determined iodimetrically.

3. The vacuum evaporation proceeds much more smoothly and rapidly if the mixture is stirred mechanically during the process.

4. The submitters report that the same procedure is successful with four times the amounts given here. With the increased amounts, a water bath is used for cooling during the initial addition, which then requires about 45 minutes.

5. Caution! Before distillation, absence of peroxide should be established by test with potassium iodide.
The apparatus for distillation of solids in vacuum described in Organic Syntheses3 is satisfactory, as is a combination of standard taper flasks, short column, and adaptors.

6. It is imperative that the pressure be maintained at 1 mm. or lower. Decomposition is usually extensive at higher pressures; however, the removal of the acetic acid may be initiated at 5–10 mm. pressure. The oil-bath temperature must not exceed 130° if decomposition is to be avoided. A fore-run of 15–20 g., b.p. 90–98°/0.5 mm., can be saved and redistilled in combination with similar cuts from successive runs. About 9–10 g. (7%) of additional crystalline pyridine-N-oxide is obtained per run in this manner.

Trisyl azide; why this stuff is so expensive?

From US2006/0069286Al, 2,4,6-Triisoprorylbenzenesulfonyl azide synthesis:-

To a solution of triisopropylbenzenesulfonyl chloride (6.94 g, 22.9 mmol) in acetone (115 mL) at 0° C. was added a solution of NaN3 (1.64 g, 25.2 nnnol) in water (10 mL). The mixture was stirred for 30 min at 0° C. and then was warmed to rt and stirred for 1 h. The mixture was concentrated, diluted with water, and extracted with DCM(3x). The combined organic extracts were dried (Na2S04) and concentrated. The residue was purified by flash chromatography (EtOAclhexanes) to provide 6.71 g (95%) of the desired sulfonyl azide as a white solid. 1 H NMR (400 MHz, CDCI3): 7.22 (s, 2H), 4.05 (sept, 1=6.7, 2H), 2.93 (sept, 1=6.9, lH), 1.29 (d, 1=6.8, 12H), 1.27 (d, 1=6.9, 6H).

As you see, synmthesis is dead easy and starting materials are pretty cheap. So why the final product is commerically so expensive? Is it because of the patent or is it because safty hazard of the azide?

Monday, August 02, 2010

JP 32009872

2,6-Dimethyl-4-pyridone (2.1 g.) in 15 ml. HCl, 6.5 g. ICl in 5 mi., and 100 ml. H2O heated 3 hrs. at 90° and the product dild. with 300 ml. H2O and cooled gave 6.4 g. 2,6-dimethyl-3,5-diiodo-4-pyridone (I), m. 259-61°.  Similarly, 1 g. 2,6,4-Me2(H2N)C5H2N yielded 79% 4-NH2 analog of I,m. 155°; HCl salt, m. 258° (decompn.); 0.2 g. 4,2,6-Me2(HS)C5H2N yielded 0.55 g. 4-SH analog of I, m. 247° (decompn.).

Thursday, April 22, 2010

Sane way of setting up SBG901 with your own router










Recently I faced a complicated issue of interfacing Motorola SBG901 wireless cable modem which comes with all sort of bells and whistles but with the limitation of a single ethernet port. Having VOIP and linux server makes it imperative for me to connect the cable modem to a router (DIR-655 in this case).

SBG901 has an inbuilt DHCP server that needs to be disabled to have all my port forwardings to work properly from the router, however the modem manual does not indicate what to do to disable the inbuilt DHCP server.

After spending hours, I find out that you have to disable NATP mode. See the screenshots.