Pathway for a budding programmer

There are so many kids that I know, who want to be a “programmer”. Many of them don’t really understand what programming really means, except they see cool games or apps or programs, and they want to be able to do it. Of course, it is not an easy path to reach to that point, but I am hoping that the advice and links on this page, will help those seeking to go down this path. Click here to continue ….

Posted in Tech | Leave a comment

Dynamic Quote-of-the-day in Outlook signature

Outlook 2016 has the ability to run macros just before an email is sent. Here is a quick macro, that can be added to your Outlook, which will replace a text in your email message with a random quote from a file.

Click here for more …

Posted in Code Snippets, Tech | Leave a comment

Starting with Bootstrap

The first step in starting with bootstrap, is to include the following header/template page. Note that the bootstrap.js entry must be after the jqeury.js entry.

<!DOCTYPE html>
<html>
  <head>
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
  </head>
  <body>
  </body>
</html>

For more details on bootstrap, Click here ….

Posted in Code Snippets, Tech, WebApps | Leave a comment

Web Development Frameworks, tools and more

I have done web development for a long time. My goto tools up to now have been just Notepad++ for the editing, plain HTML and php + sqlite3 on the backend.

Of course, I could stay with this forever. But, I know I am reinventing so many times, that I am finally deciding to make the turn. While this is not a comprehensive list, it is a list that I am starting (similar to my “Freeware apps that I love and use“, also on this blog).

So here goes, Read More…

Posted in Apps | Leave a comment

Netgear Wireless Device Uninstall Suddenly turns internet access off on wired port

So, we had an issue on our desktop where we were using a Netgear wireless device to access the internet, as the onboard network adaptor had failed. Purchased and installed a network card and I was able to restore wired network connectivity.

So, after few months, decided to uninstall the Netgear wireless device driver & application. And after I did that, now suddenly I lost internet access even though I was connected over the wired port. One interesting note was that normally the network adapter settings shows the network connection as some name, but now it just said “Ethernet -> Network”. The adapter was working, because if I unplug the cable – it reflected the same. But I had no internet access.

After trying many things, I finally came upon a posting that caused me to try the thing that worked. Right click on the network adapter and select properties. From the list of entries (like Client for Microsoft Networks, Internet Protocol Version 4, Microsoft LLDP Protocol Driver etc.), if there is an entry that states “JumpStart wireless filter driver”, turn it off. When you click Ok, you may get a message stating something else may be turned off too. That is ok.

Now, your internet should work.

——

So, what is this jumpstart wireless filter?

The posting that gave me a clue what to do, just randomly stated to turn off settings in the Adapter properties screen. I wanted to know which setting caused the problem, and I found it by turning off one at a time. Once I found it was the jumpstart wireless filter, I did some research to find out what I was turning off, so I know what effect it may have on the system. Turns out, JumpStart is a protocol developed by a company – Atheros – and released to the open source community. Additionally, Atheros jumpstart wireless protocol & driver is included in some wireless devices (like the Netgear device above). Reading about it, it seems it allows a more “quick & user friendly way” to establish a wireless WPA2 connection with your router. Although, recent articles show hackers using jumpstart to actually hack into any secure WiFi – scary and topic for another post.

I have uninstalled NetGear before, why did it cause this problem this time?

Another question that was bothering me. While I could not recreate the scenario to prove it – it would need me to reinstall a machine – my speculation is that I tried uninstalling the driver as a non-administrator. While it prompted me for the administrator password – some embedded uninstaller for the jumpstart protocol did not complete. In the past, I have always logged in as administrator to uninstall (or install) any program or driver. Again – this is just an educated theory. If I can prove it, I will update this post.

—————

Hope that this post saves somebody some time.

Posted in Repairs, Tech | Leave a comment

Lauch X11 Application over SSH on MacOS

1. First make sure the X11 app is installed on your Mac. Locate the X11 app using Finder -> Applications -> Utilities -> X11.app , and launch it. If it is the first time, it will install the X11 framework on your MacOS. Once installed, it will simply start the X11 application. If it is started, locate the “X” icon on the taskbar, and quit it.

2. If you need to VPN/FRAC etc. into any remote network, do that first. Any change in IP address later will cause the X11 framework to be confused (without being too technical).

3. ssh into the remote server using the command below. Note, the -C -o CompressionLevel=9 will cause the data to be compressed before shipping it across the network. This will help for slow data connections, but hurt if the remote or local machines are not fast enough.

ssh -Y -C -o CompressionLevel=9 -l <username> <remote_ip_address>

4. Once logged in the remote server, execute the command “xlogo” to launch a light X application that would just display a “Xlogo” on your computer. When you launch this, it should automatically start the X11 (or XQuartz) application on your MacOS, before displaying the window. If you see the window, it means all is working well. If not, then check your DISPLAY variable. It should be set to something like “localhost:nn.0″ – where nn is some number.

Posted in Tech, WebApps | Leave a comment

Use in-built PHP webserver on MacOS instead of a Apache-PHP installation

Simply run php -S localhost:8000 and this will start an inbuilt webserver on port 8000. The ‘webroot’ for the server will be the folder where you started the server from.

Posted in WebApps | Leave a comment

Backup on Linux

For some time, I have been looking for a good backup strategy for a linux system. Currently, my backup strategy was

(server1) –> daily rsync –> (backupsever)
(backupserver) –> daily tar.gz –> (archiveserver — keep multiple copies)

While this worked, my archive server was always overloaded and I really only had a ‘few’ copies of a file. backupserver had yesterday’s copy and archiveserver had copies for few days.

Then I came across this article – http://www.mikerubel.org/computers/rsync_snapshots/ . It uses a combination of rsync + hard links. A variation that may work for me, gleaned from the information on the page, is

