Rune Bune’s Blog

Games, Gadgets, Code & Tech

Archive for April, 2009

How to Repair Outlook Web Access (OWA) 2003

Posted by runebune on April 24, 2009


a. Download and install the IIS 6.0 Resource Kit Tools. To obtain the IIS 6.0 Resource Kit Tools, visit the following Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?FamilyID=56FC92EE-A71A-4C73-B628-ADE 629C89499&displaylang=en

If you do not want to install all the IIS 6.0 Resource Kit Tools, click the Custom installation option to install only Metabase Explorer 1.6.
b. Start IIS Manager.
c. Back up the metabase. To do this, right-click Default Web Site, click All Tasks, and then click Save Configuration to a File. Type a file name for the file and click OK.
d. Expand Default Web Site, and then delete the following virtual directories:

• Microsoft-Server-Active-Sync
• OMA
• Exadmin
• Exchange
• Public
• ExchWeb

e. Start Metabase Explorer. To do this, click Start, point to All Programs, point to IIS Resources, point to Metabase Explorer, and then click Metabase Explorer.
f. Expand the LM key, right-click the DS2MB key, and then click Delete.
g. Close Metabase Explorer.
h. Restart the Microsoft Exchange System Attendant service to re-create the virtual directories in IIS.

Note If the virtual directories are not re-created after 15 minutes, restart the server.
i. In IIS Manager, expand Default Web Site, right-click Exchweb, and then click Properties.
j. Click the Directory Security tab, and then click Edit under Authentication and access control.
k. Verify that only the Enable anonymous access check box is selected.
l. Right-click Default Web Site, and then click Stop.
m. Right-click Default Web Site, and then click Start.

Now that is a straight copy paste from the KB Article. However.. I immediately had to wonder how the System Attendant service knew what my default website is.. or was. How does IIS flag the ‘ default website’ ?

A rummage though the IIS metabase basically shows that under the W3SVC node, the site with ID 1, is the Default Website. I made a new site, which got a unique identifier, and just renamed it to 1 in the metabase. 5 minutes later the System Attendant service had rebuild my Exchange virtual folders!

Posted in Tips & Tricks | Tagged: , , | Leave a Comment »

How to Kill a Windows NT Service in command prompt

Posted by runebune on April 24, 2009


Go to the command-prompt and query the service (e.g. the SMTP service) by using sc:

sc queryex SMTPSvc
This will give you the following information:

SERVICE_NAME: SMTPSvc
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
PID : 388
FLAGS :

or something like this (the “state” will mention stopping).
Over here you can find the process identifier (PID), so it’s pretty easy to kill the associated process either by using the task manager or by using taskkill:

taskkill /PID 388 /F

where the /F flag is needed to force the process kill (first try without the flag).

Posted in Code, Tips & Tricks | Tagged: , , | 1 Comment »

Installing uTorrent as windows service with webUI

Posted by runebune on April 24, 2009


this is the solution, and almost any program can be run as a windows service this way.

http://www.geekzilla.co.uk/View838302ED-E806-4314-AC3A-89872D6F8C9B.htm

Posted in Code, Tips & Tricks | Tagged: , , | 1 Comment »

Windows XP 2GB physical RAM limit work around

Posted by runebune on April 24, 2009


change the boot.ini file to something like this:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=”Microsoft Windows XP Professional”
/fastdetect /usepmtimer /NoExecute=AlwaysOff

the /NoExecute=AlwaysOff is the section to watch
this option will disable all microsoft windows xp hardware limitation such as memory limits (4GB should be supported if hardware support it of cause)
some reduction in memory could occure 3GB ~ 2.5GB or so.
there could be some fixes to this issue…

Posted in Tips & Tricks | Tagged: , , , | Leave a Comment »

HowTo get Microsoft Windows user or group SID in MSSQL

Posted by runebune on April 24, 2009


Microsoft Windows user or group can have different names in different languages. this is why a SID is used.

SQL Server 2005 Books Online (September 2007)
SUSER_SNAME (Transact-SQL)

Returns the login name associated with a security identification number (SID).

Syntax

SUSER_SNAME ( [ server_user_sid ] )
Arguments

server_user_sid
Is
the login security identification number. server_user_sid, which is
optional, is varbinary(85). server_user_sid can be the security
identification number of any SQL Server login or Microsoft Windows user
or group. If server_user_sid is not specified, information about the
current user is returned.

Return Types

nvarchar(128)

Remarks

