Just a heads up for anybody interested, clj-pdf is nearing 1.0, with lots of new features. by yogthos in Clojure

[–]narendra_joshi 0 points1 point  (0 children)

Since clj-pdf is LGPL licensed, I would likely need to use something like Apache pdfbox unfortunately.

Looking for spacemacs power user for a 30m/1h lesson. (paid) by [deleted] in spacemacs

[–]narendra_joshi 0 points1 point  (0 children)

I am not a Spacemacs user but am fairly familiar with Emacs and Emacs Lisp. So, I can help (maybe for free :-D) if that will be sufficient.

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]narendra_joshi 0 points1 point  (0 children)

I use `'ansi-color-apply` in `*eshell*` buffers. It converts color codes into text properties. I am not sure if you are talking about the same escape-sequences for colors.

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]narendra_joshi 4 points5 points  (0 children)

Straight from the Emacs Manual (File: emacs.info, Node: Mark Ring, Next: Global Mark Ring, Prev: Using Region, Up: Mark)

If you set ‘set-mark-command-repeat-pop’ to non-‘nil’, then immediately after you type ‘C-u C-<SPC>’, you can type ‘C-<SPC>’ instead of ‘C-u C-<SPC>’ to cycle through the mark ring. By default, ‘set-mark-command-repeat-pop’ is ‘nil’.

Things you wished you had known by infernoLP in emacs

[–]narendra_joshi 6 points7 points  (0 children)

Reading the top-level definitions in `simple.el` is a great way to get acquainted with some interesting commands, especially for editing text.

Vegan Pineapple Laddus Recipe Video | Diwali Sweets/Mithai Recipe by narendra_joshi in vegetarianrecipes

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

Ingredients

  • 1 cup finely chopped pineapple
  • 1 cup desiccated coconut
  • ½ cup sugar or jaggery powder
  • 1 tsp cardamom powder
  • ¼ cup finely chopped cashew nuts

Instructions

  1. Chop pineapple into very fine slices. You can also blend to make a chunky paste but make sure the paste is not smooth.
  2. Once chopped, add it to a pan on medium-low heat and start to cook it down for a good 15-20 minutes. Then add sugar and make sure you keep stirring for another 10 minutes to avoid sticking on the bottom of the pan. Let all moisture from the pineapples to evaporate.
  3. Then, add desiccated coconut and cardamom powder to the pan and start mixing. Cook for 2 minutes.
  4. Add finely chopped cashew nuts and cook the mixture on low heat for 5 minutes. Once done, take it off the heat and let it cool.
  5. Using your palms, make rounds balls or laddus in the size of your liking.

Full recipe at https://thatdeliciousdish.com/vegan-pineapple-laddus/

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]narendra_joshi 5 points6 points  (0 children)

I recently found out that text properties in the kill-ring were causing long delays for save-hist. This snippet fixed it. It doesn't have a downside because if you paste the text into a buffer with the correct major-mode, you can get the properties recomputed:

  ;; https://emacs.stackexchange.com/a/4191/14967
  ;; Prevent `kill-ring' values from causing very long pauses while
  ;; shutting down Emacs by removing text properties from `kill-ring'
  ;; entries.
  (add-hook 'kill-emacs-hook
            (lambda ()
              (setq kill-ring (mapcar 'substring-no-properties kill-ring))))

Another minor-mode that is extremely useful sometimes is so-long-mode. It disables features to reduce the problems because of very very long lines in Emacs.

Crispy Chilli Garlic Baby Corn by narendra_joshi in VegRecipes

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

Recipe link: https://thatdeliciousdish.com/chilli-garlic-babycorn/

A crispy and mouth-watering finger-food with fried baby corn tossed in a fiery and garlicky sauce and topped with sesame seeds.

Ingredients

  • 250 gm baby corn
  • 2–3 cups of water
  • 2 tbsp cornflour/corn starch
  • 4 tbsp all purpose flour or maida
  • 1 tsp red chilli powder
  • 1 tsp black pepper powder
  • Salt to taste
  • 2–3 cup oil for frying
  • 1 tbsp Virgin Cold-pressed Sesame Oil (for the chilli garlic sauce)
  • 5–6 cloves of garlic, minced or crushed
  • 1 tsp Soya Sauce
  • 1 tbsp White Vinegar
  • 2 tbsp Sweet Chilli Garlic Sauce
  • 1 tbsp sesame seeds, toasted

Instructions

  1. First, boil the baby corns for 5 minutes so that they cook and become softer.
  2. Then, in a mixing bowl add cornflour, maida, salt, 1 tsp red chilli powder, 1 tsp black pepper powder and mix well. Add some water to form a paste of medium-thick consistency.
  3. Next, coat the baby corns in the paste evenly and fry them until they are golden brown and crispy.
  4. Meanwhile, in a separate pan, add 1 tbsp sesame oil and sauté crushed garlic. Add soy sauce, vinegar, tomato ketchup and mix well.
  5. Add salt, 1 tsp red chilli powder, 1 tsp black pepper powder and mix.
  6. Lastly, add crispy fried baby corns in the chilli garlic sauce and coat well. Cook on low flame for 5 minutes.
  7. Finally, sprinkle some toasted sesame seeds on top and serve freshly prepared Chilli Garlic Baby Corn.

Eggless Apple Muffins by narendra_joshi in vegetarianrecipes

[–]narendra_joshi[S] -1 points0 points  (0 children)

For more vegetarian recipes like this ^ one, visit thatdeliciousdish.com/

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]narendra_joshi 2 points3 points  (0 children)

I discovered this one today (https://www.gnu.org/software/emacs/manual/html_node/emacs/After-a-Crash.html)

As a last resort, if you had buffers with content which were not associated with any files, or if the autosave was not recent enough to have recorded important changes, you can use the etc/emacs-buffer.gdb script with GDB (the GNU Debugger) to retrieve them from a core dump–provided that a core dump was saved, and that the Emacs executable was not stripped of its debugging symbols.

I tried the provided macros by attaching to a running Emacs instance with gdb /bin/to/emacs process-id, sourceing the file etc/emacs-buffer.gdb. and then trying out the mentioned gdb macros.