« first day (1700 days earlier)      last day (3265 days later) » 

user136984
4:00 PM
And I don't want someone just to be able to rename one of my storage files to a .bmp and then view it as one.
 
user136984
It will just become ridiculous then! :D
 
user136984
Well, for what its purpose is.
 
kos
@ParanoidPanda Then you're building a custom file format. First thing that comes to mind, if you don't need obfuscation, is to store the plain pixel matrix (somehow)
 
user136984
So I need to understand how image file formats currently work in order for me to make my own.
 
user136984
@kos: Also, while we're at it, how many colours can be displayed in a pixel?
 
kos
4:03 PM
@ParanoidPanda If you need compression it's going to be complicated, just look at the JPEG algorithm to get an idea. If you want to store the raw image, then you should be able to work out something easily
 
user136984
No, no compression.
 
user136984
But how many colours can a pixel have?
 
kos
@ParanoidPanda Don't take this for granted, but it should be 2^24
 
user136984
And what's the range in hex?
 
A pixel can only have one color as far as I know.
 
kos
4:05 PM
256*256*256, considering a gradation of red / green / blue represented on 8 bit
 
How could it have more? It's a pixel!
 
kos
@terdon Yes but the gradation of each channel should (this is almost a guess, but I think I'm recalling this) depend on the frequency applied to the led or whatever represents a R / G / B channel
 
user136984
So in the swatch in GIMP, exactly how many different colour variations are there?
 
@kos What does the LED have to do with it? A pixel is a dot, it is the smallest possible element of a bitmap. How can it have more than one color? That would imply splitting it into smaller pieces.
@ParanoidPanda Millions.
2^24 in 8bit but we are usually working in 32bit these days.
 
user136984
@terdon: For the maths to work I need to know an exact number.
 
kos
4:09 PM
@terdon I'm assuming @ParanoidPanda 's question is about how many colors can be displayed by a single pixel?
 
But what are you asking? How many colors can a single pixel have at the same time or how many colors can be displayed in general?
 
kos
Meaning how many possibilities, not how many at the same time. Of course at the same time it's only one!
 
user136984
@terdon: I'm not asking in a physical sense, I am just asking how many different colours there are that can be represented in an image file.
 
Oh.
 
user136984
@kos: Yes, that is what I mean.
 
4:10 PM
Well, in what mode? 8bit? 16? 32? 24?
 
user136984
32
 
2^32 then, I guess.
 
kos
@ParanoidPanda Ok so it's (2^n)^3, where n it's the number of bits used for the representation
 
> True color supports 24-bit for three RGB colors. It provides a method of representing and storing graphical-image information (especially in computer processing) in an RGB color space such that a very large number of colors, shades, and hues can be displayed in an image, such as in high-quality photographic images or complex graphics.
> Usually, true color is defined to mean 256 shades of red, green, and blue, for a total of 224 or 16,777,216 color variations. The human eye can discriminate up to ten million colors.
@kos And ^3 because of the three channels?
 
user136984
@kos @terdon: So it's "79228162514264337593543950336"?
 
kos
4:27 PM
@terdon No, I'm totally incorrect on this one: RGB24 contains 3 R / G / B color channels each represented on 8 bit, and RBG32 contains 3 R / G / B color channels each represented on 8 bit + a greyscale mask also represented on 8 bit
@ParanoidPanda For the above, the grand total for RGB24 is 16,777,216, multiplied by 256 for RGB32
@terdon But yes, the ^3 was because of the three channels
So each channel is always represented on 8 bit, it's the number of channels that defines the grand total of representable colors
 
kos
4:44 PM
@ParanoidPanda Also the range in hex should be from 0(dec) to 16777215(dec), which is 000000(hex) to FFFFFF(hex) on a 6 digit representation, which you might find more often represented as from 0x000000 to 0xFFFFFF
So back to your original question, you could store the plain bitmap using a matrix (represented using a different line of the text file for each row) whose values are in those ranges
 
o/
I haz summer job! \o/
 
\o/
What is it?
 
Shelving books at a local library. 5hrs a day, 2 days a week, $9 hr
 
Awesome.
 
4:52 PM
Indeed
Also, I have discovered that Sublime Text has a Numix theme (in multiple colors too) and it looks awesome in combination with the Goldfish text theme
 
@RPiAwesomeness So you passed the drug test? ;) Congrats.
 