SUSER_SNAME
can be used as a DEFAULT constraint in either ALTER TABLE or CREATE
TABLE. SUSER_SNAME can be used in a select list, in a WHERE clause, and
anywhere an expression is allowed. SUSER_SNAME must always be followed
by parentheses, even if no parameter is specified.

When called
without an argument, SUSER_SNAME returns the name of the current
security context. When called without an argument within a batch that
has switched context by using EXECUTE AS, SUSER_SNAME returns the name
of the impersonated context. When called from an impersonated context,
ORIGINAL_LOGIN returns the name of the original context.

Examples

A. Using SUSER_SNAME
The following example returns the login name for the security identification number with a value of 0x01.

Copy Code
SELECT SUSER_SNAME(0x01);
GO
B. Using SUSER_SNAME with a Windows user security ID
The following example returns the login name associated with a Windows security identification number.

Copy Code
SELECT SUSER_SNAME(0x010500000000000515000000a065cf7e784b9b5fe77c87705a2e0000);
GO
C. Using SUSER_SNAME as a DEFAULT constraint
The following example uses SUSER_SNAME as a DEFAULT constraint in a CREATE TABLE statement.

Copy Code
USE AdventureWorks;
GO
CREATE TABLE sname_example
(
login_sname sysname DEFAULT SUSER_SNAME(),
employee_id uniqueidentifier DEFAULT NEWID(),
login_date datetime DEFAULT GETDATE()
)
GO
INSERT sname_example DEFAULT VALUES
GO
D. Calling SUSER_SNAME in combination with EXECUTE AS
This example shows the behavior of SUSER_SNAME when called from an impersonated context.

SELECT SUSER_SNAME();

GO

EXECUTE AS LOGIN = ‘WanidaBenShoof’;

SELECT SUSER_SNAME();

REVERT;

GO

SELECT SUSER_SNAME();

GO

Here is the result.

sa

WanidaBenShoof

sa

———————————
To get the SID I use

sp_helplogins -shows information for all sql server users, incl. sid
sp_help -shows all buildin funktions (sp, tables …)

Posted in Code, Tips & Tricks | Tagged: , | Leave a Comment »

C# tip: move forms without clicking on the top bar

Posted by runebune on April 24, 2009


This is a way to move a form without clicking on the top bar.
This code snippet shows how a form could look like:


private bool _mouseDownClick;

public bool MouseDownClick
{
get { return _mouseDownClick; }
set { _mouseDownClick = value; }
}

private Point _mouseOffset;

public Point MouseOffset
{
get { return _mouseOffset; }
set { _mouseOffset = value; }
}

public DropBoxForm()
{
InitializeComponent();
}

private void DropBoxForm_MouseMove(object sender, MouseEventArgs e)
{
if (this.MouseDownClick)
{
Point mousePos = Control.MousePosition;
mousePos.Offset(this.MouseOffset.X, this.MouseOffset.Y);
this.Location = mousePos;
}
}

private void DropBoxForm_MouseUp(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.MouseDownClick = false;
}
}

private void DropBoxForm_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.MouseOffset = new Point(-e.X, -e.Y);
this.MouseDownClick = true;
}
}

Posted in .NET, Code, Tips & Tricks | Tagged: | Leave a Comment »

Generate RSS feed with own Facebook status updates

Posted by runebune on April 24, 2009


-Login to facebook
-click to get mini feed http://www.new.facebook.com/minifeed.php?filter=11
-click on My Feed RSS Feed status link
-copy the URL to “Enter your Facebook RSS URL” at http://pipes.yahoo.com/pipes/pipe.info?_id=QryTDdNF3BGXX2zrl7okhQ
-now you can copy the new URL to any RSS Reader

Posted in Tips & Tricks | Tagged: | Leave a Comment »

Atlantica Online : Strategic Turn-based MMORPG micro review

Posted by runebune on April 22, 2009


This fantasy MMORPG takes the traditional Final Fantasy turn based RPG approach and put it into an MMO, but it does more than that. It also has an item mall that can be accessed from the web, nice guide system with auto-move which can take you to any known NPC, quest location or mob which are known to you.

You also gain intel of monster which will give you advantages like auto-move and enhanced damage.

The battle setup is a group style turn based strategy RPG first known from FF. You chose several allies (mercenaries) which you place in your formation, and then you are ready to battle. A turn cycle contains selecting characters then you can use items, use weapon action, loot, cast spells, move, wait or defend. Anything costs action points for each character, and each turn has a time limit which give an extra intensity and strategy element.