(daily on backup server)
# Roll up the backups
mv backups.n backups.tmp
mv backups.n-1 backups.n
mv backups.n-2 backups.n-1
mv backups.n-3 backups.n-2
mv backups.n-4 backups.n-3
….
mv backups.1 backups.2
mv backups.0 backups.1
#Syncing the oldest backup (.n) to the latest
mv backups.tmp backups.0
cp -al backups.1/. backups.0 # This would hardlink files from .1 to .0, which were hard links to begin with
rsync -a –delete user@server1:source_directory/ backup.0/

(archiveserver – only one copy needed)
cd backup.0
tar czf /archive/backup.tgz .
scp ./archive/backup.tgz user@archiveserver:/archive
/bin/rm -f ./archive/backup.tgz

Ok – I found a way to use tar to create ‘incremental’ backups. They key is to use the ‘-g’ option (see http://mikesmithers.wordpress.com/2010/12/11/twiddling-with-tar-%E2%80%93-differential-backups-on-linux/)

cd backup.0
tar -cvzf /archive/backup.0.tgz  -g /archive/backup.0.alist . # Level 0 backup since backup.0.alist file is not present
tar -cvzf /archive/backup.1.tgz  -g /archive/backup.0.alist . # Level 1 backup only, only files NOT in backup.0.alist. Hmm …. does it backup changed files since backup.0 ? Need to read this.

(Update)Tar actually supports incremental and differential. See http://www.gnu.org/software/tar/manual/html_section/Incremental-Dumps.html

(Incremental)
(1st of the month)
tar –create –file=archive.0.tar –level=0 –listed-incremental=/var/tmp/archive.snar .

(other days)
tar –create –file=archive.dd.tar –listed-incremental=/var/tmp/archive.snar .

(Differential)
(1st of the month)
tar –create –file=archive.0.tar –level=0 –listed-incremental=/var/tmp/archive.snar .

(other days)
cp /var/tmp/archive.snar /var/tmp/archive.0.snar
tar –create –file=archive.dd.tar –listed-incremental=/var/tmp/archive.0.snar .
/bin/rm /var/tmp/archive.0.snar

.

Posted in Tech | Tagged | Leave a comment

non-standard cool ios apps

Dragon Dictation

Photoshop Express

WebMD

i-Funbox

Posted in Apps | Leave a comment

Path to Medical School

Becoming a physician is a long road, including, for most people, going to college for 4 years after high school to earn a Bachelor’s Degree, then attending medical school for 4 years and finally completing a residency program for specialized training. Often, residency training is followed with more specialized training called a fellowship program. Residency and fellowship training combined can last about 3 – 7 years, depending on the specialization.

So, the grand total of time spent for most people is about:

4 years undergraduate education
4 years medical school
3-7 years residency (& fellowship)
————————————————
11-15 years of your life
———————————————–

In the United States, medical students pay for tuition (and other expenses) during their undergraduate education (4 years) and medical school (4 years). However, during residency, residents are paid a salary of around $40,000 or so per year, depending on location, years in residency, specialty and other factors.

Most medical students accumulate well over $100,000 in student loans while attending medical school. Some students even accumulate up to $250,000 in debt to go through medical school. A piece of good news is that most physicians have no problems paying back their loans, sometimes in just a few years after completing residency training, if they handle their finances wisely. Nearly all medical students can qualify for loans easily to cover school related expenses.

Medical school

Medical school is intense. Much more intense than undergrad. Each semester is packed with roughly 24 credits of upper-division science courses including labs (no more generals or intro type of courses as in undergrad). But it is do-able – just requires lots of hard work. Many people say it’s like “taking a drink from a fire hydrant” since the volume of information covered is overwhelming. The first 2 years of medical school are classroom based to study the “Basic Sciences” (“basic” may be misleading – does not mean “easy”) and the last 2 years are typically hospital, clinical, and office based rotations devoted to Clinical Medicine. Combined, this results in a total of 4 years of medical school.

Residency

Residency is usually the final step in the training process of becoming a physician, unless you decide to pursue Fellowship training (see below), which follows Residency training. Residency training is specialty specific, whereas medical school provides the basis in science knowledge as well as a foundation in clinical medicine in a more general sense. Rotations in medical school cover all major specialty areas for a short period of time. On the other hand, residency is spent on getting specific training in one particular specialty over a period of 3 to 7 years, depending on the specialty – to become an expert in the area of training.

Residency is paid, so it is more like a job, but it is still considered training (post-graduate training) and done under varying degrees of supervision. In fact, it is THE training that turns out capable physicians with experience, who have “seen it all” in their respective fields – before beginning to practice medicine on their own, unsupervised.

Note that this is usually a very intense experience, with residents routinely working up to 80 hours a week. Recent regulations, adapted just a few years ago, have imposed an 80-hour work week limit for residents, although, historically, residents have worked up to 120 hours a week. Not all residency programs have fully committed to the 80-hour week so far. Residents usually take call every fourth night, or so, and can be in the hospital for up to 36 hours at a time, as part of their 80-hour week.

Fellowships

Fellowship training is like another small residency after residency. You may complete an Internal Medicine residency (3 years), followed by a Cardiology or Gastroenterology fellowship, for example.
Some specialties require completion of a residency before “subspecializing” with a fellowship. The specialties just mentioned fall in this category because they require completion of an internal medicine residency first.

Fellowships are very common and available for almost all specialties. Orthopedic surgeons may elect to do a fellowship in hand surgery, for example. This is “extra” specialized training that sort of makes them “hand experts” within orthopedic surgery, but they are still orthopedic surgeons, just with some additional specialized training. They usually maintain a normal orthopedic practice, not just focused on hand surgery, but they can limit their practice if they wish to.

Posted in Personal | Leave a comment