« first day (629 days earlier)      last day (4337 days later) » 

9:00 AM
anyway, it looks better now
 
It hits you like that from time to time. You *could* do things like that, but you come to the realization that that's like saying you *could* stick an ice pick in your eye
 
hah, yet another person unable to read other than BBC language. demented persons everywhere
 
At least an ice pick in your eye won't waste your time
 
@CheersandhthAlf, could you reduce it to SSCE? I can't believe it's minimal code
 
@Abyx u know, touchy-feely Does Not Work in engineering
if you're unable to see the issue, then don't attempt to answer. it's that easy.
 
9:03 AM
@CheersandhthAlf it's not like I don't see the issue, I just don't want to read the code because it's too long.
int _ = 0 omg what a crap
 
le mawning
 
@DeadMG is it French?
 
@Abyx you don't have to submit such extra evidence of stupidity. you already convinced me
@abyx: are you a redditer?
 
@CheersandhthAlf no
 
Ell
9:09 AM
@DeadMG good... I don't know what time of day it is ;)
 
(and I've never been there)
 
because your intelligence is criminally inferior
 
Ell
why is it that if you get hungry enough you feel sick?
 
never had this problem
 
@Ell just eat something
 
9:13 AM
like your foot!
 
Ell
@Abyx I am doing :L but I mean if your body is hungry then throwing up is surely the last thing it would want to do?
meh maybe I have a problem :L
 
@Ell the mind and body are intertwined, very tightly integrated. but you should definitely consult a doctor. my father had a stomach problem over a long time, and he died from stomach cancer
 
@DeadMG yep, like in "Survivor Type" by Stephen King
 
Ell
@CheersandhthAlf I'm sorry to hear that :( but I have felt this all my life, I thought it was just something that everyone felt? Like, sweating when you get hot, just something the body does
 
sbi
@RadekSlupik I caught that!
 
9:19 AM
@ell "the body" also sweats when one gets nervous, say. it's not the body. it's you (me)!
 
sbi
@ManofOneWay Yeah, I did. Instead of reading it, though, I went to the cinema last night.
 
whole person
 
Murder.
I spent litterally 3 days debugging million-lines long logs that contained erratic values.
Just to notice it was the logging system that was bugged.
FUCK YOU COLLEAGUE
 
sbi
@Drise What?
 
@ScottW goed hoor. Met u?
 
9:22 AM
GOED HURR
 
Ell
@CheersandhthAlf I think the "mind" is a difficult subject, I would argue that the "whole" isn't "mind + body", but that your body is your body and your mind is a side effect of the body, giving the appearance of consciousness. would you agree?
 
Go eat bacon.
 
YES
 
Ell
I might have a bacon sarnie actually
 
@Ell well, it's not difficult to think of them as separate subsystems. that's why we have different words. but they're very tightly integrated. think indian fakirs.
 
Ell
9:25 AM
hmm déja vu
@CheersandhthAlf indian fakirs?
 
Bacon is lekker.
Bacon > sex.
Bacon = sex.
 
sbi
@Cicada A superior and I once tried to find an error in some helicopter navigation hardware. The frigging thing consisted of 15 little blocks, spread out all across the damn machine, some in really hilarious places. To swap one you had to lie on your back in the tail boom, working blindly with your hands above your head.
The thing failed on Friday night, and we kept trying to swap boxes, until on Sunday afternoon we found out that the tiny little box that contained the Something-Is-Wrong! lamp had gone bonkers.
 
Imagine writing Bash shell script using a screen reader.
 
@sbi just remove the helicopter stuff around the boxes
 
Ell
9:30 AM
@CheersandhthAlf hmm I don't buy these things
 
@sbi Uh. Betrayed by the diagnostic tool! That's horrible.
 
sbi
@CheersandhthAlf In fact, often that's what we had to do. I remember that, for swapping some of those boxes, we had to remove dozens of other thingummies that were in the way. Sometimes we wondered whether just removing the skin would be easier. It was mostly riveted to the skeleton, though.
@Cicada :)
I sympathize with you. Working on a massively parallel, distributed app, I have often in the last few years spent whole days going through GBs of logfiles. I found that filtering stuff to reduce it to mere MBs helps a lot. Also, notepad++ can apply up to 5 or 6 color-codes to arbitrary strings. That's a great tool for following threads (just code the thread IDs) or specific log messages.
However, we have now reached a point where the core is pretty stable and we rarely ever need to look at so much data.
Usually you filter out the log statements for your module and just look at those.
 
