LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-28-2017, 10:17 AM   #91
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92

Quote:
Originally Posted by brunobiondo View Post
Yes, for my experience, in terms of stability, solidity and sanity, when talking about free OSes, nothing beats BSD kernel and Minix kernel.
Thanks for the suggestion. I know little about BSD other than running some specialized distribution on a short lived file server I put together from spare parts.

To be honest, OpenBSD is the one that grabs my attention the most, and probably my first refuge if the seas of Linux ever get tainted enough to become unnavigable.
 
Old 09-28-2017, 10:41 AM   #92
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by sundialsvcs View Post
One stated reason for "binary log files" was that the format could thereby be standardized. How many (hundreds of ...) regular-expressions have we cooked up or "borrowed" over the years to "parse a log file?"
The solution here is JSON formatting, which is a popular convention for structured logs (and makes ElasticSearch integration a snap). This allows for arbitrarily complex encodings, while still being human-readable, and there is a diverse and open ecosystem of tools available for formatting / filtering / transforming / searching JSON (ranging from good old grep, head/tail to jq, json2json, ES, etc).

There is no good reason for binary logs.
 
1 members found this post helpful.
Old 09-28-2017, 11:08 AM   #93
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92
Quote:
Originally Posted by ttk View Post
The solution here is JSON formatting, which is a popular convention for structured logs (and makes ElasticSearch integration a snap). This allows for arbitrarily complex encodings, while still being human-readable, and there is a diverse and open ecosystem of tools available for formatting / filtering / transforming / searching JSON (ranging from good old grep, head/tail to jq, json2json, ES, etc).

There is no good reason for binary logs.
Text logs are meant to be simple, and I really haven't seen many that were unreadable by either a human, or some sort of parsing mechanism. There are exceptions for unnecessary use of the carriage return escape sequence, emitting DOS style line terminators, or using stdout instead of stderr, or vice versa. I think those are oversights by the programmers, and their responsibility to fix.

As I've said, I'm mostly speculating as I haven't had to implement this for anything important, but I don't quite see any good reason for binary logs, or binary configuration files. To the best of my knowledge, this has primarily been used to obfuscate things, or make them unreachable. Much like the Torx screw.

I'm sure this does not apply here, since the code is all Open Source (c), and must be trustworthy.

Last edited by Fat_Elvis; 09-28-2017 at 11:14 AM.
 
Old 09-28-2017, 12:11 PM   #94
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Better get rid of the kernel, hardware and the future; all fear the binary!

01100110 01100001 01100010 01100101 01110010 00100000 01100101 01110011 01110100 00100000 01110011 01110101 01100001 01100101 00100000 01110001 01110101 01101001 01110011 01110001 01110101 01100101 00100000 01100110 01101111 01110010 01110100 01110101 01101110 01100001 01100101

Add: or, https://www.crowdsupply.com/sutajio-kosagi/novena
 
Old 09-28-2017, 12:37 PM   #95
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by jamison20000e View Post
Better get rid of the kernel, hardware and the future; all fear the binary!

01100110 01100001 01100010 01100101 01110010 00100000 01100101 01110011 01110100 00100000 01110011 01110101 01100001 01100101 00100000 01110001 01110101 01101001 01110011 01110001 01110101 01100101 00100000 01100110 01101111 01110010 01110100 01110101 01101110 01100001 01100101

Add: or, https://www.crowdsupply.com/sutajio-kosagi/novena
I wasn't talking about binary code/executable code/executable files/shared libraries/etc, I'm talking about binary logs and I agree with ttk. Binary log files are not human readable, full stop.
 
Old 09-28-2017, 12:44 PM   #96
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92
Quote:
Originally Posted by jamison20000e View Post
Better get rid of the kernel, hardware and the future; all fear the binary!

01100110 01100001 01100010 01100101 01110010 00100000 01100101 01110011 01110100 00100000 01110011 01110101 01100001 01100101 00100000 01110001 01110101 01101001 01110011 01110001 01110101 01100101 00100000 01100110 01101111 01110010 01110100 01110101 01101110 01100001 01100101

Add: or, https://www.crowdsupply.com/sutajio-kosagi/novena
Which character set? UTF-8 or bust!

No 7th bit in any of the values, so probably not.

Nah, I'm not gonna look that up, lol. Must not... I refuse to...

Last edited by Fat_Elvis; 09-28-2017 at 12:45 PM.
 
Old 09-29-2017, 07:49 AM   #97
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Quote:
People tend to forget that text files ARE A BINARY FORMAT.
End the data-base, smash your computers... maybe use "Ray's Rule of Precision:"
 
Old 09-29-2017, 07:52 AM   #98
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Quote:
Originally Posted by Fat_Elvis View Post
... this has primarily been used to obfuscate things, or make them unreachable. Much like the Torx screw.
...
Better yet a tinfoil hat!
 
Old 09-29-2017, 11:48 AM   #99
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92
Quote:
Originally Posted by jamison20000e View Post
Better yet a tinfoil hat!
That statement is accurate, but if you would like to claim otherwise, be my guest.

Last edited by Fat_Elvis; 09-29-2017 at 12:11 PM.
 
Old 09-29-2017, 11:59 AM   #100
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92
Alright, I've gotten a few comments about the binary string, so I'm going to elaborate on this:

My point, albeit tongue-in-cheek, was that each character set, by necessity, assigns different values to its characters. Some can have different values for a given alphanumeric character, and some can have characters that are not even in alphabetical order.

I am fully aware that the message posted was in ASCII, which, if you are using Ubuntu or Fedora, or just about any modern distribution, is *not* the default character set installed on your system, ironically enough.

Say you have a file with the executable bit unset. You could interpret any byte within as a character, as an integer, as part of an integer, as a floating point value, as an opcode, as a pseudo-opcode meant to be run inside a virtual machine as part of a DRM scheme, etc. 0x30 might be '0'. It might be something else entirely.

Last edited by Fat_Elvis; 09-29-2017 at 12:11 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Why pro-systemd and anti-systemd people will never get along LXer Syndicated Linux News 0 05-15-2015 11:44 PM
Why people hate Gnome ? cccc General 24 11-04-2008 11:11 PM
What do you hate about the way other people use computers? johngreenwood General 116 08-04-2007 05:19 PM
how many people hate windows? rick030391 General 17 02-25-2006 04:04 AM
i hate people who do this but.... limiter LinuxQuestions.org Member Intro 10 10-08-2003 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration