« first day (541 days earlier)      last day (4632 days later) » 

00:00
.net DLL != native dll, but the same extensions
@user1131997: No, they are still PE files.
@Insilico If you rename .net file from *.exe to *.dll or reverse, you feel no different
you do the same with native one
there will be
try to rename native dll to *.exe, why will be the result on executing it? there will be error, where in .NET won't
if .net files are PE, why does VM needed and such program as ngen.exe ?
when is windows 8 coming out?
@user1131997: It won't run, but that's because the OS loader can't fine the expected entry point. But what about the converse? If I rename an .exe to a .dll and run it it runs exactly like nothing happened
Is anyone actually looking forward to Windows 8?
00:03
@Insilico yes, but for .net there were not difference
@user1131997: I know for a fact that .net dlls and exes are PE format
The only thing I'm looking forward to is more C++11 goodness.
@Insilico you could name as you wish, and may execute or load it as .net comopnent
So the OS loader knows what the hell to do with it
@Insilico try to remove .net clr
@Insilico what will be with OS loader to .net programs?
and its pseudo-pe format
?
your .net programs won't work
00:05
@user1131997: No, this is how it works. When you launch a .net exe, the OS loader first takes a look at the PE headers in the file
When it sees the CLR headers, it hands off the file to the .NET runtime
The CLR executable is embedded in a PE file
K everyone, good night
@sehe: Night.
Microsoft's .NET Framework has extended the PE format with features which support the Common Language Runtime (CLR). Among the additions are a CLR Header and CLR Data section. Upon loading a binary, the OS loader yields execution to the CLR via a reference in the PE/COFF IMPORT table. The CLR then loads the CLR Header and Data sections.
Yes. It's still the PE format
ahhh.... see, PE is just table with executing rules, isn't ?
00:09
Eh? PE is the file format for executable code in Windows. In .NET, PE is just used as a container for CLR metadata/code and to tell the OS that mscoree is a dependency
> And let's not forget about Microsoft® .NET. Where does it fit in? To the operating system, .NET executables are just plain old Win32 executable files.
00:59
hey.. is it possible to declare a bit array of size 10^13
Do you have to work on Monday after Easter? Where I live it is a national holiday.
good question
01:19
I know this is a C++ room, but there is nobody in the python room, but is anybody here pretty fluent in Python programming?
01:34
        DWord const sourceFlags     = 0?0
            : resourceModule == 0? FORMAT_MESSAGE_FROM_SYSTEM
            : FORMAT_MESSAGE_FROM_HMODULE;
        DWord const flags           = 0|0
            | FORMAT_MESSAGE_ALLOCATE_BUFFER
            | FORMAT_MESSAGE_IGNORE_INSERTS
            | sourceFlags;