Yep, I work with notepad++ for log browsing
300MB of logs per thread per run, and there's about a thousand threads per run
I think I'm going to revamp the whole output though, because it's massively hard to work with
 
sbi
@Cicada Yeah, if you have such a massively parallel app, it's hard to put too much effort into creating better diagnostics. Since your main means of "debugging" is looking at log files, make them as easy to read as possible.
 
Put the logs in a db; easier to search through.
 
9:41 AM
Mmm. I received the badge (ew):
 
SQLite xD
 
However, I can't find it in my profile. How does this work?
 
Lol plural tags.
 
@RadekSlupik Disagree. Vehemently. Text is much easier to match. With context lines too
 
yesterday, by Flexo
@Cicada stick it in a DB in some standardish form
 
9:43 AM
How would you (easily and fast) grep for each two lines following a line with pattern /\w+\d\d\d\|BOGUS/?
 
sbi
@RadekSlupik I dunno. Often, at first you don't know what exactly you are looking for in a log. You start out following the flows of execution, until you get a feeling what you want to look for. How would I do this in a DB?
 
@sbi Precisely
 
I can't recreate a DB that is 450 GB large for every run of the program...
 
sbi
@sehe You export the thing into a text file. :)
 
@sehe you mean two consecutive lines? I'd do that with sed
 
9:43 AM
Text rules the world. In a big way
 
sbi
> If there was a god, that would not be atop of the food chain — sbi
5
 
@Flexo Friend, on a database? I'm all for text logs, but you guys suggest using a database
 
@sehe (\w+\d\d\d\|BOGUS)\n[^\n]*\n[^\n]*
 
@sbi Classic.
 
@Flexo By the way, I could do it with grep, sed, perl, vim (...) or any combination of it. In my case, I'd probably do it with vim
 
Ell
9:44 AM
@sbi I prefer the other way around - "Since we discovered the higgs boson exists, I suppose we should stop calling it the God particle?"
 
Use XML to store the log!!
 
@Abyx Missing the point. In a big way. I ask "how would you do that in a database"
 
Style it with CSS and feel the pain!
 
sbi
@Ell Since, TTBOOK, gods don't exist, who cares?
 
@RadekSlupik Yay! Much betterere now. A lot of noise and harder to manipulate
 
9:45 AM
@sehe ah I thought you were asking for something else. I think you could do that with a nested query, but it'd be pretty inefficient
 
@sehe well, then use a python script
 
omg python <3
 
@Flexo Is my point. Most, "informal" logs (read: not transaction journals) are really convenient in text only
@Abyx Bloddy hell. Just use text files.
 
you can pre-filter and pipe to a script though still or similar even in the db case
 
Use a db, plaintext and XML.
 
9:47 AM
@Flexo Yeah. But that means you have to know what you look for and not make a mistake, or you'll have lost hours of testing
@RadekSlupik That's more like it. If there is a use, incur the cost. Otherwise... don't :)
 
God obviously exists. Else, who would have written the bible? Take that, athiests!
4
 
sbi
@RadekSlupik Over the years, I have written lots of little programs that processed logfiles, because often doing so seemed easier than coming up with some insane command line voodoo. Some of them produced HTML, with all the relevant stuff linked. That was great to work with. Unfortunately, those scripts are hard to write, so they are worth the effort only very rarely. Also, browser tend to go down on their knees when you open GB-sized log files in them.
 
Must be true, it says so in the bible
 
lol XML logs. You cannot just use append mode on the file because you can have only one root element, which needs an end tag when non-empty.
 
you can use "xml-like" logs, without a root element
 
9:49 AM
logs are already 450GB raw
with XML you multiply by what, 3?
 
sbi
@Cicada I like how you misspelled "atheists" there. (Yes, I deliberately waited for 2mins to point that out.)
 
@Abyx Right. So you have the best of both wrongs.
 
@sbi Thanks. It takes training. (And was on purpose).
 
