Re: [dev] Suckless Way to Learn How To Program

2010-08-13 Thread Marc Weber
Excerpts from Brandon LaRocque's message of Sat Aug 14 00:20:17 +0200 2010: > This is a pretty easy question to ask, though I'm not sure how hard it > would be to answer. My question to those at Suckless is this: > > My son is interested in computer programming, and given the way that > programmin

[dev] [mkpkg] a suckless package manager

2010-08-13 Thread Connor Lane Smith
Hey all, There's already "slpm" by pancake, which consists of 247 lines of shell script. But I figured I could do it in less. So I wrote mkpkg, consisting of 8 lines of shell script, which can install a package or clean the package cache. A package looks like this: > dwm: dmenu > hg clone

Re: [dev] Suckless Way to Learn How To Program

2010-08-13 Thread Josh Rickmar
On Fri, Aug 13, 2010 at 06:20:17PM -0400, Brandon LaRocque wrote: > This is a pretty easy question to ask, though I'm not sure how hard it > would be to answer. My question to those at Suckless is this: > > My son is interested in computer programming, and given the way that > programming is being

Re: [dev][surf] Searchengines Patch Update

2010-08-13 Thread Matthew Bauer
You could add a "I'm Feeling Lucky" Google search with: +static SearchEngine searchengines[] = { +{ "g", "http://www.google.com/search?q=%s"; }, +{ "lucky", "http://www.google.com/search?q=%s&btnI=I'm+Feeling+Lucky" }, +{ "leo", "http://dict.leo.org/ende?search=%s"; }, +}; On Fri,

Re: [dev] Suckless Way to Learn How To Program

2010-08-13 Thread Szabolcs Nagy
* Brandon LaRocque [2010-08-13 18:20:17 -0400]: > My son is interested in computer programming, and given the way that > programming is being taught, I don't think it's the right way to go > about learning.What would you guys here suggest for a self-learning > curriculum that I could set up for hi

Re: [dev][wmii] wimenu custom completion

2010-08-13 Thread LuX
Hello! On Thu, 12 Aug 2010 21:19:52 -0400, Kris Maglione wrote: > if you're looking for a start, this is the above modified to (crudely) > complete a command and then files in the current directory This second variant is fantastic! It allows me to select a command with wimenu, add some options, f

[dev] Suckless Way to Learn How To Program

2010-08-13 Thread Brandon LaRocque
This is a pretty easy question to ask, though I'm not sure how hard it would be to answer. My question to those at Suckless is this: My son is interested in computer programming, and given the way that programming is being taught, I don't think it's the right way to go about learning.What would yo

[dev][surf] Searchengines Patch Update

2010-08-13 Thread Alex Puterbaugh
If anyone's interested, I've updated the searchengines patch to succeed with the latest hg pull. The diff: diff -r dbb565b8d61c config.def.h --- a/config.def.h Fri Jun 25 09:42:58 2010 +0200 +++ b/config.def.h Fri Aug 13 16:28:31 2010 -0400 @@ -7,6 +7,10 @@ static char *cookiefile

Re: [dev][wmii] wimenu custom completion

2010-08-13 Thread LuX
Hello! On Fri, 13 Aug 2010 17:39:12 +0100, Connor Lane Smith wrote: > An important thing to remember is that a feature does not need to be > in mainline for you to patch it in. I'm not at all a programmer, I have no ability for patching a program like this, but I accept this point. I accept al

Re: [dev] Re: [wmii] wimenu custom completion

2010-08-13 Thread Connor Lane Smith
Hey, On 13 August 2010 02:19, Kris Maglione wrote: > I can't speak for the dmenu developers, but new features are usually added > only after someone's written a patch and it becomes popular. Indeed. On 12 August 2010 21:51, LuX wrote: > By the way, is it intended to add to dmenu a similar feat

Re: [dev] Suckless design in Games

2010-08-13 Thread Connor Lane Smith
On 11 August 2010 19:15, Chidambaram Annamalai wrote: > Interesting. May I ask what languages you are familiar with? C, Python, and Java, mostly, with some Ruby, Vala, Awk, etc on the side. I've just never had a reason to learn C++, really. cls

[dev] Re: [wmii] wimenu custom completion

2010-08-13 Thread LuX
> Message de LuX: ven. 13/08/10, 12:15:41 +0200 > Which language is it, perl? Please forget about this… :-(

[dev] Re: [wmii] wimenu custom completion

2010-08-13 Thread LuX
Hi! On Thu, Aug 12, 2010 at 09:19:52PM -0400, Kris Maglione wrote: > Yes... Unfortunately awk dies on SIGPIPE in that example, so it never > runs the END block. This slight variation should work: [..] > Oh, but I notice that this doesn't work with gawk. Indeed. > You'll need to replace the // l