svn: Error resolving case of: how to fix it

By Мартин | August 5, 2009

Today I got cryptic message svn: Error resolving case of from command:

svn revert C:\Users\james\src\ksod\main.c

How to fix it: it turned out to be a permissions issue: make sure that each part of the path is accessible to the account used to run svn client. For instance, in my case it was a problem with C:\Users directory: dir C:\Users returned access denied even though the full path was readable.

Topics: Misc, Programs | No Comments »

How to get Mac OS X build number in Terminal

By Мартин | August 3, 2009

Type in:

sw_vers -buildVersion

Topics: Mac OS X | No Comments »

How to force VMware Workstation 6.5.2 to use system-provided freetype library

By Мартин | July 31, 2009

VMware Workstation 6.5.2 build-156735 ships with its own freetype library which gets installed under /usr/lib/vmware/lib/libfreetype.so.6/

If your system has a custom built freetype library with the bytecode interpreter turned on then fonts in VMware GUI will not look like fonts in other applications. To fix this create a symbolic link to system-provided freetype library:

# cd /usr/lib/vmware/lib/libfreetype.so.6/
# mv libfreetype.so.6 libfreetype.so.6.orig
# ln -s /usr/lib/libfreetype.so.6 libfreetype.so.6

Topics: Fedora, Programs | No Comments »

Rick Rashid: Leading Microsoft into the Future with Research

By Мартин | June 21, 2009

Rick Rashid: Leading Microsoft into the Future with Research

Rick Rashid is one of the Mach kernel creators in the past.

Topics: Misc | No Comments »

How to create system stored procedure in SQL Server 2005

By Мартин | May 28, 2009

In other words how to create a procedure visible in any user database.

1. Start the server in single user mode:

   sqlservr.exe -m -s SQLEXPRESS

2. Make mssqlsystemresource writable:

   alter database [mssqlsystemresource] set read_write

3. Create the procedure:

   create proc sys.sp_demo
as
return 9

   NOTE: The procedure name must start with sp_ to make create statement succeed.

4. Mark the procedure as ’system’:

   execute mssqlsystemresource.sys.sp_SetPublicInterfaceObject 'sp_demo'

5. Revert mssqlsystemresource mode:

   alter database [mssqlsystemresource] set read_only

Topics: Misc | No Comments »

Wireshark Version 1.0.7 (SVN Rev 28014) on Mac OS X 10.5.6

By Мартин | May 3, 2009

After installing Wireshark on my iMac I was getting the following errors:

The following errors were found while loading the MIBS:
-:0 1 module-not-found failed to locate MIB module `IP-MIB’
-:0 1 module-not-found failed to locate MIB module `IF-MIB’
-:0 1 module-not-found failed to locate MIB module `TCP-MIB’
-:0 1 module-not-found failed to locate MIB module `UDP-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMPv2-MIB’
-:0 1 module-not-found failed to locate MIB module `RFC1213-MIB’
-:0 1 module-not-found failed to locate MIB module `IPV6-ICMP-MIB’
-:0 1 module-not-found failed to locate MIB module `IPV6-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-COMMUNITY-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-FRAMEWORK-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-MPD-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-NOTIFICATION-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-PROXY-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-TARGET-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-USER-BASED-SM-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-USM-DH-OBJECTS-MIB’
-:0 1 module-not-found failed to locate MIB module `SNMP-VIEW-BASED-ACM-MIB’

The Current Path is: /usr/local/share/mibs/ietf:/usr/local/share/mibs/iana:/usr/local/share/mibs/irtf:/usr/local/share/mibs/site:/usr/local/share/mibs/tubs:/usr/local/share/pibs/ietf:/usr/local/share/pibs/site:/usr/local/share/pibs/tubs

FIX: Edit->Preferences->Name Resolution->SMI (MIB and PIB) paths: add /usr/share/snmp/mibs

To set up BPF permissions the following directory structure should be created:

