tag:blogger.com,1999:blog-267755122009-03-15T10:42:10.593+01:00Tjitjing BlogThis is my blog on technology related things and maybe some other stuff too...Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.comBlogger59125tag:blogger.com,1999:blog-26775512.post-23615145749582062542009-02-26T07:09:00.011+01:002009-03-15T10:14:44.117+01:00Brilliant and Exciting Electric Car ProjectA few months ago I saw a video about Shai Agassi's new electric car project - Better Place - and I still think it's a very exciting and brilliant concept. <br />Our neighbor Denmark have already signed up for this and I hope it will also come to Sweden - and the world! - eventually. <br /><span style="font-weight:bold;">I can't wait to drive a zero emission vehicle!</span><br /><br />The project/company started late 2007. I don't know why have not heard about it earlier, to many of you this is probably old news.<br />If you haven't already heard about it you can read more in <a target="_blank" href="http://www.wired.com/cars/futuretransport/magazine/16-09/ff_agassi?currentPage=all">this Wired Magazine article</a> or visit <a target="_blank" href="http://www.betterplace.com/">Better Place's homepage</a>.<br /><a target="_blank" href="http://en.wikipedia.org/wiki/Shai_Agassi">Shai Agassi</a> is a <a target="_blank" href="http://www.businessweek.com/technology/content/mar2007/tc20070329_781289.htm">former SAP top executive</a>.<br /><br />What I love about this project:<br /><br />- New and easy cost model based on the model for cell phone subscriptions: <span style="font-weight:bold;">Free or very low cost car, pay per mile. And get this: the mileage cost will be considerably lower than for the car you are driving today.</span> I think this is key - there is no monetary penalty for consumers to go green, only advantages.<br /><br />- Open standard - Existing battery manufacturers will be making the batteries. <span style="font-weight:bold;">Existing car manufacturers will be making the cars</span>. This means no strange new models to get used to. Nissan/Renault already have cars ready for production. <br /><br />- <span style="font-weight:bold;">Only non-carbon, renewable energy sources will be used</span> (solar, wind, water etc)<br /><br />- The grid thought. With all the batteries in cars and Battery Exchange stations there will be a huge distributed energy system that can be used to fill up when energy is cheap during night time (ie. not in high demand) and redistribute it during daytime. <br />Eg. your car's battery is fully loaded during night but your on-board system knows you will actually only be needing about 50% battery capacity so during the day when your car is parked and plugged in the other 50% of your energy can be redistributed to other cars or sold on the market.<br /><br />- The grand scale and time frame. The ambition is to do this for the world. <span style="font-weight:bold;">Already signed up: Israel, Denmark, Australia, California, Hawaii and Canada. <br />And this is happening now! Quote from Wired Magazine: "Better Place expects to have close to 100,000 vehicles by the end of 2011"</span><br /><br />I also love this quote from the <a target="_blank" href="http://www.betterplace.com/press-room/videos-detail/whats-better-place/">4-minute intro video on Better Place's web site</a>: "Hi, I'm Shai Agassi and I'm the end of oil"<br /><br />The biggest weak point as I see it is the cost for building the infrastructure. <br />But for recharging stations I'm sure the existing power grid will be used and for Battery Exchange stations I'm sure there will be an incentive for existing filling stations to come on board. After all, the countries that have signed up for the project have agreed to tax cuts for electric cars and tax raises for traditional cars, this in combination with the new pay model (free or very cheap car and low mileage cost) should be able to quickly move a lot of people to electric.<br /><br /><span style="font-weight:bold;"><br />I'm keeping my fingers crossed that this project will actually work, it would have great impact on our co2 emissions!</span><br /><br /><br />Side note:<br />I can't help but thinking maybe there is another motive behind this project too. When I read that Israel is the first country that signed up to do this I can't help but thinking that there could be another great motive for them apart from the environmental: If this project succeeds and break most of the world's oil dependence, as a side effect Israels enemies funding (which of course comes from oil) will also be cut off.<br />If my conspiracy theory has any truth to it I think this is a very smart move by Israel. And I say this without taking sides in the mid east debate/conflict, I think the sad situation there is far too complex for me to fully comprehend.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-2361514574958206254?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com0tag:blogger.com,1999:blog-26775512.post-82497112600027607332009-01-18T15:51:00.003+01:002009-01-18T16:17:30.054+01:00Low Volume on my Realtek Acer LaptopI've always thought the sound volume on my Acer TravelMate 5530G has been very low even if I turned everything up to 100%. It has been ok and only a little bit annoying, but a few days ago we moved to another house for a month (we're currently travelling in Thailand) with no TV so now the family have to watch movies on the laptop...<br /><br />Anyway, I found the solution thanks to <a target="_blank" href="http://forum.notebookreview.com/showthread.php?t=115959">this post by brielle128 at Notebookreview.com</a>. It seems to be related to Realtek drivers on Windows Vista.<br /><br /><span style="font-weight:bold;">The solution:<br />- Have song playing so you can here the difference.<br />- Right click on the speaker icon in the task bar and select Playback Devices (or find it in the Windows Control Panel) The Sound dialog box opens up.<br />- From the Playback tab select the Playback device being used, in my case Speakers Realtek High Definition Audio (marked with a green checkbox) and click the Properties button. A new dialog box - Speaker Properties - opens up.<br />- On the Enhancements tab make sure Disable All Sound Effects and Immediate Mode are both unchecked. Check Loudness Equalization (on my setup all other unchecked) and hit Apply. <br />- Bingo! Sound volume is up a lot, maybe 50%!<br /></span><br /><br />I actually think my wife's Acer Aspire One (also Realtek Sound card) running Windows XP has the same problem but unfortunately I could not find any similar settings there.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-8249711260002760733?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com2tag:blogger.com,1999:blog-26775512.post-56315602493270557342009-01-12T02:42:00.003+01:002009-01-12T03:11:17.975+01:00Copy MySQL Database Structure without DataThree easy steps to copy the structure of a MySQL database, i.e. the table definitions but no rows/records/data:<br /><br />1. Create the new database, either from MySQL Query Browser (part of <a target="_blank" href="http://dev.mysql.com/downloads/gui-tools/5.0.html">MySQL GUI Tools</a>) or MySQL Command Line:<br /><br /><span style="font-weight:bold;">CREATE DATABASE `new_database_name`;</span><br /><br />2. Copy the database structure using the <a target="_blank" href="http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html">mysqldump</a> command from a dos command prompt. Note: If MySQL is not in your path you will have to navigate to the MySQL bin directory, on my machine this is in C:\Program Files\MySQL\MySQL Server 5.1\bin.<br /><br /><span style="font-weight:bold;">mysqldump -d -u root -p -v original_database_name > c:\temp\dbstruct.sql</span><br /><br />3. Restore the copied database structure to your new database from the same dos command prompt as in step 2.<br /><br /><span style="font-weight:bold;">mysql.exe -uroot -p new_database_name < c:\temp\dbstruct.sql</span><br /><br />Done!<br /><br />Some notes:<br />- I used MySQL Server 5.1 when testing this but should work also with earlier versions. If you can or cannot get it to work with another version please add a comment.<br />- In this example I used root as user but any user with read and create permissions would work.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-5631560249327055734?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com0tag:blogger.com,1999:blog-26775512.post-41934859213519045402008-12-01T09:10:00.004+01:002008-12-28T06:20:08.398+01:00Mobile internet in ThailandI am currently in Thailand for three months with my family :)<br />We're at the island of Koh Lanta which is in southern Thailand, close to Krabi and Puket (Phuket).<br /><br />I'm trying to work from here but getting a decent internet connection has been a hassle. Internet is generally very cheap (compared to Sweden anyway) but slow. These are the options I have found and tried:<br /><br /><br /><span style="font-weight: bold;">Internet café and Wirelsess access points</span><br /><br />There are lots of these everywhere but it's slow. Normal fee is about 1 Baht (THB) per minute for internet café. Wireless access is usually free at cafes when you eat or drink something. But at least here in Koh Lanta it's very slow even though they use ADSL connections. This island - Koh Lanta - got electricity and telephone lines just about five years ago so maybe there is just not enough bandwidth to the main land.<br /><br /><br /><span style="font-weight: bold;">Mobile internet GPRS and EDGE (aka 2.5G)</span><br /><br />Bring a handset-to-computer cable to connect your mobile phone to your laptop or use Bluetooth if both your cell and laptop support that.<br /><br />Then simply buy a prepaid card from a store (50-100 Baht). I have tried 1-2-Call (AIS) and Happy (DTAC) and both work fine. Call the operators service number to find out how to set up GPRS/EDGE, what the cost is and if they have any promotions. When you call the operator service line listen for what key to press to get an English speaking service representative. The service is good and they will help you get setup right away.<br /><br />As an example: I use DTAC/Happy, they have a package where you buy 1 month/max 20 hours (unlimited traffic) of GPRS and EDGE internet access for 100 Baht. Currently they have a promotion where you get double max time (40 hours). If you use up all your time before the month is up you can call and buy the package again.<br />Just remember to keep track of how much connection time you have used up, when it is used up you are automatically back to standard fee which is 1 Baht per 10 kB. I didn't notice my time was up and quickly used up the 200 Baht I had left on my prepaid - instead of the 80 hours connect time that money would have bought me I got about 1 hour.<br /><br />Even though I find surfing etc very slow on EDGE/GPRS I was amazed to see that I could actually make video calls with <a target="_blank" href="http://www.skype.com/">Skype</a> using this connection! Quality was not 100% but it was working quite ok. I guess this is more thanks to great Skype algorithms than connection speed.<br /><br />Service number for Happy (DTAC): 1678<br />Service number for 1-2-Call (AIS): 1175<br /><br /><br /><span style="font-weight: bold;">Mobile broadband/High Speed Mobile internet 3G/CDMA</span><br /><br />There are two operators providing high speed mobile internet: <a target="_blank" href="http://www.catcdma.com/">CAT</a> and <a target="_blank" href="http://www.hutch.co.th/">Hutch</a>.<br />It seems <a target="_blank" href="http://www.hutch.co.th/networkcoverage/coverage_en.htm">Hutch is covering the central part of Thailand and CAT is covering the southern and northern part</a>.<br /><br />My neighbour here has a USB modem from CAT which I have borrowed and even though it is not superfast it is the fastest option compared to anything else I have tried here including the ADSL from the wireless cafes. CAT have their own outlets and the closest one is in Krabi but through my neighbour I have now arranged to have one sent here which I hope to get in a few days.<br />I will pay about 11.000 Baht for the USB modem and 700 Baht per month for unlimited internet access. I was hoping I could use my 3G phone (Sony Ericsson Z770i) as modem but I checked the specs and it supports the HSDPA and WCDMA 3G-standards but both CAT and Hutch use the CDMA2000 standard and I don't think they are compatible. Also CAT does not use SIM cards but the SIM is built in to the modem.<br /><br /><a target="_blank" href="http://www.hutch.co.th/mbi/1x/promo_special_en.htm">Hutch's mobile internet service is called MBI</a> and is available both as prepaid and postpaid. Hutch have better prices than CAT and from their homepage <a target="_blank" href="http://www.hutch.co.th/networkcoverage/faq_en.htm">at first it seems you could use their services in CAT's network</a>. But after emailing their customer service to double check I got the reply that everything but mobile internet works in CAT's network but it seems this will change later on. Hutch is mainly sold though their own shops but you can also buy online (or at least semi-online) using <a target="_blank" href="http://www.hutch.co.th/postpaid/delivery/index_en.htm%20">this form</a> that I found well hidden on their home page.<br /><br />CAT's web site has very limited information in English: <a target="_blank" href="http://www.catcdma.com/">CTA</a><br />You can call their service center at 1322 where they can assist you.<br />Telephone number to the CAT outlet in Krabi is 075620588.<br /><br />Hutch's web site has lots of information in English: <a target="_blank" href="http://www.hutch.co.th/">www.hutch.co.th</a><br />Their call center is at telephone 1128 or use <a target="_blank" href="http://www.hutch.co.th/contact/index_en.jsp">this contact form</a>.<br /><br /><br />Happy surfing!<br /><br /><span style="font-style: italic;">[Update: In the end I had to go to CAT in Krabi myself to buy the thing. The CAT office is located on the main road in Krabi Town, about 500 meters north of the hospital, on the opposite side of the road.</span><br /><span style="font-style: italic;">The CAT staff was very friendly and helpful and I bought a Novatel Wireless MC727 modem device for 8.500 Baht (which was cheaper than the 11.000 Baht a sign on a display said, I don't know if this was a time limited offer or why I paid less) Unlimited internet access is 850 Baht per month. Make sure you bring your passport as it is not pre-paid but a subscription/post-paid. I only had to pay for exact amount of days I wished for, so they started the subscription the day of my visit and it will end at the exact day I go back home in February.</span><br /><span style="font-style: italic;">Back at the house in Koh Lanta I plugged it in to my computer and it installed and connected without any problems! (My neighbour has the CCU-680 modem but they both seem to be working equally well.)<br /></span><br /><span style="font-style: italic;">I think I could probably have bought just a SIM and used with my Sony Ericsson 3G handset as they did sell normal 3G phones with SIM cards, even though the MC727 modem was without SIM. I'm not sure about this but I think the CDMA2000 they refer to is probably not a standard but CDMA on the 2000 MHz band which my phone may support.</span><br /><br /><span style="font-style: italic;">Another note which I missed in my original post is that there currently seems to be no High Speed/HSDPA/Turbo-3G, which is 7.2 Mbit/s only normal 3G 3.2 Mbit/s (using a standard called EVDO revision A)]</span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-4193485921351904540?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com2tag:blogger.com,1999:blog-26775512.post-43968466282097949482008-12-01T01:18:00.004+01:002008-12-01T01:31:58.906+01:00BC30560: 'MySqlConnection' is ambiguous in the namespace 'MySql.Data.MySqlClient'.I got this error in one of my ASP.NET web sites after uploading a new version:<br /><br />BC30560: 'MySqlConnection' is ambiguous in the namespace 'MySql.Data.MySqlClient'.<br /><br />It worked fine on my development machine but not on the production server. I could not figure out what it was for quite some time. <span style="font-weight: bold;">Turned out I had added the mysql.dll to bin directory of my project and at the same time was referencing a shared (GAC) version of the same dll</span>. I had made this and some other changes on the development machine that I had forgot about. The only thing that differed from the development and production machines was the web.config which I obviously did not check well enough.<br /><br />Posting this here if someonelse or myself makes this stupid mistake again...<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-4396846628209794948?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com1tag:blogger.com,1999:blog-26775512.post-33905768156896433072008-11-09T19:41:00.003+01:002008-11-09T19:50:51.819+01:00Lotus Notes data directory on Windows VistaJust installed and old CD with Lotus Notes 7.02 on my Windows Vista laptop.<br />Could not find notes.ini, names.nsf in the file system, apparently it's no longer stored in C:\Program Files\Lotus\Notes\Data. After some searching I found it here: C:\Users\[UserName]\AppData\Local\VirtualStore\Program Files\lotus\notes\data><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-3390576815689643307?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com0tag:blogger.com,1999:blog-26775512.post-44013247419011729302008-10-24T23:42:00.004+02:002008-10-24T23:58:02.646+02:00Convert Accented Characters to ASCIIIt is pretty simple in .NET to <span style="font-weight: bold;">convert Western Unicode (non-ASCII, accented, diacritics) to ASCII</span>, but regardless I had a hard time figuring it out it so I'm posting here for my own future reference.<br /><br />Dim strTest as String = "Any string containing accented characters, e.g. åäöéèêÅÄÖÉÈÊ"<br />strTest = System.Text.Encoding.ASCII.GetString(System.Text.Encoding.GetEncoding(1251).GetBytes(strTest))<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-4401324741901172930?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com0tag:blogger.com,1999:blog-26775512.post-40731900879616302882008-10-18T16:26:00.004+02:002008-12-28T05:48:10.838+01:00Looking for Credential Tiles hangs Remote DesktopOn my new Acer TravelMate 5530G I run Windows Vista Home Premium. I use Windows Remote Desktop Connection (RDC) to connect to my server which has been working just fine.<br /><br /><span style="font-weight: bold;">But this weekend after setting up a new </span><span style="font-weight: bold;">Windows 2008 server and trying to connect to it, RDC shows a dialog "Looking for Credential Tiles". The dialog is up for ever and if I click cancel instead of getting a login screen RDC hangs and I have to shut it down from the Task Manager.</span><br /><br /><span style="font-weight: bold;">The workaround seems to be to enter the correct credentials into Vistas Advanced User Accounts panel</span> (I later changed password on my server and had the same problem all over again)<br /><br />This solution is thanks to Denz and can be found as a comment to <a target="_blank" href="http://blogs.msdn.com/ts/archive/2007/01/22/vista-remote-desktop-connection-authentication-faq.aspx">this Terminal Services Team blog post</a><br /><br /><blockquote><br />1. Type control userpasswords2 into the Start menu search box and hit Enter<br /><br />2.On the resulting User Accounts screen, click on the Advanced tab and then click the Manage Passwords button<br /><br />3. On the Stored User Names and Passwords window, click Add button<br /><br />4. On the Log on to: Type the IP of your server or the Server name, and user name and password<br /><br />5. Denz instructions says to choose "A Windows Logon Credential" but this option is greyed out for me. However "A web site or program credential" works fine too<br /></blockquote><br /><br />Denz and others also have Acer TravelMate laptops (but other models than me) so my theory is that this is a problem with the Acer software that comes with their laptops. Maybe the Bio protection software (fingerprint scanner).<br /><br /><span style="font-style: italic;">[Update: I can confirm that the problem is related to the Acer fingerprint software. After uninstalling Acer Bio Protection ATU the issue is solved. I had Acer Bio Protection ATU version 6.0.00.16 installed which is the latest version available from Acer at this time]</span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-4073190087961630288?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com4tag:blogger.com,1999:blog-26775512.post-72191051876403319122008-08-27T09:45:00.005+02:002008-08-27T10:11:57.050+02:00Copy Outlook SignaturesI just got a new laptop running Vista so I wanted to backup and transfer all my Outlook signatures from my old XP laptop. Both are running Outlook 2007.<br /><br /><span style="font-weight:bold;">Outlook 2007 Signature file locations in Windows Vista and XP:</span><br /><br />Vista: <br />%USERPROFILE%\AppData\Roaming\Microsoft\Signatures <br />(usually C:\Users\<username>\AppData\Roaming\Microsoft\Signatures)<br /><br />XP: <br />%USERPROFILE%\Application Data\Microsoft\Signatures<br />(C:\Documents and Settings\<username>\Application Data\Microsoft\Signatures)<br /><br />From that directory, just copy everything to your new computer.<br /><br />I also wanted to transfer my POP3 account settings, but as of Outlook 2007 you can no longer do that :( Don't ask me why Microsoft decided to remove this feature. There seems to be various workarounds and 3rd party tools but I chose to just enter my 10 POP3 accounts all over again.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-7219105187640331912?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com0tag:blogger.com,1999:blog-26775512.post-27720207655350693632008-06-24T14:42:00.000+02:002008-06-24T14:43:24.062+02:00Punycode in VB.NET for IDN domains<span style="font-weight:bold;">On one of my web sites I noticed that <a target="_blank" href="http://en.wikipedia.org/wiki/Internationalized_domain_name">IDN (Internationalized Domain Names)</a> don't work when I do Response.Redirect in VB.NET.</span><br /><br />IDNs are used to allow accented and other special international characters (non-Ascii) to be used in domain names. Since Domain Name Servers (DNS) only support <a target="_blank" href="http://en.wikipedia.org/wiki/Ascii">Ascii</a>, any IDN is encoded in <a target="_blank" href="http://en.wikipedia.org/wiki/Punycode">Punycode</a>.<br /><span style="font-weight:bold;"><br /><br />To encode a string as Punycode in VB.NET simply do this:</span><br /><br /><blockquote>Dim strUrl As String = "http://idn-example-åäö.com"<br />Dim idn As System.Globalization.IdnMapping = New System.Globalization.IdnMapping<br />strUrl = idn.GetAscii(strUrl)</blockquote><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-2772020765535069363?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com0tag:blogger.com,1999:blog-26775512.post-9971771409803981532008-06-18T08:06:00.006+02:002008-06-24T14:58:41.847+02:00Firefox 3 - huge security hole!?I just downloaded the new <a target="_blank" href="http://www.firefox.com">Firefox 3</a> and after using it for five minutes my first impression is that it's super fast.<br /><br /><span style="font-weight:bold;">But during these five minutes I already found what to me seems like a huge security flaw:<br /><br />Click on the site icon in the address bar + click More Information button + click Show Passwords button. This will show any passwords you have saved for a site in clear text!<br /><br />This means for example that if I borrow a friend's computer I will be able to see his or hers stored usernames and passwords in clear text.</span><br /><br />How many normal users will know about this security hole when they select to have firefox remember their username and password? Not many.<br /><br />I have not played around with FireFox 3 long enough to see if there is a way to turn this feature off, but by default it is obviously on.<br /><br />This does not seem thought thru at all...<br /><br />Ps: I have no idea how passwords are stored in the file system in FF2 or FF3 but I always supposed that it was somehow encrypted but maybe it has always been in clear text?<br /><br /><br /><span style="font-style:italic;">[Update:<br /><br />I have now been told and checked that it also worked like this in FF2 only that you had to go to Tools + Options + Security to see them. To prevent others from seeing your passwords you should set a Master Password from Tools + Options + Security. <br /><br />I have not yet examined the file system but from what I have read passwords are encrypted and stored in two files: key3.db and signons.txt.<br /><br />From a quick look in Internet Explorer 7 I cannot find my stored passwords anywhere so it seems this is handled more securely there. But maybe it's there only I cannot find it? I ran Firefox 2 for a long time without noticing my passwords were available for anyone using my computer to see...<br /><br />In my opinion this is still a huge security hole and I cannot understand why Firefox works this way. The least I would expect would be a clear warning every time you are asked to store a password (without having your Master Password set) ]</span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-997177140980398153?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com1tag:blogger.com,1999:blog-26775512.post-59589683995493242672008-05-28T11:34:00.007+02:002008-05-28T12:22:38.984+02:00Duplicates using ActiveSync and PC Suite from Sony EricssonToday I connected my z770 cell phone to my Windows Vista PC with the non-included USB cable.<br />In the manual it says it should be included but to the manual there is also a single-sheet addendum correcting the "typo" in the manual: "using the included USB cable" should read "using a USB cable" etc. :)<br /><br />Anyway, I have been syncing with ActiveSync which does an ok (not great) job at syncing email, contacts and calendar. <span style="font-weight:bold;">But ActiveSync in Sony Ericsson world is only for syncing OTA (Over the Air). To Sync with your PC you need to use <a target="_blank" href="http://www.sonyericsson.com/cws/support/products/softwaredownloads/z770i?cc=se&lc=sv">Sony Ericsson's synchronization software - PC Suite</a>.</span> <br /><br />First of all you have to <a target="_blank" href="http://www.sonyericsson.com/cws/support/products/software/z770i/sonyericssonpcsuite320700en?cc=se&lc=sv">download</a> it because there is no CD included. I don't mind that because I always want to download the latest version anyway, but I found it a bit strange that no CD was there. But then again there was no USB cable either.<br /><br />I have owned Sony Ericsson phones before and I was a bit skeptical to installing their software because it has made my computers behave strange in the past. But besides that the installation program seemed to be in a 30 minutes long endless loop installing drivers before I shut it down, it seems to be working fine.<br /><br />When starting to sync I got questions asking me (I guess I should be happy it at least asks) to confirm whether entries are the same. There was no way to cancel so instead of clicking Yes or No, I hit Escape which closed the window and I thought would be the same as "skip" but when I finally succeed in hitting Cancel on the background window it turns out <span style="font-weight:bold;">lots of duplicate entries have been created in my Contacts and Calendar in Outlook. It also seems that for each Contact where I have entered a birthday a duplicate birthday entry is created in my calendar. :(</span><br /><br /><span style="font-weight:bold;">Contacts</span><br />On Contacts Active Sync have synced not the Email address field but the Display as field, e.g. Email contains "bill.gates@microsoft.com" and the Display as "Bill Gates (bill.gates@microsoft.com)". <br />This I have already noticed because when you try to send an email to a contact with multiple email addresses from your phone it gets very difficult to select email address because the screen only shows the first x characters. But PC suite sync on the email address field and therefore gives you the question for each entry if it is the same or not. <br />I guess a solution for contacts could be to change Outlook settings to only show email address in the Display as field and then change it in your existing contacts, but I have not tried this.<br /><br /><span style="font-weight:bold;">Calendar</span><br />Just as on Contacts there seem to be a difference between ActiveSync and PC Suite when syncing Calendar. The fields Notes and Classification (internal field?) are handled differently.<br /><br /><span style="font-weight:bold;">Email</span><br />PC Sync don't sync email at all for some reason so there is no problem here.<br /><br />I called the Sony Ericsson help line and the person I spoke with seemed surprised I even tried to sync with both ActiveSync and PC Suite, "I advice you not to do that".<br /><span style="font-weight:bold;">So basically there seems to be no plans to fix this and the workaround is to sync your stuff either with Active Sync or PC Suite.</span> <br /><br />Since you can check what things to sync where you can for example select to sync only email with Active Sync and the rest with PC Suite.<br />With ActiveSync you have the options to sync Email, Calendar and/or Contacts.<br />With PC Suite you have the options to sync Calendar, Contacts, Tasks, Notes and/or Bookmarks.<br /><br />I miss my Windows Mobile phone...<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-5958968399549324267?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com2tag:blogger.com,1999:blog-26775512.post-34014303103542846472008-05-16T15:52:00.002+02:002008-05-16T15:57:46.018+02:00UFOs - I love this stuffI just read in Swedish techie newspaper <a target="_blank" href="http://www.nyteknik.se/efter_jobbet/smatt_gott/article353586.ece">Ny Teknik</a> that British Department of Defense has released all their previously secret UFO reports since 1978. They have now made them <a target="_blank" href="http://ufos.nationalarchives.gov.uk/">publicly available on the web</a> because all requests for them amounted to too much xeroxing work... :)<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-3401430310354284647?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com0tag:blogger.com,1999:blog-26775512.post-31749748117085059632008-05-15T16:19:00.005+02:002008-05-15T16:48:32.118+02:00Exchange Session Failed Communication InterruptedYesterday I went ahead and bought the new <a target="_blank" href="http://www.sonyericsson.com/cws/products/mobilephones/overview/z770i">Sony Ericsson z770i</a> that <a target="_blank" href="http://www.tjitjing.com/blog/2008/04/find-active-sync-mobile-phone.html">I blogged about some time ago</a>. I have been waiting a few weeks to get it in black instead of silver and during that time they announced another model - <a target="_blank" href="http://www.sonyericsson.com/cws/products/mobilephones/overview/z780i">z780i</a> - that should be all that the z770i is but also with a built in GPS. It seems there is always another model being announced, so even if I would have preferred the z780i I wasn't prepared to wait any longer. I also hear that it will not be sold on the Swedish market for some reason (maybe because they just started shipping the z770)<br /><br />Last night after I put the children to bed I played around with it and tried to get ActiveSync to work. <span style="font-weight:bold;">I filled out the info in the Synchronization settings and connected but only got "Exchange Session failed Communication interrupted" (or since I have Swedish selected as language: "Exchange Sessionen misslyckades Kommunikationen avbröts")</span><br /><br />I searched the <a target="_blank" href="http://www.sonyericsson.com/cws/support/products/knowledgebase/z770i">Sony Ericsson Support Knowledge base</a> - not a single hit for neither Exchange, ActiveSync nor Active Sync! :(<br /><br />Thanks to Google and <a target="_blank" href="http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2290287&SiteID=17">this thread by dmwood at Microsoft Technet</a>, Goran at my <a target="_blank" href="http://www.gns.se">Hosted Exchange 2007 provider</a> managed to solve this for me late last night. <span style="font-weight:bold;">In my Hosted Exchange Control Panel the ActiveSync Policey "Allow Non-provisionable devices" was unchecked. Once Goran checked that option for me everything started to work. Thanks Goran for working late and helping me out!</span><br /><br />I also sent an email to Sony Ericsson support and this is their reply this morning:<br /><br /><blockquote>Confirm with your IT staff that device security settings on the server allow access to devices that do not fully support password settings. This option is available in: <br /><br />Exchange System Manager > Global Settings > Mobile Services > Device Security <br /><br />If this checkbox was unchecked, you will get a connection failed, although a Windows Mobile device would still sync properly.<br /><br />The following security settings are supported:<br />Wipe: PIM data and settings are supported.<br />Exchange 2003 Device security Settings: NOT supported.<br />Exchange 2007 Additional Security settings: NOT supported.<br /></blockquote><br /><br />I will probably get back with a post on the differences between using Windows Mobile ActiveSync and non-Windows Moible/Sony Ericsson ActiveSync, there are a few.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-3174974811708505963?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com0tag:blogger.com,1999:blog-26775512.post-22263545107294496772008-04-28T12:28:00.005+02:002008-04-28T12:43:07.129+02:00Office 2003 menu in Office 2007 ribbon?I know Microsoft says that the new <a target="_blank" href="http://office.microsoft.com/en-us/products/HA101679411033.aspx">Office 2007 ribbon</a> is more productive than the old menus. I for one don't buy it, I still spend way too much time in Word or Excel 2007 trying how to figure out how to do the simplest thing that I've always known how to do in previous versions...<br /><br /><span style="font-weight:bold;">I have yet to find the function where you turn on the old Office 2003 menus in Office 2007 but I have finally found the next best thing - the reference that maps Office 2003 menu commands to the Office 2007 ribbon!<br /><br /><a target="_blank" href="http://office.microsoft.com/assistance/asstvid.aspx?assetid=XT101493291033&vwidth=1044&vheight=788&type=flash&CTT=11&Origin=HA101491511033">Excel 2003 to 2007 version here</a> and <a target="_blank" href="http://office.microsoft.com/assistance/asstvid.aspx?assetid=XT100766331033&vwidth=1044&vheight=788&type=flash&CTT=11&Origin=HA100744321033">Word 2003 to 2007 version here</a></span><br /><br />Bookmarked, blogged and to be used many times!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-2226354510729449677?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com0tag:blogger.com,1999:blog-26775512.post-47674163013619276132008-04-18T10:20:00.006+02:002008-04-18T11:13:23.780+02:00Find an Active Sync Mobile Phone<span style="font-weight: bold;">How do you find a new cell phone that can sync well with Exchange?</span><br /><br />I love my <a target="_blank" href="http://www.htcwiki.com/page/Qtek+8500">Qtek 8500 (HTC StrTrk)</a>. Even though it has now been over two years since I first got it I haven't been able to find anything like it to replace it. And it needs to be replaced. Not only because I like new gadgets but also because the front panel came off and I had to glue it back on myself, the extra memory card has stopped working, the signal fails all the time, it hangs and last week a sat on it so the external display is now broken.<br /><br /><span style="font-weight: bold;">So what's so great about it? I would say three things</span><br /><ul><li>Exchange synchronization, i.e. Email, Calendar, Contacts and Tasks</li><li>The small clam shell/flip flop form factor. Before this phone I had never had one but now I would never want to go back</li><li>Windows Contacts navigation - I love the way results show up as you type. This must be a Microsoft patent as no one else uses this great navigation/look up functionality</li></ul>Why is it so hard to find a replacement? Well, first of all I want it to be a Windows Mobile which directly limits the choice. Then add that I want it to be clam shell and this limits the choice to almost nothing.<br /><br />There has been rumors of a 8500 successor, a 3G version - <a target="_blank" href="http://pdadb.net/index.php?m=specs&id=727">the HTC S420 Erato</a>. But the rumor has been going for over a year and the expected release date has been postponed time after time after time... And there is yet to be an official announcement from <a target="_blank" href="http://www.htc.com/">HTC</a>.<br /><br /><span style="font-weight: bold;">So, I have decided to give in on it having to be a Windows phone as long as it has good Exchange Synchronization. <br /><br />But why is it so hard to find out what phones are Windows Mobile or support Active Sync?</span><br /><br /><ul><li>On <a target="_blank" href="http://www.microsoft.com/windowsmobile/devices/default.mspx">Microsoft's Windows Mobile Homepage </a>you can search for devices but it is far from complete (at least for Sweden)</li><li>Samsung have Windows Mobile phones, but I cannot find a way to find out which from <a target="_blank" href="http://www.samsung.com/se/products/mobil/index.asp">their home page</a> (Swedish market)<br /></li><li><a target="_blank" href="http://www.nokia.com">I know Nokia</a> has phones with Active Sync but how can I find out which?</li><li>It is the same with <a target="_blank" href="http://www.sonyericsson.com">Sony Ericsson</a>, they have Active Sync support for some phones, but how can I find them? They have also announced their first Windows Mobile phone, the <a target="_blank" href="http://www.sonyericsson.com/cws/products/mobilephones/overview/x1">Xperia X1</a> which should be available later this year.</li></ul>I emailed Sony Ericsson and got a reply where they in fact confirm that this information cannot be found for all models on their home page. But they also gave me a list of current phones with Active Sync:<br /><ul><li><a target="_blank" href="http://www.sonyericsson.com/cws/products/mobilephones/overview/p1i">P1</a></li><li><a target="_blank" href="http://www.sonyericsson.com/cws/products/mobilephones/overview/w960i">W960</a></li><li><a target="_blank" href="http://www.sonyericsson.com/cws/products/mobilephones/overview/w890i">W890</a></li><li><a target="_blank" href="http://www.sonyericsson.com/cws/products/mobilephones/overview/w910i">W910</a></li><li><a target="_blank" href="http://www.sonyericsson.com/cws/products/mobilephones/overview/k850i">K850</a></li><li><a target="_blank" href="http://www.sonyericsson.com/cws/products/mobilephones/overview/k660i">K660</a></li><li><a target="_blank" href="http://www.sonyericsson.com/cws/products/mobilephones/overview/z770i">Z770</a></li></ul>That last one - the z770 - looks like something I might actually want.<br /><br /><span style="font-weight: bold;">The only question that remains - is Active Sync on other brands as good as it is on Windows Mobile?</span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-4767416301361927613?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com1tag:blogger.com,1999:blog-26775512.post-20743289668383157872008-02-29T15:06:00.004+01:002008-02-29T15:30:22.650+01:00Import Excel Data into MySQL in 5 Easy StepsThis is probably nothing new to many, but I spent quite some time to figure it out so I thought I'd post my notes on it.<br /><br /><span style="font-weight: bold;">To import data from Excel (or any other program that can produce a text file) is very simple using the <a target="_blank" href="http://dev.mysql.com/doc/refman/5.0/en/load-data.html">LOAD DATA command</a> from the MySQL Command prompt.</span><br /><ol><li>Save your Excel data as a csv file (In Excel 2007 using Save As)</li><br /><li>Check the saved file using a text editor such as Notepad to see what it actually looks like, i.e. what delimiter was used etc.</li><br /><li>Start the MySQL Command Prompt (I'm lazy so I usually do this from the <a target="_blank" href="http://www.mysql.com/products/tools/query-browser/">MySQL Query Browser</a> - Tools - MySQL Command Line Client to avoid having to enter username and password etc.)</li><br /><li>Enter this command:<br />LOAD DATA LOCAL INFILE 'C:\\temp\\yourfile.csv' INTO TABLE database.table FIELDS TERMINATED BY ';' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' (field1, field2);</li><br /><li>Done!</li></ol><br /><span style="font-weight: bold;">Very quick and simple once you know it :)</span><br /><br /><br />Some notes from my own import - may not apply to you if you run a different language version, MySQL version, Excel version etc...<br /><ul><li>TERMINATED BY - this is why I included step 2. I thought a csv would default to comma separated but at least in my case semicolon was the deafult</li><br /><li>ENCLOSED BY - my data was not enclosed by anything so I left this as empty string ''</li><br /><li>LINES TERMINATED BY - at first I tried with only '\n' but had to add the '\r' to get rid of a carriage return character being imported into the database</li><br /><li>Also make sure that if you do not import into the primary key field/column that it has auto increment on, otherwhise only the first row will be imported</li></ul><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-2074328966838315787?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com14tag:blogger.com,1999:blog-26775512.post-14052460506150266282008-02-06T10:19:00.000+01:002008-02-06T10:51:40.097+01:00Facebook Photos to your Windows Mobile Cell PhoneI just stumbled over this cool tool - <a target="_blank" href="http://www.melsam.com/outsync/default.aspx">OutSync</a> - from Mel Sampat who's a Windows Mobile Program Manager at Microsoft. <br /><br /><span style="font-weight:bold;">It allows you to sync the photos of your <a target="_blank" href="http://www.facebook.com">Facebook </a>contacts to Outlook and then on to your Windows mobile cell phone (or other phone if you have sync software that synchronizes photos)</span><br /><br />I always wanted to have some photos in Outlook and my phone but never really got around to trying it out. Also it would be too much work to get photos of everyone but this tool solves that quite nicely - at least if you use Facebook.<br /><br />It's easy to install and worked right away for me on my Vista and Outlook 2007 setup.<br /><br />There are some things that I would like to see improved, mainly that it only matches on name so your contact has to have the exact same spelling in Outlook as in Facebook. It should be able to match on email (but I think the problem here is that the Facebook API does not allow this) or let you do a manual match. A feature that is listed as "coming soon" is birthday synchronization.<br /><br />I also wish there was a similar tool for syncing Outlook and Live Messenger, but maybe there already is?<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-1405246050615026628?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com0tag:blogger.com,1999:blog-26775512.post-57854088648966451282008-01-04T14:41:00.000+01:002008-01-04T15:26:32.955+01:00Partial Restore of Mysqldump BackupJust recently I started making backups of my MySQL databases using <a target="_blank" href="http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html">mysqldump</a>.<br />I have a small batch/command file running on my Windows based MySQL Server, scheduled to every night backup all of my databases to a file named backup_all_dbs.sql:<br /><br /><blockquote>"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqldump" --all-databases -u username --password="password" > c:\backup\%DATE%\Backup_MySQL\backup_all_dbs.sql</blockquote><br /><br />A few weeks ago I finally upgraded my MySQL server from 4.1 to 5.0. For once I did <a target="_blank" href="http://dev.mysql.com/doc/refman/5.0/en/upgrade.html">everything by the book</a> which included backing up all my databases using the backup tool in MySQL Administrator, installing the new server version and then restoring all databases.<br /><br />Today however I just realized that somehow two tables in one of the databases did not get backed up and hence not restored. Fortunately I still had the nightly backup from the day before upgrading. <br /><br /><span style="font-weight:bold;">So I thought I'd just do a selective restore from the mysqldump file using MySQL Administrator (<a target="_blank" href="http://dev.mysql.com/downloads/gui-tools/5.0.html">part if the MySQL GUI Tools</a>) Turns out MySQL Administrator does not read files created with mysqldump.<br />And worse: a quick Google reveals that mysqldumps cannot be partially restored :(</span><br /><br />My next couple of hours I spent installing and uninstalling various text editors that could open my 500+MB backup file from mysqldump. I finally found one that could, even though it took a while... (using a Windows Vista machine with 2GB RAM) - <a target="_blank" href="http://www.notetab.com">NoteTab Light 5.5</a> (freeware)<br /><br />Using this I opened the backup file created with mysqldump and sure enough it was a text file containing SQL statements (too bad MySQL Administrator could not open it, hopefully it will in a future version). <br />I simply deleted the SQL statements for all databases except the one I wanted to partially restore. Then I restored it on my development machine using this command:<br /><br /><blockquote>"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysql.exe" -uusername -p dbname < c:\backup\2007-12-13\backup_all_dbs.sql</blockquote><br /><br />Important note: If you have backed up full databases (not just tables) then it seems the dbname parameter doesn't matter, it still restores to the original database name - lucky me I did it on my development machine!<br /><br />After the restore I did a partial backup using MySQL Administrator. Moved that backup file to my production server and did a restore using MySQL Administrator on that machine. Voìla!<br /><br /><br /><span style="font-weight:bold;">So, to sum up:<br />1) Open your dump file in a large file text editor and delete everything except what you want to restore.<br />2) On a non-production machine (recommended) do a restore.<br />3) Make a partial backup using MySQL Administrator from your non-production machine<br />4) Restore the partial backup using MySQL Administrator on your production server. </span><br /><br />Job done, finally I can get back to work!<br /><br />Of course you can skip step 2 and 3 (and/or just restore the specific tables you want) if you like living dangerously ;)<br /><br />Happy New Year!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-5785408864896645128?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com3tag:blogger.com,1999:blog-26775512.post-66724221124876779702007-10-15T08:48:00.000+02:002007-10-15T09:31:48.153+02:00IE7 performance problemsI have been having some serious performance problems with my Windows XP laptop the last 6+ months. This is a few years old machine, 1GB RAM and Celeron processor.<br />I did a lot of upgrading around that same time - Office 2007 incl. Groove 2007 and the new Desktop Search and also upgraded to Internet Explorer 7 (IE7). Ever since, I've been trying to figure out which upgrade is draining my performance (or if it was just time for the annual Windows format at reinstall...)<br /><span style="font-weight:bold;">They are all great upgrades feature wise but I wish Microsoft would focus a bit more on performance and not only features.</span><br /><br /><span style="font-weight:bold;">A few weeks back I switched from IE7 to <a target="_blank_" href="http://www.firefox.com">Firefox 2</a> as my default browser and almost all of my performance problems are gone!</span><br /><br />On my Vista machine I have had a problem with IE7 that when a popup window opens IE7 crashes. I haven't researched this enough but I get a feeling that this occurs when using javascript to open a new window.<br />Changed from IE7 to Firefox 2 on my Vista machine too and problem gone. No big change in performance on this machine though.<br /><br />One thing I like about Firefox is the crash recovery feature - if Windows crashes (Firefox itself has not yet crashed on me) or your laptop runs out of batteries etc, when you restart Firefox it asks you if you want to restore all tabs the way they were before the crash. Excellent feature!!<br /><br />One thing I dislike - or at least have not yet learned to like - is the way Firefox handles drop down menus. In IE I am used to just type the first few letters of whatever I want to navigate to in the drop down. Then I can navigate using the keyboards up and down arrow to navigate the previous or next entry in the list. This keyboard navigation does not work in Firefox, I have to use the mouse to scroll up and down in the list. Also it's not enough to select an entry in the list to trigger changes to the page (Javascript onBlur not triggered?) but I have to either hit the Enter key or navigate to another field.<br />Also Firefox does not seem to be able to open pdf files/Acrobat Reader in a browser window which is a bit annoying.<br /><br /><span style="font-weight:bold;">Anyway so far there are more positive things than negative with Firefox and I'm happy I finally made the move from IE.</span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-6672422112487677970?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com1tag:blogger.com,1999:blog-26775512.post-1172514800276519762007-07-27T07:21:00.000+02:002007-08-14T08:38:33.223+02:00Outlook Consumes 100% CPU and Stuck at 99% Send/Recieve<strong>For a long time I had a problem where my Outlook client would get stuck at 99% Send/Recieve and at the same time consume 100% (or as much as it can) CPU. </strong><br /><br />I have two different computers (XP and Vista) running Outlook 2007 against Exchange 2007 (Hosted Exchange) wich had the exact same problem.<br /><br />When I looked at the Send/Recieve Details it usually said something like "Synchronizing Hierarchy" or just "Updating Inbox". If I did Cancel Send/Recieve the CPU went down to normal.<br /><br />After looking at the Synchronization Log messages in the Sync Issues folder I found a zillion messages like this:<br /><br />08:46:56 Synchronizer Version 12.0.4518<br />08:46:56 Synchronizing Mailbox 'Max Flodén'<br />08:46:56 Synchronizing Hierarchy<br />08:47:09 Synchronizing server changes in folder 'Inbox'<br />08:47:09 Downloading from server 'ex2.myisp.se'<br />08:48:02 69 item(s) added to offline folder<br />08:48:04 Synchronizing server changes in folder 'Deleted Items'<br />08:48:04 Downloading from server 'ex2.myisp.se'<br />08:48:05 Done<br /><span style="color:#ff0000;">08:48:20 Microsoft Exchange offline address book<br />08:48:20 Not downloading Offline address book files. A server (URL) could not be located.<br />08:48:20 0X8004010F</span><br /><br />So, the problem seemed to be with the <a target="_blank" href="http://technet.microsoft.com/en-us/library/bb232155.aspx">Offline Address Book (OAB)</a>.<br /><br /><strong>To make a long story short - after working back and forth with my Hosted Exchange ISP, Googling, creating and recreating Outlook profiles etc - the solution turned out to be that I needed to add a DNS entry for my domain in order for Outlook to <a target="_blank" href="http://technet.microsoft.com/en-us/library/bb124251.aspx">Autodiscover</a> which was the problem all along.</strong><br /><br /><span style="font-family:courier new;">Autodiscover CNAME autodiscoverredirect.myisp.se</span><br /><br />After adding this DNS entry for my domain it did not even take a minute before I got a dialog box asking me "Allow this website to configure max.floden@mydomain.se server settings?"<br /><br /><a target="_blank" href="http://www.tjitjing.com/blog/uploaded_images/oab-775162.gif"><img style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://www.tjitjing.com/blog/uploaded_images/oab-725765.gif" border="0" /></a><br /><strong>And that was it - no more stuck at 99% and no more Outlook consuming all CPU. Finally!</strong><br /><br /><em>[Update: Found a Microsoft Knowledge Base article that describes this in more detail: <a target="_blank" href="http://support.microsoft.com/?kbid=940881">A new feature is available that enables Outlook 2007 to use DNS Service Location (SRV) records to locate the Exchange Autodiscover service</a> ]</em><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-117251480027651976?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com1tag:blogger.com,1999:blog-26775512.post-34899611600643316522007-07-25T17:59:00.000+02:002007-07-25T22:07:48.668+02:00Word as Editor in Lotus NotesI have just started a new project at <a target="_blank" href="http://www.openntf.org">OpenNTF</a>, the Lotus Notes Open Source community.<br /><br />The base is a project that I in part developed together with <a target="_blank" href="http://www.skf.com">SKF</a> about 18 months ago. Thanks to SKF and Gunilla Darrell for agreeing to donate this code to the OpenNTF community.<br /><br /><strong>The aim was to enhance current functionality when using Word as editor in Notes and be able to use Microsoft Word 2003 functionality such as the <a target="_blank" href="http://office.microsoft.com/en-us/help/HP010002811033.aspx">Research Pane</a> and <a target="_blank" href="msdn.microsoft.com/office/tool/smarttags/default.aspx">Smart Tags</a> (but also simpler things such as the spell checker) to boost user productivity.</strong> <br />Other practical things were addressed, for example that in current functionality Notes sends an email created with Word both as Rich Text and as an OLE object which increases email size by a factor 10-100.<br /><br />There is one Word as Editor template for <a target="_blank" href="http://www.openntf.org/projects/pmt.nsf/ProjectLookup/OpenNTF%20Mail%20Experience">OpenNTF Mail Experience</a> and one for standard R6 mail.<br /><br />Notes uses <a target="_blank" href="http://msdn2.microsoft.com/en-us/library/aa171170(office.11).aspx">OLE Automation</a> for it's Word integration and this of course has its limitations. I did manage to work around many of them but I'm sure others will emerge that will need to be addressed. <br /><br />Development was done using Microsoft Word 2003 and Lotus Notes 6.<br />Notes 7 and <a target="_blank" href="http://www-142.ibm.com/software/sw-lotus/products/product4.nsf/wdocs/notesdomino8">Notes 8 (currently in public beta)</a> together with <a target="_blank" href="http://office.microsoft.com/en-us/word/CH101030941033.aspx">Word 2007</a> will with all certainty add new possibilities yet to be explored.<br /><br />I hope other organizations will find the project interesting and maybe even useful :)<br /><br />I am looking for an OpenNTF "co-chef" for this project as I currently don't have that much time to spend on it. Let me know if you want to contribute to this project.<br /><br /><a target="_blank" href="http://www.openntf.org/projects/pmt.nsf/ProjectLookup/Word%20as%20Editor">Click here for the Word as Editor projects homepage at OpenNTF.</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-3489961160064331652?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com0tag:blogger.com,1999:blog-26775512.post-73641249700086003472007-07-25T17:33:00.000+02:002007-07-25T17:39:41.627+02:00New blog designFor you who have visited before you will notice that I've changed my blog design from an all grey to all white...<br /><br />It's difficult to change and find design templates for <a target="_blank" href="http://www.blogger.com">Blogger</a>. I'm thinking maybe I picked the wrong blog system and should have chosen <a target="_blank" href="http://www.wordpress.com">Word Press</a> or one of the others instead.<br /><br />I've spent the last hour trying to get my new template to work. I did not realize I had made that many changes to my old template. I went in to the office today even though I'm on holiday to do some important "can't wait" stuff and this is what I spend my time doing. And it's not even the template I want. I wanted one of these cool designs where the comments pop up like in the comic books.<br /><br />Well, I guess I'll just have to keep searching.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-7364124970008600347?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com1tag:blogger.com,1999:blog-26775512.post-68580961668576804352007-07-25T15:28:00.000+02:002007-07-25T16:13:16.936+02:00Outlook and outgoing SMTP serversI have just moved and changed my ISP to one that not only blocks port 25 but also only allows their SMTP relay server to be accessed from within their own network.<br /><br /><strong>When I'm at home with my laptop I have set my outgoing SMTP server as smtp.myhome-isp.com and all is fine. But when I want to work out of my office I have to change it (for all my seven accounts) to smtp.myoffice-isp.com.</strong><br /><br />I looked and asked around for some smart solution to this problem but found none except the advice to setup my own mailserver or subscribe to a mailserver service.<br /><br /><strong>So, I did the same thing that I did years back when I had the same ISP (and the same problem) - I created two hosts files where I put the IP adresses to respective ISP's SMTP relay servers.</strong> (The hosts file is where your computer goes before it goes out to the DNS to lookup an ip adress.)<br /><ol><li>Goto c:\windows\system32\drivers\etc and make two copies of the hosts file and call them for example hosts.myhome-isp and hosts.myoffice-isp</li><br /><br /><li>Edit the files and add an entry to each file for your home and office isp's SMTP relay servers and add the hostname as mailout. You have to enter the IP address of the SMTP relay server (eg 10.10.10.1 not smtp.myhome-isp.com) if you don't know it do a ping or nslookup to find out.</li><br /><br /><li>On the desktop (or a location of your choice) create two new batch files, eg. MyHome ISP SMTP.cmd and MyOffice ISP.cmd and add these three lines of code to each:<br /><br />cd c:\windows\system32\drivers\etc\<br />copy hosts.myhome-isp hosts<br />pause<br /><br />(Line two above should read "copy hosts.myoffice-isp hosts" for MyOffice ISP.cmd) </li><br /><br /><li>In Outlook set outgoing SMTP server to mailout</li></ol><br />Whenever you move from home to the office run MyOffice ISP.cmd and vice versa. It may not be the ultimate solution but it works (at least for Outlook 2003 and 2007)<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-6858096166857680435?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com1tag:blogger.com,1999:blog-26775512.post-78650386176833863152007-04-19T00:31:00.000+02:002007-04-19T01:47:53.685+02:00Windows DNS fails with SPF/TXT too longI run my own DNS for some of my domains. My primary DNS is the built-in DNS service in Windows 2003 SP1 and as backup/secondary DNS I'm using a free service from <a target="_blank" href="http://www.twisted4life.com">Twisted4Life</a>. I've been using SPF for a couple of years and it has been working fine.<br />(<a target="_blank" href="http://www.openspf.org/">SPF - Sender Policy Framework</a> - is way to prevent spam by entering into your DNS what SMTP servers are allowed to send email for your domain. Some email systems such as Hotmail rely in part on SPF when deciding if your email should be placed in the recipients Inbox or Junk mail folder.)<br /><br />My ISP has been recommending me to use a new SMTP server when sending out email from one of my email lists. So two days ago I added a few new SMTP servers to my SPF record in my DNS (by updating the DNS file in my \Windows\System32\DNS directory and then doing Reload from the DNS console, dnsmgmt.exe) A quick look and everything seemed just fine.<br /><br />Normally when sending my email list, which contains a bit over 20k recipients, it takes about 10-20 minutes to actually send the batch and then during the next 10 minutes I get about 4-500 error emails telling me stuff like "user is over quota", "no such user" (I use these to clean my email list after each batch).<br />This time I only got about 15 error messages per hour and it took 36 hours before all had arrived in my inbox! <br />During this 36 hour period I called my ISP and told them there has to be something wrong with the new SMTP server that they had recommended I switch to. I also did send a test batch using the old SMTP server and it was lightning fast as always.<br /><br />Today I noticed that I had not recieved any emails from a colleague who is using another email system than me. He told me that he sent me several emails yesterday and this morning and had not recieved any error messages. I told him to call his ISP because my email was working fine, I had emailed back and forth with several people and had no problem.<br /><br />Then this evening it struck me - I had completely forgot that I made changes to my DNS records. Could I have put something wrong in my SPF records? But why would that effect my incoming email?<br /><br /><strong>First I just did a nslookup using <a target="_blank" href="http://centralops.net">centralops.net online nslookup</a>. This tool reported "Name server failed" for my domains! I quickly tried <a target="_blank" href="http://network-tools.com/">another online nslookup tool from network-tools.com</a> and this tools reported no errors, it worked fine.</strong><br /><br />I went in to my server and opened the DNS console. And there, on the line showing the TXT record I use for my SPF string there was a blank space about ten characters into the string, in the middle of one of my SMTP server entries. At the end of the string there was some kind of special character, represented by a "square box". I then looked at the DNS data file at \Windows\system32\DNS but that still looked exactly like it should, without any blank spaces or special characters. Strange...<br /><br />I then updated the data file from the DNS console (instead of the other way around that I usually do). <br />When I checked the DNS data file, my TXT record was split into several lines, with line breaks between them, each line starting and ending with a quotation mark. However some characters were missing at the line breaks so I reverted back to the original errornous case, ie where the DNS data file looks fine but in the DNS console there is a blank space and a special character.<br /><br />Then I went to <a target="_blank" href="http://www.kitterman.com/spf/validate.html">kitterman.com's SPF validation tool</a> to validate my SPF string. The actual string validated fine. But then, using the same tool, I asked it to validate my domain using a DNS lookup it failed.<br /><br /><strong>Finally, I deleted a few old SMTP servers from my SPF string in the DNS data files and did Reload on the DNS console. Ran my checks again and everything worked fine. And as I'm typing this blog post emails up to 48 hours old have started to enter my inbox.</strong><br /><br />My conclusion is that using a string that is too long (I have not done any extensive search on this problem, so I don't know how long a string is allowed to be) in a TXT record corrupts the string. This is obviously a bug Windows DNS server. <br />But the thing that is strange to me is that to some DNS clients, the answer my DNS server sent them was ok and to some unacceptable. I also don't understand why the SMTP servers reacted this way - no delivery I could understand, but extremely slow delivery?<br /><br />Well, I'm a novice at both DNS and SMTP, so to others this may be crystal clear - please enlighten me!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26775512-7865038617683386315?l=www.tjitjing.com%2Fblog'/></div>Max Flodénhttp://www.blogger.com/profile/14422190564367108454noreply@blogger.com2