Re: Help setting up ardour
On Mon, 2019-09-09 at 11:10 +0200, Ricardo Wurmus wrote: > Jesse Gibbons writes: > > > On Sat, 2019-08-31 at 14:17 +0200, Ricardo Wurmus wrote: > > > Hi Jesse, > > > > > > > under certain conditions; see the file COPYING for details > > > > JACK is running in realtime mode, but you are not allowed to > > > > use > > > > realtime scheduling. > > > > grep: /etc/security/limits.conf: No such file or directory > > > > Please check your /etc/security/limits.conf for the following > > > > line > > > > and correct/add it if necessary: > > > > @audio - rtprio 99 > > > > > > Why doesn’t /etc/security/limits.conf ekxist? Have you > > > reconfigured > > > your > > > system with the limits service that is suggested in the manual? > > > > > > > I added the pam-limits-service, reconfigured, and restarted but the > > issue persists. > > This is very strange and I can’t reproduce the problem :-/ > > Your configuration looks okay. > The attached system definition replicates this behavior in a VM. jackd works (jack -R -dalsa, or started by qjackctl) when I am root, but not when I am an unprivileged user.(use-modules (gnu) (gnu services desktop) (gnu services sound)) (operating-system (bootloader (bootloader-configuration (bootloader grub-bootloader))) (host-name "jack-os") (file-systems (cons (file-system (type "ext4") (mount-point "/") (device (file-system-label "my-root"))) %base-file-systems)) (timezone "America/Boise") (users (cons (user-account (name "user") (comment "not root") (group "users") (password (crypt "" "nr")) (supplementary-groups '("wheel" "netdev" "audio" "video"))) %base-user-accounts)) (packages (cons* (specification->package "ratpoison") (specification->package "xterm") (specification->package "icecat") (specification->package "nss-certs") (specification->package "qjackctl") (specification->package "jack") (specification->package "alsa-plugins") %base-packages)) (services (cons* (pam-limits-service (list (pam-limits-entry "@audio" 'both 'rtprio 99) (pam-limits-entry "@audio" 'both 'memlock 'unlimited) (pam-limits-entry "@realtime" 'both 'rtprio 99) (pam-limits-entry "@realtime" 'both 'memlock 'unlimited))) %desktop-services)) (name-service-switch %mdns-host-lookup-nss))
Re: network-manager-openconnect setup - [External Email]
>> Trying to use it, after I installed it system wide and rebooted I get >> this; >> >> ~ á sudo nmcli con up vpn-fnb --ask >> Error: Connection activation failed: The VPN service >> 'org.freedesktop.NetworkManager.openconnect' was not installed. >> >> I read the manual which says: >> >> ‘vpn-plugins’ (default: ‘'()’) >> This is the list of available plugins for virtual private >> networks (VPNs). An example of this is the >> ‘network-manager-openvpn’ package, which allows NetworkManager >> to manage VPNs via OpenVPN. >> >> I therefore tried this in my config >> >> (network-manager-service-type >> config => (network-manager-configuration >> (inherit config) >> (dns "dnsmasq") >> (vpn-plugins '("network-manager-openconnect")) >> )) > > If nothing else, you should go with the `network-manager-openconnect' > package object here. In your snippet, you are referring to the string > "network-manager-openconnect" instead. > > Something like the following should solve your immediate issue: > (vpn-plugins (list network-manager-openconnect)) Makes total sense and fixed my issue. lol. Thank you! >> This email is subject to a disclaimer. >> >> Visit the FNB website and view the email disclaimer by clicking the "About >> FNB + Legal" and "Legal Matters" links. >> If you are unable to access our website, please contact us to send you a >> copy of the email disclaimer. > You might want to reconsider adding this disclaimer, as this is a > mailing list with publicly available archive at > https://secure-web.cisco.com/1ZqvkATgEJFvkJ0wXj8_z-wGnZxvhwLIU37BHOD45mu8BrI5hPANkSnMovtDIesYvFhfwcMF9SB3LrdwGv93tSbkjtod_wj4NEdkVwwobbtbyHtHDuSZmzbnjuguSGq3xrsU_kSNmXaJl44RuAvnuqUGgit_azcAyomzTSbRzxxPvsZrevJ1kJyhakR0ZmLg9Y9-4lDg3KCILV3yD_PNoNNdlRyr9a4zGkQs1-2oWt6O4N0dskups5ky9TWpAX22wKjkcV6lkhkMPOmMi3E8VyDcL73U6--0xfUNoANQas0ab0nBJMe46uj4kPbYxL5xyes5MYR0tfu0uQ3-wt9Gf1g/https%3A%2F%2Flists.gnu.org%2Farchive%2Fhtml%2Fhelp-guix%2F My personal mail server was down due to upstream ISP blocking incoming port 80 (go figure!), which broke my SSL cert renewals, so I temporarily used work mail. :grin:
Re: network-manager-openconnect setup - [External Email]
>> Bonus points for anyone who knows why when I copy and paste into Emacs I >> get these weird characters. >> >>588:24 2 (inferior-package->manifest-entry "network-manager-opeâ¦" â¦) > > The weird characters above, "â¦", should be a "HORIZONTAL ELLIPSIS" > character "…" with unicode scalar value U+2026. In the UTF-8 encoding, > the horizontal ellipsis is represented by three bytes with hex codes E2, > 80, and A6. The three weird characters "â¦" are what you get when > those three bytes are misinterpreted as Latin-1, a.k.a. ISO-8859-1 > encoding. > > Guile only outputs Unicode HORIZONTAL ELLIPSIS in backtraces if your > current locale has an encoding for that character. Otherwise, it will > print three ASCII periods ("...") instead. So, it appears that your > locale environment variables (the ones printed by the "locale" command) > are configured for a UTF-8 locale. > > I guess that somewhere else in your system, something is configured to > use Latin-1 (ISO-8859-1) encoding. It could be Emacs itself, or perhaps > your terminal emulator. Mark, really appreciate above - thanks. It sorted my issue out.
Re: Help with Learning Programming and LISP
Hi, I’d like to second Vladimir’s recommendation of Felleisen's How to Design Programs (https://htdp.org/). It is a very well-written book that doesn’t go too deep without preparing you first. (I should note that I didn’t finish it.) SICP is a classic, and it is very comprehensive, but it is also has a steeper learning curve than other books. Some of the exercises are really hard, and some are a little too “engineery” for casual programmers. You will spend a lot of time on each important concept, but it can be hard to stay motivated for as long as it takes to get to the next exciting concept. I prefer the videos by the authors, which cover the same ground but more quickly, so staying motivated is less of an issue. If you want a book that will definitely keep you busy: this is it. Unlike others, I did not enjoy The Little Schemer much. It has a very unique style of questions and answers, but sometimes it feels very forced and it ended up confusing me more than it helped. Some people swear by The Little Schemer, but personally I would not recommend it to new learners. “The Land of Lisp” is quirky and an odd joy to read! It’s got cartoons and weird drawings, so if you have a short attention span like me you’ll appreciate that. If you use it to prepare yourself for learning Scheme, though, you’ll be disappointed as the code they present is not at all idiomatic Scheme. There’s a lot of mutation and inelegant Common Lisp forms (well, “inelegant” or “overengineered” from a Schemer’s perspective, perhaps) that are not how you’d do things in Scheme. There’s hardly anything about functional programming in the book, and sometimes I found the examples too long to develop an intuition about the problem and how to solve it myself from scratch. (The author also compares Haskell and purely functional programming to an oppressive regime in a cartoon, which I think is in poor taste.) Perhaps games aren’t the best kinds of problems for learing a new language. “Realm of Racket” is very similar to “Land of Lisp”, but I had — inexplicably — less fun and ended up skipping over many of the examples. It’s not really a problem with the writing — perhaps I just grew tired of motivating myself with games. It uses Racket, which I think is a more beautiful (collection of) language(s) than Common Lisp, and it is closer to what you would find in Guile. -- Ricardo
Re: Help with Learning Programming and LISP
I've read Practical Common Lisp. It's very good to learn Common Lisp if you already know the basics of programming. It's rather "practical" and does not go into the deeper concepts introduced by SICP. In particular, it does not deal much with functional programming. -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature
Re: Help with Learning Programming and LISP
On Mon, 2019-09-09 at 09:38 -0700, John Soo wrote: > Hi Raghav! > > > I would like to learn programming starting with LISP > > Great! Lisp is probably the best language to start with! > > Lisp books also rank among the best introductory materials to > programming. I highly recommend these two: > > - Structure and Interpretation of Computer Programs (often called > SICP) > > This uses a dialect of scheme, so you can do the exercises without > much translation using guile or racket. It touches on many aspects of > computer science and I think is closest to the swiss-army knife you > deacribed. There are also excellent lectures freely available on > YouTube by the authors. > > - Land of Lisp > > This is an introduction to Common Lisp. I am less familiar with it, > but it always comes highly recommended as a fun introduction to > programming by writing simple games. If I’m not mistaken, it may be a > little more pragmatic than SICP. > > Hope that helps and happy hacking! > > - John SICP is packaged in guix. "guix install sicp" will install the HTML and info versions. Land of Lisp looks good, but I haven't read it. The author helped write "Realm of Racket" which looks very similar, but I haven't read it either. As for emacs lisp, the "emacs lisp intro" (aka "An Introduction to Programming in Emacs Lisp.") is a good start and "elisp" (aka "GNU Emacs Lisp reference manual.") is full of reference material. Both can be downloaded from the emacs site[1] and are included in emacs by default. (C-h i C-s "emacs lisp" should help you find them.) [0] https://nostarch.com/realmofracket.htm [1] https://www.gnu.org/software/emacs/manual/
Re: Help with Learning Programming and LISP
Here are some "introductory yet comprehensive" books about programming with Scheme that will help you get proficient with Guile and other Scheme implementations: Felleisen et al's How to Design Programs: https://htdp.org/ Havrey and Wright's Simply Scheme Springer and Friedman's Scheme and the Art of Programming Out of these I recommend Havrey and Wright's Simply Scheme the most. It has the best treatment of input/output and text processing, a couple of large realistic projects (a spreadsheet and a database), and a chapter on Common Lisp. Vladimir
Re: Help with Learning Programming and LISP
Hi TGR, > Heh… I freely admit to not having a clue what ‘Swiss-army knife’ really > means in this context. > > SICP is great! Haha, I think I meant from a computer science perspective. I suppose that probably does not cover what most people think of as a swiss-army-knife, though. Nonetheless I think neither of us could recommend SICP highly enough. - John
Re: Help with Learning Programming and LISP
> Hope that helps and happy hacking! Thank you John! signature.asc Description: This is a digitally signed message part
Re: Help with Learning Programming and LISP
> I can't personally vouch for either, but I hope to have been of > service. Thank you Tobias! signature.asc Description: This is a digitally signed message part
Re: Help with Learning Programming and LISP
Tobias Geerinckx-Rice 写道: I don't think [SICP] can be described as swiss army knife. John Soo 写道: I think [SICP] is closest to the swiss-army knife you deacribed. Heh… I freely admit to not having a clue what ‘Swiss-army knife’ really means in this context. SICP is great! Kind regards, T G-R signature.asc Description: PGP signature
Re: Help with Learning Programming and LISP
Raghav, I can't *not* mention classics like SICP (Free, comes with retro-wave videos, easily found on-line), and The {Little,{R,S}easoned} Schemer series (not free, and not for everyone). Both of these focus on Scheme, which as you probably know is a very elegant minimal dialect of Lisp. With that out of the way, and as much as I enjoyed them, I don't think either can be described as swiss army knives. I just last week downloaded ‘The Land of Lisp’[0] for a friend. It's definitely more modern and a lot more silly, aims to help you ‘learn Lisp, one game at a time’, and sounds the hands-on introduction you're looking for. In the more serious camp: I've heard good things about Practical Common Lisp. Unlike Land of Lisp, it's freely available on-line[1]. I can't personally vouch for either, but I hope to have been of service. Kind regards, T G-R [0]: http://landoflisp.com/ (beware: my IceCat shows an audio icon :-) [1]: http://www.gigamonkeys.com/book/ signature.asc Description: PGP signature
Re: Help with Learning Programming and LISP
Hi Raghav! > I would like to learn programming starting with LISP Great! Lisp is probably the best language to start with! Lisp books also rank among the best introductory materials to programming. I highly recommend these two: - Structure and Interpretation of Computer Programs (often called SICP) This uses a dialect of scheme, so you can do the exercises without much translation using guile or racket. It touches on many aspects of computer science and I think is closest to the swiss-army knife you deacribed. There are also excellent lectures freely available on YouTube by the authors. - Land of Lisp This is an introduction to Common Lisp. I am less familiar with it, but it always comes highly recommended as a fun introduction to programming by writing simple games. If I’m not mistaken, it may be a little more pragmatic than SICP. Hope that helps and happy hacking! - John
Help with Learning Programming and LISP
Hello Folks! I do not have any computing and programming background. I would like to learn programming starting with LISP. I found out that there are dialects of LISP. The ones I am interested in are Common LISP, Emacs LISP, Scheme and Guile Scheme. Can some one suggest indroductory yet comphrensive books (self-study) for computing and programming and LISP? Looking for a swiss-army-knife kind of book. Thank you! Regards, RG. signature.asc Description: This is a digitally signed message part
guix repl in emacs and shell
Continuing with my experiments with guix/guile REPL, I tried loading a module into guix REPL instance in Emacs: ,use (gnu packages xorg) This failed with "no code for module (git)" error. The same code works from the command line REPL. Comparing the %load-path variables between the instances, it looks like guix-module-union path is missing in Emacs case. Is this normal? Have I been misusing guix-switch-to-repl functionality in Emacs?
Re: Help setting up ardour
Jesse Gibbons writes: > On Sat, 2019-08-31 at 14:17 +0200, Ricardo Wurmus wrote: >> Hi Jesse, >> >> > under certain conditions; see the file COPYING for details >> > JACK is running in realtime mode, but you are not allowed to use >> > realtime scheduling. >> > grep: /etc/security/limits.conf: No such file or directory >> > Please check your /etc/security/limits.conf for the following line >> > and correct/add it if necessary: >> > @audio - rtprio 99 >> >> Why doesn’t /etc/security/limits.conf exist? Have you reconfigured >> your >> system with the limits service that is suggested in the manual? >> > I added the pam-limits-service, reconfigured, and restarted but the > issue persists. This is very strange and I can’t reproduce the problem :-/ Your configuration looks okay. -- Ricardo
Re: guix repl and ice-9 modules
... which leads to a question, why is there no readline anymore? I notice it is a separate package in guix. Is this a guix decision, or a new development in guile? ‐‐‐ Original Message ‐‐‐ On Monday, 9 September 2019 09:55, Todor Kondić wrote: > Oops, my bad. After a closer inspection of %load-path, I noticed that guile > modules are indeed there, however the one module that I tried to load (ice-9 > readline) seems not to be in the distro anymore. > > ‐‐‐ Original Message ‐‐‐ > On Monday, 9 September 2019 09:47, Todor Kondić via help-guix@gnu.org wrote: > > > Is it normal that I can't load ice-9 modules from within guix repl ? > > Because, this is the default behaviour on my hybrid system (guix on top of > > pop-os (ubuntu) ).
Re: guix repl and ice-9 modules
Oops, my bad. After a closer inspection of %load-path, I noticed that guile modules are indeed there, however the one module that I tried to load (ice-9 readline) seems not to be in the distro anymore. ‐‐‐ Original Message ‐‐‐ On Monday, 9 September 2019 09:47, Todor Kondić via wrote: > Is it normal that I can't load ice-9 modules from within guix repl ? Because, > this is the default behaviour on my hybrid system (guix on top of pop-os > (ubuntu) ).
guix repl and ice-9 modules
Is it normal that I can't load ice-9 modules from within guix repl ? Because, this is the default behaviour on my hybrid system (guix on top of pop-os (ubuntu) ).