I was tailing /var/log/system.log and noticed a sudden wall of text. Looking closer, I saw it was an error CalendarAgent got while trying to save something:
Nov 18 11:42:45 rainbow-dash.local CalendarAgent[12321]: CoreData: error: (11) Fatal error. The database at /Users/blackl/Library/Calendars/Calendar Cache is corrupted. SQLite error code:11, 'database disk image is malformed'
Nov 18 11:42:45 rainbow-dash.local CalendarAgent[12321]: Core Data: annotation: -executeRequest: encountered exception = Fatal error. The database at /Users/blackl/Library/Calendars/Calendar Cache is corrupted. SQLite error code:11, 'database disk image is malformed' with userInfo = {
NSFilePath = "/Users/blackl/Library/Calendars/Calendar Cache";
NSSQLiteErrorDomain = 11;
}
2 messages repeated several times
Nov 18 11:42:49 rainbow-dash.local CalendarAgent[12321]: [com.apple.calendar.store.log.subscription] [WARNING: CalSubscriptionSession :: persistError :: save failed]
This entire sequence is repeated many times throughout the log.
file said the file in question was a SQLite 3.x database, so I did a bit of searching and came up with a way to check those.
blackl% cp -i ~/Library/Calendars/Calendar\ Cache /tmp
blackl% sqlite3 /tmp/Calendar\ Cache
SQLite version 3.7.12 2012-04-03 19:43:07
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> pragma integrity_check ;
*** in database main ***
Main freelist: Bad ptr map entry key=863 expected=(2,0) got=(5,21)
On page 21 at right child: 2nd reference to page 863
This is followed by a few dozen lines like these:
rowid <number> missing from index <name>
and then:
wrong # of entries in index <name>
I'm at a bit of a loss as to what to do now—I couldn't find anything on how to fix the errors that I found. Also, it would probably be a good idea to disable Calendar Agent so it doesn't try to use the database while it's being fixed (that's why I copied it to /tmp before running sqlite3 on it.)
How do I disable CalendarAgent and fix its cache?
I have installed Microsoft Office on my new Windows 7 64-bit system. Recently, it encounter some error and I tried to re-install it. It wasn't successful. So, I have to use Microsoft Install Clean Up to uninstall Microsoft Office. When I tried to install it again, I received this message:
Microsoft Office 2007 encountered an error during setup.
Error 1402. Setup cannot open the registry key. {a bunch of long keys}. Verify that you have sufficient permissions to access the registry or contact Microsoft Product Support Service for assistance. For information about how to contact PSS, see {a *chm file}.
After that, I tried to run the setup as administrator but I ended up with the same error. So what should I do to solve this problem?
i want to jump to a specific page of a pdf file via the google docs via the editor url https://docs.google.com/file/d/xxx/edit or the embed url https://docs.google.com/file/d/xxx/preview
i am not looking to use the http://docs.google.com/gview?url= referenced in the stackoverflow question how to open specific page on Google's docs viewer as i want to do this for documents where authentication is required the the document is not available via public url.
is there some way of appending an anchor (i would have expected it to be https://docs.google.com/file/d/xxx/preview#10) or a query (e.g. https://docs.google.com/file/d/xxx/preview?page=10) to the google docs / drive / apps viewer?
I've got an elilo (EFI LILO) config file that includes spaces in the label - like that:
image=/EFI/gentoo/boot/kernel-genkernel-ia64-3.1.6-gentoo
label="Gentoo IA64 3.1.6"
append="real_root=/dev/sda2"
initrd=/EFI/gentoo/boot/initramfs-genkernel-ia64-3.1.6-gentoo
read-only
How can I select this label from ELILO's command line - the usual suspects:
Gentoo IA64 3.1.6
"Gentoo IA64 3.1.6"
'Gentoo IA64 3.1.6'
Gentoo\ IA64\ 3.1.6
all fail with the
Kernel file not found Gentoo/"Gentoo/'Gentoo/Gentoo\" kind of error.
Surely there must be a way to use a 'space' without making it a parameter delimeter?
We are a programming shop, but this i snot a programming question.
My boss has put an external HD on the network. It contains the 'home' folders for users on the network. He uses it to place VB projects that he wants me to work on.
But no matter what date and time he places a project on the drive, the file dates(modified) always shows the current date, though nothing in the files have changed. It makes it very hard to confirm that he has given me the latest versions. (He is not a fan of version control and nothing I do will convince him different.)
Any ideas why this happens and how to prevent it from happening?
P.S. As I wrote this I decided to add the last accessed date to the file display, and those dates happen to show the dates I expect to see. Why is the modified date getting changed, but not the accessed date. Does the accessed date change only when the files are opened or read, changed or not?
Note: I use Directory Opus 9, a replacement for windows file browser.
Thanks,
Marshall
Does anyone know how to set the audible bell to a visual bell in iterm? I've looked around a bit with no luck. I'm on OSX 10.6.3 and iterm Build 0.10.
Thanks!
I'm trying to reach the command prompt through a vista recovery disk I have, and it boots from the disk and gets to the point where it asks which installation I want to repair and then says the disk is not compatible with my version of windows. I have a dual boot setup with Vista and server 2008 R2.
Is there another was to run check disk? I can't boot in safemode or normally, I suspect a driver (atipcie) is the problem
When my internet connection is idle for a while about 5 mins, the connection will be lost. It merely happens when the connection is idle, not during download. I'm using an ADSL service by a HUAWEI smartAX MT882a ADSL modem.
Any help will be appreciated
My simple understanding is as follows.
Memory (RAM) is composed of bits, groups of 8 which form bytes, each of which can be addressed ,and hence byte addressable memory.
Address Bus stores the location of a byte of memory.
If an address bus is of size 32 bits, that means it can hold upto 232 numbers and it hence can refer upto 232 bytes of memory = 4GB of memory and any memory greater than that is useless.
Data bus is used to send the value to be written to/read off the memory.
If I have a data bus of size 32 bits, it means a maximum of 4 bytes can be
written to/read off the memory at a time. I find no relation between this size and the maximum memory size possible.
But I read here that:
Even though most systems are byte-addressable, it makes sense for the processor to move as
much data around as possible. This is done by the data bus, and the size of the data bus is where the names 8-bit system, 16-bit system, 32-bit system, 64-bit system, etc.. come from. When the data bus is 8 bits wide, it can transfer 8 bits in a single memory operation. When the data bus is 32 bits wide (as is most common at the time of writing), at most, 32 bits can be moved in a single memory operation.
This says that the size of the data bus is what gives an OS the name, 8bit, 16bit and so on.
What is wrong with my understanding?
I am using Webkit nightly build revision 110829 on Ubuntu 11.10. I successfully build it. Here is what I did:
In the Webkit directory I run:
Tools/Scripts/build-webkit --gtk
Built succeeded. I tried running it by typing:
Tools/Scripts/run-safari --gtk
But nothing happens. I mean, the command just did not show anything. Anyone has any idea?
For someone who vote down: Like I said, when I run Tools/Scripts/run-safari --gtk nothing happens. So if anyone has any idea how to run it properly please tell me.
I followed this instruction: https://trac.webkit.org/wiki/BuildingGtk
I am using MTS datacard. I have usb_modeswitch installed and have configured the wvdial.conf file. When I do sudo wvdial cdma, the IPs and DNS addresses are also allocated but I still cant access internet.
The reply to dmesg | grep -e 'tty' -e 'modem' is:
[ 0.000000] console [tty0] enabled
[ 11.098238] USB Serial support registered for GSM modem (1-port)
[ 11.098352] option 6-1:1.0: GSM modem (1-port) converter detected
[ 11.102170] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 11.102207] option 6-1:1.1: GSM modem (1-port) converter detected
[ 11.102334] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 11.102364] option 6-1:1.2: GSM modem (1-port) converter detected
[ 11.102488] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 11.102522] option 6-1:1.3: GSM modem (1-port) converter detected
[ 11.102643] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 11.102672] option 6-1:1.4: GSM modem (1-port) converter detected
[ 11.102793] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB4
[ 11.103074] option: v0.7.2:USB Driver for GSM modems
Can anyone tell me what shall I do?
Can anyone help me get my site back? I was adding a site map plugin with wordpress and received the message
Warning: constant() [function.constant]: Couldn't find constant VHOST in /home/content / xxxxxxxxxxx /html/wp-content/plugins/wordpress-mu-domain-mapping/domain_mapping.php on line 30
Fatal error: Call to undefined function is_site_admin() in /home/content/xxxxxxxxxxxxxxxxx/html/wp-content/plugins/wordpress-mu-domain-mapping/domain_mapping.php on line 33
Now I have no site? Can it be retrieved? Any advice would be greatly appreciated.
Jackie
I have a pretty sad networking situation that involves connecting to an open Wireless network and sharing that connection to an Ethernet that is plugged into a Linksys router. This has been done with XP and Windows 7, and it works great with XP.
The problem with Windows 7 is that only some DNS will work. I don't know if it's been poisoned on the network above us (which we have no control over), but we've tried clearing the DNS cache as well as moving to using Google's DNS servers (8.8.8.8, 8.8.4.4). Here is a really quick list of sites that won't respond to DNS requests at all via dig, although if I get the IP address I can ping them:
facebook.com
yuilibrary.com
twitter.com
A lot of sites do work though. Anyone have an idea? It may be a subnet problem? If anyone wants more info let me know.
I got this error after installing Meld on a new Karmic installation:
~$ meld
No module named pygtk
Meld requires pygtk 2.8.0 or higher.
I installed the latest version of python-gtk with aptitude but I'm not sure what version is actually installed. My python version is 2.6.
This is weird because I have another machine that runs Karmic and Meld without a problem. The only difference between the two machines is the one with the error is a 64-bit machine running a 32-bit installation of Karmic. Could that be the problem?
I'm trying to config archlinux to use my wireless network adapter. It's quite troublesome. From what I've gathered, it's an atheros network adapter, using the ath5k driver/module...
I can't get it to work; any ideas? Here's some of the output from my tinkering:
# lspci | grep -i net
00:0a.0 Ethernet controller: nVidia corporation MCP67 Ethernet (reva2)
03:00.0 Ethernet controller: atheros communications inc. AR5001 Wireless Network Adapter (rev01)
# lsusb
...
Bus 004 Device 003: ID 03f0:17d Hewlett Packard Wireless (Bluetooth + WLAN Interface [Integrated Module]
# ping -c 3 www.google.com
ping: unknown host www.google.com
#ping -c 3 8.8.8.8
ping: network is unreachable
# lspci -v
03:00.0 Ethernet controller: atheros communications inc. AR5001 Wireless Network Adapter (rev01)
...
Kernel driver in use: ath5k
Kernel modules: ath5k
# dmesg |grep ath5k
registered as phy0
registered led device
ath5k: atheros chip found
PCI INT A disabled
registered led device
registered as phy1
# ip addr | sed '/^[0-9]/!d;s/: <.*$//'
1: lo
2: eth1
3: eth0
# ip link set <interface> up/down
RNETLINK answers: Operation not possible due to RF-kill
Also, is there a way to dump text from command-line to a text file so i can just copy pasta? Sorry, first time using a linux distro...
EDIT: So I just tried this:
I actually just did this twice. (I can't tell which setting is on/off for my wireless adapter. The lights are blue all the time now.)
#rfkill list
0: hp-wifi: wireless lan
softblocked: no
hardblocked :yes
1: hp-bluetooth: bluetooth
softblocked: no
hardblocked :yes
3: phy1: wireless lan
softblocked: no
hardblocked :yes
#rfkill list
0: hp-wifi: wireless lan
softblocked: no
hardblocked :no
1: hp-bluetooth: bluetooth
softblocked: no
hardblocked no
3: phy1: wireless lan
softblocked: no
hardblocked :yes
7: hci0: bluetooh
0: hp-wifi: wireless lan
softblocked: no
hardblocked :no
I've dug around some other articles and it seems like ath5k is supposed to be preferable to madwifi, so should i be using madwifi? I'm 99% sure I disabled the hardblock (by turning it ON) but, as shown above, phy1 wireless lan is STILL hardblocked. What gives? Maybe I've made some more fundamental error in a basic config file?
EDIT: I've fixed the hardblock. I've tried pinging www.google.com, but to no avail. I get:
ping: unknown host www.google.com
In the arch wiki:
Edit /etc/hosts and add the same HOSTNAME you entered in /etc/rc.conf:
127.0.0.1 archlinux.domain.org localhost.localdomain localhost archlinux
To my understanding, hostname is just a user-specified and based on preference(?)
My /etc/rc.conf:
HOSTNAME="gestalt"
My /etc/hosts:
127.0.0.1 localhost.localdomain localhost gestalt
but should it be the following?
120.0.0.1 localhost.domain.org localhost.localdomain localhost gestalt
We are using the switch user function within Windows 7 under an active directory network.
We have one application in particular that gives us an error:
Only one usage of each socket address (protocol/network address/port)
is normally permitted.
bind Port 10001
Are there any other ports that can only be used at one time that might have an adverse effect on the other user? We try to mentor our users to use the log off function instead of switch user, but that doesn't always happen.
As an alternative, is it possible to disable the 'switch user' button on our machines?
Currently the same sender address appears differently in my inbox for different mails. The variations are:
[email protected]
Doe, John
That is because I received some mails before I changed the name to "John Doe" and some after. It is now very annoying to find mails from John because I have to look at two places in my inbox after I sort them by sender. How can I make Outlook always sho "Doe, John"?
Is their a script or process completely reset all file system file permissions to factory default? (Less restoring from a image backup or reinstalling the OS).
This would include I've affected all files from / to Applications and home folder and all contents. (Everything)
I've tried to use the Disk Utility's First Aid 'Repair Disk Permissions' but it didn't seem to touch or affect everything - some but not all. I've ran it twice so far...
I've seen this but it's not quite the something. Fixing mac user file permissions, not the system
The reason for all of this is I accidentally ran a chmod on all files (as sudo). Working too fast, now I'm in a hole.
I use firefox with a lot of anti-ad extension, like adblock, NoScript, Ghosty etc.
I found this IP 220.191.158.69 always in the list of NoScript, I want to ban this IP. I have checked it, searched it. It is from China telecom damn Ad.
I guess NoScript can ban this IP already, but When I do not allow that IP, sometimes a webpage can not be loaded at first time, I need to refresh two or more times. I hate it...
So I hope there are some way or browser extensions or script can jump through this damn IP.
Machine A is behind a firewall. I have physical access to it, but I want to log into it remotely, and I do not have access to the firewall settings.
Machine B is remote, and not behind any firewall. (It's my linode)
Machine C is the mobile device I'm going to attempt to ssh into A from.
Is there an ssh command that I can run from machine A that connects to machine B and stays open, that will allow me to log into A from C, via B?
From the manual I'd guess it would be to run the follwing on A
ssh -R *:9999:localhost:22 me@B
and then run this on C
ssh me@B -p 9999
but the previous command reports "Connection refused."
I have installed Windows 7 on my laptop. When I put a movie in the DVD drive, the video player starts up and tells me 'THIS DISC IS NOT FORMATTED TO PLAY IN THIS REGION'. I have changed the DVD region a few times in the past but while I was in Windows XP I changed the region in Region 1.
I cannot find how to check the DVD region setting in Windows 7 (it's not located on the hard properties page of the DVD anymore. Does anybody know how to check the DVD region in Windows 7?
Update: If I connect an external USB DVD drive I can see the DVD region tab on the hardware properties dialog. I guess there is some compatibility problem with my internal DVD drive and Windows 7 (as I said I was able to inspect/change the DVD region in Windows XP).
Solution: I think I had used LtnRPC in the past to remove the region from my DVD drive. It looks like Windows 7 does not like region free DVD drives (at least mine anyway). I was able to use LtnRPC to reset the region back to 1. I can now see the region tab on the DVD drives hardware properties.