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

12:11 AM
aw man, the ninja sphere is dying... the ninjablocks company is failing
 
Okay, Go - we need to have a talk about what "equal" means when it comes to two lists.
[lo eth0 docker0] != [eth0 lo docker0 eth0 docker0 lo lo eth0 docker0 lo]
The two slices don't even have the same number of elements.
 
do you know if there is a way to fork all of the repositories an organization has?
besides clicking on all of them :/
 
@Mateo Not other than hacking something together with jQuery.
...which may not even be possible. I've never tried. Why?
 
12:27 AM
@NathanOsman ninjablocks is out of money
 
don't know if my sphere is on the "to be shipped" or "to be refunded" list...
 
Which of those would you prefer?
 
not sure at this point...
 
 
1 hour later…
1:48 AM
I might have a minor MCL Sprain. It's not comfortable :P
Self-diagnosis mind you, but it's possible.
And ow does it hurt.
 
I don't know what that is but it sounds painful.
 
 
1 hour later…
3:17 AM
... The more I look into this, the less I wish it had happened... MCL sprains are not nice things...
 
Exactly. I'm really hoping it's a Grade 1 or not even that, 'cause I don't fancy being laid up for 3-6 weeks...
 
Not the type of being laid you'd want , right ? Heh, my jokes are the funniest -___-
Well, at least it's a good excuse to answer more questions here and gain more rep
 
Sigh, that awkward moment when your ex highschool classmate , now facebook friend, sends messages that he wants to cuddle with you . . .
 
4:00 AM
ew
 
...reason #178 not to use Facebook.
 
Yeah...I don't plan on getting one...
 
@NathanOsman Do you have some time?
 
What's up?
 
I can't get Nitroshare to see anything over the network
I can ping OK.
 
4:06 AM
ruh roh
 
@Mitch That doesn't sound good.
Let's walk through some diagnostic steps.
 
OK.
 
First of all, can you confirm they are both using the same version?
 
Yes. Both using 0.3.0
 
Okay, perfect. Next, we'll try connecting from one to the other via telnet.
Make sure that NitroShare is running on both machines.
Pick one of them and open a terminal.
Then run:
telnet <IP address of other machine> 40818
 
4:11 AM
Also make sure your firewall is off or set to allow NitroShare.
That got me at first.
 
Actually... NitroShare is supposed to add exceptions to popular firewalls itself.
 
Oh, it keeps saying can not open port 40818, and I made sure that its open
 
Oh... hmm... something else must be using that port.
 
@NathanOsman Well I was using 0.3.0 and I had to manually turn ufw off before it worked.
 
That's a bug then.
 
4:13 AM
Receiving worked but sending did not.
I see. Well if you want I can report it tomorrow, was actually just shutting the computer off.
 
@Mitch Try this:
lsof -Pnl +M -i4 | grep 40818
That will tell us what process is listening on the port.
 
Even doing sudo nc -l 40818 comes back empty
Nothing...
 
Hm... that's very very weird.
 
@Seth How are you?
 
@Mitch When you say "sudo nc -l 40818 comes back empty" do you mean that it works and begins listening on the port or that it returns an error?
 
4:16 AM
it begins listening.
I will be reinstalling on this machine soon, since I've been having strange issues with it.
 
That's really strange then. So netcat can listen on that port but NitroShare shows an error saying that it can't? Is that correct?
 
Yes.
 
So it looks like QUdpSocket::bind() is failing for some reason.
 
True, but as I said, I've been having really strange problems with this machine.
I have to go to work now, I'll look at it as soon as I get there.
 
Okay.
 
4:22 AM
Thanks
 
 
1 hour later…
5:26 AM
Okay. It's looking less and less like an sprained MCL, thank goodness.
I can walk on it without it hurting now.
I think it was just a really bad bruise.
Ugh. I don't see why SO people are so uptight about having in-line examples. An external pastebin is so much easier to copy/paste from :P
 
5:42 AM
[ SmokeDetector ] Blacklisted website: You will a little bit not be moved up by rogeliopmarino on askubuntu.com
 
7:14 AM
David G Korn meets KoRn
 
