Hi there
I have a non-public Wordpress blog behind a htpasswd
authentification. Is it someway possible to use the blogging bundle
all the same? When trying to fetch the posts, I get the following
errors:
/usr/lib/ruby/1.8/xmlrpc/client.rb:533:in `do_rpc': Authorization
failed. (RuntimeError)
HTTP-Error: 401 Authorization Required from /usr/lib/ruby/1.8/xmlrpc/
client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/metaweblog.rb:31:in `getRecentPosts'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:547:in `fetch'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:546:in `popen'
from /Library/Application Support/TextMate/Support/lib/progress.rb:
11:in `call_with_progress'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.V9d44n:3
Thanks for any help in advance!
Oliver
TextMate has a syntax element called "Embedded Source", which is used
for things like the lstlisting environment in LaTeX or JavaScript
code embedded in HTML. The default background color for this element
is a light blue, which is almost identical to the light blue used for
selected text. Because of the similarity, I always get confused and
think I've inadvertently selected some embedded source. I'm wondering
why there is such a similarity between these colors. Was it
deliberate (and if so, what was the reason?) or was this an oversight?
Trevor
A little command that's especially useful for writing emails.
It takes a highlighted URI and uses murl.info to shorten it to
something more like:
http://murl.info/14511
Very tinyurl but a little more underground ;-). Plus I couldn't get
tinyurl to do this...
It will accept a uri with or without a protocol (http(s)) and will
accept just about any amount of garbage on the end. It does a pretty
decent job of recognizing if what you have selected is actually a uri
or not.
Brett

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
would it be possible, to add folding markers for the =begin ... =end
documentation in ruby? It would be usefull, if I could hide large
documentation parts in a script.
Thanks in advance,
Simon
- ----
> privacy is necessary
> using http://gnupg.org
> public key id: 0x6115F804EFB33229 http://ruderich.com/
simonruderich.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFbE+cYRX4BO+zMikRCuQjAJ4nyg7vJVGgfILRNGspMScVw5B10wCbBfwf
Seck//9uFxjZzVv+IJXGRIg=
=4TGS
-----END PGP SIGNATURE-----
Hello all,
If you have a chance, it's a fun read and great responses from Allan.
http://nslog.com/2006/11/08/textmates_undo/
In my opinion, Erik is just upset that he did not get a free license
from Allan. :)
Hi guys,
I'm trying to build a template which will consist of an HTML file and
a CSS file (eventually a number of CSS files in a separate directory)
but I'm having a few problems. I tried duplicating the Objective-C
singleton template and essentially copied and pasted the code with a
few changes. This is what my template code looks like now:
export TM_YEAR=`date +%Y`
export TM_DATE=`date +%Y-%m-%d`
export TM_USERNAME=`niutil -readprop / /users/\$USER realname`
TM_HEADER="$TM_NEW_FILE_BASENAME.css"
if [[ ! (-f $TM_NEW_FILE || -f $TM_HEADER) ]]; then
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <html_in.html >"$TM_NEW_FILE"
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <css_in.css >"$TM_HEADER"
fi
This creates the HTML file but not the CSS file. Or at least it
didn't until I reloaded the bundles and discovered "untitled.css" had
appeared in the template file list alongside html_in.html and
css_in.css. Very odd! I did some more reading and found a post in the
mailing list archives (http://article.gmane.org/
gmane.editors.textmate.general/8424/match=templates+multiple+files)
which Allan mentioned I need to edit an info.plist file.
Unfortunately I've not been able to find this file anywhere. Could
anyone suggest where it might be and what I need to edit?
Eventually I want to build a template which looks like
index.html
\stylesheets
master.css
standard.css
Would this be possible and if so, any pointers on how I might go
about it?
Cheers!
Alastair
Hi,
This is my first post to this list. I've been a user of BBEdit for
many years, and out of curiosity I've decided to check out TextMate.
I'm actively involved in the MacTeX effort, mainly for testing, and
I've written a set of Applescripts and shell scripts for BBEdit to
play nice with LaTeX. For these scripts I made sure they play nice
with the tricks TeXShop uses for multi-file projects, since TeXShop
is the standard entry-level application that most will use when they
start with (La)TeX on Mac OS X, and if you're compatible with the
starting point, you make it a lot easier to upgrade to a serious editor.
I must say that I like what I've seen so far, but I have some
suggestions:
Textmate runs either the current file or a file pointed to in some
environment variable. I guess there is an easy way to set this
variable, but TeXShop uses a method that is not all that hard to
implement; I did so for some BBEdit AppleScripts [1]. The core is
actually implemented in a (rather ugly) shell script, you may be able
to reuse parts of the script.
TeXShop defines some meta comments, describing the source, and how it
can be typeset. From the help-files:
%!TEX TS-program = command
-- use command to typeset this file (pdflatex, latex, pdftex, texexec
(context), …). If you encounter one of the classic tex formats
(latex, tex), you should prepend with simpdf (simpdftex, simpdflatex)
to handle some code which will not work in pdftex, like pstricks,
simpdf(la)tex will take care of the final conversion to pdf and
previewing.
%!TEX encoding = encoding
-- this file is encoded in encoding (a string using the Apple system
names, see below for a list). Since all sane encoding use the same
lower 7 bits, you can start reading in US ASCII until this string is
encountered, and re-open in the correct encoding.
%:Marker
-- use Marker in a tags menu.
%!TEX root = Document
-- Use Document as the root for typesetting the current file.
It would be useful to have a "open selection" command that opens a
referenced file, and an open master command. I have some of those in
my scripts in my bundle [1], for regular tex files, and graphics
files (either open the original metapost source, of open the graphic
in preview or so).
I have a sample project that shows most of the issues, mail me off-
list if you are interested.
Regards,
Maarten Sneep
You haven't had real fun with regular expressions until you've
written a vi regular expression to search for a vaguely remembered
regular expression in a document which describes how they work.
References:
[1] http://www.nat.vu.nl/~sneep/tex/CompileTeX-BBEdit8.dmg
[2] http://mactextoolbox.sourceforge.net/articles/japanese.html
List of supported encodings in TeXShop. There is one item to take
care of in editing TeX sources for Japanese users. The details for
that can be found at [2].
MacOSRoman, IsoLatin, IsoLatin2, IsoLatin5, MacJapanese, DOSJapanese,
SJIS_X0213, EUC_JP, JISJapanese, MacKorean, UTF-8 Unicode, Standard
Unicode, Mac Cyrillic, DOS Cyrillic, DOS Russian, Windows Cyrillic,
KOI8_R, Mac Chinese Traditional, Mac Chinese Simplified, DOS Chinese
Traditional, DOS Chinese Simplified, GBK, GB 2312, GB 18030.
Hello all,
I'd like to propose two additions to the C bundle.
First, an easy snippet: typedef.
I know I can never remember how typedef works, so I propose this
snippet:
typedef ${1:WhatItIs} ${2:NowCallIt}
Second, a modification on an old favorite: the class snippet.
Most of the classes I write are subclasses of something else.
Except the class snippet echos my colon and subclass declaration.
Meaning, I end up with class declarations like:
class Customer : public Person
{
public:
Customer : public Person (arguments);
virtual ~Customer : public Person ();
private:
/* data */
};
(Note the ": public Person" echoed on both the constructor line,
and the deconstructor like).
I suggest modifying the class snippet like so:
class ${1:name}${2: : public } $3
{
public:
${1:name} (${4:arguments});
virtual ~${1:name} ();
private:
${0:/* data */}
};
There are a few things I don't like about this, mainly that if
you don't inherit from something you know have to type
"'class', tab, delete, tab, arguments. It also might handle
multiple inheritance poorly, or protected/private inheritance.
Maybe some TextMate snippet wizards (or people with more involved
C++ classes than I) can revisit my snippet to make it work better
with these cases.
Hope this helps,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
Hi,
I just updated installed Bundles via GetBundle.
While I am writing perl and running the script, error is experienced.
"csh: setenv: Too many arguments. /bin/bash: line 2: : command not found"
It looks like it has problems with environment variables.
However, I do not change the environment or anything else.
How can I check and fix this?
Cheers,
CM