Arc Forumnew | comments | leaders | submit | markkat's commentslogin
1 point by markkat 5131 days ago | link | parent | on: Sorting a list by most common elements.

Thanks akkartik! That is concise. :)

This is going to lead me to rethink some of my previous functions.

-----

2 points by markkat 5215 days ago | link | parent | on: Sending email from Arc.

Thanks akkartik this should get me started. Much appreciated.

EDIT: Awesome I think I've got it. Thanks again!

-----

1 point by markkat 5236 days ago | link | parent | on: Basic string trimming function.

Thank you! Tokens, where have you been?!

-----

2 points by zck 5236 days ago | link

I'm not sure if you've seen it, but arcfn.com is a great arc reference guide: http://files.arcfn.com/doc/ There are a few things that I've found are out of date, but it's mostly accurate.

Here's the documentation for tokens: http://files.arcfn.com/doc/string.html#tokens

-----

2 points by markkat 5235 days ago | link

Thanks zck. I have it. But apparently that wasn't enough for me yesterday. :) BTW, and updated or Anarki version would be wonderful.

-----

1 point by markkat 5281 days ago | link | parent | on: www to non-www redirect in svr.arc

Thanks aw. I'll do my best to take it from there. It's appreciated. I've so little experience with this.

-----

2 points by aw 5281 days ago | link

Do post again as soon as you run into any problems or get stuck anywhere. (It will not only help you, but also the people who come after you who need the same thing you do).

-----

1 point by markkat 5280 days ago | link

Will do. It might take a a few days to get to this, but I'll post my problems, and hopefully, progress. :)

-----

1 point by markkat 5281 days ago | link | parent | on: www to non-www redirect in svr.arc

Yes, rocketnia is right. That's what I'm getting at. I haven't used a reverse proxy yet. But I am at least using the setuid line in svr.arc now. ;)

-----

1 point by markkat 5329 days ago | link | parent | on: Still noobing with news.arc

Thanks aw. I'm trying to make that patch happen right now. I'm hanging up on getting scheme0 reqs though. Added extend0 and scheme0 and the two defarc0 patches, but not quite sure where I am going wrong. Probably something silly. Trying to figure it out. :)

-----

3 points by aw 5329 days ago | link

Check out the "script" command (type "man script" to get the documentation). It will make a transcript of your terminal session, everything you type and everything that gets printed. You can then copy that transcript into a comment here or email it.

-----

1 point by markkat 5329 days ago | link

Ugh, that sounds like one of those 'going to work naked' nightmares. :/ BTW, thanks for the advice on the patches. -Aw is aware, but for posterity, I was loading 'scheme0.arc' after svr.arc in libs. Thanks for pointing that out aw.

-----

1 point by markkat 5330 days ago | link | parent | on: Still noobing with news.arc

Thanks akkartik. Yes, requests go to arc. Email sent. :)

-----

1 point by markkat 5343 days ago | link | parent | on: Noob question.

Thanks, rocketnia. That really does clear some things up. Here, 'some works great for me, since I am passing the result to 'case with two instances.

I can't say I have got a feel for Arc yet, but I think I am starting to. The more I work with it, the more it seems to open up. Not so much that feeling with the HTML definitions, however. But I am not going down that road until I have a much better handle on the language.

BTW, are there any good editors other than vi and emacs? I used vi years ago for FORTRAN, didn't like it, and have never used emacs. Currently I am using Wordpad. :p

-----

1 point by evanrmurphy 5343 days ago | link

> BTW, are there any good editors other than vi and emacs? I used vi years ago for FORTRAN, didn't like it, and have never used emacs. Currently I am using Wordpad. :p

Not sure how anyone could would want something besides vi/vim or emacs, but I use emacs with vim key bindings so maybe I'm biased. ;)

vi and emacs are great editors, but each has a mammoth learning curve. I think this is why they often make bad first impressions. I'd be interested to know more about your experience with vi and what you disliked about it.

Other editors I see people using include Notepad++, Textmate, jEdit, nano, NetBeans and DrRacket (which you might like for Arc and Racket code). Unfortunately, I don't know much about these firsthand.

-----

2 points by markkat 5343 days ago | link

I guess I expected this answer. :) Although I hadn't heard of nano. I should probably bite the bullet and start to familiarize myself with emacs or vi since they are so universal. Probably emacs.

My experience with vi involved some physics modeling years ago in undergrad. I recall 'zz'? I never stop forgetting to toggle the input mode. I don't know why. Maybe I am a bit right-brained, but I have a sloppy way of working. Something about vi felt so 'tight', and I prefer a canvas feel. Not really the best mindset for programming, no doubt, but I have learned it's ok to be a bit sloppy and get things done rather than be very neat and unproductive.

Sorry, starting waxing philosophical there... thanks.

-----

1 point by rocketnia 5343 days ago | link

For what it's worth, you're not the only one. I haven't gotten the hang of anything but the Windows text box conventions. :)

Pretty much all I want is an editor that loads quickly, shows whitespace, highlights matching parens, and does regex search-and-replace and find-in-files. Usually my choice has been EditPlus, but Notepad++ is a great open-source alternative, and gedit's another good one (although I think I've had to use grep separately with gedit).

I turn to jEdit for editing Unicode documents, NetBeans for editing C/C++, and DrRacket for editing big Racket projects, but those are extremely rare situations for me. Most of the time I avoid all three of them because of how long they take to load; I can almost always get in and out faster with plain Notepad.

I haven't looked at TextMate or nano.

-----

1 point by evanrmurphy 5343 days ago | link

> Something about vi felt so 'tight', and I prefer a canvas feel. Not really the best mindset for programming, no doubt, but I have learned it's ok to be a bit sloppy and get things done rather than be very neat and unproductive.

Upvoted for waxing philosophical.

-----

1 point by thaddeus 5343 days ago | link

Textmate (http://macromates.com/) at least has syntax colouring using aran's bundle:

https://github.com/aran/arc.tmbundle

If you're on windows, there's a version of textmate called 'e:

http://www.e-texteditor.com/

It can use aran's syntax colouring bundle as well.

-----

1 point by markkat 5344 days ago | link | parent | on: Noob question.

'Unboxing' was one of the paths I was going down during my trial and error, actually. Just didn't feel right. Thanks for the heads-ups.

-----

1 point by markkat 5344 days ago | link | parent | on: Noob question.

Thanks, 'some did the trick. I really could have saved myself some time there. Maybe I learned something trying... :)

Much appreciated.

-----

More