@ByteCommander Yap :)
Peeing in a cup is one of the strangest things I have ever done...
 
:D
I am tempted to star that, but I better don't...
 
@RPiAwesomeness Looks cool.
 
:D
@NathanOsman ikr
Installed ST3 on my laptop and couldn't remember what theme I had set up on my desktop, so I just went searching and tweaking.
 
4:59 PM
I am looking for what to do after school too currently...
Planning to do some internships and go studying after that.
Only have to find some nice companies in the area, that's the problem.
 
jrg
@RPiAwesomeness you are off to a good start.
My first job was delivering newspapers.
 
jrg
5AM, every thursday.
 
Ooo. Fun :D
 
jrg
Or (if I got lucky), I'd be able to get half the route done Wednesday night.
 
5:05 PM
I'd prefer book shelving over newspaper throwing though...
 
Assuming that babysitting and gardening don't count, my first job was data entry at a financial institution.
 
jrg
in Root Access, Mar 30 '13 at 23:18, by Oliver Salzburg
Well, I would reboot and mess up my system to solve your problem, but I'm watching a funny gif of a cat right now and I don't want to break the moment.
@RPiAwesomeness Sh*t SE Says.
 
@jrg lol :D
 
jrg
@NathanOsman Yeah, i didn't count babysitting.
That was the first job I had where I had to go to the bank to get paid.
They sent us checks.
So we had some people who were basically Cash on Delivery.
and I had to go out and collect from them.
and then there were some that were pre-paid
 
5:09 PM
That sounds... complicated.
 
jrg
and the central office would go and count the amount i was supposed to collect from the COD folks that week, and then send me a check (or a bill) for the difference.
@NathanOsman VERY.
They have since stopped doing that.
 
kos
5:27 PM
Does anybody know of a reliable way to earn a bit of extra cash online which is actually worth the time? i.e. no stuff like Amazon Mechanical Turk, something a little better
(if anything)
 
@kos Depends. Are you willing to get naked?
:P
 
kos
@terdon If it's worth my time I might. :P I've heard of fiverr (which I tried without having received any contact so far) and Elance, for which I tried to apply for a couple of jobs. No answers so far, so I'm trying to explore something else
 
@terdon o.O What a dirty mind you Greeks have...
;)
 
@ByteCommander That's nothing, you should see how dirty our feet are.
 
5:34 PM
@kos rentacoder.com might be a good idea.
 
At least they don't show up in global chat rooms...
(the feet)
 
There you go .
 
Hm?
The two right feet are equal, aren't they?
And what does this crtoon teach us?
(Btw those feet are not dirty... luckily)
 
@ByteCommander No, the Roman has the middle toe as long as the big toe. The Greek has it longer and the Egyptian shorter.
 
I bet half of the chat room is looking at their toes now... :)
 
kos
5:38 PM
@terdon Hmm taking a look, thanks. Anyway the job to do does not have to be necessarily related to IT. I could also get naked as I said or do something else as well
 
@ByteCommander Heh, I was. Turns out I do actually have Greek feet. Which is surprising seeing as I actually have less than a quarter "pure" Greek in me.
 
@terdon And I have no idea how the Egyptian came to Germany... ;D
 
@ByteCommander Cradle of civilization m'boy!
 
kos
Egyptian here as well, coherent with the history of the area I borned in
 
Maybe we should stop discussing feet. Might look weird from the outside...
Back to Python's lambda function.
 
kos
5:52 PM
Currently studying Russian. I have no troubles with the pronunciation but I'm having major troubles in memorizing the gliphs
I'm taking notes on the laptop, where can I find a list of key combinations to quickly type Cyrillic characters?
I mean within the system, otherwise I can Google this
 
@kos Click on your language setting in the top panel next to the clock.
And show the keyboard.
 
@kos what is Ubuntu code of conduct
 
@kos You should see something like that.
 
@kos Just install the keyboard layout. I often switch between Greek and English, for example.
 
kos
@ByteCommander Yes, that is perfect! Thanks
 
6:00 PM
Bottom left is normal
top row is with shift
right column is with AltGR
Not sure if that is enough...
 
