techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.8K
active users

#xml

2 posts1 participant0 posts today

I'm researching for a rewrite of our OData tutorials in our SAP Developer Centre and came across this example of an Atom feed (you know the connection, right?). I cannot unsee the absolute randomness of indentation here, so I thought it only right that I share it here. #XML #Indentation #Atom #OData

Fascinating.

tmp $ wc -c < somefile.xopp 
735772
tmp $ file somefile.xopp 
somefile.xopp: gzip compressed data, from Unix, original size modulo 2^32 2086031
tmp $ gunzip < somefile.xopp |file -
/dev/stdin: XML 1.0 document, ASCII text, with very long lines (12483)
tmp $ gunzip < somefile.xopp |wc
    937  204466 2086031
tmp $ gunzip < somefile.xopp |bzip2 -9 |wc -c
619543
tmp $ gunzip < somefile.xopp |bzip3 |wc -c
575115
tmp $ gunzip < somefile.xopp |xz -9e |wc -c
519764
tmp $ gunzip < somefile.xopp |grep -m1 "^.stroke" |cut -c 1-160
<stroke tool="pen" color="#3333ccff" width="2.26 0.72691752 0.73026261 0.73809079 0.74588449 0.74364294 0.72915908 0.71467521 0.71133013 0.70908858 0.7057435 0.
tmp $ gunzip < somefile.xopp |grep -oE "\<[0-9]+\.[0-9]+\>" |wc -l
201692
tmp $ echo "735772/201692" |bc -l
3.64799793744917993772
tmp $ echo "519764/201692" |bc -l
2.57701842413184459472
tmp $ echo "2086031/201692" |bc -l
10.34265612914741288697
tmp $ 

#Compression #XML #Xournal #Xournalpp #Xournal++

OK, I'm getting more aquainted with #csharp again.

Today's fun thing:
The #NUnit test I made was saying "this doesn't match!"
So I did a test using print statements (er, System.WriteLines). Actually those objects *do* match. Except these others don't!
At which point #NUnit was probably like "well that's what I've been trying to tell you the whole time!"

In other news, I have identical #XML files (file1, file2) that, when loaded into the program, yield different objects (according to Equals and GetHashCode). yet, loading file1, saving it to disk, and loading it again produces object equal to one first loaded. Buuut these are identical files tho? Urrrggghhhjjjh my head hurts

Åja, grunnen til at jeg kom innom her. Den synkende følelsen når man innser at man kanskje må modifisere noe #XML man fikk fra en tredjepart litt før man avhender det til en annen tredjepart.

Kanskje det ikke er for sent å få seg en ekte jobb?

Continued thread

妻のサイト、いい加減リニューアルしてあげたいんだけど #WordPress がけっこうカオスってるので別のツールに変えたくて、エクスポートした #XML を Node.js とかでゴニョゴニョするところまではやれそうということがみえてきたので #Bludit 🐶で再構築チャレンジしてみるか…

Das 12. Treffen der #XML User Group #Muenchen findet kommenden Montag statt.

Referent ist Manuel Montero Pineda von data2type zum Them: KI-Agents und warum XML der Schlüssel ist.

Das Treffen startet um 18 Uhr bei der Verlagsgruppe Hüthig Jehle Rehm in der Hultschiner Straße 8.

Zur besseren Planung bitten wir um kurze Anmeldung per E-Mail an info@xug-muc.de #xugmuc