Today I had to filter a text log file - the lines without certain sub-string had to be removed.
I wanted to use regular expression for this task, but it turned out that this is not as trivial as I thought. First of all it was hard to find real examples, and second - that not all text editors with "regular expressions support" actually support lookahead and other, kind of, advanced regular expressions stuff.
So, here it is, the regular expression itself:
^(?:(?!actual phrase to be excluded).)*$
Hope this helps someone.
Tuesday, March 2, 2010
Monday, August 17, 2009
"object required" zofnhot=ofnh.offsetTop*zm MS SQL Server 2005 bug
Today I had to fix an issue: “Object required” JavaScript error when trying to view a Microsoft.Reporting.WebForms.ReportViewer generated report.
Due to the lack of information on this error in the Google’s search results (e.g. http://allaboutmicrosoft.net/forums/t/54360.aspx did not help and did not have a correct workaround) I decided to post an error-fix here.
Basically, the error-producing report template (rdlc file) had few tables. But those tables were used not to display similar data row-by-row but to display static amount of rows with different data in each row, see details on the screenshot:

The fix was as simple as changing the properties of the table. To fix the issue I opened “General” tab in the table’s properties window and unchecked checkboxes in the “Header/footer:” section of the tab:

That’s it, hope this helps somebody.
Due to the lack of information on this error in the Google’s search results (e.g. http://allaboutmicrosoft.net/forums/t/54360.aspx did not help and did not have a correct workaround) I decided to post an error-fix here.
Basically, the error-producing report template (rdlc file) had few tables. But those tables were used not to display similar data row-by-row but to display static amount of rows with different data in each row, see details on the screenshot:

The fix was as simple as changing the properties of the table. To fix the issue I opened “General” tab in the table’s properties window and unchecked checkboxes in the “Header/footer:” section of the tab:

That’s it, hope this helps somebody.
Wednesday, December 12, 2007
PhotoName2Date
'P2203.jpg' => '2007-12-01 13-30-00.jpg'
[ download v 2.0.2.0 ]
[ home page ]
PhotoName2Date helps keep photos and videos taken on camera organized - it looks for the date and time the photo was taken and then renames the file appropriately:
e.g.: we have the photo image 'P2203.jpg' that was taken on 1 December 2007 1:30pm.
Then the program would rename the file to
'2007-12-01 13-30-00.jpg'.
This is very helpful for me while viewing the photos and uploading them on the online photos sharing service.
I can easily see the date and time while the photo was taken and I like it.
Also while exploring my photos they are sorted by the time they was taken.
Another benefit is appear if you want to view photos taken on different cameras but at comparatively the same time - e.g. at some party :)
If you dump the photos into one directory and use the PhotoName2Date program to rename them - you would be able to view photos chronologically no matter what names they had previously.
It also renames other files, like videos. But if no EXIF information available it would take file modified date.
Forgot to mention - it's free :). Any feedbacks are appreciated.
Added: the screenshot
[ download v 2.0.2.0 ]
[ home page ]
PhotoName2Date helps keep photos and videos taken on camera organized - it looks for the date and time the photo was taken and then renames the file appropriately:
e.g.: we have the photo image 'P2203.jpg' that was taken on 1 December 2007 1:30pm.
Then the program would rename the file to
'2007-12-01 13-30-00.jpg'.
This is very helpful for me while viewing the photos and uploading them on the online photos sharing service.
I can easily see the date and time while the photo was taken and I like it.
Also while exploring my photos they are sorted by the time they was taken.
Another benefit is appear if you want to view photos taken on different cameras but at comparatively the same time - e.g. at some party :)
If you dump the photos into one directory and use the PhotoName2Date program to rename them - you would be able to view photos chronologically no matter what names they had previously.
It also renames other files, like videos. But if no EXIF information available it would take file modified date.
Forgot to mention - it's free :). Any feedbacks are appreciated.
Added: the screenshot
Wednesday, November 14, 2007
Subscribe to:
Comments (Atom)