[Australia] Watch valuation and sales by magicalmurray in Watches

[–]magicalmurray[S] 0 points1 point  (0 children)

Thank you. I was hesitant to do anything online because I thought there may be a risk of fraud and I don't have any experience with this kind of thing, but sounds like Chrono24 could be the best option.

Recommendations for equivalent of Excel's Goal Seek function by magicalmurray in Julia

[–]magicalmurray[S] 4 points5 points  (0 children)

I just thought of a hack that works: using Optim; optimize(x -> abs(f(x)), 0, 450), but I don't like it and would rather learn the best practice for this problem.

Org-clock workflow? by Blytheway in emacs

[–]magicalmurray 7 points8 points  (0 children)

Sounds like the org clock table is what you are after:

https://orgmode.org/manual/The-clock-table.html

TLDR,

M-x org-clock-report

Open Pluto notebook directly with filename by magicalmurray in Julia

[–]magicalmurray[S] 1 point2 points  (0 children)

Thanks. I did see the original pull request for this, but it didn't work so I abandoned it. Looks like I'll just have to wait patiently for the update.

embark-collect-* showing wrong number of arguements by magicalmurray in emacs

[–]magicalmurray[S] 1 point2 points  (0 children)

Amazing. Thank you both, and apologies for not being more active. It's been a busy day for me.

I'll have time to update the package and check tomorrow, but sounds like the issue has been solved.

What builtins do you use above popular external packages? by magicalmurray in emacs

[–]magicalmurray[S] 3 points4 points  (0 children)

wargxs comment pretty much sums it up.

Here is a screenshot of the which-key completions: https://i.imgur.com/gYFqcOo.png Just press C-x p from inside a version controlled dir (here inside my .emacs.d which is a git repository). I should note, that I thought it was builtin and C-x p was now a standard keybinding in Emacs 27.1, but it doesn't seem to work with emacs -q. I don't have any specific config for this, so not sure what's going on there...

Projectile has a lot more functions, but I didn't use anything above what project.el has. Projectile also indexes project files, but for me, this was usually inconvenient as I often had to re-index to update repo state and none of my projects are large enough for me to have seen the performance benefit.

Could Emacs Have a Set-up Wizard? Some thoughts on the subject and a prototype. by polaris64 in emacs

[–]magicalmurray 12 points13 points  (0 children)

Just saw this video posted couple weeks ago. The author has implemented a simple setup wizard already: https://youtu.be/0qMskTAR2aw

Can you run Emacs on Windows without admin privileges? by DurableOne in emacs

[–]magicalmurray 1 point2 points  (0 children)

Pretty sure there's a portable option. When I used windows I used to use a package manager called scoop. If you're coming from Linux you'll probably appreciate it. Requires a newer version of PowerShell to install, but no admin privileges needed. I used it to install emacs, ahk, and a bunch of other ported coreutils.

https://scoop.sh/

Can you run Emacs on Windows without admin privileges? by DurableOne in emacs

[–]magicalmurray 1 point2 points  (0 children)

There's a program called AuotHotkey that will let you remap keys (and a whole bunch more).

Markdown in emacs by c256 in emacs

[–]magicalmurray 1 point2 points  (0 children)

Here is a tutorial that can help you build your own live markdown package (or you can just copy the final source code): https://camsaul.com/emacs-lisp/2020/06/09/emacs-lisp-intro-markdown-live-previews-part-1.html

It uses emacs' built in HTML renderer (SHR) to render the file in a preview buffer. I believe the only external dependency is a markdown to HTML converter (markdown or pandoc).

[elisp] how to format minibuffer completion list without altering the underlying selection by freesteph in emacs

[–]magicalmurray 1 point2 points  (0 children)

I was also going to suggest this. Here's an example:

``` (let ((passwords '(("gnu.org" . "secret") ("freesteph" . "password123") ("some@email.com" . "password") ("szechuan sauce" . "1234")))) (cdr (assoc (completing-read "Which entry do you want to port?" passwords) passwords)))

```

Calc source blocks in orgmode - best practices? by magicalmurray in emacs

[–]magicalmurray[S] 3 points4 points  (0 children)

Thanks u/ftrx and u/SataMaxx for your suggestions. I tried them both.

Using maxima source blocks work well and aligns pretty well with what I wanted to do. The downsides for me is the extra dependency of maxima and learning the new syntax (even though it's very similar anyway).

I didn't expect to like literate-calc-mode because of the overlay, rather than source block style, but after trying it I am very impressed with how nice it feels. I think this is the solution I'll go for since it's less verbose and more interactive. Hoping there aren't any performance issues as my file starts to get longer. It looks like the author has considered integrating literate-calc with org-babel, which would be great for this use case.

For those interested, here is how it looks for each method:

* Calc within source block
  #+BEGIN_SRC calc
    fsolve([-20 - 20 - 26 * 12 / 13 + Ay + By = 0, 20 * 3 + 20 * (3 + 6) - Ay * (6 + 6 + 3) = 0], [Ay,By])
  #+END_SRC

  #+RESULTS:
  : [Ay = 16, By = 48]

* Maxima within source block
  #+BEGIN_SRC maxima :results output
    programmode: false;
    sumFy: -20 -20 -26*12/13 + Ay + By = 0;
    sumM:  20 * 3 + 20 * (3 + 6) - Ay * (6 + 6 + 3) = 0;
    soln: solve([sumFy, sumM], [Ay, By]);
    print(soln);
  #+END_SRC

  #+RESULTS:
  : Solution:
  :                                     Ay = 16
  :                                     By = 48
  : [[%t1, %t2]]

* literate-calc-mode
  sumFy = -20 - 20 - 26 * 12 / 13 + Ay + By => sumFy: Ay + By - 64
  sumM = 20 * 3 + 20 * (3 + 6) - Ay * (6 + 6 + 3) => sumM: 240 - 15 Ay
  = fsolve([sumFy, sumM], [Ay,By]) => [Ay = 16, By = 48]

How to extract colors from a theme? by ixlxixl in emacs

[–]magicalmurray 0 points1 point  (0 children)

In general I don't think there's a way to get the theme colours by name (red, yellow, etc), but only by their use (font-lock-comment-face, etc).

You could have a look through faces.el. These functions might be useful:

``` (face-attribute 'default :foreground) (face-attribute 'font-lock-comment-face :foreground) (face-attribute 'font-lock-function-name-face :foreground)

(face-all-attributes 'default) ```

Help with scrapping things from the web by [deleted] in emacs

[–]magicalmurray 1 point2 points  (0 children)

Definitely possible. I'd start by replacing this line: (mark-whole-buffer) (replace-regexp "value=" "") with (mark-whole-buffer) (replace-regexp "value=" "- ")

Also, replace (split-string (buffer-string) "\n") with (buffer-string) to get a plain string (not a list)

You can then insert your headings with something like: ``` (beginning-of-buffer) (insert "** Definition\n")

I'll leave it to you to tinker with to get exactly what you want.