One of the main features is the free play with micro transaction. Not that it matters much to my decision on selecting a MMO game, but it’s nice to see the this business model in MMORPG’s like Atlantica.

Most af the other aspects are more or less standard in MMORPGs anno 2009.

At the bottom its not a game I would play for years, but it’s really nice to se this turn-based feature and in-game path guides in an free MMORPG. I can only recommend this nicely MMO title, which gives the genre a fresh taste of old school RPG.

More info can be found at the official site: http://atlantica.ndoorsgames.com

Posted in Games, MMO, Review | Tagged: , | Leave a Comment »

Top QWERTY + Touch Screen Smart Phones to like?

Posted by runebune on April 17, 2009


This is just some of the mobile phones I have analyzed and collected specs to. There are still some QWERTY smart phones I haven’t analyzed yet like the HTC Touch Pro and HTC Touch Pro 2. I personally had the HTC Touch Pro and HTC Dream G1 for a everyday use test in some month, and both devices has many nice featrures I like in my future smart phone.

When I analyse mobile phones there are some main areas I look into. This could be the screen: resolution, physical size, touch technologi and color depth. Battery: stanby time, talk time GSM/UMTS, moderate everyday use etc. Also software is a major area to be analyzed because this is where the real content is rendered. This first analyze or data collecten is not completed due lack of confirmed information from the companies, but I will update this later on and maybe add some new QWERTY smart pnones. Also a more user friedly analyze will come later on, for the purpose of choosing the rigth QWERTY smart phone.