7:28 AM
@SmokeDetector you on a roll buddy! Keep up the good work!
 
7:41 AM
1
Q: Installing a light vim colorscheme on gnome-terminal

sjbuysseI'd like to install a light color scheme for my vim, but it never seems to work (I tried several now). What I'm trying to obtain is something like you can see in this screenshot of mayansmoke: http://jeetworks.org/wp-content/uploads/mayansmoke-python1.png Sadly for me installing this theme look...

 
8:30 AM
[ SmokeDetector ] Bad keyword in body, blacklisted website: How to Get Beautiful Glowing Skin by KlaudiaBosch on askubuntu.com
 
@JacobVlijm "Not in a controlled way"? So, random?
 
user136984
9:02 AM
@Serg I dreamt about a maths problem that I am stuck on! I even woke up sweating in the middle of the night because I couldn't figure it out! :D :P
 
user136984
Although when I woke up in the morning, I think that I had got a little bit further with it...
 
user136984
But seriously, weird dreams 3 nights in a row leaving me feeling odd for the rest of the day!
 
user136984
:D
 
user136984
But I'm not sure if there were any pandas there...
 
user136984
Perhaps it's enough me being a panda, so my dreams don't have to contain other pandas, as they already contain me! :D
 
user136984
9:47 AM
Is there an easy way to get a program to find all the prime factors of a number (an insanely large number) quickly?
 
user136984
A number much much larger than the ones talked about here:
 
user136984
2
A: Is there a calculator which supports arbitrary precision?

muruConversion between bases in bc is fairly easy. Just set ibase and obase to the required bases. The default for both is 10, so we can just set ibase to 2. I used a file (named, say, foo) containing: ibase=2 001000110010000100101111011000100110100100101111011100110110100000001010000010100100011001...

 
user136984
@Mateo: You wouldn't happen to know would you? :)
 
user136984
Oh dear...
 
user136984
It seems I broke the online calculator! :D
 
user136984
9:52 AM
Perhaps I should go for something else...
 
user136984
And not do prime factorization...
 
user136984
10:17 AM
@ByteCommander: These were the good old days:
 
user136984
Not a mobile phone or video camera in sight!
 
user136984
Now all you can see is these little devices, and people are probably to focussed on recording, rather than actually enjoying the music!
 
user136984
@Serg: There were also crisps and aliens in my dream by the way! :D :P
 
Wow... somebody went nuts on the spam last night...
 
user136984
10:23 AM
Ooh...
 
user136984
I missed that! :D
 
Missed out on free flags too.
 
does this command's settings persist even after boot?
cpufreq-selector -g powersave
 
user136984
11:10 AM
When running rkhunter it says that openssl is out of date and a possible security risk, how do I update it? Or should I wait until a new update is available in the repositories?
 
user136984
@kos: My vote has been cast.
 
user136984
>:)
 
kos
12:18 PM
@ParanoidPanda And the question's gone :)
 
user136984
@kos: Yes, the moment my evil finger touched it, it disappeared! >:P
 
kos
12:44 PM
@Oli Since you reopened this question, I'm assuming it's fine to leave an EOL question open if one is reasonably sure that the question is not version-specific, correct?
Just to know for the future
 
Oli
@kos Why is it EOL?
I mean, if it was really talking about PHP 4-point-whatever, sure... But the edit and comments indicate that was just a typo.
 
@Oli 12.10 is eol :P
 
Oli
Can't believe I didn't see the end of the title
 
>:-D
and I said 15.04 in there cuz he wasn't using an LTS anyways :D
 
user136984
Where is the location of the clipboard by the way? :)
 
12:49 PM
@ParanoidPanda that is in memory. not on disk.
 
user136984
Ok, but where in the memory?
 
?
explain that question
 
user136984
In other words, how do I view it?
 
user136984
What application manages it?
 
Oli
@Rinzwind In my mind, dealing with somebody still using 12.10 is double the reason to suggest they use an LTS. Clearly can't be trusted to do release upgrades on time.
 
12:52 PM
@Oli I agree :D
 
