Pylons TextMate Bundle - sqlalchemy

I am looking for a TextMate Bundle for Pylons development. Does anyone know of an existing bundle for Mako and/or SQLAlchemy.
I found these two existing articles but the links are no longer valid
If someone knows of a currently active link please let me know
Thanks

Hey Ryan. Had the same issue, but eventually found it cached somewhere. Anyhow, for future generations I've put up a new Git repo with it:
http://github.com/williamsjj/Mako.tmbundle
Just put the Mako.tmbundle here: ~/Library/Application\ Support/TextMate/Bundles/

Related

Sync chef's cookbooks on self-host gitlab

The other day i was looking if it is possible to sync my chef workstation/server for easy manage/visualization of all cookbook components. I already tried looking for one solution and I didn't found any good info about this topic. So my questions are:
Is it posible to do?
Is it a good solution? And if not recommend one better?
If it's viable explain how can i do it?
Normally cookbooks already live in source control so it's not really a normal request. You can use the knife download command to pull back cookbook data but probably not in a format you want. tl;dr go the other direction, git -> chef server.

mediawiki move and upgrade at once

I'm considering to move one of the company internal wikis (very basic wiki with few/no extensions and not so many pages) to another machine and wondering if at the same time I can upgrade the mediawiki version, passing from 1.6 to the current latest 1.25 (in order to use extensions only available for the latest versions)
The Upgrade guide
https://www.mediawiki.org/wiki/Manual:Upgrading
seems to omit the scenario in which an upgrade of the underlying software (apache,mysql) is also required for setting up the target version.
and the Moving guide
https://www.mediawiki.org/wiki/Manual:Moving_a_wiki
strictly recommends that source and target wikis share the same software level.
So I'm a bit stuck. I would attempt an export/import of an xml dump, but I'm not confident for the above reason (there is a huge version gap in source and target wikis)
Or is there a better way to approach the problem? Thx
Edit after some tests
I consider Florian's answer the most safe and advisable, but I would share the final solution I came up with.
Install the new wiki (blank)
Export an xml dump of the original wiki
php maintenance\dumpBackup.php --full > dump.xml
I first encountered a "Cannot connect to database" error. So i had to add in the LocalSettings.php the lines
$wgDBadminuser=...
$wgDBadminpassword=...
Import the xml dump in the new wiki (first try in dry-run mode)
php maintenance\importDump.php --dry-run < dump.xml
php maintenance\importDump.php < dump.xml
Then I was prompted to run
php maintenance\rebuildrecentchanges.php
Copy the physical files from the old to the new wiki, in the same path(for common wikis they should be in the "images" folder. That was not my case).
Re-create the users (manually) in the new wiki
Last edited the LocalSettings.php with the most essential settings I wanted to preserve (groups, restrictions,...) .
And the moving was done! The new wiki is ok and already usable at this stage: pages are there, links are working..
In fact, it should work, if you move the wiki from one server to another and after that upgrade it on the new server. Like you may already know, it's important to backup all files and data you have for the wiki in the "old" environment, so you can easily restore it from there.
If I would want to do, what you want to do, I would first follow the "Moving a wiki" guide except the "Test" section. After that I would upgrade the wiki to the newest version. Now I can test the wiki intensively to see, if anything worked well.
If you don't want to do that, you really need to upgrade the wiki in the "old" source and move it after that. If I understand you correctly, that would require an update of the server software (I expect php and mysql?).

Embed a script from github in wordpress posts

I use github to backup and share my scripts. I'd like to be able to post some of these on my blog. Is it possible to embed a script (and syntax hightlight it if possible) into my wordpress blogs? This is just one of them I'd like to do. Any thoughts be appreciated.
Something like https://gist.github.com/ ?
Check out:
http://wordpress.org/extend/plugins/embed-github-gist/
and
http://wordpress.org/extend/plugins/syntaxhighlighter/screenshots/
Found a way to do this myself. Pointing out GitHub Gist it looks like is the best solution. Since gists are repositories, I learned I can update them and hence scripts on my blog will be updated. I wrote a script for it and posted it here. Thanks for the help/comments guys.

Where is Castle Windsor FromAssembly class located?

As you can see in Windsor wiki
There is a class named FromAssembly to help me with installers. But i'm unable to find it anywhere in Castle.*
I'm using .NET 4
It's an old question, but I just ran into the same problem. Took a little while to find FromAssembly (I should get ReSharper). Finally found it!
using Castle.Windsor.Installer;
You can download the source code and do a crtrl-f on the solution:
http://github.com/castleproject/Castle.InversionOfControl
You will need a git client tool, Follow the instructions on the TortoiseGIT site to get one up and running if you dont have one already.

Mercurial API and Extensions resources

I want to write extensions for Mercurial. What are good resources such as tutorials, guides, API reference or maybe even a existing extension that is well commented and easy to lean from the source.
So far, I have only found the short MercurialApi and WritingExtensions wiki pages.
Mercurial The Definitive Guide, also known as the hg book, contains a section on writing extensions for Mercurial. The book is available to view for free at http://hgbook.red-bean.com/.
Edit: My apologies, the hg book did only describe using extensions not writing them. The section on writing hooks in the book may still be useful though.
The best way to learn how to write an extension is probably going to be reading extension code. Focus the most attention on extensions that perform functions similar to what you want to implement.
e.g. If your interested in converting from one SCM system to another take a look at the hg-git extension.
As far as I know, there isn't a lot in the way of 'learning materials' for writing extensions. Your best bet is probably to find an extension that does something similar to the one you want to write, read the source and figure out how it works. You can try contacting that extension's author if you get stuck.