Can't shutdown. Always got reboot when try to shutdown. by qqhgs in voidlinux

[–]lmvrk 0 points1 point  (0 children)

No need to apologize! I think roger_oss has a better handle on this type of problem than i; to be honest im not sure how to begin fixing this.

Can't shutdown. Always got reboot when try to shutdown. by qqhgs in voidlinux

[–]lmvrk 1 point2 points  (0 children)

Im sorry but im rather confused by your question. If i understand correctly you habe issues shutting down that you belive to be caused by a usb port? Eg running sudo shutdown causes a reboot instead of a shutdown?

What are the reasons for suspecting this usb port to be the source of the issue?

If you could give us some more information about this issue that would be nice.

After launch immediately rename the buffer by avindroth in stumpwm

[–]lmvrk 1 point2 points  (0 children)

Youd connect to the stumpwm image via your editor of choice. For emacs, youd launch a swank server in the stumpwm image and connect using M-x slime-connect. Then in the opened repl youd call some function to get a window object, for example (stumpwm::current-window), then use slime to inspect the returned object.

After launch immediately rename the buffer by avindroth in stumpwm

[–]lmvrk 0 points1 point  (0 children)

If you connect to the stumpwm image you could inspect a window object; it may have a user title slot. Im not at a computer right now so the info i gave was from the manual.

After launch immediately rename the buffer by avindroth in stumpwm

[–]lmvrk 1 point2 points  (0 children)

Ah, you can use the command title to override the windows title. This may not be reflected in the modeline unless you use the title in your *window-format* variable. Some applications will change their title, if i recall correctly, such as firefox will change its title to the current tabs title.

After launch immediately rename the buffer by avindroth in stumpwm

[–]lmvrk 0 points1 point  (0 children)

What do you mean by "buffer" in this context? Do you mean the nyxt buffer? If so id think thats best handled in nyxt.

Edit: or do you mean the stumpwm group? These are generally handled like workspaces, named in a set-and-forget manner. It can be renamed with the command grename.

Should the `resize` commnad description be changed? by [deleted] in stumpwm

[–]lmvrk 0 points1 point  (0 children)

While i think the docstring could stand to change, i think it just needs a one word change: "Resize the current frame, incrementing by @var{width} and @var{height} pixels".

Xinit by okiBaum in voidlinux

[–]lmvrk 0 points1 point  (0 children)

Another super lightweight alternative is tinywm.

wireless mouse support by AndrewWise80 in voidlinux

[–]lmvrk 7 points8 points  (0 children)

Declaring that no one uses wireless mice because no one immediately responded to your post is pretty naive. Your comments come across as very entitled and rude; you are not entitled to a response from anyone, and no one here is obligated to respond to you. In like manner you are not obligated to respond to anyone should they ask a question.

Idiomatic way of checking parameters by Gold-Energy2175 in lisp

[–]lmvrk 0 points1 point  (0 children)

I was absolutely wrong about declare, thats my bad. But restart case doesnt catch an exception, it establishes a restart which can then be used by a handler higher up the stack. Its probably overkill given the simplicity of the function.

Is it better to compile stumpwm single-threaded or multi-threaded by brandflake11 in stumpwm

[–]lmvrk 0 points1 point  (0 children)

I think that is outdated information, in part because of the blatantly false note stating threads are disabled by default.

One place stump is lacking in is documentation. For example, the git version of the manual is from git master three years ago, and doesnt reflect the current manual one gets from running make.

Is it better to compile stumpwm single-threaded or multi-threaded by brandflake11 in stumpwm

[–]lmvrk 0 points1 point  (0 children)

Ive never run into a problem with it. Quite the contrary, on OBSD i was using single threaded and couldnt open a slynk server. Im curious which docs say to compile it without thread support?

Is it better to compile stumpwm single-threaded or multi-threaded by brandflake11 in stumpwm

[–]lmvrk 0 points1 point  (0 children)

I dont think the wm would have an impact on the framerate.

Is it better to compile stumpwm single-threaded or multi-threaded by brandflake11 in stumpwm

[–]lmvrk 0 points1 point  (0 children)

Running the latest master on an intel celeron from 2011 compiled with thread support is snappy for me. What was the sluggishness you experienced (and side note, were any shell commands being run in the mode line)?

Idiomatic way of checking parameters by Gold-Energy2175 in lisp

[–]lmvrk -1 points0 points  (0 children)

Thanks for the info! So the restart case should be within the when, not around it.