^ artful formatting :-)
Hi, do you know anything about python programming?
template <typename T, typename...>
using PackHead = T;
// I thought I was being clever, and then GCC ICEd
do you know anything about ciphertext?
I have an assignment that is due at midnight and I cant figure out how to decrypt a ciphertext :/
To anyone who knows a bit about OpenGL: how can I send an array of structs to my shader?
01:37
@KalanMatthews if it is ROT-13, then just use ROT-13 page on the web. ;-)
what is ROT-13? (im new to python and all this kind of stuff)
A bit of Python intro I wrote: docs.google.com/…
@KalanMatthews google?
oh ok..i see now
see though this is the ass.: Your program should decode the "encrypted.txt" file using "key.txt" and write the plaintext to "decrypted.txt"
well, go for it! :-)
@EtiennedeMartel Uniform or varying?
01:40
Uniform.
i have no clue where to even start though lol
@EtiennedeMartel (I have no idea, though, I just thought it was an important bit of info)
@KalanMatthews well, what is the cipher?
My struct is basically three vec4, so I could probably pass it as an array of matrices.
he said the file will look similiarly like: A B
B C
C D
D E
E F
F G
G H
H I
I J
J K
K L
L M
M N
N O
O P
P Q
Q R
R S
S T
T U
U V
V W
W X
X Y
Y Z
Z A
01:42
How many of you have worked with data in mind within C++? Paradigms like data-oriented design etc.?
thought I would come here and see if someone will go into private chat with me and help me work out this program
@KalanMatthews hahahaha, not gonna happen
This isn't an encryption problem, it's testing your knowledge of basic python
Hah, @KalanMatthews, we mostly come here to relax and discuss interesting facets of C++, not really to resolve simple problems. Stackoverflow Q&A, on the other hand, is awesome for this kind of thing.
I don't think this question would be any better received on SO. It's simple homework with no particular step to get stuck on.
room topic changed to Lounge<C++>: If you have no idea where to start, try from the beginning. [c++] [c++11] [c++-faq]
01:45
If you want to know where to start, read the key file and create a dictionary to map A to B, B to C, etc.
@KalanMatthews Software engineering, and all science in general, is best left to hints to intuition and working it out on your own. Just like with music. Learning a tab by heart is not really progress. You need to try hard. And understand that effort and failure weave the fabric of success.
He's gone. The evil C++ police strikes again ;)
A.C++.A.B.
I really don't understand the "I have no idea where to start" thing. How can you be at a complete loss before you even start? I mean, even bad ideas are still ideas.
Xeo
Xeo
01:58
@RMartinhoFernandes Damn, I wanted to make an A Team kinda topic from that one, but it really doesn't work out. "C++ Team" is just far too distant from the "A Team", and "A++ Team" doesn't really lend itself to C++. :|
Oh, I never watched the A-Team.
When I was a kid it was on TV but on a channel that had no coverage on our house. :S
02:13
Dear GCC: Just compile that shit and STFU. I can't want to go to sleep with my code broken.
Fuck yeah, I win. Now it compiles and passes the tests. I can have nice dreams now.
Good night! Unless you're already dreaming ;v)
I came up with a cool project name. Should I save it for a big project that I may or may not do later, or tack it on a small project that I'll probably do this week?
Both. Retcon them together if necessary.
Unfortunately, I can't rename Google Code projects.
Although, I've been considering switching to Github. If Github allows renaming, I'll do that.
02:28
Will development of the two projects overlap?
The big one would probably depend on the small one.
Some context might help.
The small project is a library for outputting formatted and colored text to a terminal. Basically a clean wrapper to ANSI escape codes.
The large project is a terminal-based IDE for D.
The name is Descry, which I think is clever because it means "to discover" and it begins with D, which is common among D projects.
 
3 hours later…
Woohoo, I finally pulled OS X Lion through my cellphone and installed it on VMWare also pulled through the phone!
WTF, VMWare isn't idling the CPU at all??
No, just Spotlight indexing an empty, fresh installation. Ughhh.
06:30
Why is is that every time I add a monitor to my workdesk, a few months later... I start running out of room again...
 
2 hours later…
Xeo
Xeo
08:17
4
Q: Automatically pass a class by value or by reference depending on its size

panda-34I have this class which I want to pass around Windows as LPARAM parameter. Since it's small enough to fit inside LPARAM I want to pass it by value, but in case it expands later I want it to automatically switch to passing by reference. I would use something like typedef boost::call_traits<CM...

