• 1 Post
  • 38 Comments
Joined 2 years ago
cake
Cake day: July 28th, 2023

help-circle
  • Homeburning can be surprisingly robust as a backup method, and as an option of physical media, but I’d still keep backups on an actual NAS as well. There’s also a ton of variables that affect the lifetime of a burnt CD, like dyes used (cyanine - phthalocyanine - azo), lamination quality, storage and the burner used. Especially the quality and intensity of the build has a surprisingly strong effect, despite things being set in a standard – you can get a lot more storage life out of a CD burned using a quality 5.25" burner compared to a budget slim drive.

    Also early discs based on cyanine had a notoriously short shelf life compared to the later archival quality discs, around 30 years or so in optimal conditions (and typically a lot less), so much of the stuff burnt in 90’s and 00’s has already began deteriorating. More recent quality discs can last over a century if stored properly, but the older ones can’t.

    DVDs can also often have issues with delamination, meaning that especially the outer rim of the disc can start exhibiting bit rot quite early if you’re using low quality media. I’ve noticed even new discs having signs of early delamination between the two disc halves (DVDs have the data layer in between two acrylic discs, unlike CDs which have it on the backside directly under the reflective coating). I’ve also experienced a lot of issues when burning multilayer DVDs that might affect how long they last in storage, so for actual backups I’d prefer using a single layer disc instead.

    But as per reasons for still using discs – they’re an unparalleled cold storage solution. With proper care you can actually leave them be for decades and be sure the data is still readable, unlike with SSDs which will lose their data when unpowered for a long period of time. Tape is a good option, but not really viable for consumers – also tape needs more active upkeep, since you typically have to copy over the old data to new media every 20-30 years or so (promised life in archival is 30 years, after which it might not be possible to get new drives for reading the tapes). Optical is also king when you need to transfer data into air-gapped environments, since with optical media it’s relatively easy to audit that what’s burned to the disc is unalterable. There’s a reason why I still keep a full install set of Debian handy.


  • Eikös ihan samoilla perusteilla voisi vaatia kaupoilta rahaa lehtien kansien näkymisestä myymälässä, tai esimerkiksi kirjojen takakansitekstien näyttämisestä kirjakaupoissa? Linkki ei ole uutinen, ja linkinkeräimistä pääasiallinen kohde mihin päädytään on sen artikkelin julkaissut taho, sillä kyllä jos sisältö ihmistä kiinnostaa, niin linkkiä klikataan – se on sitten lehden ongelma jos linkin takaa ei löydy muuta kuin ilmoitus sisällön maksullisuudesta. Ei kukaan ala tilaamaan jotain perähikiän sanomia yhden artikkelin takia, mutta jos artikkelin voisi lukea esimerkiksi kuittaamalla 20 snt kertakustannuksen niin aika moni varmaan olisi tuon valmis maksamaan. Koko lehden digitilaus on vaan yksinkertaisesti liikaa.

    Ylipäätään on hämmentävää miten vähän lehdet suostuu myymään lukuoikeuksia yksittäisiin artikkeleihin, sillä itse ainakin olisin valmis maksamaan kertaluvuista useampia kertoja päivässä. Tämä on ihan noiden uutissivustojen oma ongelma jos ei osata käyttää linkinkeräinten myötä saapuvien asiakkaiden mahdollisuutta hyväksi. Esimerkiksi jenkkimediat ovat kokeilleet yksittäisten artikkelien myymistä ja ymmärtääkseni tuo on ihan toimiva ratkaisu. Vielä kun osaisivat tehdä tuon anonyymisti siten, ettei se yksittäisen artikkelin lukuoikeuden ostaminen vaatisi käyttäjätunnuksia ja kirjautumista…



  • You’re using software to do something it wasn’t designed to do

    As such, Chrome isn’t exactly following the best practices either – if you want to reinvent the wheel at least improve upon the original instead of making it run worse. True, it’s not the intended method of use, but resource-wise it shouldn’t cause issues – at this point one would’ve needed active work to make it run this poorly.

    Why would you even think to do something like this?

    As I said, due to company VPN enforcing their own DNS for intranet resources etc. Technically I could override it with a single rule in configuration, but this would also technically be a breach of guidelines as opposed to the more moderate rules-lawyery approach I attempt here.

    If it was up to me the employer should just add some blocklist to their own forwarder for the benefit of everyone working there…

    But guess I’ll settle for local dnsmasq on the laptop for now. Thanks for the discussion 👌🏼


  • TLDR: looks like you’re right, although Chrome shouldn’t be struggling with that amount of hosts to chug through. This ended up being an interesting rabbit hole.

    My home network already uses unbound with proper blocklist configured, but I can’t use the same setup directly with my work computer as the VPN sets it’s own DNS. I can only override this with a local resolver on the work laptop, and I’d really like to get by with just systemd-resolved instead of having to add dnsmasq or similar for this. None of the other tools I use struggle with this setup, as they use the system IP stack.

    Might well be that chromium has a bit more sophisticated a network stack (than just using the system provided libraries), and I remember the docs indicating something about that being the case. In any way, it’s not like the code is (or should be) paging through the whole file every time there’s a query – either it forwards it to another resolver, or does it locally, but in any case there will be a cache. That cache will then end up being those queried domains in order of access, after which having a long /etc/hosts won’t matter. Worst case scenario after paging in the hosts file initially is 3-5 ms for comparing through the 100k-700k lines before hitting a wall, and that only needs to happen once regardless of where the actual resolving takes place. So at the very least it doesn’t really make sense for it to struggle for 5-10 seconds on every consecutive refresh of the page with a warm DNS cache…

    …or that’s how it should happen. Your comment inspired me to test it a bit more, and lo: after trying out a hosts file with 10 000 000 bogus entries chrome was brought completely to it’s knees. However, that amount of string comparisons is absolutely nothing in practice – Python with its measly linked lists and slow interpreter manages comparing against every row in 300 ms, a crude C implementation manages it in 23 ms (approx. 2 ms with 1 million rows, both a lot more than what I have appended to the hosts file). So the file being long should have nothing to do with it unless there’s something very wrong with the implementation. Comparing against /etc/hosts should be cheap as it doesn’t support wildcard entires – as such the comparisons are just simple 1:1 check against first matching row. I’ll continue investigating and see if there’s a quick change to be made in how the hosts are read in. Fixing this shouldn’t cause any issues for other use cases from what I see.

    For reference, if you want to check the performance for 10 million comparisons on your own hardware:

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/time.h>
    
    
    int main(void) {
    	struct timeval start_t;
    	struct timeval end_t;
    
    	char **strs = malloc(sizeof(char *) * 10000000);
    	for (int i = 0; i < 10000000; i++) {
    		char *urlbuf = malloc(sizeof(char) * 50);
    		sprintf(urlbuf, "%d.bogus.local", i);
    		strs[i] = urlbuf;
    	}
    
    	printf("Checking comparisons through array of 10M strings.\n");
    	gettimeofday(&start_t, NULL);
    
    	for (int i = 0; i < 10000000; i++) {
    		strcmp(strs[i], "test.url.local");
    	}
    
    	gettimeofday(&end_t, NULL);
    
    	long duration = (end_t.tv_usec - start_t.tv_usec) / 1000;
    	printf("Spent %ld ms on the operation.\n", duration);
    
    	for (int i = 0; i < 10000000; i++) {
    		free(strs[i]);
    	}
    	free(strs);
    }
    



  • Tavallaanhan sähköposti kärsii samalla tavalla avoimen federoinnin ongelmista, kuten ajoittain liian herkästä defederaatiosta. Asiasta saa hyvän kuvan kun kokeilee pistää oman sähköpostipalvelimen pystyyn ja huomaa, miten vaikeaa niitä viestejä on oikeasti saada lähtemään muille palvelimille niin, että menee oikeasti eteenpäin. Samasta syystä moni palvelu pyytää edelleen tarkistamaan roskapostin joidenkin aktivointiviestien yms. varalta, kun omat sähköpostipalvelimet merkataan usein roskapostiksi, jos nyt edes kulkee vastaanottajalle asti.

    Toki mitä nyt on noita estolistoja Lemmyssä katsonut, niin suurin osa estetyistä instansseista on sitä hyvästä syystä. Änkyrävasemmiston (tankies) ja muiden instanssien välinen estojen taistelu on sitten asia erikseen, ja vaikuttaa herättävän aika vahvoja tunteita säännöllisin väliajoin, suuntaan ja toiseen 😅






  • Per text and per minute plans were the norm at least here for a long time, I had one until mid 2010’s IIRC. A single text cost something like 0.069 €. Parents kept their kids from overspending with prepaid plans, which were the norm for elementary students. In Europe people typically don’t pay to receive calls, so your parents could still call you even if you ran out of phone credits.

    We got unlimited data plans before widespread unlimited texting, which meant people mostly stopped texting by early 2010’s. I remember my phone plan getting unlimited 3g in 2010 for 0.99 €/month (approx 1.40 $ back then), albeit slow AF (256 kbps). Most switched to e.g. Kik or later WhatsApp after that.


  • Probably varies a lot based on where you grew up. I got my first phone when I was 9, in 2006, and was among the last in my class to get one. Though phone plans were really cheap by then in Finland, partially due to the largest phone manufacturer (back then) Nokia being Finnish, and our telecom operators being in tight competition. (We’ve three separate carriers with country wide networks, as was the case back in the early 2000’s as well)

    I’d say the turning point here was 2003 when Nokia launched the model 1100, which was dirt cheap. I vaguely remember the price eventually falling as low as 19 € in a sale, at which point the phone cost about the same as your typical phone plan per month.


  • Not sure about others in fennoscandia, but at least Finland has multiple large co-ops. One of the largest banks, OP ( literally named co-op bank) is a co-op which many own a part of. Many of my friends are part of the co-op.

    Also, Finland’s largest retail conglomerate (with 48.3 % market share of retail in Finland) is a consumer co-op, which is also causing a very difficult situation for all other businesses in retail, as they’re able to undercut practically everyone since they have less of a profit incentive. 2.4 million people have a membership, which is quite a sizable amount in a country of under 6 million (though I’m not sure if the number includes Estonians as well)


  • Mayonnaise on pizza is surprisingly common in Finland, e.g one local pizzeria near me puts garlic mayo on certain pizzas – enough that there’s more mayo than tomato sauce. For some incomprehensible reason they also put the mayo under the cheese. As you can guess, it was repulsive. However, BBQ sauce and bacon pizza is a nice combination, which is also normal here.

    Truffle mayo did work in some pizzas, in moderation.


  • Given that there are engineers involved I wouldn’t be at all surprised if that was deliberate. Trying to get potentially offensive or otherwise NSFW acronyms past marketing without them noticing is practically an industry-wide joke at this point, which is why they are so prevalent in the FOSS space. (no marketing staff to complain)

    If that’s true in this case, though, hats off to whoever managed to get it though to official commercial standards


  • Yksi ongelma nykyisen day-ahead -hinnoittelumallin kanssa on se, ettei kuluttajien joustolla ole oikeasti mitään suoraa vaikutusta sähkönhintaan. Kuluttajien jousto auttaa sähköä riittämään, mutta lopulta sähkön hinta määräytyy sen perusteella, miten sähköyhtiöt ennustavat omien asiakkaidensa toimivan. Edellisistä mahtihinnoista opittiin, että suomalainen sähkömarkkina olikin odotettua joustavampi ja hintojen ei oikeasti olisi tarvinnut kivuta niin korkealle. (ennakoimatonta kulutusjoustoa saatiin esimerkiksi kiinteän sähkösopimuksen omaavien asiakkaiden solidaarisesta sähkönsäästöstä, johon ei ollut mitään taloudellista tarvetta) Ennusteissa käytetyt mallit kuitenkin onneksi tarkentuvat, ja sitä kautta hinta hiljalleen vakautuu kun suomalaisen kuluttajan käytöstä poikkeustilanteissa opitaan tuntemaan paremmin.

    Mitä tulee hinnan heittelyyn, se on oikeastaan toivottavaa ja tavoiteltavaa. Nykyisillä piikeillä markkinaehtoisen säätövoiman lisäämiselle syntyy sopiva markkinarako, ja jossain vaiheessa sitä aletaan rakentamaan toden teolla (viimeistään akkuteknologian kehittyessä pidemmälle). Tämä on jokseenkin tarpeellinen pykälä matkalla laajempaa uusiutuvien energianlähteiden käyttöä sähköntuotannossa. Samaa mieltä tuosta, ettei pörssisähkö sovellu kaikille. Lisäksi kiinteiden sopimuksien hinnat ovat jo palanneet järkeviin lukemiin (< 9 snt/kWh) ja jos pörssisähkön seuraaminen ei houkuttele voi taas vaihtaa kiinteään ilman, että häviää merkittävästi vaihtokaupassa.

    Suomessa sähkö on maailman mittakaavassa edelleen todella halpaa, myös tuolla kiinteällä sopparilla, ja monessa enemmän sähköä kuluttavassa OK-talossa (joita nämä suurimmat kuluttajat pääasiallisesti ovat) on tekemättä monia helppoja (ja keskivaikeita) sähkönkäyttöä vähentäviä remontteja. Monesta talosta puuttuu edelleen ilmalämpöpumppu, vaikka ovatkin sen verran edullisia nykyään, että maksavat itsensä nopeasti takaisin. Ilma-vesi -lämpöpumppu on hintavampi investointi, eikä vanhassa talossa välttämättä järkevää – käyttöveden lämmön talteenotto puolestaan on kohtuullisen yksinkertaista ja toteutettavissa useimpiin taloihin kohtuullisella vaivalla.

    Toinen huono tekninen valinta monissa sähkölämmitteisissä taloissa on tarpeettoman pieni lämminvesivaraaja – modernit varaajat on niin hyvin eristetty, että lämmönhukka on todella pientä ja mitoituksen voi huoletta vetää hiukan yli. Vesi kannattaa lämmittää halvan sähkön aikaan esim. 70 asteeseen ja säädellä sen käyttöä kalliin sähkön aikana. Varaajan voi kytkeä turvallisesti pois päältä jopa pariksi päiväksi jos kokoa on tarpeeksi, silloin vesi ei sekoitu ja pysyy turvallisissa lämpötiloissa vaikka kylmää vettä lisätään varaajan alaosaan odottamaan vastuksen kytkemistä päälle. Lisäksi kalliin sähkön aikaan kaikki menetetty lämpö varaajasta menee kuitenkin asunnon lämmittämiseen, sillä asuntoonhan se sieltä lopulta päätyy.

    Lieden kaveriksi voi hankkia muutamalla kympillä induktiolevyn, jolla ruoanlaitto sujuu huomattavasti pienemmällä sähkönkulutuksella (jos siis uusi induktioliesi kuulostaa liian kalliilta). Kalliin ikkunaremontin vaihtoehtona voi hankkia paksut verhot, jotka toimii käytännössä eristeenä ikkunan ja asunnon välissä ja vähentää asunnon vetoisuutta merkittävästi.

    Kylmälaitteet on oikeasti kehittyneet niin paljon viimeisen 30 vuoden aikana, että jos talosta löytyy ysärillä hankittu jääkaappi, niin uusi maksaa itsensä muutamassa vuodessa takaisin.1 Vaihtoehtoisesti voi torittaa muutaman vuoden ikäisen Mielen tms. laatulaitteen ihmisiltä, jotka vaihtelee niitä harrastuksena koteihinsa (näitä oikeasti löytää aivan naurettavan halvalla käytettynä ajoittain, myös esim. kierrätyskeskuksista). Ihan sama miten hyvin ne kestää, kaikki yli 15 vuotta vanhat kylmälaitteet on oikeasti ekologisempaa ja halvempaa kärrätä välittömästi kaatopaikalle ja vaihtaa uuteen.

    Tosiaan, nykyisillä sähkönhinnoilla voi käyttää yksinkertaista laskukaavaa. Jokainen watin ylimääräinen kuorma pistorasioissa maksaa reilun euron vuodessa (365 * 24 / 1000 * 0.12 = 1,05 €). Jos vaikka kuistilla on lamppu päällä joka yö pimeän aikaa, säästyy sen vaihtamalla 40 W hehkulampusta 7-8 W ledivaloon vähintään n. 10 € vuodessa pikaisella päässälaskulla. (kolmasosan vuodesta lamppu päällä, 13 € vs. 2,5 €, toteutunut sähkönhinta kaikkine kuluineen 12 snt/kWh)

    1: Esimerkkiarvoilla 1000-1500 kWh 20-30 v vanhalla jääkaapilla, 210 kWh uudella jääkaapilla, ja 12 snt/kWh keskimääräisellä sähkön kokonaishinnalla kulutukset ovat 150 €/v (1250 kWh) ja 25,2 €/v.


  • Onko yrityksesi bisnes järjestelmässä joka ei kykene promilleihin? Helppo ratkaisu jokaiselle tämän ongelman kanssa painivalle:

    1. Perusta toinen firma läpilaskuttamaan kaikki myynti ALVeineen ja tulouttamaan ALV valtiolle
    2. Kahden yrityksesi välinen kauppa on nyt ALV-vapaata, voit lakata välittämästä ALV-prosenteista
    3. Profit (- uuden yrityksen sivukulut)

    Kehittyneemmät koijarit voivat lisätä kohtaan 3 käteviä kirjanpidollisia kikkoja, kuten:

    • älä maksa läpilaskuttavan yrityksen kautta ALV:a vaan maksa niillä yrityksen liiketoiminnan (asiakaspalvelu, tuotepalautukset jne.) kulut suoraan – kun verottaja hakee yrityksesi veroveloista konkurssiin anna sen kaatua ja perusta uusi. Lisähyötynä pääset eroon kaikista ikävistä takuu- ja kuluttajansuojavaatimuksista, joita myyvälle yritykselle koituu. Jos viranomaisen epäilykset heräävät kävele piritorille ja lahjo kaksi henkilöä ostamaan peiteyrityksesi osakeanti nimelliseen 1 € hintaan.
    • siirrä heikommin tuottava työvoimasi uuteen peitefirmaan ja pilko firma konsernista pärjäämään näiden kanssa yksinään
    • jos yritykselläsi on negatiivista tuottoa tuovaa omaisuutta (tappiollisia liiketiloja tai liiketoimintaa) kuoppaa ne rauhassa uuden firman konkurssin kautta

    (/s itsestäänselvistä syistä, kommentoija ei vastaa “vinkkien” toimivuudesta)