sbi
@Cicada <log> 450GB raw text </log>
 
Use XML and store it in a database!
 
9:50 AM
@sbi Most useful.
 
MongoDB allows you to search through the db using JavaScript.
 
sbi
@Cicada I have seen very few XML formats which were considerably more useful than that.
 
Ell
@sbi TTBOOK?
 
sbi
@Ell Start with "TTBOMK" and extrapolate from that.
 
@RadekSlupik Then, write out the database in RLE, BASE64, and store it in the cloud. Then use cloud computing services to analyse the frequency of octects in the resulting 'log data'
 
9:52 AM
also logs could be script-language logs, with lines like event_name('arg', 'arg')
 
@sehe but it isn't web scale. MongoDB is web scale.
<?xml version="1.1" ?>
<log>
  <entry>
    <date>22113333T12:20</date>
    <text>foobaarrrr &amp; entities!!</text>
    <level>warning</level>
  </entry>
</log>
The Oracle way of logging.
 
@RadekSlupik i never said it couldn't be mongodb. Of course you use nosql in the cloud. Duh. The whole cloud is webscale
 
@Cicada hm, for a moment earlier (some days ago) you had me convinced you were religious
 
@sehe but XML is web scale too.
Now I want to write a logging library in C++. :<
 
all this talk about God, I better explain existence
ok
 
9:58 AM
@CheersandhthAlf I am.
 
here's how it works: we think we exist, because we can remember a past. that in turn is related to information loss in the forward direction of time. which is a feature of the static mathematical structure of relations that is the universe.
 
MongoDB is a web scale database that doesn't use SQL or joins, so it's high performance.
Anyway, I have got to go.
 
Ell
@CheersandhthAlf I don't understand? we think we exist because we can remember a past?
 
i think that it must be impossible to understand without considering computer simulations of some small part of the universe. nice ideas to play around with then: run such a sim in reverse, chop it up, run it in random order, stop it (do the people within still exist?), and so on. then, i think, after considering this, one may see
 
:)
Hi guys. I'm a good boy :)
 
10:04 AM
@Ell the crucial thing here is to differentiate between two similar but incompatible meanings of the word "exist", namely, physical existence, and existence in the sense of an existence of a solution to a mathematical equation, or the existence of the number 2: the kind of existence that I think old Platon was talking about ("shadow" world, world of ideas, Platonic existence)
 
@CheersandhthAlf Platon? Plato perhaps?
 
@sbi That sounds like much more fun. Which movie did you see?
 
@Ell That merely subjectively suggests that we might have existed
 
good boys watch amazing spiderman
 
10:05 AM
@ManofOneWay Read twitter :P
 
{| style="float: right;" | |} Plato (; Greek: , Plátōn, "broad"; 424/423 BC – 348/347 BC) was a Classical Greek philosopher, mathematician, student of Socrates, writer of philosophical dialogues, and founder of the Academy in Athens, the first institution of higher learning in the Western world. Along with his mentor, Socrates, and his student, Aristotle, Plato helped to lay the foundations of Western philosophy and science. In the words of A. N. Whitehead: The safest general characterization of the European philosophical tradition is that it consists of a series of footnotes to Plato. I ...
^ Note the speling.
 
sbi
@ManofOneWay I already said so.
 
@sehe Do I have to? :(
 
Ell
@CheersandhthAlf I think this is beyond me :L "Existence in the sense of an existence of a solution to a mathematical equation"?
 
@sbi Do you drink beer at the cinema?
I don't think that's possible in Sweden
 
10:06 AM
@sehe Yeah Plato in english. Platon in french and more importantly greek.
 
sbi
@ManofOneWay You can buy it there.
 
@ScottW good boys don't consume alcohol :P
 
@Ell certainly. I give you the equation x = x + 2. it has no solution. the equation 2x = x - 1 has one solution: one solution exists. the equation 2-x*x = 0 has two solutions: two solutions exist.
 
Anyone has a Logitech Illuminated keyboard?
 
@ScottW we are good boys \m/
 
Ell
10:09 AM
@CheersandhthAlf but how can a person exist as a solution to a mathematical equation? A solution to what?
 
@CheersandhthAlf No known solutions exist :)
 