Oli
@ParanoidPanda The clipboards (yeah there's more than one) are managed by X
Selections, cut buffers, and drag-and-drop are the mechanisms used in the X Window System to allow a user to transfer data from a window to another. Selections and cut buffer are typically used when a user selects text or some other data in a window and pastes in another one. Drag-and-drop is used when a user selects something in a window, then clicks on the selection and drags it into another window. Since the two windows may be handled by two different applications, these mechanisms require two different clients connected with the same X server to exchange data. The X Window System core protocol...
In terms of viewing the content, xsel (for primary selection) and xsel -b (for the clipboard) are pretty handy
 
kos
@Oli I was about to VTC as duplicate at first, so I didn't notice at first either, I just noticed the 2 OT votes already present while closing. Anyway what if the answer is not version-specific? (like in this case, i.e. to use the private repository)? Editing the question and leaving it open? Altough in this case I'd VTC as duplicate (in this case of askubuntu.com/questions/109404/…)
 
jrg
The multiple X11 clipboards are what I miss the most when I'm stuck running OS X or Windows for devwork. :(
 
Oli
@kos Yeah there were multiple issues here (bumping PHP, the hideousness that is LAMPP and whether or not to do a release upgrade) which is why I chose to answer rather than looking around for duplicates. If it had been about 12.04, (which uses 5.3 and is on topic), my answer would have made more sense.
But servers running ancient versions of Ubuntu need to be shot as a priority. They make the whole internet a more dangerous place.
 
lol
@Oli: I'm kinda guilty of that
(ironically, I had a more modern server build get bruteforced, but that's also my gault ;p)
 
1:06 PM
@Oli if they are online that is ;)
we have several servers with no internet connection
 
kos
@Oli Ok I see, I agree. Also in this case the ancientness was major, being the user seemingly talking about PHP 4
 
Oli
@JourneymanGeek Give me an IP and the output of dpkg -l and I'll "take care" of it for you >:D
 
lol
 
Oli
@Rinzwind I'm still not sure that's acceptable if they hold valuable data. Just because they're currently not on the same network as an attacker, doesn't mean that'll always be the case. (And you'll lose PCI compliance)
 
user136984
Does anyone know how to use Octave to convert base 2 to ASCII?
 
1:11 PM
@oli in our case it does ;=)
 
user136984
Or at least use Octave to convert to different bases in some way? :)
 
kos
@ParanoidPanda Still there huh? >:)
 
user136984
Still where?
 
user136984
Here?
 
@NathanOsman You know this bug that has been plaguing me with my Keyboard Mail project? The one where the TextBuffer.serialize() is returning the text incorrectly?
 
user136984
1:12 PM
Or with the problem?
 
user136984
:D
 
Well, turns out it might be a bug with Gtk+
Someone re-created it in C and the exact same thing happened.
 
kos
Yeah still injecting your custom script in that tarball right? :P
 
@ParanoidPanda doubt if it is possible. you probably need to make a function for that
 
user136984
@Rinzwind: Do you know then of a program which would easily allow me to do this as built-in functionality which would not limit the bases to really low ones?
 
1:17 PM
@ParanoidPanda hmm lists.gnu.org/archive/html/octave-bug-tracker/2012-02/… bin2dex and dec2bin? Might be fuctions for octave
dex=dec
 
user136984
@kos @Serg: How could I make an ASCII dump of a folder and all of its contents? Like this IFS="|"; for filename in $(find ~/testdir -type f -printf "%p|");do xxd -b $filename | awk '{ for (i=2;i<NF;i++){ if (i<=6) printf "%s ", $i }; printf"\n" }';done | tee ~/output.txt, except not to binary?
 
1:44 PM
@ParanoidPanda Impossible.
 
1:57 PM
There's no way to bypass the 24-hour wait period for awarding bounties is there?
 
@ThomasW. no
 
figures
 
2:13 PM
@Oli naw, Its not as bad now, I'm running the current LTS on my server ;p
(and upgrading is trivial)
 
2:24 PM
Is the SO chat separate from the rest of SE chat? I mean, I starred it, but I don't automatically rejoin...
 
