Skip to main content

Posts

command line - How to delete all hidden .swp files from terminal

How can I delete all .swp files? I tried rm *.swp but I got rm: *.swp: No such file or directory rwxr-xr-x 16 teacher staff 544 Jan 17 13:19 . drwxr-xr-x 19 teacher staff 646 Jan 16 12:48 .. -rw-r--r-- 1 teacher staff 20480 Jan 17 09:48 .6-1-period-2.txt.swp -rw-r--r-- 1 teacher staff 16384 Jan 17 09:05 .6-2-period-6.txt.swp -rw-r--r--@ 1 teacher staff 6148 Jan 15 16:16 .DS_Store -rw-r--r-- 1 teacher staff 12288 Jan 16 19:46 .grade8.txt.swp -rw-r--r-- 1 teacher staff 11070 Jan 17 09:48 6-1-period-2.txt

windows - How do I convert a VDI HDD to a VHD file?

Is there a way to convert a VDI HDD to a VHD? Answer The best way is to use VBoxmanage as explained by Derek P . If you have an old VirtualBox, either upgrade, or: You convert VDI to VMDK , then convert VMDK to VHD in one of several ways: VMWare VCenter Converter Standalone Client vmToolkits VMDK to VHD converter WinImage (shareware)

cpu usage - Is it possible to merge CPU cores?

Back in the past there was something called hyperthreading where a single CPU core acted like two cores. But is it possible to merge two CPU cores to an single one to improve performance on programs that doesn't use multiple cores decently? (from old games to the X Plane 11) Answer Short answer: No. Somewhat longer answer: Cores on a multicore chip are basically separate physical processors. Hyperthreading allows you to split one physical core into, e.g., two threads. The advantage of this is that the single core can swap back and forth between threads so that when one thread is waiting (for I/O, for example) the other thread can be resumed. Two threads on one hyperthreaded core share resources, allowing for very efficient context switching between threads. So why can't you do the opposite? Well, just picture it. You have two physical cores but only a single process. There are two possible scenarios: The executing code can be run in parallel. In this case, you would just have...

macos - OS X 10.6: sub-pixel antialiasing

I'm using a Core2Duo Mac mini with the latest OS X 10.6 version. Though the option "Use LCD font smoothing when available" is selected in the System Preferences, Appearance page, when I take a screenshot and zoom-in only gray text is shown, no colored borders on the fonts. How I can activate LCD sub-pixel antialiasing on OS X 10.6? Answer OK, I've found the solution at welp's blog : just execute following command defaults -currentHost write -globalDomain AppleFontSmoothing -int 2

text formatting - How to add “Table continued” with caption in Microsoft Word?

What I want to do is, if a table is split into two or more pages, add the original table caption with the word "continued" attached.  Like this: What I do now is add a caption, then cut & paste it into a no-border header table row.  Select the first two rows and set them to "repeat" when the table is broken into multiple pages. But how can I add additional "continue" word at the beginning? Could I use any "field" that indicates page of table, and use "if" to determine whether to show the word?