when we talk about existence of other universes, that's the sense of existence. for example, it does not make sense to talk about a solution to an equation existing in (our universe's) time. and it does not make sense to talk about other universes existing in (our universe's) time. neither does it make sense to talk about our universe existing in (our universe's) time. so at the universe level, the existence is the kind of existence that you have for a solution to an equation.
 
@Cicada Samsung keyboard & CPU here, rare it is.. only if you are working in samsung
:P
 
@Cicada well it depends on context and meaning of symbols of course. if "=" denotes congruence modulo 2, then there are infinitely many solutions. :-)
 
sbi
@Cicada Here! Me! And I lurve it! In fact, I have two of them. One for home, and one for work.
@jaffa How stupid an idea is that?
 
10:13 AM
@ManofOneWay Of course not
 
@sbi which idea?
 
@Cicada Πλάτων - good point (would depend on declension/inflection (?), perhaps)
 
sbi
@jaffa The one my reply referred to.
 
@sbi When did you buy it?
 
sbi
@Cicada Um. The first one about 5 years ago. The second one in, uh, 2009, I think.
Why?
 
10:14 AM
Because I'm considering buying one (they seem amazing for typing). But the recent models have a severe design flaw
 
the idea that samsung keyboards and CPU are rare? Yes they are indeed rare.. Dare get one :P (koreans disqualified)
 
You can't press simultaneously some keys (ie shift+w+space)
 
sbi
@Cicada How is that? Won't the "W" key depress once the others are?
 
Which is a common combo in fps games
 
@Cicada you can always bind different keys for diff combos
 
10:17 AM
@jaffa yeah, but that doesn't fix the keyboard
 
@sbi I don't know exactly, apparently the matrix does not support certain key combos. The models prior to 2009 don't suffer from that drawback (sell me one ;_;)
there's a lot of fuzz about it on the Logitech forums
Crap, this keyboard looked so perfect!
 
sbi
@Cicada Uh, I don't think I ever used that, so should you come to Berlin, feel free to buy me a new keyboard and take one of my old ones. They are German keyboard, though, of course.
 
Be there in 5.
 
@sehe @Cicada have to lose some to gain some. No pain, no gain :P
 
sbi
@Cicada What's that mean?
 
10:19 AM
@sbi Short hand for "i'll be there in five minutes"
 
sbi
@Cicada Oh. Well, fine with me.
 
Otherwise, anyone recommend a good, backlit keyboard? Mainly for typing but also gaming a bit.
 
I'm younger than everyone here, even @Cicada
:D
 
sbi
@Cicada I love it because it has just the right "click" for me. I do not like the old IBM keyboards that sound as if you had to move a beam with the letter on it. And I hate those keyboards Apple now puts on their laptops.
 
@jaffa I'm 51 so it's not difficult being younger
 
sbi
10:20 AM
@Cicada You're maybe 21, but not 51.
 
(shhhhhh!)
 
@sbi second you!
 
sbi
@Cicada Would it kill you to have a back-lit one for typing at night, and one for gaming?
 
@Cicada me still in teens, 4 months more
 
sbi
Whoa! Gross.
 
10:23 AM
@CheersandhthAlf Ya, same people who think tom cruise is still 21
No offence
 
sbi
1 message moved to bin
 
@sbi That seems a bit overkill...
 
sbi
@jaffa So with you almost being 20, please tell me what your problem is with the idea of having a beer once in a while?
 
spare kids :D
 
h4 h4, sb1 c4nt h4nd13 d1g1ts!
 
sbi
10:25 AM
Sigh. <plonk/> I'll let you out in a few hours. I hope you're back to normal then.
 
I was just kidding when I said that, was pulling @sehe 's leg
@sbi
 
sbi
@Cicada Shrug. I dunno. Why?
 
@sbi that's better @sbi. now you're only punishing yourself. good.
 
Well it's not a bad idea. It's just a bit awkward. Maybe. I'm considering it.
 
@Cicada "( ! ( 4 !) 4"
 
Ell
10:26 AM
@jaffa are you sure you are younger than everybody here?
 
@sbi "$ !3 !"
 
sbi
@jaffa What's that? Are you begging me to get plonked, too?
 