kos
@ByteCommander Thanks for the suggestions, altough there are no Cyrillic gliphs that I can see, I guess that playing with the language settings I should be able to change this
@Mudit Hm? It's the agreement you have to sign when you join Launchpad
@terdon Yea that's the other option, but honestly I mostly type using Latin characters, and switching back and forth is a little bit of a hassle
 
But then you need to switch.
Or you use the character table and copy-paste character by character...
(no real suggestion.)
 
@kos extra cash ? Youtube ! Make ubuntu videos
 
@kos Not much. I change with Alt+Shift so it's trivial to go back and forth.
 
Or become a professional hacker :) seriously tho, I'd love to become a pentester. I occasionally watch defcon. Those guys are so cool
 
kos
6:08 PM
@ByteCommander What do you mean exactly? I can see only Greek and German gliphs within the window, no Cyrillic (at least not that I can see)
 
No, click on character table in the keyboard menu next to the clock.
 
kos
@terdon Yea that sounds ok, perhaps I'll stick to that
@ByteCommander Ok I see. Hm, sounds a bit complicated tough
@Serg Yea Youtube videos would be the way to go. The problem is I'm not really sure how remunerative I can make it.
 
Define remunerative
 
kos
@Serg I have about 1/2 hours of spare time a day, so I'd say that I'd consider 300$ a month ok for the time spent
1/2 meaning from 1 to two, so let's say one and a half on average
 
You can use some of your answers and just film solutions to it. You could do noob videos. Bash introduction or just shell scripting in general. If you know python java or c - film tutorials for that. I coded c when taking that class all with nano and gcc . That could be a refreshing. Reuse your older answers to questions and show them viewers problem solving
 
6:18 PM
And where comes the money from that?
 
There's videos about custom kernel compilation. You could do what's the difference between debian Ubuntu mint and others. Intro to systemd. There tons of ideas
 
(I am no youtuber, so forgive me...)
 
Google adsense
@ByteCommander ^
 
Eeeww....
And if the viewers use AdBlockers?
(like me)
 
Also you could advertise your channel and n Facebook twitter
 
6:20 PM
No money then?
 
Well . . . .some do but not everyone. How do you think pewdiepie getsoney ?
Gets money
 
1
Q: Linux randomly hibernates

Matheus FróesI'm facing some issues with Linux (Fedora and Ubuntu). First of all, when I installed Ubuntu it was sort of hibernating when booting then I installed Fedora, everything works fine, but when I boot the computer and log into my account like 1min later the computer hibernates so I have to press the ...

 
It's hard to type on mobile
 
Don't know who or what "pewdiepie" should be...
 
kos
@Serg That's not a bad idea tough. I might try this. I have a limited range of stuff I can explain well, but perhaps it's worth a shot, just for trying
 
6:22 PM
Anyway, that is probably nothing for me...
 
Maybe I should do something like that when I come back in july
Noobix videos with serg
 
kos
@ByteCommander pewdiepie is basically a 25 years old or something which plays video games like a 8 years old and makes roughly 4 million a year out of that
 
(facedesk)
 
No joke
I like markiplier and jacksepticeye more tho
 
kos
I don't know if he is genuinely like that or if he's just exploiting Youtube the right way to make money
 
6:28 PM
I use YT only for music and sometimes for science videos anyway...
Don't watch that type of video at all.
 
@kos and it disgusts me.
 
kos
@ByteCommander Me neither, but he's famous for being the most remunerative youtuber, so he has been featured elsewhere (like on Forbes) as well
@Seth Yes, it's very annoying
 
To say the least.
 
And yet millions of subscribers
 
kos
If someone wants to enjoy his most viewed video: youtube.com/watch?v=gRyPjRrjS34
 
6:38 PM
1
Q: Receiving a badge does not correspond to it's description

user244413Today I answered a question for the first time (which made me very happy) and received some badges. One of them looks strange. Teacher badge description says: "Answer a question with score of 1 or more." However, the question I answered has 0 score (I am still happy for answering it :) So it mus...

 
kos
@Serg Yes, lots of children/teenagers I guess
 
@kos Have a little brother, so I know what you're saying is true... unfortunately.
I wonder how long it takes to turn the brain into pudding with all that crap around on YT.
 
It's Internet. Crap is everywhere. But there's plenty of good stuff too
 
Yep
But seems like today's kids are hunting the crap...
 
