Tuesday, June 20, 2017

windows 7 - How to mount a USB thumb drive as "Fixed" instead of "Removable"

I have over 8 GB in my "Code Library" that I maintain on a 64 GB ScanDisk Ultra Backup USB Device.


Windows Search 4.0 (installed on Windows XP) can index removable drives, but Windows 7 (which uses Windows Search 4.0) cannot, because the USB device identifies itself as a Removable drive and Windows 7 refuses to index removable drives.


How can I mount the USB Thumb Drive as Fixed instead of Removable?

Linux $PATH variables, soft links, and Command Not Found

I am having problems with symbolic links and the $PATH variable.


I have a directory:


# /usr/rulerX/square

where /usr/rulerX/square is a symbolic link such that:


# ls -la
square --> square.hg.current

My path variable is set as:


# echo $PATH
/usr/rulerX/square/bin:/usr/local/bin:/usr/bin

I have a file, runSquare, under /usr/rulerX/square.hg.current/bin/


Here's the problem:


# runSquare
runSquare: Command Not Found

What gives? If I set /usr/rulerX/square.hg.current/bin to the PATH; everything works fine. However, if I have the symbolic link (just 'square'), it can't find the file.



  • I am using CentOS with csh

windows 7 - Proper way to print a shipping label - half letter sheet

I have a shipping label (half letter size) + payment slip / tracking confirmation (another half), printed from PayPal. There is no way to avoid printing of payment slip, using CanadaPost, as far as I know, so it will print the full letter page filled with text.



I thought maybe I can cut the other half with scissors, and just make sure I feed half letter sized paper, but not sure how it will impact printer and toner yield. Will it start printing where there is no paper (expecting full letter sheet) and then I end up having toner all over printer interior?



Question: Is there any way I can print only the first half of the page, i.e. actual shipping label and don't print the other half? I would prefer a clean / software solution, if such exists.



What I have tried so far




  • Print from my browser, with headers disabled and minimum margins. It prints both halfs, shipping label fits on the first, other half is wasted.


  • Print using system dialog, and set paper size to half sheet. Problem is that it automatically sets regular margins, and there is no way to change those from my printer dialog. End result - only half of the page prints, but it takes over a half because of the margins, so it would not fit on a label.

  • Print to PDF and then use Nitro PDF reader to send to a printer. When prompted, change paper size to half sheet. End result - it prints whole page shrinked to half sheet, and transposed.



EDIT: shipping label looks like this (personal information blacked out):



enter image description here

hardware failure - Keyboard suddenly starts to randomly skip letters


I have an Asus (K52Jr) laptop for almost 4 years now. I'm working from home for almost 3 years so I use the laptop extensively.


I never had a problem with the keyboard, but, suddenly yesterday it started skipping random letters. It seems improbable for me to be because of dust or something like that because it wasn't a process in which letter by letter the keys stopped working, instead it affects all the keys all of the sudden. For about 2 hours last night it worked well again, but this morning started acting strange again.


So, today I removed my keyboard and cleaned it thoroughly. It didn't help. It still skips letters. And I noticed something else today, also. If I keep a key pressed from time to time, while repeating the key, it stops a little, like I would lift my finger up and push the key again.


I can't understand what's going on. Could it be something with the data cable? When I cleaned the keyboard today I plugged out the data cable also (in case something wasn't plugged in correctly).


I also booted in Safe Mode, to see if it's a software problem, but the same issue occurred in safe mode also (even in the "Repair mode with command prompt")


Answer



I found out the problem. It wasn't the keyboard at all.


The battery I was using on my laptop started failing slowly a few months back, and it seems yesterday it was its last day (because Windows stared telling me that there is no battery detected even if the battery was plugged in).


I unplugged the battery and everything works fine now. Strange? Yeah. But it works :)


Monday, June 19, 2017

laptop - Selecting proper wattage in Universal power adapter

My AC adapter died and I went to BestBuy to purchase a replacement. The Geeksquad suggested to choose a lower watt capacity instead of a higher watt capacity. I was convinced of the opposite and anyway, my Dell XRS13 adapter was 45w producing 19.5v at 2.31 A.
The new Universal AC adapter is 65w producing (among various ranges) 19.5v at 3.33A. I simplistically figure that drawing 19.5 volts with higher amperage may heat-up the system or the laptop will only draw what it needs?
A 90 watt adapter would have produced the same voltage at 4.6A
Any chance it might damage my laptop by using higher amperage?
I noticed a previous post:



  1. A power supply doesn't "push" power. It provides. Just because it can provide more, doesn't mean the connected devices actually uses it. It's simple, really: I = U / R. The only thing that does matter is the output voltage. – Daniel B Mar 14 '14 at 12:03

power supply - Does a laptop computer charge faster when off?



A laptop power supply can supply a limited amount of power. Conceivably, then, when the computer is running, some of the power must be diverted to the processor and other components, leaving less to charge the battery. (Power usage is roughly 10 to 30 watts, or maybe more if you have a graphics card. In my case, my charger is rated for 65 watts.) Why doesn't my laptop battery charge while the laptop is in use? is an example of an extreme case. So it's plausible that this would affect charging speed.




So do laptops in fact charge significantly faster when turned off or asleep (while plugged into a sufficient power supply)?


Answer



It depends on the power supply. We have a few computers which can be run off a lower-wattage power supply while running - it will not charge the battery at all. If you attach a larger power supply, then it can charge and run.



Check with your laptop manufacturer. It seems somewhat common to see power supplies with different wattage being offered. The power supply with a higher wattage may be what you need to charge quickly and power the system while on. Check to see if a larger power supply is available if you need to charge quickly while using the system.


Kali Linux stuck on boot with a fast flashing cursor

When I Started my kali Linux, it got stuck with a fast flashing cursor. I disabled quiet boot mode and here's what I got,


(The cursor blinks pretty fast for a few seconds and then with normal speed)
enter image description here
On previous boot , I remember installing Vega!!!


It's Kali rolling 2017.1 dist-upgraded from 2016.1


Also I cant get into any terminal mode through Alt-F* for a few minutes(the screen switches back and forth between consoles). I can boot into recovery mode!


It's a Lenovo Z570 laptop dual booted with kali and windows 10. I installed bumblebee for my optimus card and so far worked fine!


Thanks in Advance!!


P.S: I Deleted and reinstalled Kali. so I'm not looking for answers anymore. but I'm leaving this question open in hopes of being helpful to someone if answered.

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...