@sbi Out of curiosity, are you using the wired or wireless version of the keyboard? Apparently the wireless version does not suffer from that problem so I might as well buy it - it's a bit more expensive.
 
@sbi I'm just saying, they 're cool :D
@Ell um.. I guess, atleast members who were present then
 
Ell
@jaffa not younger than me :L
 
sbi
10:29 AM
@Cicada I'm using the wired version. I used to have a wireless keyboard & mouse, but I got sick of them failing at arbitrary times due to low battery, so I switched back to wired.
 
oh you young folks just wait till you get old! then you get really young!
 
sbi
@jaffa No, your weren't. You seemed to be posting Perl code.
 
Ell
I think I might collapse soon :L I need to sleep but also I need to android :P
 
@Ell yay..
@CheersandhthAlf saw everything from vaccum tubes to silicon pipes :D
 
@jaffa fail
 
10:31 AM
i used to play around with vacuum tubes when i was a child. a friend of my father was a radio enthusiast.
 
@sehe nice try though
 
could be. completely went over my head then
 
@sehe you got offended?
I'm actually praising, in a funny way :)
 
@jaffa ? it went over my head. I don't even know what you are referring to. It's safe to assume it didn't offend me, or anyone, likely
 
sbi
10:36 AM
Works on my machine. :)
 
Lucky you :(
 
@sehe oh.. We were talking about age, then he was mocking young ones like us.. so that was just a reply referring his age :D
 
@sbi Warning: for a moment I thought this crashed my browser. Then I realized: C-S-W is the shortcut for 'close all tabs in current window' on my browser :_
@jaffa His age? Cicada's?
 
@sehe nah, CheersandhthAlf 's
 
sbi
10:39 AM
@sehe Yeah. I did have a few funny effects, too, like closing the window, or opening dozens of instances of the print dialog. :)
 
@jaffa Ah
 
Ell
ill see you guys later
 
sbi
> If your brains were dynamite there wouldn't be enough to blow your hat off. — Kurt Vonnegut.
 
@Ell "Ell see you guys later", FTFY
 
10:40 AM
@Ell cya..
 
@jaffa slowpoke
 
@sehe y so?
 
@sehe Oh, I wasn't here then. :)
 
And your screen is 120 pixels high
 
10:45 AM
@sehe spare me..
I've problem designing a class
 
@jaffa start with walls. Add chairs/benches. Find teacher
 
This class
class threesome(person::woman woman1 , person::man man1, person::????? )
 
Oh and use some chat rooms for distraction
 
sbi
@sehe A black/whiteboard?
 
@sehe niceone
 
10:46 AM
@sbi Blackboard, obviously (we don't want teachers with baby-skin fingers :))
Jun 19 at 22:13, by sbi
@RadekSlupik Have you ever taught using a blackboard? I did. It took a week to get the skin on my hands to heal. And then it was lesson time again. Of course, whiteboards have the problem that, after a lesson, your fingers look like you're just your third writing lesson (letter "C").
 
@sehe @sbi no solution for this ?
 
class threesome(person::woman woman1 , person::man man1, person::????? )
 
@jaffa what is the question? I see marks, but questions marks a question do not make
 
@jaffa what's with the heteronormativity?
 
10:50 AM
I'm defining a class of normal threesome, first member is man, second member is woman, unable to figure out how to represent third :D
 
@jaffa maybe the third member is just the man's member
 
sbi
@jaffa I suggest that you now stop spamming us with those dribbles of information, and decide whether you want to ask a real question or not. In the former case, please go and create an actual question.
 
@sbi general discussion, different ideas, more fun :)
 
sbi
@jaffa You haven't fed the discussion anything substantial, though, which is why it's just dribbling along. I still have no idea at all what your problem is, where it comes from, and what a solution you're after. You're just wasting my attention.
 
@sbi it's probably just social. then attention is not wasted. it's (part of) what it's about.
 
10:54 AM
@jaffa person::slave, person::child or person::dominatrix
 
@RMartinhoFernandes lol, your recent blog post exhibits the classic std::aligned_storage mistake.
 
@sehe lol, pedophile! sadism!
 
@jaffa Count DeSade just did unto others what he wanted them to do unto himself.
 
@CheersandhthAlf is that english?
 