jrg
I resemble that remark!
I strongly suspect that it's because as a society, we put so much pressure on the next generation that they always are looking for something dumb to waste some braincells on.
 
6:49 PM
Well, even Aristotle (or any other ancient Greek) already claimed that. And look where we are today.
hell, I am only 18 and already ranting about today's youth!
 
jrg
I'm 18/almost 19, and I have been ranting about my peers for years.
 
I am 15
 
EEW
Come on!
@Andrew Put that ugly beast away!
NOW
 
user136984
@Andrew: Yes, I agree, it's ghastly!
 
6:59 PM
LOL
Long time no see
 
jrg
Just keep talkinmg
*talking
and it'll eventually roll off the page.
 
talk










...
 
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
That works too :P
 
Phew.
 
jrg
Oh but @NathanOsman, you take all the fun out of it.
 
7:00 PM
Okay, I'll remove two or three of the lines.
 
I wounder how kitty got eaten
 
I won't be able to have a nice conversation with that ugly beast in sight.
 
jrg
What is done is done.
 
@ByteCommander I would becuase I don't value my life. But I can use you as a human sheid.
 
user136984
@jrg: Yes, but you can undo it! :D
 
7:05 PM
Right?
 
user136984
@ByteCommander: Are there any base64 converters (that do both ways) that I can get on Ubuntu do you know?
 
user136984
I am sure that there must be loads.
 
user136984
But I just don't know any.
 
user136984
I don't think... :D
 
user136984
Oh great, now I'm pinging all the wrong people! :D :P
 
user136984
7:15 PM
But perhaps they can help too!
 
user136984
@Serg: Ahh! Finally you are back!
 
@ParanoidPanda bfy.tw/1Jo
 
Don't be so happy. I'm on mobile
 
user136984
Oh... :D
 
Hehe... :)
 
7:17 PM
Leaving tomorrow night to see my hometown
 
user136984
@Serg: I just need to figure out how to get the base64 of a tar file and get rid of all the spaces (so it becomes one large number) and the columns at the beginning and the end (as before) in the output file.
 
user136984
And I was hoping that you could help as before! :)
 
I'm sure awk or tr can help with spaces but I've never used base 64
 
user136984
@Serg: There seems to be something here on that.
 
kos
@ParanoidPanda There is base64 from coreutils built-in into Ubuntu, but base64 encoding includes alphabetical characters as well
 
7:22 PM
Main site not responding?
 
user136984
@kos: How do I divide one base64 number by another?
 
just a bit slow...
 
kos
@ParanoidPanda A base64 encoded string It's not a number, it's a string, what do you mean?
 
user136984
@kos: @muru's been confusing me with all this... :D
 
user136984
7:25 PM
@kos: So does base64 not use base 64?
 
user136984
Because if so surely you can divide it by another base 64 number?
 
user136984
Ok, well, what's the highest base I could use then that can divide?
 
Okay, yes, you can divide base64 numbers.
 
user136984
@ByteCommander: Ok, good, so why did you say it couldn't be before?
 
kos
@ParanoidPanda I mean you can divide it if you want but it just doesn't make sense
 
user136984
7:30 PM
@kos: Why not?
 
base64 is like hexadecimal.
 
user136984
For what I am doing it makes perfect sense.
 
Or the other way round: hexadecimal numbers are base16.
So you can divide it.
 
user136984
Right...
 
Maybe with bc again?
 
user136984
7:32 PM
bc does not do base64 and that is probably what I would end up using, although I don't know, perhaps base16.
 
kos
@ParanoidPanda By dividing a base64 number, which is a 1:1 relationship between a set of characters used as digits and ASCII characters, you break all the association with the original string. Is this what you want to do?
 
user136984
Actually, it doesn't really matter what the intermediary base is.
 
user136984
@kos: What do you mean?
 
user136984
Oh...
 
user136984
No, I am taking the result, but keeping the original encoded value.
 
7:34 PM
You can also base64 Strings like "ubuntu" which becomes "dWJ1bnR1"
 
user136984
I am just do some measurements for something that comes later in the program! :)
 
user136984
I am going to base64 a tar file.
 
But... If you calculate with the number - why does it need to be bease64 then?
*base64
 
user136984
It doesn't, but @muru suggested it.
 
Did I want to type beast64?? ;)
 
user136984
7:35 PM
:D
 
