Where are Castalia templates stored? - delphi

I am moving my workstation and want my Castalia Templates on that computer - I use Castalia for Delphi. Where are these stored? Or am I to retype them?
Edit:
I looked in the registry, program files, documents - I was trying to find one or two words from my templates. I checked the manual (I don't have all day to read it though), found no info about their support. ... and Googled too.

HKEY_CURRENT_USER\Software\TwoDesk\Castalia\StorageDir will show the folder they are in, which is probably:
C:\Users\[USERNAME]\AppData\Local\Castalia for Delphi\templates.xml

Related

Is there a way to move the __history folders to another directory?

I am using source control for all Delphi projects and I am a little bit annoyed by the __history folders. It's possible to disable this feature as described here:
Delphi 2007 - How to avoid having a \history folder?
I find the history feature useful, but don't want to have the __history folders in my source code. Is it possible to make the IDE write the history files outside of the source code folder?
I'm sure that you can't keep the functionality and have the __history directories stored elsewhere. If you want the functionality then you need the folders alongside your source code.
The folders are hidden and so long as you configure your revision control system properly, you never need to be aware of them.
I would also recommend using Andreas Hausladen's DDevExtensions which has a feature to delete the __history folders when they are empty.
Never used the following from the DelphiPRAXiS thread "Pfad für Sicherungsdateien (__history) ändern", but maybe it helps
History Locator SVN Link

Add files to a ZIP archive?

What component or method can be used to specify a list of filenames and then zip them into a single archive?
I dont need advanced features or anything really, but if I could add some filenames to a stringlist for example then put those files into a ZIP that would be good.
Ive tried searching a few components but not sure which ones to use.
Thanks
In addition to VCLZip that Chris mentioned, Abbrevia (one of the old TurboPower packages) is available for free at SourceForge. If you need Delphi 2010/XE versions, you can find those available at SongBeamer (if the changes haven't been incorporated into the SF tree yet). As I was well educated about in the comments to my answer, the D2010/XE changes (as well as many bugfixes and new features) have been added to the project at SF, so the SongBeamer version is no longer needed.
VCLZip is good, fairly popular. http://vclzip.bizland.com/ IIRC, it has good documentation and examples that will get you off to a quick start.
I have used sometimes ZipMaster, and it works well.
Regards.

Delphi 2010: how to stamp file version in *.pas and increment it on each save w/o CVS/SVN tools?

How do I have in each *.pas file it's version, incrementing on each save in some comment line? I have plenty of files on three PCs and I need to have a possibility to quickly check their versions against each other.
This problem is easily solved by some centralized version control, but some sources I have cannot be trusted to external servers and are kept on TrueCrypt volumes.
May be some addon can do that for me? Something like changing $Version: to $Version: 121212 on each save, incrementing this value?
May be there is another way also of solving this problem?
Read this chapter about keyword substitution in Subversion.
In short: you have to enable keyword substitution for your files via svn propset svn:keywords ... and insert the revision keyword in these files.
You should try a DVCS like Mercurial. It doesn't need a centralized server while still giving you the benefits of a VCS.
It will also make it easy to synchronize the changes made on each PC to the others.
You may also look at Git : http://git-scm.com/
Don't know if one already exists, but you can write a Delphi plug-in (using its OTA interface) to achieve what you need. Although of course it won't work well if more than one developer works on the same file, unless you use an external, shared counter.
Note that locally hosting subversion can mean filesystem access. i.e. you don't even have to set http. Just point place the repository in your (already) encrypted hard disk, and instead of an URL, use a reference like \share\directory\svn\repo\project1 or C:\svn\repo\project1

Sampling Large Data Files

I currently work in the position of Data Warehouse programmer and as such have to put numerous flat files through ETL process. Of course prior to loading the file I have to be aware of its content, the problem is that majority of the files are > 1 GB large and I can not open them using my dear old friend "notepad". Kidding. I usually use VIM or Notepad++ but it still takes a while to open the file. Could I perform a "partial" read of the file using VIM or some other editor?
P.S. I know that I could write a 10 liner script to "data sample" the file, but it would be simpler to convince team members to use a feature of an editor than a script that I wrote.
Thank you for any insight you might have.
If you want to stick with using vim, you could have a look at the LargeFile script.
Alternatively, I've always found that UltraEdit opens large files extremely quickly.
You said you had VIM, that makes me wonder if you have a unix environment as well?
If you like, you can pipe the input through unix utility top and display the raw imput on your screen. Like this:
EDIT: (thanks Honk)
terminal$> head -N 15 file.csv
(Where that 15 indicates you want to see 15 lines only).
Pretty sure there are loads of similar questions, but hey, Textpad is a good choice for this.
use the head command.
Use the 'less' on solaris ... use the same through cygwin on windows. On mainframes this problem doesn't appear, ISPF editor handles it pretty well.
UltraEdit claims to handle files over 4GB...

Source code search with Google Desktop

Is there a indexing plugin for GDS that allows for source code search? I see some for specific types (Java, C++, ...) and one for "any text". These are nice, but I would like one that allows for many/configurable extensions (HTML, CSS, JS, VB, C#, Java, Python, ...). A huge bonus would be to allow for syntax highlighting (http://pygments.org/) in the cache.
I just found Dropout and it seems to work great. Put Dropout in any folder and it will index all files in that folder. I put it in my Projects folder and it crawled all my code. Very fast and flexible search. Dropout
You could use OpenGrok or some other code-specific search engine instead.
I wrote a quick review of some of them some time ago.
It has been a long time, but the last time I tried to use Google Desktop Search for searching code, I found it quite inappropriate for that task, as I outlined at [http://perlmonks.org/?node_id=490310], the gist of which is that GDS (silently) only indexed a tiny fraction of many source code files (and made it quite a challenge to figure out why searching so often failed to find so much of what was in source code files).
I found Copernic Desktop Search worked better on code files (but I also had trouble with later versions of it being buggy in not finding all matches so I've been staying with version 2.1.1). But these days I don't use it much (mostly because I don't have permission to install such things on the laptop provided by my new employer).
You can try out Larry's Any Text File Indexer. You can specify a list of extensions at install time and it will do full text search on those file types.
Im just giving this a go:
http://desktop.google.com/plugins/i/java.html?hl=en
..also you can search for things in your Java tree using the following syntax in Google Desktop:
<YOUR SEARCH> filetype:java under:"C:\hft\trunk"
..where I keep my code in "C:\hft\trunk"
This is not a Google Desktop plugin, but works for what we need.
We have started using http://svnquery.tigris.org/ and it seems to work and is very fast. I wish it supported multiple repositories per site. We have a repository per project, so currently I have to create a virtual directory for each project we have. Not a show stopper, just something we need to automate in our project setup script.

Resources