Producent Sony Ericsson Nokia Palm HTC
Model Xperia X1i N97 Pre Dream G1
Picture SE Xperia X1 Nokia N97 Palm Pre HTC Dream G1
Release Date NOW DK 1H US (23.june 2009) 1H US NOW US
OS Windows Mobile 6.1 Professional AKU 1.2.0 Symbian 9.4 with S60 5th Edition WebOS Android
Dimensions
(LxWxH)
110.5 x 52.6 x 17 mm 117.7 x 55.3 x 15.9 mm 100.5 x 59.5 x 16.95 mm 117.7 x 55.7 x 17.1 mm
Weight 158 g 150 g 135 g 158 g
Display:
Size Physical 3.0″ 3.5″ 3.1″ 3.2″
Colors 16 bit 24 bit 24 bit 16 bit
Ratio 16×10 16×9 15×10 15×10
Resolution (pixels) 800 x 480 640 × 360 480 x 320 480 x 320
Tecnology TFT Touch Screen (Resistive) TFT Touch Screen (Resistive) TFT Touch Screen (Capacitive) TFT Touch Screen (Capacitive)
Navigation
Keyboard Full QWERTY Full QWERTY Full QWERTY Full QWERTY
Stylus + + (not build-in)
Other navigation D-pad, Optical trackpad D-pad on keyboard Gesture area Trackball with Enter
GPS:
Build-in GPS + + + +
AGPS + + + +
Camera:
Resolution 3.2 MP 5MP 3.1 MP 3.2 MP
Lense type ? Carl Zeiss Tessar Lens ? ?
Flash LED (Photo Light) Dual LED / Video Light LED
Video format i:VGA@30fps (a:QVGA@24fps) VGA@30fps (MPEG-4 SP 640×352) ? Not yet announced
Focus Auto / Touch Focus Auto no auto focus Auto
Video Call Camera + QCIF 0.3 MP (176 x 144) +
Optical Zoom
Sensors:
Proximity (Talk) + +
Light (Display) ? + +
Haptic Feedback + ?
Accelerometer + + +
Compas + ? +
Main Processor ARM11 Qualcomm MSM7200 528MHz processor (32 bit) ARM11 OMAP Cortex A8 ARM11 Qualcomm MSM7201A™, 528 MHz
Other Processors ARM9 ? ? ?
RAM 256 MB RAM, 512 MB ROM ? ? 192 MB RAM, 256 <= /span>MB
ROM
Storage
(internal/external)
400 MB/microSD, microSDHC, TransFlash, SDIO 32 GB/microSD, microSDHC, TransFlash 8 GB/- -/microSD, microSDHC, TransFlash
Microphone + Mono + + +
Loudspeaker + Mono + ? + Mono
Audio Output 3.5 mm audio jack 3.5 mm audio jack 3.5 mm audio jack HTC ExtUSB™ (11-pin mini-USB 2.0 and audio jack in =
one)
FM Radio 87.5-108MHz with RDS FM with RDS + auto tuning ?
Data Transfer Port miniUSB (2.0) microUSB (2.0) 5Mb/s tested microUSB (2.0) miniUSB (2.0)
TV-out + (PAL/NTSC) ?
Infrared port
Bluetooth 2.0 EDR with A2DP 2.0 EDR with A2DP, DUN, HFP, HSP, OPP 2.1 EDR with A2DP 2.0 EDR (A2DP in cupcake)
Wi-Fi 802.11b/g 802.11 b/g 802.11 b/g 802.11 b/g
Wi-Fi Encryption ? + WEP, WPA, WPA2 … + WPA, WPA2, 801.1x authentication ?
Modem + + Bluetooth tethering + Bluetooth tethering ?
UPnP ? + ? ?
Vibrater + + ? +
FM-Transmitter + ?
Cellular Networks:
GSM 850/900/1800/1900 850/900/1800/1900 ? (800?) 850/900/1800/1900
UMTS i: 900 (a: 850), both /1900/2100 900/1900/2100 1900 1700/2100
Cellular Data Links
EDGE + + ? +
CSD + + ?
GPRS + + ? +
HSDPA + + + +
HSUPA + ? ? +
Battery:
Removable + + + +
Type Li-Po 1500 mAh Li-ion 1500 mAh Li-ion 1200mAh Li-ion 1150 mAh
Stand-by time (GSM/UMTS) 500/640 h 430/400 h ? 319/402 h
Talk-time (GSM/UMTS) 10/6 h 6.6/5.3 h ? 6.6/5.8 h
Talk-time (UMTS Video
calls)
3 h ?
Video-playback time ? 4.5 h (offline) 4:15 tested ? ?
Audio-playback time ? 37 h (offline) 32 h tested (earphones) ? ?
GPS Navigation ? 5 h tested ? ?
Web surfing EDGE ? 4.5 h tested ? ?
Recharge time 3.5 h 1,5 h tested ? ?
Battery Charge interface miniUSB nokia charger only (usb to nokia exists) microUSB/inductive charger (optional) miniUSB
Moderate use tested 1,5 day 3 days 1,5 day
Software:
App Shop + Ovi Online Store /N-Gage + App Catalog + Android Marketplace
Browser IE Mobile/ Opera Mobile Nokia Webkit Based Palm Webkit Based Android Webkit Based
Flash Support Limited, Flash Lite via 3. Party Flash Lite 3.0 Flash Lite 3.0 not yet in native browser
Tethering + BlueTooth, Cable + Bluetooth, Cable + Bluetooth
MS Office + + preinstalled viewer + 3.part edit ?
Email IMAP4/POP3/Exchange IMAP4/POP3/Exchange IMAP4/POP3/ Outlook Push/Exchange IMAP4/POP3/Gmail
Kontakter Exchange/Outlook Multi Contacts Multi Contacts gContacts
Kalender Exchange/Outlook Outlook and more Multi Calender gCal
MSN preinstalled preinstalled preinstalled preinstalled poor implementation
Skype 3.party free preinstalled ? 3.party free, poor beta
Geotagging 3.party ? Other Nseries have ? +
GPS Nav 3.party preinstalled ?
Podcast/RSS preinstalled preinstalled ? 3.party
Codecs:
Video:
wmv + + hardware acc ?
mp4 avc / h.264 ? + hardware acc + +
mp4 sp / h.263 ? + hardware acc + ?
divx ? 3.party ? ?
flash ? + ? – youtube app only
3gp ? + ? ?
RealVideo ? + 7,8,9 and 10 ? ?
Audio:
midi + + ? ?
aac ? + + ?
eaac ? + ? ?
aeaac+ ? + ? ?
mp3 + + + +
wma + + ?
amr ? ? + ?
wav ? ? + ?
DRM:
WM DRM + + ? ?
OMA DRM 1 ? + ? ?
OMA DRM 2 ? + ? ?

Posted in Gadgets, Mobile | Tagged: , , | Leave a Comment »

Earthrise: First In-Game Footage

Posted by runebune on April 15, 2009



I’m really looking forward with anticipation to play the MMORPG Earthrise. I have played many other MMO games and only a few did really impress me.

I really like a skill based system if the skills are diffenciated and earned in a dynamic process where both small and big acheivements are earned in the entire game play process. The different stances and blocking of skills is a good way to let all skills be more useful. The limited number of active skills look kind of what Guild Wars has done, but this look like its done in a more dynamic way which I think is good.

All in all this MMORPG is a game I look forward to play in final release, it has many innovative features.

Posted in Games, MMO | Tagged: , | Leave a Comment »