Tag: General
All the articles with the tag "General".
-
Open XML Developer workshop content
Over the last few months, Doug, Wouter, Brian and lots of other people delivered a series of OpenXML workshops around the globe. Those who were there, and those who weren't, can now download all content of these workshops from OpenXMLdeveloper.org. There are some interesting slideshows available for those of you who never heared about OpenXML before, as well as some nice code samples to get you started developing in C# or Java. As a side note: I also spotted a good article on OpenXML, explaining the Open Packaging Conventions with a self-created file format (based on OpenXML).
-
PHP zip:// and parse_url...
After having a few months of problems using PHP and fopen('zip://something.xlsx#xl/worksheets/sheet1.xml', 'r'), I finally found the reason of that exact line of code giving errors on some PC's... Assuming this uses a call to parse_url under the hood, I tried parsing this, resulting in the following URL parts: Array ( [scheme] => zip [host] => something.xlsx#xl [path] => /worksheets/sheet1.xml ) That's just not correct... Parsing should return the following: Conclusion: beware when using parse_url and the zip file wrapper!
-
My job?
Seems that, according to this Wikipedia entry, I work at Microsoft: To clarify this: I do not work at Microsoft, but at Dolmen, one of the top Belgian IT firms. I do work with Microsoft technology and tend to promote their technology too, but no job at Microsoft.(Thank you Wouter for showing me this)
-
NHibernate 1.2.0 - Unexpected row count: 0; expected: 1
Great... I've been working with NHibernate and MySQL for a while now, without having any strange problems. For a project I'm working on, I'm using SqlClient instead of MySQL now, and strangeness occurs. When I try to Flush() a NHibernate session, here's what is thrown: The problem seems to be a combination of things. First, there's my mapping file: [code:xml] <id name="Hash" column="hash_id" type="String"> <generator class="assigned"/> </id> [/code]
-
Enable sitemap security trimming in ASP.NET 2.0
Want to enable security trimming for your ASP.NET sitemap? Here's how... First of all, you need a new section in your web.config system.web element: [code:xml] <system.web> <!-- ... other system.web configuration stuff ... --> <siteMap defaultProvider="XmlSiteMapProvider" enabled="true"> <providers> <add name="XmlSiteMapProvider" description="Default SiteMap provider." type="System.Web.XmlSiteMapProvider " siteMapFile="Web.sitemap" securityTrimmingEnabled="true" /> </providers> </siteMap> </system.web> [/code] Next, you should specify which pages are visible to who: [code:xml]
-
VSTS Project methodology
A quick linkdump of some VSTS project methodology templates: RUP - http://www.osellus.com/solutions/microsoft/rup-vsts_solutions.htmlScrum - http://www.scrumforteamsystem.comMacroscope - http://www.fujitsu.com/us/services/consulting/method/macroscope/index_p2.html
-
Team Foundation Server - Subversion bridge
-
PHPExcel 1.3.5 released
Just a quick note on the new PHPExcel 1.3.5 release. There are some cool new features included! One of the new features is rich text: one can now write coloured and styled text in a cell. Here's an example of how the feature demo result file looks: This is of course not all. Jakub had a couple of sleepless nights, but managed to port in the PEAR Spreadsheet classes. Meaningless? No! PHPExcel now supports Excel2007 and older versions, too. Want to write an Excel document for Excel200? No problem: [code:c#] $objWriter = new PHPExcel_Writer_Excel5($objPHPExcel);$objWriter->save('excel2000file.xls'); [/code] There's even a cooler part related to this, and that is .xlsx to .xls conversion! Here's how: [code:c#]
-
ASP.NET URL rewrites using .htaccess-like syntax
Having a PHP background, I've been using .htaccess mod_rewrite in Apache for ages. ASP.NET allows rewriting too, but using a different syntax than mod_rewrite. Using the attached library, you can now use mod_rewrite syntax to perform rewrites on your ASP.NET application. Here's how... First of all, you need to download the attached library. Reference it from your web project, and register it as a module in Web.config, preferrably as the first one: [code:xml] <httpModules> <add name="UrlRewriter" type="MaartenBalliauw.UrlRewriter.Rewriter"/> <!-- Other modules can be put here... --> </httpModules> [/code] Second, create a file UrlRewriter.xml in the root of your web project, and add rewrite conditions in there: [code:xml]
-
Enlisting an ADO.NET command in an NHibernate transaction
For everyone who has read my article on NHibernate, here's a story for you... When building an application, everyone comes to a point where one needs to batch-update records in a database table, based on one or more criteria. Let's say, for example, there's a table "User" containing an activation date. And you want to remove all users that have activated in 1999. In a regular database environment, or when using ADO coding, one would write a DbCommand "DELETE FROM User WHERE activationdate < '2000-01-01'".