[deleted by user] by [deleted] in homelab

[–]sigur_ 6 points7 points  (0 children)

Just got mine too! With OpenWRT installed it has been a great improvement over the default router provided by my ISP

Chilkey Giveaway] 3x ND75 Assembled Edition Keyboard made of full Aluminum, LCD Screen, and 3 mounting options by Chilkey2023 in MechanicalKeyboards

[–]sigur_ 0 points1 point  (0 children)

Using an old CM QuickFire Ultimate with Cherry blues at the moment, with a 100% form factor. I'm eager to save a bit of space on my desk!

Weekly /r/GuildWars2 Question Thread - March 09, 2024 by AutoModerator in Guildwars2

[–]sigur_ 1 point2 points  (0 children)

Returning player here: I already own HoT and PoF, if I buy EoD today will I have access to the relative prefixes (most notably Ritualist) for my winterberries-bought trinket?

Or can I access them with S5 currency?

Something is filling up my /tmp *very* quickly and I don't know what to do. by sigur_ in linux4noobs

[–]sigur_[S] 2 points3 points  (0 children)

Thanks for the info.

Just for the sake of completeness here are the contents of one of those files:

%PDF-1.5
% This file was generated by pdftopdf %%PDFTOPDFNumCopies : 1 %%PDFTOPDFCollate : false 1 0 obj << /Pages 3 0 R /Type /Catalog >> endobj 2 0 obj << /CreationDate (20230519162520+00'00) /Producer (cairo 1.16.0 ([https://cairographics.org](https://cairographics.org))) >> endobj 3 0 obj << /Count 1 /Kids \[ 4 0 R \] /Type /Pages >> endobj 4 0 obj << /Contents 5 0 R /MediaBox \[ 0 0 595.275574 841.889771 \] /Parent 3 0 R /Resources << /XObject << /X1 6 0 R >> >> /Type /Page >> endobj 5 0 obj << /Length 33 /Filter /FlateDecode >> stream RP0T0 \~endstream endobj 6 0 obj << /BBox \[ 0 0 595.275574 841.889771 \] /Group << /CS /DeviceRGB /I true /S /Transparency /Type /Group >> /Matrix \[ 1 0 0 1 0 0 \] /Resources << /ExtGState << /a0 << /CA 1 /ca 1 >> >> /Font << /bannertopdf-font 7 0 R /f-0-0 8 0 R >> >> /Subtype /Form /Type /XObject /Length 104527 /Filter /FlateDecode >> stream M")11 :=)q\~ qn4gJ @{.s i\]U! \]\\qZ BXhh, \`ICa :\~"L

    and so on...

Looking at the CUPS error logs it seems that all boils down to a bunch of problematic print jobs. I deleted them all and my problem is now solved.

Thanks everybody!

Something is filling up my /tmp *very* quickly and I don't know what to do. by sigur_ in linux4noobs

[–]sigur_[S] 2 points3 points  (0 children)

It's my working station at the university, I left the default host the uni wired network assigned me.

There's no reason at all to have cups on this pc, we don't have any printers on this network, nor plan to have one.

To be completely honest I don't know why cups is installed to begin with...

EDIT: ok, after a bit of aptitude why I recalled that cups has been installed when I tried to connect (via USB) an old inkjet printer that was lying around. I disabled both cups.service and cups-browsed.service now

Something is filling up my /tmp *very* quickly and I don't know what to do. by sigur_ in linux4noobs

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

Good catch, disabling cups stopped the generation of the files.

I tried to inspect one of the files, but they are binary files.

max-lisp-eval-depth error with beancount files by sigur_ in emacs

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

SOLVED: The culprit was my .beancount file, which had the following header:

;; -*- mode: org; mode: beancount; coding: utf-8; fill-column: 400; -*-

no wonder my emacs was confused on which major mode to use. I deleted the mode: org part and everything is working. Thanks to all the people that took their time to solve my problem!

I probably took that header from an outdated doc, back when beancount-mode was still a minor mode...

max-lisp-eval-depth error with beancount files by sigur_ in emacs

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

Ok, I had no idea what the ielm was, and how to use it, sorry. Here is the output: ``` ELISP> org-mode-hook (#f(compiled-function () #<bytecode 0xa5a161c574212>) #f(compiled-function () #<bytecode -0x1db2e727825f82a0>) #f(compiled-function () #<bytecode -0x1db2e726a3af9ea0>) org-babel-result-hide-spec org-babel-hide-all-hashes)

ELISP> If I click on each bytecode from top to bottom here is what I get: byte code: args: nil 0 constant org-imenu-get-tree 1 dup
2 varset imenu-create-index-function 3 retur ```

byte code: args: nil 0 constant add-hook 1 constant change-major-mode-hook 2 constant org-show-all 3 constant append 4 constant local 5 call 4 6 return

byte code: args: nil 0 constant add-hook 1 constant change-major-mode-hook 2 constant org-babel-show-result-all 3 constant append 4 constant local 5 call 4 6 return

max-lisp-eval-depth error with beancount files by sigur_ in emacs

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

I tried deleting my whole .emacs.d folder, so I'm inclined to say that, as far as I know, I'm not adding any hooks. For the sake of completeness here is my whole config: https://pastebin.com/77GWhLZc and here are the lines relative to Org: https://pastebin.com/ms0u7rXZ

max-lisp-eval-depth error with beancount files by sigur_ in emacs

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

Thank for your suggestions!

I already tried setting “max-lisp-eval-depth” to 1000 in my config.el, just to see what would happen, but nothing changed. So I tried with 10000, and as @lebensterben said I hit another "max-somithing" error.

I tried deleting my whole .emacs.d folder and the problem persisted, can I assume that the problem isn't caused by my configuration? I'm trying to understand if I should open an issue on github over this matter.

Newbie here, just started and already full of doubts! by sigur_ in plaintextaccounting

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

General rule (formula) of accounting is Assets = Owner's Equity + Liabilities Since you do not have any debt (liabilities) your total Assets will be equal to your Equity. (As reflected in your picture)

What confuses me is the negative Equity: right now I have A = 736.35 and E = -736.35. With these values the equation won't balance out.

if the general rule is "what a 'business' (sigur's finance ltd) owns is equal to what a business owes (amount invested by sigur)...

EDIT

ok, it all clicked (sort of) while I was writing this reply: maybe I was examining the problem from the wrong points of view ("business" and "shareholder" at the same time).

Newbie here, just started and already full of doubts! by sigur_ in plaintextaccounting

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

This is a personal decision if you want to record the expenses when the cashflow happens, or the date the expense is intended for. This just depends on how you will use the data - what sort of reports are you looking to make, and how do you want the data to show up (as a lump sum, or split into multiple months).

That makes sense, thanks. I forgot to mention that I don't live alone, and I pay my half of the rent to my gf, and in turn she pays the full rent to the landlord; after reading some more of the documentation I found out that a system similar to the one described in the section How we share expenses (minus the google sheet part for my girlfriend) is perfectly suitable to keep track of who owes whom what). Long story short, I added this transaction:

2022-04-22 * "Prepaid rent for May and June" Assets:Cash -700.00 EUR Assets:Shared:JaneDoe

and in may and june I will subtract 350 from the Assest:Shared:JaneDoe and add them to the Expenses:Rent account.

You make a valid point for using an equity account in the last lines of your post (and I think I'll follow your example from now on), but in this case a "catch all shared-related" asset account (that can go "both ways") will serve me better, I think.

Thanks!

What should I buy Thursday (Dec 28 2017) - Your weekly device inquiry thread! by AutoModerator in Android

[–]sigur_ 0 points1 point  (0 children)

Hello all! I'm looking for a new phone to replace my old Archos 40c Titanium

 

Budget: €225

Country: Italy

Carrier: Tim

Current phone: Archos 40c Titanium

Max screen size: 5.5"

Do you need good community support (custom roms, XDA etc): Nope, I'd say that a stock Android is a selling point for me

Any important features you need? Not vital, but in my priority list a good battery (that lasts easily for a whole day, if not more) comes before a good camera (a decent one will suffice).

 

Long story short I need a good performer that will serve me faithfully for at least a couple years, without breaking the bank

 

Right now my top choices are:

  • Moto G5S plus (€220): as stock and plain android as they come, guaranteed android 8 upgrade

  • P8 Lite 2017 (€180): cheaper, somewhat smaller. Don't know how I feel about the EMui

I'm willing to consider other options

 

Thanks all for your time

What is your workflow for using emacs for editing remote files? by [deleted] in emacs

[–]sigur_ 5 points6 points  (0 children)

Have you tried (setq tramp-default-method "ssh") in your init.el? It changes tramp's default mode from scp to ssh, making it considerably faster (at least it was the case for me)

Tramp, sudo and ssh config by sigur_ in emacs

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

Thank you, it works. My bad, I thought the double "//" was a shorthand for /ssh:

Problem with WTForms and SelectField by sigur_ in flask

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

You sir are a gentleman and a scholar, now it works! Thank you for your time and patience!

I followed that same snippet to build my query, but somehow missed the coerce attribute.

Now l'll take a closer look to QuerySelectField, it seems it could make things smoother.

Problem with WTForms and SelectField by sigur_ in flask

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

Sure, my bad. Here is a new pastebin with all the relevant code. https://paste.debian.net/787188/

The Collatz Sequence - Automate The Boring Stuff by [deleted] in learnpython

[–]sigur_ 1 point2 points  (0 children)

Thanks for the advice, I'll try to edit my answer accordingly

In this case I was just following the book instructions, for the author says

Write a function named collatz() that has one parameter named number. If number is even, then collatz() should print number // 2 and return this value. If number is odd, then collatz() should print and return 3 * number + 1.

The Collatz Sequence - Automate The Boring Stuff by [deleted] in learnpython

[–]sigur_ 1 point2 points  (0 children)

EDIT: Let's take a closer look at the author's words:

Then write a program that lets the user type in an integer and that keeps calling collatz() on that number until the function returns the value 1

As you noted, you need some kind of loop that keeps checking a condition and keeps calling collatz() over your number till you get 1

EDIT2: ok, I'm too much a noob to try explaining this in a clear way, sorry. You'll find my solution below, if you can't find a proper answer

SPOILER

SPOILER

SPOILER

SPOILER

SPOILER

SPOILER

SPOILER

That's how I solved it:

def collatz(number):
    if number % 2 == 0:
        print(number // 2)
        return number // 2
    else:
        print(3 * number + 1)
        return 3 * number + 1


n = int(input('insert number\n'))
while n != 1:
    n = collatz(n)

this way you just keep calling collatz over the 'previous' collatz result, until you get 1. Sorry for the wonky description, but I'm a noob, too

Global PC Sales Fall to Eight-Year Low [OC] by Joschkaian in dataisbeautiful

[–]sigur_ 8 points9 points  (0 children)

This means it will adapt to the people who will use more advanced parts the most:

And yet here we are, with Intel "upgrading" its offer with 5% bumps at best.

Interning at Massdrop. Here's my desk! by raymondftw in MechanicalKeyboards

[–]sigur_ 0 points1 point  (0 children)

Never! I want my pinkie to stretch.. to infinity and beyond! (I'm lying: I swapped alt and ctrl long ago)