user136984
What is the range of colours that a pixel can show, and how many colours?
 
Depends on the monitor IIRC.
 
user136984
@ByteCommander: Well, it's not necessarily impossible, but a good method except trial and error hasn't really been found yet that I know of.
 
Depth of color and all that
I'm not sure though
 
user136984
Ok, but what about all the colours types which can be stored in an image file?
 
user136984
2:32 PM
That is what I am really getting at.
 
Dunno.
 
user136984
Does anyone know?
 
user136984
(That was directed at everyone, and not just @RPiAwesomeness.)
 
user136984
:D
 
user136984
@RPiAwesomeness: Do you know anyone here who might know?
 
2:38 PM
No, I don't :(
 
user136984
Also, what does an actual image file contain? And how does the program interpret its contents into an image?
 
@ParanoidPanda If we found out a method, all our current encryption techniques will become as useless as lemon ink.
And what do you want to know about images? @ParanoidPanda
 
user136984
@ByteCommander: I want to understand them so that I can make an application which makes them.
 
user136984
I mean, how does this make up part of an image file?
 
user136984
`00000000 FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 48 ......JFIF.....H
00000010 00 48 00 00 FF FE 00 13 43 72 65 61 74 65 64 20 .H......Created
00000020 77 69 74 68 20 47 49 4D 50 FF DB 00 43 00 01 01 with GIMP...C...
00000030 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ................
00000040 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ................
00000050 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ................
00000060 01 01 01 01 01 01 01 01 01 01 01 01 01 01 FF DB ................
 
2:48 PM
Can someone ping me real quick? I'm testing out a userscript theme for chat and need help working on the ping color
 
RTFM? :)
@RPiAwesomeness ping.
 
user136984
@ByteCommander: I can't find it!
 
user136984
So I was hoping somebody would direct me to it!
 
@ByteCommander Awesome. Thank you :)
 
Which image format do you want?
 
user136984
2:49 PM
:D
 
np @RPiAwesomeness
You even got a second one for free! :D
 
user136984
@ByteCommander: Well, personally I want to create my own image format, but I want to understand another first, so perhaps jpg?
 
jpg is too complex.
Start with bmp.
 
user136984
Ok
 
2:50 PM
bmp consists of a header and the data part.
header consists of the magic number (BM are the first two byte in ASCII of an BMP file) and some info about the image,
 
user136984
I literally just need to understand how to make it so that my application can colour in pixels and set the size of the image.
 
such as color depth, width, heigh, ...
And a color table, if you have 8bit colors.
 
user136984
Ok, let me quickly just create a bmp and get it up on screen...
 
Assuming you have a 32bit BMP, the body consists of 4Byte (32bit) per pixel.
red channel 1 byte, green 1byte, blue 1byte. And 1byte dummy or alpha, because processors are faster processing 4bytes in a row than 3 bytes.
 
user136984
Ok, I have created one 32 bit one with only one pixel...
 
user136984
2:53 PM
00000000 42 4D 8E 00 00 00 00 00 00 00 8A 00 00 00 7C 00 BM............|.
00000010 00 00 01 00 00 00 01 00 00 00 01 00 20 00 03 00 ............ ...
00000020 00 00 04 00 00 00 13 0B 00 00 13 0B 00 00 00 00 ................
00000030 00 00 00 00 00 00 00 00 00 FF 00 00 FF 00 00 FF ................
00000040 00 00 00 00 00 00 42 47 52 73 00 00 00 00 00 00 ......BGRs......
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
 
The BMP file format, also known as bitmap image file or device independent bitmap (DIB) file format or simply a bitmap, is a raster graphics image file format used to store bitmap digital images, independently of the display device (such as a graphics adapter), especially on Microsoft Windows and OS/2 operating systems. The BMP file format is capable of storing two-dimensional digital images of arbitrary width, height, and resolution, both monochrome and color, in various color depths, and optionally with data compression, alpha channels, and color profiles. The Windows Metafile (WMF) specification...
There you have something to read. @ParanoidPanda
Ask me if something is unclear.
 
user136984
@ByteCommander: Ok, I'll come back when I've read all of that (or if I get stuck)! :)
 
According to his skype profile, Fabby became 115 years today...
3
Half-Vorlons seem to live longer than average human do. :)
Flashing stars?
Anybody up for spending a birthday bounty? ;)
 
@heemayl: Now I'm busy, I'll return about 20:00 CEST or a bit later.
 
What is the best way to start a script for TTY1 ... and GUI?
 
user136984
3:01 PM
@ByteCommander: What's a birthday bounty?
 
A bounty as birthday present...
Just a thought.
 
user136984
Well, I could probably spare 100 or so rep, as I get so much every day.
 
I mean an autostart script
 
@RPiAwesomeness Yes, Sent chat, SO chat, and MSE chat are on different chat "networks".
 
3:04 PM
Anyway:
 
@Mitch I'm doing OK. Going on vacation starting Monday. Really looking forward to that.
 
@Fabby Happy 115th Birthday! \\o \o\ \o/ /o/ o// :D
 
@ByteCommander Hey! You stole my dancing stickmen!
:D
 
Copying is not stealing... ;)
 
user136984
It would be nice if there were custom bounties, then he could get 115! :D
 
3:06 PM
And writing that, my connection dies... :-/
Copying is not stealing... ;)
No no... Better no bounties.
Otherwise somebody might reverse them and they're gone for both.
 
user136984
:D
 
user136984
Yes, but, actually, I could give 100, and then upvote a question and an answer and it would give him 115! :D
 
You could...
But that would probably be abusing the voting system.
Friends voting or something like that.
 
user136984
Yes, it would be abuse, and somebody would probably reverse it.
 
Mods love to swing their hammers on such things.
 
jrg
3:10 PM
SWINGGGG
 
user136984
But it would be good if if somebody puts in their birthday for the system on their birthday for everyone, or at least just them, to make their profile filled with balloons etc! :D
 
user136984
Although I'm sure that a mod once told me that mods don't have any impact on the voting system.
 
user136984
It's still probably not such a good idea.
 
user136984
@ByteCommander: What exactly is bit masking?
 
user136984
And what exactly are bitwise operations?
 
3:16 PM
RTFW.
 
user136984
@ByteCommander: Read The Flipping Water-hog?
 
user136984
What does the 'W' stand for?
 
user136984
:D :P
 
Wiki.
Because it's actually not a manual.
But in short:
Bitwise operation = operation you perform on variables bitwise.
like binary AND, OR, XOR, NOT...
And bit masking: You have a mask that tells you which bits to chose and which not.
@ParanoidPanda
 
user136984
Right...
 
user136984
3:27 PM
@ByteCommander: I read the wiki, but I still don't real understand how the application creates the image, manipulates it, or reads it.
 
What's the problem?
 
user136984
What do you mean?
 
user136984
The wiki just isn't that clear about it.
 
user136984
It speaks about it generally.
 
user136984
But I need it very specifically, showing me for instance what each part of this means and how the computer reads it:
 
user136984
3:28 PM
00000000 42 4D 8E 00 00 00 00 00 00 00 8A 00 00 00 7C 00 BM............|.
00000010 00 00 01 00 00 00 01 00 00 00 01 00 20 00 03 00 ............ ...
00000020 00 00 04 00 00 00 13 0B 00 00 13 0B 00 00 00 00 ................
00000030 00 00 00 00 00 00 00 00 00 FF 00 00 FF 00 00 FF ................
00000040 00 00 00 00 00 00 42 47 52 73 00 00 00 00 00 00 ......BGRs......
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
 
user136984
:)
 
You want to implement a BMP reader?
@ParanoidPanda This looks very full of information: fileformat.info/format/bmp/egff.htm
 
user136984
Well, what I am aiming at is an application which can create, and read data from a custom image type which I am hoping to create, but I guess I should start with BMP, before I go and start making my own image type.
 
user136984
@ByteCommander Ok, thanks! :)
 
Well, if you will make your own image type @ParanoidPanda...
 
jrg
3:33 PM
@ParanoidPanda you're going to create your own image type.
NO
don't
please
i beg you.
 
How does that format have to be?
 
user136984
@jrg: Why?
 
Small file size?
 
jrg
@ParanoidPanda I work with a bunch of different image types
 
Fast?
 
jrg
3:34 PM
they all suck
don't build another sucky one.
 
Easy?
Transparency?
Other special things?
How does it have to be?
 
user136984
@ByteCommander: It's going to store data in a special way for another application.
 
user image
5
@ParanoidPanda ^^
 
And you know: Nobody else will be able to read it!
 
user136984
No, I'm going to create the application which reads it, that is the point. :P
 
3:36 PM
So as it is just an internal format for your program...
 
user136984
@terdon: :D
 
Why not just serializing the object that holds the image?
Why developing a custom file format and not just dumping the raw data?
@ParanoidPanda That would prevent you from much trouble.
If you need small sizes, run it through a gzip streamer first.
Or encrypt it if you need to or whatever.
But it will be faster than doing anything else.
 
user136984
@ByteCommander: No, it does need to be an image file for what it needs to do.
 
Why?
If your application is the only program in the world that will be able to open it anyway?
 
user136984
Well, no body needs to be able to view it as an image, but it needs to be basically the same as an image.
 
3:38 PM
So what's the problem with loading the image into an object and serializing it?
 
kos
@ParanoidPanda Encrypting / decrypting?
 
You can then load the exact duplicate of that object instance to your other program and reuse it.
 
user136984
@ByteCommander: What do you mean when you say "serializing it"?
 
user136984
Sorry, very new to all this.
 
user136984
And DuckDuckGo is just so slow!
 
user136984
3:41 PM
Well, for me it is anyway... :D
 
user136984
@kos: I need to store data in a similar way to how it is stored in an image file for efficiency.
 
What language do you use?
@ParanoidPanda Sorry, my connection is bad today too...
 
user136984
@ByteCommander: Well, I mostly use Java, but I could try Python (although I don't have the same amount of experience with that as I do in Java).
 
Good.
Java can serialize objects.
There is a package for that.
Read tutorials.
You just save an object as it is to a file and can reload that later.
It looks exactly the same then as before.
 
kos
@ParanoidPanda The most similiar to the original you store the obfuscated one, the easiest the content is till viewable, expecially in images. Consider an image as a matrix of rgb triplets: changing only some according to a criterium will make the rest of the image still viewable, and in images obfuscation needs to be high: consider that sometimes you're able to tell also what's behind a blurring, so if I had to obfuscate an image I'd go with something strong
 
3:49 PM
@kos That is not the problem, is it @ParanoidPanda?
Do you need any form of encryption/obfuscation?
 
user136984
@ByteCommander: No, not for its basic functionality.
 
@kos Nobody needs to be able.
But not nobody must be able...
 
user136984
The data that I will be storing in the file will be rather large, so the way you say to do with is unlikely to get what I need @ByteCommander.
 
Why?
If you can hold the data in an object, you can also bring that object to a file and back.
 
kos
3:53 PM
@ByteCommander Ok sorry, I missunderstood then. @ParanoidPanda So can I ask what's the purpose of not using an already extabilished standard? Are you trying to create your own as terdon ironically suggested?
 
user136984
@kos: Sort of, but it won't have the purpose to be an image.
 
user136984
It will just store data as one.
 
user136984
@kos @ByteCommander: I know it sounds slightly strange, but I basically just need to make an image file with a custom width and height, and so that each pixel is equal to a certain colour.
 
user136984
Which the application dictates.
 
Then save whatever you have as ordinary bmp bitmap.
 
user136984
3:56 PM
But I want my file to be special, and for somebody not to just be able to call a file .bmp and then use it.
 
user136984
@ByteCommander: So do I just rename the file then? :D
 
kos
@ParanoidPanda So you want to store data to represent an image but not using any known file format, because you just want to store its representation but you don't want the image to be displayed , correct?
 
user136984
Well, yes, sort of.
 
user136984
I just don't want someone to be able to take a .bmp file, and then put it in my program, and make my program think that data is stored in it!
 
user136984
:D
 

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