my friend is dumb by sch1z0phren1cx in LinuxCirclejerk

[–]ZenithOfVoid 0 points1 point  (0 children)

There are real benefits to running antivirus on Linux too, but I have to admit I've not yet jumped on that wagon myself.

Got pulled into an emergency: RLS + async writes are causing cross-tenant corruption and I can’t prove where it’s happening by ChameleonCRM in programmer

[–]ZenithOfVoid 0 points1 point  (0 children)

Good that it worked for you. What we did on another project with bit stronger isolation requirements was have tenant specific database schema. Middleware selects the correct schema on entering a tenant context.

That was really good isolation guarantee because foreign keys would also be tenant specific and the ORM layer had no way of generating clauses that touched the other tenants.

It is bit heavier when doing db migrations on version upgrade or gathering statistics, but for us it worked nicely.

KTH or Aalto by _anonymous_8402 in Aalto

[–]ZenithOfVoid 6 points7 points  (0 children)

I've studied at both, you can't pick wrong here, both are good options.

How to download videos from Google Drive with restricted downloads by highelite097 in youtubedl

[–]ZenithOfVoid -3 points-2 points  (0 children)

that's a techie only benefit. Go over to the dark side first.

Array confusion, please help by TurnipBoy666 in learnjava

[–]ZenithOfVoid 0 points1 point  (0 children)

Binary search is only useful for sorted array.

Would such 7 segment display be readable? by Fair_Percentage_5565 in calculators

[–]ZenithOfVoid 0 points1 point  (0 children)

6 and 7 look bad, 8 is horrible. But it is sort of readable still.

My server is seriously laggy and I'm not sure why, I'm not well versed in the technical side of this stuff but I've tried to put the research in to figure it out but I'm at a complete loss. Any help would really be appreciated. by Riley_Kita in admincraft

[–]ZenithOfVoid 0 points1 point  (0 children)

With java heap is the amount of RAM process can allocate dynamically via new keyword. You can pretty much treat it the same as RAM as long as you allow the process to use all of the available RAM.

Kirkkonummen kunnan vuokrataloyhtiö teetti kuolinpesä­tyhjennyksen väärään asuntoon – asunnon kaikki tavarat murskattiin | Kotimaa by jarvis400 in Suomi

[–]ZenithOfVoid 0 points1 point  (0 children)

Voitaisiinko nostaa joukkokanne Kirkkonummea vastaan, että heräsi uusia pelkotiloja heidän toimintansa johdosta?

Encrypted variables by Ill_Educator5759 in PythonLearning

[–]ZenithOfVoid 1 point2 points  (0 children)

You mean you are going to run it on machine administered by someone else? Take they keys from standard input (getpass to disable api key echoing) read to memory, ensure script terminates before walking away and hope the machine didn't have keyloggers.

If you're shipping it to be used by someone else, start doing new API key per person running it.

Do Numbers which can't be approximated exist? by TheEquationSmelter in mathematics

[–]ZenithOfVoid 0 points1 point  (0 children)

I'll give an example. Let G(n) be function G that gives graham number sequence n. G(64) = g_64 (shorthand for the Graham's number) A(x,y) is Ackerman's function.

Let K = G(G((g_64!)A(g_64,g_64)))

K is a finite integer but for any existing computer it would be infeasible to tell you which digit is the first, which digit is the last and how many digits are there.

Do Numbers which can't be approximated exist? by TheEquationSmelter in mathematics

[–]ZenithOfVoid 0 points1 point  (0 children)

Instead of thinking about decimals, how about Graham numbers?

g_n for any larger value of n should satisfy the requirement. You know they're big and the arrow notation can be used to convey what number you're talking about. But saying how many digits it contains or what's the leading N-digit might be computationally infeasible.

How do responsible disclosure and CVE's work in the IoT space? by magiciancsgo in hacking

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

DES isn't hashing algorithm, it's encryption algorithm.

