Greetings to everyone,
How is it possible to compile a small program via short-cut. Until now
I've used apple-cmd+R (RUN/Compile via xCode) in my .m files
(objective-c). Via command usually I do something like this:
Angel:Fraction atma$ ls
Fraction.h Fraction.m main.m
Angel:Fraction atma$ gcc Fraction.m main.m -o Fraction -l objc
Angel:Fraction atma$ ./Fraction
5 / 10 = 0.5
0 / 0 = 0
Angel:Fraction atma$
Best regards & thanks in advance
Panagiotis (atma) Atmatzidis
email: atma(a)convalesco.org
URL: http://www.convalesco.org
--
The wise man said: "Never argue with an idiot. They bring you down to
their level and beat you with experience."
I get the following error running a ruby program in Textmate, but it works
fine running it from the command line. The program creates a lot of strings,
and slightly reducing this just slightly makes the error go away.
I get this in Textmate
...
2 DATE 11 Jan 2001
at top level in 3 TIME 15 at line 56
1 RIN 13
but this on the command line (which is correct)
...
2 DATE 11 Jan 2001
3 TIME 15:56:49
1 RIN 13
Oddly, if I "puts s.reverse" in textmate, I get the right output too
(reversed of course:). I also don't get the error if I print to a file,
rather than printing to the Textmate output window (and I'm only printing
out a very short segment of text from the program).
s = f.to_gedcom
puts s #output window copy gives the error (before
File.open).
File.open('/tmp/xx.txt','w') { |fd| fd.print s } #file
copy is correct
puts s #output window copy gives the error (and also
after File.open)
So is there a heap or stack size issue running ruby from textmate? Any other
guesses at what is happening? It does it under Ruby 1.8.6 and Ruby 1.9.1.
--
View this message in context: http://www.nabble.com/Is-there-a-limited-heap-or-stack-for-running-ruby-in-…
Sent from the textmate users mailing list archive at Nabble.com.
Dear all,
I'm doing a very simple test every morning and sometimes more often:
run SVN update on my work dir (let's call that command A) and then
update the tag index of this source code (let's call that command B).
And I wanted to create a macro to do that.
The problem is that the macro launches the command A and launches
command B without waiting the end of command A. Do you have an idea on
how to automatize this (long to run) task with a macro. I could
probably do that with a command, but it would be cheating.
Thanks.
Best regards,
Mathieu
___________________________________________
Mathieu Godart
Skype: mathieu_godart
MSN: mathieu_godart(a)hotmail.com
ASIC Integration Manager
Coolsand Technologies
___________________________________________
Hi folks,
In case anyone else is interested, I've just put together a command
that aligns comments in a block - a trivially modified version of
Chris Poirer's 'align assignments' script.
It fixes this:
imagecopy($image, $frame,
($x=max($width-$this->topRightCap[kCapWidth], $this-
>topLeftCap[kCapWidth])), // Destination x
0, // Destination y
$x, // Source x
0, // Source y
min($this->topRightCap[kCapWidth], $width-$this-
>topLeftCap[kCapWidth]), // Source width
$this->topRightCap[kCapHeight]); // Source height
Ctrl-Option-Command-/, then:
imagecopy($image, $frame,
($x=max($width-$this->topRightCap[kCapWidth], $this-
>topLeftCap[kCapWidth])), // Destination x
0
, // Destination
y
$
x
, // Source
x
0
, // Source
y
min($this->topRightCap[kCapWidth], $width-$this-
>topLeftCap[kCapWidth]), // Source width
$this-
>
topRightCap
[kCapHeight]); // Source
height
More info & download at http://michael.tyson.id.au/2009/03/27/align-comments-in-textmate/
Cheers,
Michael
--
Michael Tyson | michael.tyson.id.au
m: (+61) 0407 754 124
e: michael(a)tyson.id.au
aim: mikerusselltyson
twitter: MichaelTyson
Hi TextMate users!
I'm using LaTeX with TextMate. Is it possible to get the Acrobat Reader in the "View in:"-selection in LaTeX Preferences? Where can I set this?
Thanks and regards!
I'm experiencing slowness when I use the number keys 1-9 (not 0). There's a
full second's delay from pressing a number to having it appear in the file
that I'm editing. Interestingly the problem also exists when changing using
Apple+Number keyboard shortcut to change between open file tabs. The problem
only occurs in projects.
Is anyone else having this problem? Any suggestions on a solution would be
greatly appreciated.
I'm using OS X 10.4.11 and I have the ProjectPlus plug-in installed.
--
View this message in context: http://www.nabble.com/Number-keys-slow-tp22668585p22668585.html
Sent from the textmate users mailing list archive at Nabble.com.
I had earlier asked a question about how to have the textmate editor
highlight the footnotes in my latex document. Link:
http://www.nabble.com/Highlighting-in-Textmate---Latex-to20379168.html#a203…
I had two very good responses to that question about how to find the scope
and how to modify the preferences. For footnotes, the scope was
meta.footnote.latex
Now I am using a package called "changes" in latex, which defines commands
like \added, \deleted and so on for tracking changes. I want to highlight
anything that appears in the braces in \added{}. Using the method suggested
in the above post I found the scope as meta.group.braces.tex. But this scope
is common to many other pair of braces (for example, subscripts,
superscripts, \vspace{} etc.) and it highlights all those too. How can I
have the editor just highlight something that appears between \added{}.
Thanks very much.
--
View this message in context: http://www.nabble.com/Custom-highlighting-in-latex-tp22727134p22727134.html
Sent from the textmate users mailing list archive at Nabble.com.
How can I escape certain chars in a selection in TM? If this is not
built in, can someone help me make a macro or equivalent to do so?
Example:
echo "<a href="untitled.html" id="name" class="name"
target="_self">test</a>";
I would select the entire line, it would be smart enough to know the
language from the string.
echo "<a href=\"untitled.html\" id=\"name\" class=\"name\" target=
\"_self\">test</a>";
I have a feeling there is probably something built in that can help
me, but I am just not finding it.
--
Scott * If you contact me off list replace talklists@ with scott@ *
When I edit a Template it stops working even when I edit just one tiny letter
in an out-commented text.
I do the following:
in the 'bundle editor' I expand the 'Project' Template and then I select the
'Project.as'. Here I placed the opening curly braces to be at the same line
as the function (and not at the next line).
public function ${TM_NEW_FILE_BASENAME}() {
When I close the window and try to make a new project from template nothing
happens.
Even when I revert my changes it won't work anymore, I have to reinstall the
whole bundle!
As said I also tried just to change a tiny letter in outcommented section of
_create_as3_project.sh with the same result.
What is the proper way of editing a Template?
--
View this message in context: http://www.nabble.com/How-to-edit-Actionscript3-Templates--tp22677253p22677…
Sent from the textmate users mailing list archive at Nabble.com.