10:57 AM
@CheersandhthAlf and what does that mean in english? I mean, plain english
 
> The common English phrasing is "Do unto others as you would have them do unto you"
^ Wikipedia
The Golden Rule or ethic of reciprocity is a maxim, ethical code, or morality Walter Terence Stace argued that the Golden Rule is much more than simply an ethical code. Instead, he posits, it "express[es] the essence of a universal morality." The rationale for this crucial distinction occupies much of his book The Concept of Morals (1937): – (above quote found p. 136, ch. 6) that essentially states either of the following: * (Positive form): One should treat others as one would like others to treat oneself. * (Negative/prohibitive form, also called the Silver Rule): One should not tr...
 
This is... wow... I mean... wall of text...
1
A: Reverse an array without using iteration

aps2012The answer to your question is that, yes, it is possible to reverse an array without iteration. The question is ambiguous, however, the spirit of the question is obvious: a recursive algorithm can be used; and there is no ambiguity at all as to the meaning of recursive in this sense. If, in an i...

 
Of course, no-one with at least half a mind would use that formulation!
 
I have to use a static variable in a recursive function, how do I do that? without using global variable?
 
no
you pass it as state
 
10:59 AM
or make it function local
or don't do it at all.
 
@Cicada @rubenvb that will become overhead because I've to call the same function many times
 
@jaffa don't optimize
 
@jaffa wut?
you need a static variable but you don't want it because it will bring in overhead?
Rule number one with a static variable: you don't need a static variable.
 
why not global variable? I don't need portability
 
it's the most common beginner's mistake in C++, adjusting code to optimize away perceived inefficiencies. result: spaghetti code, and the real inefficiencies are there still, perhaps amplified!
 
11:02 AM
@jaffa rewrite your function to be nonrecursive
 
@jaffa what does a global have to do with portability?
 
@rubenvb that is one of main reasons why global variables are not recommended
 
@jaffa wut? Explain yourself. Not recommended by whom?
 
@rubenvb isn't that true? I know other reasons like mentioned in this c2.com/cgi/wiki?GlobalVariablesAreBad
but isn't the portability main issue? correct me if I'm wrong
 
@jaffa what do you mean by "portability"? Portability as in cross-platformness is not related to globals at all.
 
11:08 AM
@rubenvb I meant, reusing the code
 
@jaffa I'm still not seeing the problem?
 
so is it ok to use global variables?
 
@jaffa Always. Especially in php
 
@sehe man, I love ur pic.. so cute :D
in C++?
 
@jaffa what's your question? It's OK, but it's a bad idea.
 
11:12 AM
@sbi You taught me this 2 days ago. stackoverflow.com/questions/11360984/…
 
can I paste my code here ?
 
:P
 
I'm going to get my degree today
feeling all awesome and shit.
 
@rubenvb big day man :D
I have one more year
what are your future plans?
 
11:15 AM
@ManofOneWay a static member can be defined in .h file it it is done properly. the OP did not do it properly. what was it that @sbi taught you (i can't see anything by him there)?
 
OP is a faggot.
 
@StackedCrooked which animal?
 
@jaffa Phd.
 
@CheersandhthAlf How do you define it in the .h file properly?
 
@ManofOneWay You use a class template as a helper. The standard supports that as a special exception to the general rules. Unfortunately, because the exception should have been the general rule, IMHO. ;-)
^ Which is why all the rationalizations of the general rule, offered in the answers to this and related SO questions, are just humbug: C++ already supports what's claimed is impossible.
template< class Dummy >
struct Const
{
    static double const pi;
};

template< class Dummy >
double const Const<Dummy>::pi = 4;

class Whatever
    : public Const<void>
{
public:
    // Whatever
};
 
11:24 AM
@CheersandhthAlf whatever
 
@CheersandhthAlf Isn't it possible to omit the dummy and use empty template argument list (template<>)?
 
you could give the Dummy parameter a default, is that what you're thinking of?
 
I mean like this. But apparently this doesn't work.
 
oh, that's syntax for template specialization
no that wouldn't work
I miss a language feature to deal with names, so that e.g. the above could be used to provide a generic solution to define named non-integral constants.
 
12:11 PM
0
Q: opencv cv::mat allocation