Doesn't this one violate strict aliasing rules?
@Xeo only if you use g++ and forget to turn off that silly thing
Xeo
Xeo
Eh, silly thing?
Yes. I can't think of any advantage. Can you?
Strict aliasing helps optimization in the face of that sort of madness. But what are the rules, actually? I forget…
@Potatoswatter they're messy, especially when you combine them with alignment and crap
08:28
@Potatoswatter there is a list of supported casts in section 2 or 3 of the standard (i think it was). but they forgot the first-element-of-POD allowed later in the standard. IIRC.
I think I've spammed this room with a bunch of strict-aliasing questions - most of which @Luc answered.
doesn't introducing a char* or char& conversion step effectively notify the compiler and fix everything?
I think with auto inferred types, the same principle should hold for aliasing: the compiler should infer things.
@Potatoswatter Dunno, there's only been one situation I've run into where violating strict-aliasing actually broke the program.
@CheersandhthAlf But when you map two completely different structures onto the same char[] blob, and modify a member of one structure, how is it supposed to keep track of which members of the other changed? Even invalidating all the members of "the other" gets tricky.
08:44
morning
@Potatoswatter why should it keep track?
@Potatoswatter No. You can only alias any object by it's type (or base types), and by char*, but adding char* into the mix does not allow you to alias by any other types.
@CheersandhthAlf It's very nice to hoist values to registers, and in general not do everything as a memory transaction in the program's specified order.
@Potatoswatter but but... gimme an example where that isn't a problem even for just multiple pointers to same object
@DeadMG So I can memcpy an int32_t to a float, because that moves the chars and each char is only interpreted as part of one other type?
08:49
float f = 3.14f;
int* p = reinterpret_cast<int*>(&float);
*p = 1234;
foo( f );
@CheersandhthAlf If only one pointer of a given type is in scope, then you assume that no alias is possible, in the absence of thread primitives and unanalyzed function calls. That's the whole point.
float f = 3.14f;
float* p = &f;
*p = 549;
foo( f );
@Potatoswatter sounds like a stupid optimizer. consider that all windows programming breaks that rule. visual c++ manages fine without it.
@CheersandhthAlf Meh… I'm just conveying my knowledge. I have no idea how effective such optimizations are, but how am I supposed to know if your question is rhetorical or not ;v)
FWIW, GCC covers a lot more platforms and use cases than MSVC, and Windows APIs are all a cesspool.
@Potatoswatter yep.
I don't see what strict aliasing and Windows programming have to do with each other
@DeadMG He's saying that GCC's application of strict aliasing is an injustice because MSVC doesn't apply the rules, and it optimizes very well too.
Also, if this "I want to pass a class as an LPARAM" business is encouraged on the platform…
09:03
I just came across this:
109
Q: Programming challenge: can you code a hello world program as a Palindrome?

gigantt.comSo the puzzle is to write a hello world program in your language of choice, where the program's source file as a string has to be a palindrome. To be clear, the output has to be exactly "Hello, World". Edit: Well, with comments it seems trivial (not that I thought of it myself of course [sig...

wtf...
Why isn't that question closed?
09:19
@Potatoswatter That's very true. But I don't think that genuinely breaks strict aliasing. For a start, LPARAM is an integer and not a pointer, so aliasing doesn't apply, for example.
@DeadMG The OP wants to store his struct inside the LPARAM, and pass that around.
Can someone help make this a duplicate?
0
Q: Function with unknown number of parameters in C

