c# – How to split a text file into multiple files? – Stack Overflow.
c# – File.ReadLines without locking it? – Stack Overflow.
c# – Whats the fastest wto read a file by one line at a moment – Stack Overflow.
Posted by jpluimers on 2013/08/21
c# – How to split a text file into multiple files? – Stack Overflow.
c# – File.ReadLines without locking it? – Stack Overflow.
c# – Whats the fastest wto read a file by one line at a moment – Stack Overflow.
Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 4.0, C# 5.0, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2013/08/20
Just found out that the Firebird gbak tool for backup/restore, has some interesting parameters.
This is what pointed me to id: Firebird News » Firebird SQL’s backup/restore uses magic words for stdin and stdout – Check the gbak manual update.
Just read the below quotes from the documentation.
Use of ‘stdin’ or ‘stdout’ File Names
Gbak recognizes the literal strings ‘stdin’ and ‘stdout’ as source or destination filenames. In POSIX systems, when the standard input and/or standard output channels are used, it is not permitted to execute seek operations on these channels. Using ‘stdin’ or ‘stdout’ as file names with gbak will force gbak to use processing that will not seek on the input or output channels, making them suitable for use in pipes
Create a Database Clone Without a Dump File.
You may use gbak to create a clone of a database, on the same server, without needing to create a potentially large dump file. To do this, you pipe the output of a gbak backup directly to the input of a gbak restore, as follows.
tux> # Clone a test database to the same server, without requiring a dump file.
tux> gbak -backup emptest stdout | gbak -replace stdin emptest_2
–jeroen
Posted in Database Development, Development, Firebird | Leave a Comment »
Posted by jpluimers on 2013/08/19
I got myself two Buffalo WLAE-AG300N devices to function as a WiFi bridge (I couldn’t run an ethernet cable from A to B, but both devices there were wired).
Just found out that when you loose utility power, and it comes back up, then these devices do not automatically power up: you *have* to press the power button.
Bummer.
–jeroen
via: WLAE-AG300N : AirStation™ Nfiniti™ Dual-Band Wireless-N Ethernet Converter Access Point and Bridge.
Posted in Power User, WiFi | 1 Comment »
Posted by jpluimers on 2013/08/19
Since SuSE 11.2, when installing then the CLI version of YaST looks horrible on the first (Ctrl-Alt-F1) console before you do your first reboot.
Workarounds:
Before/After (click on the images to enlarge):
–jeroen
Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »
Posted by jpluimers on 2013/08/17
Two years ago, I posted a batch file that gets the parent directory of the batch file that runs.
It was convoluted, using substrings and intermediate environment variables so you needed setlocal.
This one does not any more: for both the directory of the batch file, and the parent directory of that directory, one-liners suffice:
| echo batchfile=%0 | |
| echo full=%~f0 | |
| setlocal | |
| for %%d in (%~dp0.) do set Directory=%%~fd | |
| echo Directory=%Directory% | |
| for %%d in (%~dp0..) do set ParentDirectory=%%~fd | |
| echo ParentDirectory=%ParentDirectory% | |
| endlocal |
–jeroen
via: batch files: getting directory and parent directory « The Wiert Corner – irregular stream of stuff.
Posted in Batch-Files, Development, Scripting, Software Development | Tagged: batch file, environment variables, software, technology | 1 Comment »
Posted by jpluimers on 2013/08/17
I totally agree that Paint.NET is the best free image and photo editor on Windows.
Writing quality software takes time, not only when writing it in spare time like Rick Brewster does. Getting things “right” is a tedious process and often will set you back: just watch the graph on the right.
So I’m not surprised that it took a very long time after the first Paint.NET 4.0 idea in 2008 to get “close” to a release.
And indeed, it looks like Rick has become much closer which will please many people waiting for Paint .NET 4.
I’m really glad with the announcement that Paint.NET v3.5.11 BETA is now available – Paint.NET Discussion & Questions – Paint.NET Forum.
Edit: while writing this, the final Paint.NET v3.5.11 came out.
It paves the way for Paint .NET 4.0 update in the future, and fixes/improves quite a few things.
A few quotes from it:
This is probably not the update you were expecting I need to push out an update to v3.5 in preparation for the eventual release of v4.0 […] releasing a “beta” today […] I’ll be pushing out the Final/RTM in a few days.
The primary goal of this update is preparing for the v4.0 release: v3.5.10 will not be able to offer the v4.0 update, but v3.5.11 will. […]
Here are the changes for this release:
- Fixed: The Gaussian Blur effect was incorrectly calculating alpha values for non-opaque pixels. (http://forums.getpaint.net/index.php?/topic/18483-gaussian-blur-mistreats-alpha/)
- Improved performance of the Sharpen effect by about 25%
- Improved performance of the Median effect by about 30%
- Improved performance of the Fragment effect by about 40%
- Improved performance of the Unfocus effect by about 100%
- Reduced memory usage when many selection manipulation operations are in the history/undo stack (the undo data is now saved to disk)
- The built-in updater now supports upgrading to paint.net 4.0 (once it’s available)
There have been rumors floating around that Paint.NET is “dead.” This is not true!
–jeroen
via: Paint.NET Blog | The best free image and photo editor. By Rick Brewster..
Posted in .NET, .NET 3.5, .NET 4.0, Algorithms, Development, Floating point handling, Power User, Software Development, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Tagged: computer, software, technology | Leave a Comment »
Posted by jpluimers on 2013/08/16
You can use CmdKey.exe to save a username/password combination to be used by MSTSC.exe
CmdKey allows you both to store and delete these credentials.
–jeroen
via: c# – Run mstsc.exe with specified username and password – Stack Overflow.
Posted in Power User, Windows | 4 Comments »
Posted by jpluimers on 2013/08/15
I might need this for some really old stuff, so here is a reminder: Unspecified Error in Delphi 2007 on Windows 8 | ACMer.
It does work on Windows 7: Problem installing Delphi 2007 on Windows 7 64 Bit Enterprise – Stack Overflow.
–jeroen
Posted in Delphi, Delphi 2007, Development, Power User, Software Development, Windows, Windows 8 | Leave a Comment »
Posted by jpluimers on 2013/08/15
StackOverflow has [WayBack] quite a [WayBack] few questions [WayBack] on creating [WayBack] empty text files from a batch file.
Most answers involve the [WayBack] NUL special file (which is not available on one special version of Windows [WayBack] Windows Fundamentals for Legacy PCs, but can easily be retrofitted).
[WayBack] This is the solution I use most often:
type NUL > EmptyFile.txt
–jeroen
via: [WayBack] command line – How to create empty text file from a batch file? – Stack Overflow.
Posted in Batch-Files, Development, Scripting, Software Development | 2 Comments »
Posted by jpluimers on 2013/08/14
Everyone knows there is a size difference between a gigabyte of memory, and a gigabyte of disk space.
The former is 102410241024, the latter is 100010001000.
To facilitate this, I’ve created a C# class UnitPrefixes containing quite a few constants and readonly values.
The class is below, but a few interesting facts first:
I used the Wikipedia pages Binary Prefix and Metric Prefix (I could also have used File Size) for the unit names and abbreviations.
Note that BitsPerByte is a const I needed too, and I will probably add constants for 512 and 4096, as you see those often in computing as well.
The below sample code is also available as a changeset on BeSharp.CodePlex.com. Read the rest of this entry »
Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 4.0, C# 5.0, Conference Topics, Conferences, Development, Event, Jon Skeet, Software Development | Tagged: endregion, region | Leave a Comment »