jamkHello I have a basic question about opencv. If I try to allocate memory with the cv::Mat class I could do the following: cv::Mat sumimg(rows,cols,CV_32F,0); float* sumimgrowptr = sumimg.ptr<float>(0); but then I get a bad pointer (Null) back. In the internet some person use this: cv::Ma...

Am I thinking correct here? I believe that the wrong constructor is called when he passes 0.
 
if that 0 means 0 size, then you don't have any data to get a pointer to
 
I believe 0 invokes the constructor with void *data.
 
well, it's an RTFM question anyway ;-) tell the OP that
opencv docs are found by starting at willows garage
 
He doesn't allocate any memory for the values within the matrix. I believe he wants to invoke the constructor which takes a Scalar &s
 
12:37 PM
@CheersandhthAlf What are you up to?
 
@ManofOneWay ?
 
What are you doing?
 
right now i was inquiring about available flats/apartments around here
 
sbi
Anyone here knows any Powershell?
 
unfortunately, none available
 
12:39 PM
@CheersandhthAlf Oslo area?
 
auto i = 42, s = "hello";
error: inconsistent deduction for 'auto': 'int' and then 'const char*'
:(
 
@ManofOneWay no, up north, in Bø in Vesterålen
 
@sbi define any
 
@FredOverflow So if the compiler knows that it's an int and a const char*, and the purpose of auto is for the user to not have to write the type, then why is that an error?
 
@FredOverflow huh?
 
12:42 PM
Because it infers the type before parsing the next variable
Right? Right?
 
@Cicada So it has already converted the first auto to int you mean?
 
sbi
@bamboon I have a System.IO.DirectoryInfo and I want to check whether it's a folder.
 
@ManofOneWay I assume.
@sbi IsDirectory ?
 
tell sbi that he can check for existence of nul in the alleged folder
 
12:44 PM
Wait.
Directory != Folder ?
 
sbi
@Cicada get-member doesn't show that one Lemme check.
 
@sbi I must be mixing with java
 
sbi
@CheersandhthAlf I had you unplonked for a while. :)
 
What's the difference between directory and folder then?
 
12:46 PM
@sbi oh sorry, that's too much any for me
 
@Cicada folder is a term that's also used for things like virtual shell namespace folders (like the windows control panel, or network places, or user's "documents" folder, or desktop)
 
In French there's only one word for both...
 
In Windows Shell programming, the Windows Shell namespace is an organized tree-structured hierarchical representation that Windows Explorer facilitates to graphically present file system contents and other objects to the end user. Conceptually, the Shell namespace may be regarded as a larger and more inclusive version of the file system. The Shell namespace is a hierarchical tree that consists of the wide variety of objects that make up the system. Specifically, the Shell namespace consists of two basic types of objects, namely files and folders. Folder objects, which are containers ...
 
sbi
@Cicada No, the confusion is on my side. How did I come to have a DirectoryInfo? I thought I had an item (which could be a file, too) from a folder.
 
@FredOverflow How is the Solitaire going?
 
12:48 PM
@sbi Oh. I see. You probably should have a FileInfo instead?
 
sbi
@Cicada Well, I guess it's a DirectoryInfo because that item just happens to be a directory. I suppose if it was a file, I'd have a FileInfo? Is PS polymorphic enough to do that?
 
Possibly.
Both of these inherit from FileSystemInfo anyway
 
sbi
Well, I must only work on folders. How can I check for some path (returned by get-childitem) being a folder?
 
I don't know PS much but can you do something like variable is DirectoryInfo?
I'ma try.
 
sbi
Nope, it doesn't know what is might be.
 
12:56 PM
What exactly is your intent?
I found this: get-childitem . | where {$_.PsIsContainer} to get subdirectories
I guess it's not exactly what you need
 
sbi
Jun 29 at 9:51, by sbi
@RMartinhoFernandes Well, I do have that spec here, for a script that recurses over an SVN wc, branches all externals to a specific folder in the repo, moves the references to that, and then branches the wc, too. If you can produce this off-hand, I'd gladly take it. :)
@Cicada Oh, PsIsContainer! Lemme look into that!
Yup, that works! Thanks, @Cicada!
 

« first day (629 days earlier)      last day (4337 days later) »