Z KimHow can I write(if it's possible at all...) a function which takes unknown number of parameters in C99(the return type is constant)?

There are many more specific questions but I see nothing starting from square 1.
Mat
Mat
5
Q: passing variable number of arguments

ShwetaCan we pass variable number of arguments to a function in c?

Tin
Tin
@Potatoswatter, I read his question, how would you define a function with unknown number of parameters but in C++? Would it make sense to use a tuple as parameter?
@Tin It's a C question, not C++. The answer is varargs.
@Mat Thanks much!
Mat
Mat
That's the first time I think the SO suggested dupes have been quite far out and I had to google it instead.
You were right though, it stank of dupe.
Tin
Tin
09:27
@Potatoswatter, thanks
guys, can I ask you a short question? I'm defining a very simple struct that returns me random numbers (using TR1). I'm not able to find the compilation error. If somebody could have a brief look at line 24 in the following code: ideone.com/xRzsr
@Tin I think you want m_distribution( m_engine );
And m_distribution gets initialized with the (low, high) arguments.
By default low=0, high=1 and you can't change them after the distribution object is constructed.
Tin
Tin
@Potatoswatter, thanks, I think your suggestion is what has been done in the struct randGen in the same code
but I need a struct that allows me to change the ranges (a,b)
@Tin Just construct a new distribution object. Shouldn't be expensive.
So then you have Distribution( low, high )( m_engine )
and no m_distribution at all, just a temporary.
now my code feels a lot more like it could be a game, since you can actually do things
Tin
Tin
@Potatoswatter, or I could for instance create new ranGen objects, right?
I had also a very simple function. I think this also uses a temporary distribution, right?
template <typename Generator>
double randomDoubleEngine(Generator& engine, double low_bound, double high_bound )
{
if (low_bound > high_bound){
std::swap(low_bound, high_bound);
}

return std::uniform_real_distribution<>( low_bound, high_bound )( engine );
}
09:43
I doubt using a temp distribution gives you any guarantee about the distribution of the results.
Does Stack Exchange allow me to print just one answer? I'd like to have this answer as a PDF.
Or do I need to convert it to a PDF myself (not difficult, it's just Markdown)?
I never heard of a print feature.
But grabbing the Markdown and rendering it yourself isn't that difficult.
Tin
Tin
@RMartinhoFernandes, what would you suggest?
I've two structs that more and less illustrate what I would like to achieve: ideone.com/xRzsr
the first one randGen generates random numbers between [a,b] but I can't change the interval anymore, once it's defined
@Tin I'm not certain about what I said.
I'm still waking up.
Tin
Tin
that's why I was looking for this new struct randGenNew which allows me to change the intervals
@RMartinhoFernandes, bom dia ;-)
09:47
Find an algorithm that maps [a, b] to [c, d] without affecting statistical distribution.
Yep, I confirmed it. Values produced by a distribution are allowed to depend on previous values.
you can reset a distribution to make the next call of operator() independant of the previous ones, constructing a new one, I think has the same effect
:3218220 That's the reason reset() exists.
Ah, yes. Distributions are allowed to cache the entropy generated by the engine.
I still don't think that's an issue. The sequence won't be the same using a persistent object or temporaries, but it will be consistent either way.
Ah I have the PDF already. (:
Tin
Tin
09:53
I'm a bit confused now
I had a look at the following tutorial: codeguru.com/cpp/cpp/cpp_mfc/stl/article.php/c15319/…
regarding the generator, it's written that: An algorithm initialized with the same seed will generate the same sequence of numbers.
now, having the following lines:
std::random_device rd;
static std::mt19937 engine(rd());
yeah, but random_device will give you a different seed every time
Tin
Tin
i.e. having a static engine, does it means that i'm going to obtain the same sequence of numbers?
@bamboon, ah ok, thanks ;-)
@Tin The seed is the value you pass to the constructor of the engine.
random_device is supposed to be a real source of entropy, if available.
Tin
Tin
@RMartinhoFernandes, i.e., as long as the seed is different, the sequence of generated numbers is different, right?
09:56
try std::mt19937 engine(0);
Tin
Tin
@bamboon, in this case, i will get then the same sequence, i guess
@Tin yeah
Tin
Tin
so, this means, i could instantiate a high-scope (in the main() ) engine with a random_device in its constructor.
and inside of a giving class function, i could change the (a,b) parameters of the selected distribution
and get always different sequence of random numbers?
what i didn't get yet, what i'm not allowed to change the intervals (a,b) of the distribution in case my engine() is fixed in any case?
@Tin my_distribution = distribution_type(params)
Distributions are assignable, so if you want to change it, just assign a new one.
Tin
Tin
for instance distribution_type( a, b )( engine ), right?
I would like to use always the same distribution, but I would like to change the intervals (a,b)
or this means, each time, i need to change the interval (a,b), i need a new distribution?
10:03
@Tin Just assign to it.
@Tin Because the distribution is allowed to do some optimization. Being totally uniform down to the LSB can be more complicated than just multiplying by (b-a) and adding a… and even (b-a) is enough work to justify an optimization.
And changing the interval of a uniform distribution would make it not uniform.
Unless you stop considering the values that were already generated.
And that's exactly what assigning a new one means.
I hate 3D rendering :(
can't get my selection lines to render and the D3D debug runtime is ... less than helpful
17 mins ago, by Luc Danton
Find an algorithm that maps [a, b] to [c, d] without affecting statistical distribution.
Tin
Tin
thanks guys!
10:06
@LucDanton Divide by b and multiply by d?
assuming that you're in arbitrary precision, of course
wait, never mind
Mapping [-1,0] to [-10, 0] with that algorithm would be catastrophic.
subtract a
divide by b-a
multiply by d-c
add c
Tin
Tin
and now a final comment on that, in the code below, a new distribution is created each time the function gets called, right?
10:07
but depends what u mean by "distribution"
Tin
Tin
template <typename Generator>
double randomDoubleEngine(Generator& engine, double low_bound, double high_bound )
{
if (low_bound > high_bound){
std::swap(low_bound, high_bound);
}

return std::uniform_real_distribution<>( low_bound, high_bound )( engine );
}
apparently
I have DX11 class hardware, so it supports hardware tesselation and all that good stuff
but it doesn't support hardware index buffers...?
@Tin Yes.
I don't know enough stats to prove it one way or another, but I'm still not convinced that guarantees uniformly distributed values.
Tin
Tin
but in this following case, not, right?
template < typename Generator = std::mt19937, typename Distribution = std::uniform_real_distribution<double>, typename T = double >
struct randGen
{
randGen(const Generator & eng, T low, T high) : m_engine(eng), m_distribution(low, high) {}
T operator()() { return m_distribution(m_engine); }
private:
Generator m_engine;
Distribution m_distribution;
};
Right.
That one reuses the distribution object.
Tin
Tin
10:10
@RMartinhoFernandes, thanks, so for this struct randGen case, I would need then to initalize a new object
each time a i need a new distribution, i.e. a new interval (a,b)
thanks guys for your clarifications! things are more clear now!
10:27
hi, all
lol, the conversation here is incomprehensible.
huh
GLM appears to be producing bogus quaternions :(
@RMartinhoFernandes I've just remembered that before you went Internet-less I wanted to tell you that I've rewritten my variant. I wanted you to take a look at it for glaring errors, but I'm not sure I can do that with good faith as it's still 750 lines long :(
@LucDanton internet-less?
10:33
@LucDanton use codereview.se
ah damn, my mind's getting affected by too much work. I should rest now.
@Potatoswatter I've considered doing it yes. I want to tweak stuff still.
sbi
sbi
This is funny.
Tin
Tin
@sbi, indeed ;-) wondering how the apple version would look like
@ScottW good what?
nvm
anyway can't believe in God, if I know that C++ exists
10:44
argh GLM ur quaternions, they're teh brokens :(
it was just a regular Sunday
ewww turket
@DeadMG turkey is nice with appropriate sauce and no stuffing
oh no
hah
i'm thinking, oven-baked whole entrecote, then sliced
:-)
except it's chicken fillets for dinner
sbi
sbi
@CheersandhthAlf You know, on the theme of food photography vs. reality, just to remind you that the pictures you send are bad fake, I'd like to point out this series of images. It's by a German who bought ready-cooked food in the supermarket, took pictures of the packages, and then of the food, prepared exactly as described on the package.
2
The descriptions are in German, but it needs nothing but the pictures to get the message. (The book containing those images is, allegedly, also void of any text.)
heh
that manufacturers lie shamelessly on packaging? :P
sbi
sbi
10:56
@DeadMG We all know that, of course. But the extent, when shown in direct comparison, is still staggering, don't you think?
@sbi whole baked entrecote looks almost exactly like shown, at least at the cafe on top floor of Glassmagasinet at Stortorget in Oslo
@sbi Yeah, I definitely do.
I don't know if I dare look at those photos.
sbi
sbi
@CheersandhthAlf Have you ever cut a piece of meat on a wooden plate like that? The plate will look a lot more messy than on the picture. And how can you cut off a slice of meat without holding the whole loaf, usually with a fork? As I keep telling you, Alf, those pictures are all fake. They are porn. There as much realism in them as in the girls moaning in porn movies: none.
@CheersandhthAlf Ring a bell, huh?
@sbi the cook is using a spatula of wood to hold the slice
sbi
sbi
11:01
@ScottW You can take any picture of a salad, that Alf posted, it doesn't matter. They are all just porn.
meat loaf was an artist
sbi
sbi
@CheersandhthAlf Not on that picture, no.
@CheersandhthAlf A bat out of hell, eh? :)
yes
there was some moaning too
sbi
sbi
@CheersandhthAlf I'm old enough to have liked that guy, in my time. :-/
Ah, well, time to measure blood sugar. I'm full of holes in my fingers.
11:18
-1
Q: Is it good practice to use pointers in every place possible?

Sally Anne Possible Duplicate: Why use pointers? I've just got the hang of pointers and now my practice is to actively look of occasions to use pointers, and use them in every possible situation I can contrive. Is this a good idea? And if not, why not? Or is it just a personal preference?

lol stupid question
-3
A: Is it good practice to use pointers in every place possible?

Esteval Del ToroBecause if you use pointers everywhere possible your code might end up looking like this typedef solution_type (*algorithm_ptr_type) ( problem_type problem, void (*post_evaluation_callback)(void *move, int score)/* = NULL*/ ); Or maybe this #include <stdio.h> #define A(a) G a(...

^ answer is better
If you want to use pointers as much as possible, you should dereference functions before calling them:
int answer()
{
    return 42;
}
int main()
{
    (************answer)();
}
;)
sbi
sbi
@CheersandhthAlf That sounds bad. I am sorry. Can you even eat the stuff you keep posting pictures of?
@FredOverflow That only uses more dereferencing, but doesn't increase the amount of pointers used.
right :(
2
A: Array index out of bound in C

BobbyShaftoeJust to add what other people are saying, you cannot rely on the program simply crashing in these cases, there is no gurantee of what will happen if you attempt to access a memory location beyond the "bounds of the array." It's just the same as if you did something like: int *p; p = 135; *p = 1...

just commented on 3 year old error
11:35
Isn't it allowed in C?
It does compile… ideone.com/rbFcF :P
And it's only a warning when using initialization instead of assignment? WTF?
Mat
Mat
Who knows? You might actually want to access the integer at 135 in memory?
> the left operand has atomic, qualified, or unqualified pointer type, and (considering the type the left operand would have after lvalue conversion) both operands are pointers to qualified or unqualified versions of compatible types, and the type pointed to by the left has all the qualifiers of the type pointed to by the right;

the left operand has atomic, qualified, or unqualified pointer type, and (considering the type the left operand would have after lvalue conversion) one operand is a pointer to an object type, and the other is a pointer to a qualified or unqualified version of void,
So you are right, Fred. (:
According to N1570.
11:51
@Mat Accessing the integer "at 135 in memory" is an unaligned data access which will crash on some platforms.
@daknok_t good to know I'm not totally insane :)
Maybe it was allowed in an older version of C that's used on Ideone. N1570 is for C11.
Awesome, Scala has Unit, Null and Nothing :)
@FredOverflow Unit is type, not value?
we have void and nullptr too
Mat
Mat
@FredOverflow Fair point. But arbitrary memory access is something that could be needed, that was the point I was trying to make
@Mat Sure, but we have ugly casts for that.
@Abyx All three are types. The only value of Null is null, and Nothing has no values.
I'm not sure if Unit has 1 or 0 values.
> In Scala, the unit type is called Unit and its only value is written as ().
Mat
Mat
12:04
What is the easiest way to send a string via TCP in C++? Most solutions are C libraries, and platform dependant from a quick google.
@Mat asio.
@Mat Check out boost::asio
Mat
Mat
Conclusive answer then. I usually try and use standard libraries only but I guess boost is too good to not use.
@Mat you can use asio without boost, it's stand-alone header-only library
Mat
Mat
I will have to take a look at that. Is it stream based or not?
12:08
@Mat streams or buffers
Mat
Mat
Why I like linux: sudo apt-get install libasio-dev
Works first time :)
FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCK
6
Time to put my disaster recovery skills to the test. Guess what happened here:
sehe@bbs2:/tmp$ pv /dev/sdc | sudo dd of=/dev/sdb bs=1M
[sudo] password for sehe:
^C87GB 0:01:51 [46.8MB/s] [>                                                     ]  0% ETA 8:49:09
0+39979 records in
0+39979 records out
5240127488 bytes (5.2 B) ␌⎺⎻␋␊␍, -2.33039␊+268 ⎽,
Yý"ýý ┴ýýýýýVýýý±ýAý�'hbr���ՑۊM�#2���yýF'ý[ýýýýB◆ýLýýYR]ý┬ýýýýE.W09ýýQýAýýýýýý YB/⎽
⎽␊␤␊@␉␉⎽2:/├└⎻$ ^C
⎽␊␤␊@␉␉⎽2:/├└⎻$ ␌┌␊▒⎼
S␊±└␊┼├▒├␋⎺┼ °▒┤┌├
⎽␊␤␊@␉␉⎽2:/├└⎻$ ␌┌␊▒⎼⎼␊⎽␊├
␉▒⎽␤: ␌┌␊▒⎼⎼␊⎽␊├: ␌⎺└└▒┼␍ ┼⎺├ °⎺┤┼␍
/␉␋┼/␉▒⎽␤: ⎼␊┌⎺␌▒├␋⎺┼ ␊⎼⎼⎺⎼: /␉␋┼/␉▒⎽␤: ⎽≤└␉⎺┌ ýFýýE[ý⎼]ELý␤ýý⎼XK6ýWýýJ⎽π%ýýýý£ý%ýJýý!HBý);ý7ýýIý#T1␊G ý9ýý0ýF)ý°(ID9A,ý
That's ssh for you, the silent admin killer. It was the right block transfer command. Executed on...
THE WRONG BOX!
Now I've got to figure out exactly what disks /dev/sdc and especially /dev/sdb were on my fileserver box. To complicate things, it has 6 (internal) disks and they are all the same size. Also, I refer to them by /dev/disk/by-id (so I'll have some mapping to do)
On the plus side, the garbled output makes it quite likely that sdb appears to have been the root device (the only non-mirrored disk) and furthermore, the rest of the disks in in (redundant) ZFS pools. Ergo: I should come out of this with no data loss.
12:29
@sehe Stop it, you're scaring me. I just got my own file server/gateway/dns/nameserver thing going and I am bound to destroy the raid doing something like this at some point
@Collin It's good to get scared before the critical hour strikes. I already calmed down: I should be facing reinstallation of the OS only. Have currently powered the box down and plan to fix it tonight. Enjoying easter eggs at the moment
12:53
ouch
hah just looked at the chat window.
Yeah ouch. I don't screw up often, these days, but when I do, I do a good job!
@sehe So I guess it overwrote a block of either pv, dd or one of the libraries they use that wasn't in the disk cache
it seems to be doing a symbol lookup for something it expects to find in glibc
@je4d Indeed. I royally fucked up the running OS :)
if you've got the shell open still, you should be able to read the mtab without invoking a separate binary
something like echo -n "$(</etc/mtab)"
that's builtins only
In fact, I was 4Gb into the transfer (of a projected 320Gb, which is currently at 50% in the correct run :))
12:59
a friend of mine in uni got a new HDD, plugged it in, and ran dd if=/dev/zero of=/dev/hdx to zero it, then went to get dinner
@je4d Only, the process substitution doesn't work like that (you'd need another cat) and launching any (non-statically linked program) would fail
came back to find he'd put in the wrong ouptut device

« first day (541 days earlier)      last day (4632 days later) »