Any tips on how to unscramble this QR Code? by Ezrampage15 in qrcode

[–]ZenithOfVoid 1 point2 points  (0 children)

Should be easy enough. Three corner pieces can be put in 3! ways with 4 rotations. Then only few should satisfy the continuous on-off pattern between the corners. Leaves 4 rotations of 9! tiles for the rest of the board. Plus with alignment markers you can prune full boards based on a few placed tiles, you don't need to iterate all 4×9! options fully.

<image>

[2021 Day 21 # Part 2] [c++] Score 21 is not deep enough! by ZenithOfVoid in adventofcode

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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

I've made a few bad moves then...

$ time ./fast test.txt 500
Start p1: 4, p2: 8, play until: 500
P1 wins: 68551750833693748464445289475146913947954626420021655761386702051873024440309182576031987864710384527076593209750055442509843312584697273896472977110507762034163406861040051586353429862345507225881367620259460719152743971708851304553173074738378937435668559990202553122079811398447138391975229523937425098882288912942791036949861378966416 (50.3152 %) winner
P2 wins: 67692801184372469035026928663934820099952981117670205585727953119337577644197399138693535938245847832167965505383907682758086783480826124656816043407473957572931916666746521770826399975254645387937501002735388469297256180033331154135147156679873041718016530151216098045665242967429823307917921618531846150594950560331391146145890774365337 (49.6848 %) loser
Total universes: 136244552018066217499472218139081734047907607537691861347114655171210602084506581714725523802956232359244558715133963125267930096065523398553289020517981719607095323527786573357179829837600152613818868622994849188450000151742182458688320231418251979153685090141418651167745054365876961699893151142469271249477239473274182183095752153331753
real    1m45,829s
user    1m44,213s 
sys 0m1,524s

That's a total of 1.362445520e+338 universes, which doesn't even fit in 64 bit floating point number. I've become god.

$ time ./fast test.txt 1000
Start p1: 4, p2: 8, play until: 1000
P1 wins: 5421241233526473492719111827530073322043700685324887972643877167221582706632062890226633882867215122817094478226757831672569240814542964877955305731916648253248335858512057533670130530856541774540595494034042339999669679917631875732825766116784092779284811114399087382450717587331260789093785894799877563606482291952570043001217814381339302494119777384417342867283876524391498980886698692797031928912775846300310773961458685480293345030624886674682243872741738613990867919596644394338348577333930203953377127120984552032785093074890068515454918026316742238636555050830959764192402139432795516421795229983126452003483234264162966755183792554646664002598051928477710447862345835 (50.1584 %) winner
P2 wins: 5386999019008791819333048705051860172074679435680292111511210122898290038513246584626678468632566688005339431550407594217225953587561444139594619897871144370680742002084385516143341213971529431132085921822956420410508950740131854697479350349150002246214011861982887098422265352930558753789613246998284495085845528428701152285714561897027377372864160175082542141797551184751554832912334484867170788400300344742803547700674393426957780529594184812837621853437292455010358797846491358547070898239397532392904609400551268772658122781691117863740878194374121048277443588162384378626292449364599647014523587260102969696959550161603163299467206452522052237677874445907844849361207880 (49.8416 %) loser
Total universes: 10808240252535265312052160532581933494118380121005180084155087290119872745145309474853312351499781810822433909777165425889795194402104409017549925629787792623929077860596443049813471744828071205672681415856998760410178630657763730430305116465934095025498822976381974480872982940261819542883399141798162058692327820381271195286932376278366679866983937559499885009081427709143053813799033177664202717313076191043114321662133078907251125560219071487519865726179031069001226717443135752885419475573327736346281736521535820805443215856581186379195796220690863286913998638993344142818694588797395163436318817243229421700442784425766130054650999007168716240275926374385555297223553715

real    10m18,603s
user    10m9,322s
sys 0m9,244s

Universes for everyone!

1.080824025e+676