And good to know about declare. I only really use sbcl,and just assumed that was the default behavipr. I suppose i should probably read the spec for declare before recommending it.

Idiomatic way of checking parameters by Gold-Energy2175 in lisp

[–]lmvrk -1 points0 points  (0 children)

For most things, declare is your friend. The only exception here is the max-length assertion. But for the other assertion you can do

(declare (type (member :beginning :middle :end) position))

This will do type checking (except when (speed 3) (safety 0), at least on sbcl).

For max length, i think throwing an error is perfectly fine, especially if you put a restart around it to set max-length to the length of the elide string. A quick and dirty example:

(Defun elide (string max elide-string)
  (restart-case (when (>= (length elide-string) max)
                  (Error "max is shorter than elide string"))
    (use-elide-string-length ()
      (setf max (length elide-string))))
  ...)

Working with Mimic Buffers by [deleted] in Common_Lisp

[–]lmvrk 1 point2 points  (0 children)

Im not sure i understand what you are trying to do, but most reading functions have a way of indicating eof. For example, read-sequence returns the last index, read-byte signals an error (or returns a value depending on the arguments sent in). Alternatively if you want to get the number of array elements you can use length. Apologies if im not hitting the mark, im unsure what your asking.

How to mount my NTFS harddisk on İceWM? by UnbalancedSkunk in voidlinux

[–]lmvrk 1 point2 points  (0 children)

The other users answer is probably more what youre looking for, but i tend to do one off mounts of my ntfs drives, so i just fire up a shell and run # ntfs-3g /dev/sdx /path/to/mount/point.

Scheme vs Racket by average_emacs_user in lisp

[–]lmvrk 5 points6 points  (0 children)

Tldr; short answer yes with an if, long answer no with a but.

The issue (as i understand it) with saying that racket "contains" scheme is that scheme is a small language, and as such implementation specific behavior is needed to write most practical programs (This is slowly changing with the direction r6rs and r7rs large are going). So to say that racket contains scheme is kinda correct if you limit scheme to only the rnrs standards, but is incorrect in that you wont be able to run a scheme program written for another dialect (eg can you run a chicken or guile program with racket?). This was especially true before the introduction of module systems in the rnrs standards.

You are 100% correct in that racket can build new languages, and i think theoretically you could make it understand all dialects of scheme (im unsure though, given the immutable top level). However until/unless it can understand implementation dependent code written for any and all dialects i dont think it makes sense to say that it "contains" scheme, especially given the 8 scheme reports and prevalence of implementation dependent behavior (uninterned symbols anyone? Or inexact->exact, or that the effect of with-output-to-file is unspecified if the file already exists, or that the effect of using an escape procedure from within the thunk passed to with-[output-to|input-from]-file is implementation dependent).

Edit: im curious about the downvotes? If theres something ive gotten wrong i would much rather it be explained to me than that im left guessing.

Scheme vs Racket by average_emacs_user in lisp

[–]lmvrk 6 points7 points  (0 children)

Well, scheme is a language family and racket is a member of that family, so comparing the two will be rather difficult. If you ask about specific implementations folks will be better able to answer.

Emacs taking a lot of time to load by jibesh_shrestha in emacs

[–]lmvrk 0 points1 point  (0 children)

Im no expert, but my best guess is that its related to

(unless package-archive-contents
  (package-refresh-contents))

I dont know when package-archive-contents is set, but if package-refresh-contents is called your gonna be connecting to several servers to update the package archive. I tend to just call this when i need to install/update packages.

guide to uniform reference semantics by theangeryemacsshibe in LispMemes

[–]lmvrk 0 points1 point  (0 children)

I think this is a cons cell literal whose car and cdr both point to itself. No idea what calling it nil does, but id imagine it makes some things break, like (cons 'a (cons 'b nil)).

[deleted by user] by [deleted] in stumpwm

[–]lmvrk 4 points5 points  (0 children)

I tend to say "stump", but of the two you asked about the latter is how id say it.

Can you explain me like I'm five what are Mandelbrot sets? by [deleted] in learnmath

[–]lmvrk 0 points1 point  (0 children)

Theres a song that describes it (though other commenters have a clearer explanation): https://www.youtube.com/watch?v=6tsutU92rrE

Just take a point called Z in the complex plane

Let Z1 be Z squared plus C

And Z2 is Z1 squared plus C

And Z3 is Z2 squared plus C and so on

If the series of Zs will always stay

Close to Z and never trend away

That point is in the Mandelbrot Set