Hi,
How can I use 'grep' to get lines start with '* ' in my file?
I tried grep "" myfile
I tried grep " " myfile
but returns all the lines of my file.
Thank you.
Okay, here's a weird problem -- My wife just bought a 2014 Nissan Altima. So, I took her iTunes library and converted the .m4a files to .mp3, since the car audio system only supports .mp3 and .wma. So far so good. Then I copied the files to a DOS FAT-32 formatted USB thumb drive, and connected the drive to the car's USB port, only to find all of the tracks were out of sequence. All tracks begin with a two digit numeric prefix, i.e., 01, 02, 03, etc. So you would think they would be in order. So I called Nissan Connect support and the rep told me that there is a known problem with reading files in the correct order. He said the files are read in the same order they are written. So, I manually copied a few albums with the tracks in a predetermined order, and sure enough he was correct.
So I copied about 6 albums for testing, then changed to the top level directory and did a "find . music.txt". Then I passed this file to rsync like this:
rsync -av --files-from=music.txt . ../Marys\ Music\ Sequenced/
The files looked like they were copied in order, but when I listed the files in order of modified time, they were in the same sequence as the original files:
../Marys Music Sequenced/Air Supply/Air Supply Greatest Hits ls -1rt
01 Lost In Love.mp3
04 Every Woman In The World.mp3
03 Chances.mp3
02 All Out Of Love.mp3
06 Here I Am (Just When I Thought I Was Over You).mp3
05 The One That You Love.mp3
08 I Want To Give It All.mp3
07 Sweet Dreams.mp3
11 Young Love.mp3
So the question is, how can I copy files listed in a file named music.txt, and copy them to a destination, and ensure the modification times are in the same sequence as the files are listed?
I need a fast automatic two-way bookmark & history sync.
Firefox sync seems too slow because I might bookmark/visit a URL then within a few mins put desktop to sleep and leave the house; if it hasn't synced, then I don't have a way of getting it on my laptop (or vice versa). My home upload is only around 200kbps so maybe that's why FF sync seems slow? (I mean it's minutes, not seconds slow).
I have read there are a few ways like xmarks/delicious/google but I don't want clutter like extra toolbars or have to visit a site to get bookmarks, they should be as native in the Firefox bookmarks bar as possible, organised in the folders/tags.
I know someone must have experimented/know more about this. Thanks.
Cursor lag issue
Introduction
I'm experiencing a newly arrived problem lately that frustrates me a lot. The computer I bought is a Clevo 150ERM. Two of my friends bought the same machine, and are experiencing the same issue.
The computer came with Windows 7. There, I had no issues. Then, when we all switched to Windows 8, they had the mouse problem and I didn't.
That is until after 4 or 5 months when I decided to install the RTM driver of my Intel graphics chip, and the latest Nvidia driver. I also installed the latest version of Skype that just released (Skype 6 and Skype for Metro).
This basically leads me to conclude that the issue is not hardware-prone, and is not based on the operating system itself, rather the drivers or components that follow with it.
Description of the issue
The issue itself (lag with the mouse) happens whenever the cursor icon changes. For instance, if I keep hovering from and to a textfield (and the cursor changes into a caret and then back to a mouse), it stops for 200 milliseconds while it changes the icon.
An example is if I follow the mouse in the pattern shown by the arrows below. When crossing the window border, the cursor changes into a "resize window" cursor for a short while, making the cursor lag.
This doesn't sound like much, but it happens every time the cursor changes (even if it's to just move the mouse somewhere else, and accidentally make it cross a window border from where the resize cursor shows etc).
What do you suggest I try?
I’ve noticed that my Dell e4300 Laptop will randomly beep every now and then. The symptoms are virtually identical to the issue described here: http://en.community.dell.com/support-forums/laptop/f/3518/t/19314488.aspx
Any ideas why? I thought it might be related to hard drive activity so I downloaded the western digital disk utility and all tests check out fine.
It’s not a big deal and it only beeps once every few days. I just want to make sure there isn’t a larger problem looming. =)
-M
I need to download my Delicious bookmarks to a non-web application without constant user interaction. I'm using Delicious's V2 API (using oAuth) but the problem is it seems their access tokens expire after one hour.
I don't have any issues with redirecting the user to Yahoo for a one time authorization, but what is described here (http://developer.yahoo.com/oauth/guide/oauth-refreshaccesstoken.html) means I would have to refresh my access tokens all the time before they expire when the user is away.
Is this really the way they've done their oAuth implementation?
(I know there have already been a lot of questions about this, but none of them mentioned the dv4t specifically.)
I'm thinking about getting an HP Pavilion dv4t-4200 or -5100, but something that's really irritating me is that by default the function keys (F1-F12) are "inverted"—without holding the Fn key, the function keys do things like change the brightness, change or mute the volume, and switch to an external display. Only if you hold Fn will they actually produce F1, F2, etc. This is not how keyboards are supposed to work. Is there any way to disable this "feature" that has been verified to work on the HP Pavilion dv4t-4200 or HP Pavilion dv4t-5100? I don't want to buy this computer unless this is possible.
I recently started using a Kinesis Advantage with my MacBook and one of the things I've really missed since switching from my Apple keyboard is having the functionality of the OS X media keys.
I know the Advantage keyboards are pretty customisable but having Googled for quite a while I haven't been able to find any sources saying that it's possible to map the function keys on the Advantage to the appropriate OS X function.
Has anyone had any success in getting something like this to work? Any tips would be hugely appreciated.
I am interested in a potential zle widget for zsh. Is there a way to build a widget that mimics the kill-completion selectable menu? Essentially I want to be able to press , tab in vi-command-mode, or maybe !-tab-completion at the shell and get a list of recent history (or related history compared what is already entered at the commandline) that allows me to scroll through it and possibly select a relevant function to call or compare similar calls.
Looking through the manual I stumbled onto a similar widget that I have mapped like so:
# tab completion history menu (vicmd)
autoload -z history-beginning-search-menu
zle -N history-beginning-search-menu-space-end history-beginning-search-menu
bindkey -M vicmd "\t" history-beginning-search-menu-space-end
# emacs binding could be "\e\t"? (I wouldn't know)
Therefore, if I enter vicmd and hit tab when I enter something like "grep", then I get a list of all grep calls in history. It also asks me for the list-number and it will perform the numbered item in history. If I enter a space and then try this, it lists ALL of my history history. This is fairly close to what I want, but there are some problems. For example, 1) it prints the entire list of relevant history and does not check the number of lines of the screen so it could easily blow up the space on the terminal; 2) when I type in numbers for selecting an item in history it does not show me the numbers I type, so I may make a mistake and have to start over again; 3) I would love to be able to hook in appearance tweaks.
I was wondering if there exists more updated version of this widget or if there is any way to look at the source for kill-completion or history-beginning-search-menu to see if I could think of a way to do it.
I am going to build a full height server machine to be used for SQL Server 2008 64bit. I have $400 to spend for a CPU. Which CPU should I get among i5, i7, Xeon and Phenom in terms of performance. There are so many options and I am out of touch with the latest stuff. All I know I want something fast and works with DDR3 fast memory and works with some kind of fast system bus.
I don't care about overclocking, 3D & gfx benchmarks. The machine is not used for games and gfx apps.
Any recommendations?
I thought that all operating systems would merge folder content when being moved to the same location. Imagine my surprise when that didn't happen and I have hundreds, if not thousands of files that have gone missing and are nowhere to be found.
Because they were not "deleted" they are not in the trash bin.
I've tried to do some recovery using a program called stellarPheonix but after about a 24hour scan, it didn't recognize any of the raw files (.dng,.arw) as image files and so I couldn't see if they could be recovered. It also didn't show the directory structure, which would be handy.
I tried a quick scan, but all it showed was files that were still on the HD, not sure what the point of that is.
I've used recover 2000 on Win and it does a good job, does anyone know of anything that works quickly and reliably for this kind of file recovery. (I don't think I should have to do a sector-by=sector for this kind of file loss)
I've read about a lot of people using their Mac Minis as a file server, or media centre or something similar.
Does the mini function alright as a standard desktop PC? The Mac will be used primarily for web development, that is, it will need to run Coda, Photoshop, possible Firefox and Safari at the same time. So it will need suitable performance.
Or am I better off getting an iMac?
I though the mini looked like a good option because:
cheaper
I already have a keyboard, mouse and 24" monitor
I could use a KVM between the mini and PC
Also, does the mini support multiple monitors?
Thanks
I always Hibernate my PC. Sometimes when I boot, it does not recognize the mouse/keyboard or any USB devices. I've also setup it to go in sleep in 5 minutes.
In that case I can't restart the PC so that USB starts working.
When I press the Power button then it starts shutdown but asks confirmation twice, one is for shutdown by force confirmation and then there is one more. When my USB is disabled I can't input these options. So I switch off the power.
What I want is that upon pressing Power Button it should at once start shutdown without asking any more confirmations
System details:
Win-7 Home Premium 64 bit
Intel i3 530
Asus P montherboard
EDIT: It is Desktop PC
I have a 15" MacBook Pro 3.1 (that is Late 2007 model AFAIR). I've bought it new a couple of years ago.
Recently its on-battery power lifespan became very short (30 to 10 minutes).
When my notebook turns itself off due to "low battery" and I press the small button on the battery itself, all LED lights are alight, indicating full charge.
When I plug in the power adapter, my Mac displays that "battery is fully charged, finishing charging process" (I have a Russian OS X 10.5.7, so that is a rough translation), but the LEDs on battery itself display (seemingly accurate) status that there are one or two "LEDs still not charged".
My battery have as few as 37 recharge cycles (yes, I've neglected calibration over the time I've used it). Battery info programs like iBatt2 report battery capacity of 65 337 mAh (with by-design capacity of 5600 mAh).
I get it that something went wrong with battery electronics.
I've tried resetting my Mac's PRAM and SMC, it did not changed anything.
Now I'm trying to recalibrate the battery, but looks like it does not help as well. Will try to recalibrate it several times in a row.
I'd buy a new battery if I knew if it is battery fault, not a notebook's.
Any suggestions?
Update:
After recalibration, my battery status now displays battery capacity of 1500 mAh. But with every recalibration (or simply when I use notebook without power adapter plugged in) this number changes in the range from 200 mAh to 1700 mAh.
LEDs on battery now are synchronous with what nodebook thinks on the charge level.
Also I've noticed that cycle count changes rather slowly. It is now 39, it was 37 when I've started recalibration, and I went through the process at least ten times...
So, the main question is: does it look like that replacing the battery would help me (or does it look like this is notebook's problem)? I guess I should try replacing the battery.
I tried to install the Windows 7 Service Pack 1 using Windows Update and I got an error (code 80073701 - unknown error). I tried it again, same thing. Rebooted and tried again, same error.
Before I tried to install the SP1 I had installed all the previous updates.
I have Windows 7 Ultimate 32-bits.
Has anyone gone through the same problem? Any ideas of what might be happening?
Thanks!
UPDATE:
I installed the System Update Readiness Tool. Then, I tried to install the SP1 again, but the installation failed again with the same error. As I thought I was running out of options, I downloaded the SP1 package (500+ MB) and tried to install manually. Before that, I reinstalled the SUR Update. Well, the manual installation of the SP1 failed again. Then I learned about the c:\Windows\Logs\CBS\CheckSUR.log file (thanks Patches!). I checked it out. As I installed the SUR Update multiple times, the older logs are kept in the c:\Windows\Logs\CBS\CheckSUR.persist.log file. In the first time the SUR update was installed there was an error, which is said to have been fixed. In the subsequent logs, no errors were detected. The log with the error:
=================================
Checking System Update Readiness.
Binary Version 6.1.7600.20593
Package Version 7.0
2010-03-19 09:57
Checking Windows Servicing Packages
Checking Package Manifests and Catalogs
(f) CBS MUM Corrupt 0x800B0100 servicing\Packages\Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~x86~pt-BR~6.1.7600.16385.mum servicing\Packages\Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~x86~pt-BR~6.1.7600.16385.cat Package manifest cannot be validated by the corresponding catalog
(fix) CBS MUM Corrupt CBS File Replaced Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~x86~pt-BR~6.1.7600.16385.mum from Cabinet: C:\Windows\CheckSur\v1.0\windows6.1-rtm-client-cab3-x86.cab.
(fix) CBS Paired File CBS File also Replaced Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~x86~pt-BR~6.1.7600.16385.cat from Cabinet: C:\Windows\CheckSur\v1.0\windows6.1-rtm-client-cab3-x86.cab.
Checking Package Watchlist
Checking Component Watchlist
Checking Packages
Checking Component Store
Summary:
Seconds executed: 224
Found 1 errors
Fixed 1 errors
CBS MUM Corrupt Total count: 1
Fixed: CBS MUM Corrupt. Total count: 1
Fixed: CBS Paired File. Total count: 1
It seems it has something to do with the Brazilian Portuguese Language Pack, which happens to be my native language. Problem is I can't uninstall the language pack since it is my system default language. And I haven't found any place to download it so I could reinstall it manually. Well, any ideas? Thanks!
I use Outlook 2007, and have a Hotmail/Live webmail account. Using Outlook Connector, I want them to be synced to Outlook 2007 on my Windows 7 HP machine, however when I click on the folder name (e.g. [email protected]) in the 'Navigation Pane' under all the usual folders such as 'Inbox', 'Deleted Items', etc, it just shows a blank inbox stating that there are no items to be shown.
Hi,
I'm using Views module and an exposed taxonomy based filter, to allow users to select a subselection of articles.
I need to further customize my filter:
1) I want the user able to order the tags alphabetically by clicking a checkbox (if this checkbox is unchecked the default order is reset.
2) I want all tags selected in the beginning to show my user all the articles. (Additional tags can be added by the user later, so I cannot just select all the tags in Views settings, because the new ones would be uncovered).
thanks
Hello,
I have an Nvidia GeForce 6100 and using XP. I also have a SmartBoard.
my brightness settings are completely changed and are not good.
I tried changing the settings at the Nvidia GeForce 6100 nForce 430 color correction settings.
I cannot get any ideal, it's just way to bright, what do i have to do? I already tried my monitor brightness settings and the smartboard brightness settings. it does not matter. I think there are problems with the pixels.
How can i fix this? Is there something wrong with my video card?
First, is this possible?
Second, how can I install Grub2? Would it be possible to use an Ubuntu Live CD?
Third, what Grub2 settings would be needed to achieve this?
Sometimes when my computer running Windows 7 wakes up from sleep, it has to adjust the time. When this happens the following system event is logged:
<Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'>
<System>
<Provider Name='Microsoft-Windows-Kernel-General' Guid='{A68CA8B7-004F-D7B6-A698-07E2DE0F1F5D}'/>
<EventID>1</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000010</Keywords>
<TimeCreated SystemTime='2010-03-06T19:09:57.500000000Z'/>
<EventRecordID>10672</EventRecordID>
<Correlation/>
<Execution ProcessID='4' ThreadID='56'/>
<Channel>System</Channel>
<Computer>GAME</Computer>
<Security/>
</System>
<EventData>
<Data Name='NewTime'>2010-03-06T19:09:57.500000000Z</Data>
<Data Name='OldTime'>2010-03-06T17:34:32.870117200Z</Data>
</EventData>
<RenderingInfo Culture='sl-SI'>
<Message>The system time has changed to ?2010?-?03?-?06T19:09:57.500000000Z from ?2010?-?03?-?06T17:34:32.870117200Z.</Message>
<Level>Information</Level>
<Task></Task>
<Opcode>Info</Opcode>
<Channel>System</Channel>
<Provider>Microsoft-Windows-Kernel-General</Provider>
<Keywords>
<Keyword>Time</Keyword>
</Keywords>
</RenderingInfo>
</Event>
When this happens (I noticed it twice until now) the old time always corresponds to the time when computer entered sleep. The problem is that if Windows Media Center is scheduled for recording during this time, it just skips it as if the computer was turned off. I never had this problem running Windows Vista on the same machine.
Any ideas what could be causing this problem and how to solve it are welcome.
The scenario is as follows:
Machine A is located behind client firewall. The machine runs telnetd. This is Linux machine with Python 2.5.4 installed. I do not know the IP addy of the router and firewall is not open incoming. outgoing firewall is open.
Machine B (Windows machine) is a server with well known IP address. I can install any programs I want on either machine.
The idea is that I want Machine A to open a socket to machine B. Then I want to hold that socket and use to run a telnet session from Machine B to Machine A telnetd server.
Is there any freeware that does this?
Thoughts?
Thanks!
I want to get more combos in Emacs, so I tried to bind Alt, Super, Hyper via modmap to keys. I failed at it. So I tried to use xdotool.
I started emacs -Q for clean experiment. Pressed C-hC-c and executed in other terminal:
xdotool key --window 119537875 "meta+x"
xdotool key --window 119537875 "alt+x"
Both commands resulted in M-x runs the command execute-extended-command. So, Emacs do not differ between Alt and Meta. How can I fix it?
On the Mac, there is a hugely useful iStat Menus. It displays all kinds of statuses, such as CPU/RAM/Disk utilization, HD temperature, etc...
Is there something similar for Windows XP?