So why don't just keep numbers then?
If you would share with us what you're going to do, this would help understanding your problems...
 
user136984
Well, I was going to go for decimal.
 
user136984
But then I was told that this was going to be more difficult.
 
user136984
So I went for base64.
 
user136984
But I could also go for another base, it really doesn't matter for this part of the program.
 
7:36 PM
What do you want to achieve???
 
user136984
It just might be more efficient to go for a higher base.
 
Don't think so.
 
user136984
Yes, but you don't know in what way I mean.
 
Less digits maybe, but slower to compute, I think.
 
user136984
Less digits may make the next step more efficient.
 
kos
7:38 PM
@ParanoidPanda Nevermind, seen in the perspective of what you asked previously I think it can make sense. Anyway it's a mess. One way to do it would be to expand every digit of the base64 number to its binary representation, and do the division in binary, which is a mess also. There must be a better method tough
 
user136984
Although actually I don't really think it matters.
 
Then tell me!
 
I'm all about dat base bout dat base
 
@ParanoidPanda ^
 
7:38 PM
Silence!
I hate that song...
>:P
 
user136984
What song?
 
user136984
I don't think I know it... :D
 
Okay, I hate it not thaaaat much, but I still don't like it. ;)
 
user136984
What's it called?
 
user136984
7:39 PM
:D
 
user136984
Oh god...
 
It's actually "bass" and not "base"...
 
user136984
It looks awful!
 
user136984
:D
 
7:41 PM
:D :D
ROFL
Sorry.
Bwahahah!
 
user136984
Perhaps I should use base16, as hexdump supports that...
 
user136984
Or maybe octal...
 
user136984
What do you think?
 
@A.B.: Edited askubuntu.com/a/628502/387382 feel free to revert.
 
user136984
Can I make a base64 dump of a file?
 
7:47 PM
10 mins ago, by ByteCommander
What do you want to achieve???
 
user136984
@kos: Doing a hexdump of a file gives output like this:
 
user136984
01121e0 243d 524f 4749 4649 0a53 650a 6978 2074
01121f0 5224 5445 435f 444f 0a45 0000 0000 0000
0112200 0000 0000 0000 0000 0000 0000 0000 0000
*
0113000
 
user136984
What is the * and what is the stuff below it?
 
user136984
And what is the left column anyway?
 
Offset.
 
user136984
7:48 PM
Do I need it in order to reconstruct the file?
 
No.
The data is on the right.
The offset is like...
a line number
Or the address where the data on the right has to be put.
 
@ParanoidPanda: You can do cat inputfile | base64 > outputfile
 
user136984
But it is not needed in order to reconstruct the file?
 
So if you start dumping from the very beginning, the offset should start at 0x000000
You just have to make sure you put your data back to the right place.
 
user136984
And how do I make sure of that?
 
user136984
7:50 PM
Do I need to keep those lines?
 
@ParanoidPanda: or cat inputfile | xxd > outputfile to make a hexdump.
@ParanoidPanda: Hovever, to edit a hex file I recommend Bless or GHex.
 
@Helio thanks again ;)
 
user136984
@Helio: So if I did inputfile | base64 > outputfile, could I use the output to reconstruct the file without loosing or corrupting any data?
 
My English is bad, I know
 
@ParanoidPanda I would be surprised if not.
base64 is a lossless conversion.
 
user136984
7:53 PM
@ByteCommander: Ok, so how would I reconstruct that data into my original tar file?
 
kos
@ParanoidPanda One way is to convert to decimal, do the division and convert back to base64: for example, B(base64)=000001(bin), C(base64)=000010(bin), so BC(base64) / C(base64) = 000001 000010(bin) / 000000 000010(bin) = 66(dec) / 2(dec) = 33(dec) = 100001(bin) = h(base64)
 
It is actually still the same data, just displayed differently - like as if in hex.
 
user136984
So what do I do to get it to be my tar file again?
 
use -d option.
cat encodedfile | base64 -d > rawfile
@ParanoidPanda
From the man base64 manpage. Just as always: RTFM!
 
user136984
Oooh!
 
user136984
7:57 PM
Thanks! :)
 
user136984
Right, so now I have to divide...
 
user136984
What do I have to divide it by though?
 
user136984
:D
 
(FACEPALM)
Grrr...
 

« first day (1700 days earlier)      last day (3265 days later) »