[martin:imac ~]$ ls -lR /Library/StartupItems
total 0
drwxr-xr-x  4 root  wheel  136 May  4 07:44 ChmodBPF

/Library/StartupItems/ChmodBPF:
total 16
-rwxr-xr-x@ 1 root  wheel  954 Apr  9 02:58 ChmodBPF
-rw-r--r--  1 root  wheel  126 Apr  9 02:58 StartupParameters.plist

Topics: mac | No Comments »

dkms

By Мартин | February 5, 2009

From /var/log/yum.log:

Feb 05 19:26:31 Installed: dkms-2.0.19.1-1.fc10.noarch

Посмотрим, обещает разрешить проблемы с перекомпиляцией модулей ядра после очередного обновления оного…
Нашёл через Sun VirtualBox.

Topics: Misc | No Comments »

APC Back UPS ES350 BF350-GR: кабель

By Мартин | February 3, 2009

Как известно, конторы часто наживаются на пользователях и после приобретения железок. Примером является APC, которя берёт по 900 рублей за кусок кабеля с разъёмом RJ50 с одной стороны и USB с другой.

http://en.wikipedia.org/wiki/10P10C

http://pinouts.ru/DevicesCables/apc_usb_cable.shtml

http://www.apcupsd.org/

Вот какой сочный отчёт выдает apcupsd:

APC      : 001,044,1067
DATE     : Tue Feb 03 22:49:24 MSK 2009
HOSTNAME : rome
RELEASE  : 3.14.5
VERSION  : 3.14.5 (10 January 2009) redhat
UPSNAME  : rome
CABLE    : USB Cable
MODEL    : Back-UPS BF350
UPSMODE  : Stand Alone
STARTTIME: Tue Feb 03 17:01:29 MSK 2009
STATUS   : ONLINE
LINEV    : 228.0 Volts
LOADPCT  :  20.0 Percent Load Capacity
BCHARGE  : 100.0 Percent
TIMELEFT :  35.6 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME  : 0 Seconds
OUTPUTV  : 230.0 Volts
SENSE    : High
DWAKE    : 000 Seconds
DSHUTD   : 000 Seconds
LOTRANS  : 196.0 Volts
HITRANS  : 256.0 Volts
RETPCT   : 000.0 Percent
ITEMP    : 29.2 C Internal
ALARMDEL : Always
BATTV    : 13.5 Volts
LINEFREQ : 50.0 Hz
LASTXFER : No transfers since turnon
NUMXFERS : 0
TONBATT  : 0 seconds
CUMONBATT: 0 seconds
XOFFBATT : N/A
SELFTEST : NO
STATFLAG : 0x07000008 Status Flag
SERIALNO : AB0537144047
BATTDATE : 2001-09-25
NOMOUTV  : 230 Volts
NOMINV   : 230 Volts
NOMBATTV :  12.0 Volts
NOMPOWER : 225 Watts
FIRMWARE : 813.s3.I  USB FW:s3
APCMODEL : Back-UPS BF350
END APC  : Tue Feb 03 22:49:24 MSK 2009

Topics: Fedora, Misc, Programs | No Comments »

Чиним клавиатурную раскладку в VMware 6.5 после перехода на Fedora 10

By Мартин | December 3, 2008

В ~/.vmware/config добавить:

xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu

Ещё вариант: Linux Hosts That Use the evdev Driver for Keyboards Do Not Map Keys Correctly in Any Guest

Topics: Fedora, Programs | No Comments »

Fedora 10 upgrade

By Мартин | November 26, 2008

Обновление прошло гладко.

Как всегда, есть нюансы. freetype слетел, разумеется, попытка переустановить как ранее завершилась неудачей. Дело в том, что теперь rpm распаковывает src пакет в ~/rpmbuild вместо /ust/src.

Переключение между консольным логином и X сессией почему-то стало через Ctrl+Alt+F1 (всю жизнь было Ctrl+Alt+F8).

Topics: Fedora | No Comments »

« Previous Entries