tag:blogger.com,1999:blog-49572005077547300162009-03-28T22:40:36.421+01:00Cygnes' Weblog - delphi programmingI want to turn this weblog into a Delphi programming website. I still don't know yet what kind of things I will publish. I guess that's something the future will tell.Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.beBlogger12125tag:blogger.com,1999:blog-4957200507754730016.post-64506332185523409052007-12-11T08:55:00.000+01:002007-12-11T09:01:00.388+01:00Vista Network File CopyingI'm using CruiseControl.net for my auto build environment. One part of the build is copying my release to a network server. The bad part about this is that my build is taking ages, just because of the slow Vista file copying. 2 MB file is taking more than 2 minutes to copy. Copying is taking more time than building the whole project. So I really needed a faster method to copy my files. I tried RoboCopy, copy and xcopy. They are all slow, so I decided to write a simple delphi console application that copies a file to a destination path. Guess what, instead of 2 minutes it takes less than 2 seconds, so beat this Vista. All I used is a TFileStream for input and a TFileStream from output. Geez, that's all it took. <br /><br />Go Delphi! You made my day, again!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-6450633218552340905?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be1tag:blogger.com,1999:blog-4957200507754730016.post-88849394653205891322007-12-06T20:22:00.000+01:002007-12-06T20:33:06.358+01:00My employer is looking for Delphi and C# developersHey developers,<br /><br />looking for a developer job in Belgium. Good news! my employer has some job offerings. <br /><br />More info about the job can be found here:<br /><br /><a href="http://www.vacature.com/Jobs/DisplayVacancy.aspx?ID=849054">www.vacature.com</a> (dutch)<br /><br />For more information you can contact <a href="mailto:tom.dedecker@aucxistrading.com">Tom De Decker</a> at <a href="http://www.aucxistrading.com">Aucxis trading Solutions</a><br /><br />Maybe we'll be colleagues in the near future.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-8884939465320589132?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be1tag:blogger.com,1999:blog-4957200507754730016.post-34306179758746709332007-10-17T13:48:00.000+02:002007-10-24T12:40:13.421+02:00Delphi 2007 - File Browser expertWe finally started using Codegear Delphi 2007 (Update 3) at work. It's a big step forward since we were using Delphi 7. First impressions are very good. I noticed the new file browser. This browser is like windows explorer docked into the IDE. One useful feature is that you can use all explorer shell extensions. For instance <strong>TortoiseSVN</strong> is a very important one since I'm using it daily for versioning. The file browser misses clearly one important feature, synchronizing with the active project. I always have to scroll to the project directory to do anything meaningful with it. Asking around in the opentools newsgroup I found out that there's no interface to this new file browser. So I decided to rewrite the file browser as an IDE-expert. Thanks to the components of <strong>VirtualShellTools </strong> (<a href="http://www.mustangpeak.net">http://www.mustangpeak.net</a>) I managed to build a new Delphi 2007 IDE expert. It supports 2 types of auto-synchronizing. <br /><br />1) All folders are visible and the file browser expands the path of the current project.<br />2) Only the project folder is visible (by changing the root folder)<br /><br />The auto sync mode can only be changed in the form menu which is only visible in undocked mode. (sorry for that)<br /><br />I've added a file filter so it can display only the file types you want, just like the original file browser. But it's also possible to set an exclude filter. So you can show all files, except *.dcu and so on.<br /><br />You can download this expert <a href="http://projectvalley.com/delphi/experts/CgsFileBrowserExpertD2007.zip">here</a>. It's version 0.1 and more or less a test version. You can also download the installer <a href="http://projectvalley.com/delphi/experts/CgsFileBrowserSetup.exe">here</a>.<br /><br />I know it's far from perfect, but hey, it's a start.<br /><br />Please send bug reports to drastic@pandora.be<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-3430617975874670933?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be4tag:blogger.com,1999:blog-4957200507754730016.post-7948168858386355242007-09-04T12:21:00.001+02:002007-09-04T12:21:46.186+02:00Vrede feesten 2007 - Sint-Niklaas - day 2<div xmlns='http://www.w3.org/1999/xhtml'><p><object height='350' width='425'><param value='http://youtube.com/v/1u6C8WUFJ1A' name='movie'/><embed height='350' width='425' type='application/x-shockwave-flash' src='http://youtube.com/v/1u6C8WUFJ1A'/></object></p><p>Last Saturday we visited the event again. A weather was much better.</p></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-794816885838635524?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be0tag:blogger.com,1999:blog-4957200507754730016.post-71518515207832970632007-09-01T09:23:00.001+02:002007-09-01T21:51:54.128+02:00Vrede feesten 2007 - Sint-Niklaas - day 1<div xmlns='http://www.w3.org/1999/xhtml'><p><object height='350' width='425'><param value='http://youtube.com/v/_N_JhU2HKjk' name='movie'/><embed height='350' width='425' type='application/x-shockwave-flash' src='http://youtube.com/v/_N_JhU2HKjk'></embed></object></p><p>Yesterday I visited a hot air balloon event in our city Sint-Niklaas. This is the video I made with my sony cybershot.</p></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-7151851520783297063?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be0tag:blogger.com,1999:blog-4957200507754730016.post-80022346875280626642007-04-27T15:38:00.000+02:002007-04-30T15:18:30.388+02:00Editing HTML with TWebBrowser<a target="_blank" href="http://zinloos.be/wordpress">Coltrui</a> asked me if I knew any good HTML editors that can be used in a delphi application. I don't know any free components for Delphi for WYSIWYG editing. But I know the TWebBrowser has an edit mode. <br /><br />So now it's time to get started on html editing with TWebBrowser. A few steps to get started:<br /><br /><strong>1)</strong> add a TWebBrowser control to your application<br /> <br /><strong>2)</strong> open a webpage or an empty page.<br /><br /><em>ie. WebBrowser1.navigate('http://zinloos.be/wordpress');<br /> WebBrowser1.navigate('about:blank');</em><br /><br /><strong>3)</strong> Put TWebBrowser in edit mode.<br /><br /><em>(WebBrowser1.Document as IHTMLDocument2).DesignMode := 'On';</em><br /><br /><strong>4)</strong> Start editing!<br /><br /><strong>5)</strong> Save HTML to file<br /><br /><em>var<br /> persist: IPersistFile;<br />begin<br /> Persist := (WebBrowser1.Document as IPersistFile);<br /> Persist.Save(StringToOleStr(ExtractFilePath(application.exename) +<br /> 'test.html'), True);<br />end;</em><br /><br />These are some basics without special features. But you can select a part of the html text and press CTRL+B for BOLD, CTRL+I for ITALIC, CTRL+U for UNDERLINE.<br /><br />Even creating a link with CTRL+K works great.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-8002234687528062664?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be1tag:blogger.com,1999:blog-4957200507754730016.post-74275983480413252192007-04-19T08:28:00.000+02:002007-04-19T13:53:46.068+02:00Continuous Integration with CruiseControl.NET<a target="_blank" href="http://www.stevetrefethen.com/blog">Steve Trefethen</a> recently posted two blog articles about "continuous integration". These posts get you on track setting up your own environment.<br /><br />The links are:<br /><br /><a target="_blank" href="http://www.stevetrefethen.com/blog/CCNetConfigToHelpYouCreateAndMaintainYourCruiseControlNETServer.aspx">CCNetConfig to help you create and maintain your CruiseControl.NET server</a><br /><br /><a target="_blank" href="http://www.stevetrefethen.com/blog/VideoSettingUpAContinuousIntegrationEnvironment.aspx">Video: Setting up a continuous integration environment</a><br /><br />I was curious so I tried to setup an CI-environment. It was much easier than excepected. Now running 4 projects using CruiseControl.NET. There's one Delphi5 project and 3 Delphi7 projects. In a few weeks I will also try a Delphi2007 project with MSBuild. <br /><br />I managed to synchronize the executables version information with the published label. For this I use my own command line tool that uses a template to generate a<br />version.rc, which can be build by brcc32.exe (resource compiler) and linked into the projects. <br /><br />I bet there must be an easier way to do this, so if you have info about doing this just let me know.<br /><br /><br />I'm still having problems publishing the latest build to a network drive since I get an "access is denied" error. But I'm not logged on to the domain and that's probably the reason why it doesn't work.<br /><br />[update]<br />Changing the service login account to my user account fixed the problem. <br />[/update]<br /><br />Here you can find an article about continuous integration by <a target="_blank" href="http://www.martinfowler.com/articles/continuousIntegration.html">Martin Fowler</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-7427598348041325219?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be1tag:blogger.com,1999:blog-4957200507754730016.post-5771345507736894922007-04-12T23:23:00.000+02:002007-04-13T14:15:58.476+02:00Open Tools ApiJeremy North wrote an article about extending the project manager context menu. It's great to see more attention to the open tools. He hopes to write more than one article. So I sure have to keep an eye on his articles. Very interesting indeed.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-577134550773689492?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be0tag:blogger.com,1999:blog-4957200507754730016.post-78399055674185770952007-04-11T16:52:00.000+02:002007-04-11T16:54:55.558+02:00Execute Delphi code from javascript using TWebbrowserI just bumped into some really neat code. This code allows you to integrate your delphi application with the TWebBrowser component. You just hook in your application as the host of the TWebBrowser component. This will allow javascript to use your Delphi functions. It's like the welcome page in the Delphi IDE. <br /><br />Just check out this link on <a target="_blank" href="http://www.delphidabbler.com/articles?article=22&part=1">www.delphidabbler.com</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-7839905567418577095?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be0tag:blogger.com,1999:blog-4957200507754730016.post-37346941217808412542007-04-11T08:56:00.000+02:002007-04-21T21:40:34.408+02:00A little bit about meI was born in 1977 in The Netherlands and currently living in Belgium. I started to do some programming in Basic somewhere back in the late 80s on a GoldStar MSX. But finally got a pc in early 90s. I started doing pascal coding using Turbo Pascal v5.5. While at school we learned pascal programming in version 3! I was glad to move on to Borland Pascal 7.0. Together with a friend we started coding packet radio software for Citizen Band (27Mhz). Which was used by several hundreds of people world wide. In 1998 it was time to learn delphi. I've used several delphi versions: 3, 4, 5 and 7 and Turbo Explorer. We are still using Delphi 5 and 7 at work, but they have purchased Delphi 2007, so I can't wait to start using that one.<br /><br />I've downloaded the trial of 2007 and I really enjoy working with it so far.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-3734694121780841254?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be0tag:blogger.com,1999:blog-4957200507754730016.post-90084109060788897732007-04-10T23:01:00.000+02:002007-04-11T08:42:07.198+02:00The Delphi HourStay tuned for the Delphi Hour. A live broadcast from ScottsValley, California by Nick Hodges.<br /><br />Get the latest news about CodeGear and Delphi. This all during live broadcast.<br /><br /><a target="_blank" href="http://blogs.codegear.com/nickhodges/articles/26111.aspx">Delphi Hour page</a><br /><br />Also check out <a target="_blank" href="http://dn.codegear.com/tv/delphi">Audio & Video</a> at the CodeGear Developer network.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-9008410906078889773?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be0tag:blogger.com,1999:blog-4957200507754730016.post-61522251400352861362007-04-10T21:17:00.000+02:002007-04-10T21:24:37.328+02:00Let's get startedOkay,<br /><br />The weblog will be focussed on Object Pascal (also known as Delphi), but CodeGear is now refering back to Object Pascal as a language and Delphi as the tool to build the applications.<br /><br />My current environments are:<br /><br />at home - Turbo Delphi Explorer<br />at work - Delphi 5, Delphi 7 and soon Turbo Delphi Pro and Delphi 2007.<br /><br />So far my first post, more information about myself will soon be online..but I have to get started somewhere.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4957200507754730016-6152225140035286136?l=projectvalley.com%2Fweblog%2Findex.html'/></div>Robin van Nooijhttp://www.blogger.com/profile/02787760602576232197drastic@pandora.be0