« first day (1961 days earlier)      last day (3039 days later) » 

12:19 AM
@JimmyHoffa solo mode seems to be playable at least, I might be busy this weekend but if there's time we can find out whether my ping is a deal breaker or not
 
1:02 AM
This licensing thing makes me miss my intellectual property course from college.
We had so many debates there about software IP law.
 
I liked the prof a great deal, but I hated that class sooo much.
 
We totally threw out the syllabus on like class 2 or 3.
 
I disagreed with half the class. Of course, I had a newborn at home so that didn't help. And the prof required a 15 page paper.
 
We...talked.
It was a discussion class.
 
Mostly I learned that I should let other people debate about stuff and then do whatever they tell me.
 
1:09 AM
I want to find Stallman and debate him.
I can take him.
I think he lives in Cambridge, still. Does he still have an office at MIT? Maybe he sleeps there, still.
 
Hahaha.
Do you know GIMP?
 
The photo editor? Yeah.
 
I lost my sidebar thingy. I don't know what it is called so I can't find it.
 
I don't have it installed...
 
The one with all the tools. I sound like an idiot.
 
1:12 AM
I think it's palete.
Pallate.
 
I hate myself today.
 
Palate.
 
Palette.
 
That.
 
OK thanks.
So IP really gets you fired up?
 
1:13 AM
I'm really into it
But what I'm into can change. It's usually something related to software development and deeply philosophical. Like what the meaning of software design is.
 
Interesting.
What is it that makes you like to think about it?
I mean, what are the sorts of things that you like to reflect on in that regard?
If you get what I'm asking.
 
In software design? Or in general?
 
Well, you mentioned software design, but if there's something else in particular...
 
I've come over to the side that says that writing code is design. In fact, it is the most true design. Anything else (like pictures or models or prose) is just a way to look at the design from a particular perspective or viewpoint
 
Hmm. I hadn't thought about it like that before.
 
1:21 AM
There's actually quite a bit of reading about it on C2 wiki.
 
Like the building is the true form of architecture.
 
user55340
C2 us the TVTropes of software development.
 
user55340
Follow at your own risk: c2.com/cgi/wiki?IntellectualProperty
 
Yes, it is.
 
user55340
I still don't trust this CC-BY-SA 3.0 -> CC-BY-SA 4.0 -> GPL route that some people claim exists.
 
user55340
1:29 AM
@unor I would love to see someone write a bit of code for an algorithm that is patented and place it under CC-BY-SA and watch it slip into a GPLv3 project that has the patent waiver and see what chaos ensues. Documenting a patented algorithm and explaining it in a CC document doesn't constitute a violation of the patent. And material incorporated with fair use for documentation and explanation in CC material that is under a GPL incompatible license doesn't mean that that can slide into the GPL software via this process either. I wouldn't trust that route at all. — MichaelT 1 min ago
 
user55340
There are far too many ways for that to end up badly for the GPL code.
 
user55340
Side bit - for the recipes, the GDFL I'm ok with... especially since recipes get in their own special asterisk in copyright law.
 
If you have an EL&U account and don't feel conflicted about doing me a favor, please upvote this meta post to help me get a community ad on the site.
 
user55340
I am thinking of trying to do an unofficial whiteboard blog (using github pages) as a project... though I've got think more about that.
 
@MichaelT Only if the license of the post is CC-BY or CC-BY-SA.
 
user55340
1:32 AM
@ThomasOwens I'm wondering if there's anything even tighter than that that would be reasonable.
 
user55340
as in "even more blog author friendly"
 
What do you want to achieve?
Creative Commons has license options for just about everything that isn't all rights reserved.
 
user55340
As I said, gotta think about it more about what I want, want I want authors to be able to do and what I want editors to be able to do (as in 'people not writing original content but might submit an edit')
 
user55340
FWIW, I don't see anything suggesting a CC license on blog.stackoverflow.com: blog.stackoverflow.com
 
user55340
I believe all rights reserved with a CLA that states that authors maintain excessive rights to material though have licensed the blog to be able to reproduce it. They may submit a request to remove it form the blog at any time, and it will not be published anymore though recognize that it has been put in the repository history for the blog and unless there are Special Circumstances, the history will not be rewritten.
 
user55340
1:40 AM
Furthermore, edits and corrections by non-authors to the material have the copyright assignment (? or maybe irrevocable perpetual license for the edit) for the work given to the author of the post.
 
user55340
As in "I don't want someone submitting a correction to a post of mine on the Unofficial Whiteboard Blog (UWB?) and then when I update my original blog with the correction too... and having the person fussing about that being not licensed for shagie.net"
 
user55340
Btw, the thing on copyright of recipes: copyright.gov/fls/fl122.html
 
2:01 AM
Can anyone suggest tools for integrating code and end user documentation? We're certainly aware of things like doxygen and javadoc, but we're thinking more of things like the man page for a command line program. It's an irritant having to manually synchronize the argument parsing code, usage statement, and man page.
 
@Ixrec cool deal. I figured it would; when settings are tuned down the thing really can perform.
 
what gameis this? My wife is gone all weekend, maybe it'd be fun :-)
 
2:29 AM
@enderland FPS; Killing Floor 2
 
2:42 AM
OK, wife shows me picture of cats taking selfies, skeptically I said, "yeah..." and wife says, "oh you think it's the owners?"
@CharlesE.Grant pydoc
 
user55340
2:56 AM
@CharlesE.Grant Man pages are typically a nroff format...
 
user55340
roff was the first Unix text-formatting computer program, the most important application run on the first machine specifically purchased to run UNIX, and a predecessor of the nroff and troff document processing systems. It was a Unix version of the runoff text-formatting program from Multics, which was a descendant of RUNOFF for CTSS (the first computerized text-formatting application). == History == The first UNIX version was a transliteration of the BCPL version of runoff into PDP-7 assembly, for the prototype UNIX on the PDP-7, circa 1970. When the first PDP-11 was acquired for UNIX in late...
 
user55340
At which point, digging I would believe that: ronn rtomayko.github.io/ronn/ronn.1.html would be something to consider.
 
user55340
SYNOPSIS
ronn [format...] file...
ronn -m|--man file...
ronn -S|--server file...
ronn --pipe file
ronn < file

DESCRIPTION
Ronn converts textfiles to standard roff-formatted UNIX manpages or HTML. ronn-format(7) is based on markdown(7) but includes additional rules and syntax geared toward authoring manuals.

In its default mode, ronn converts one or more input files to HTML or roff output files. The --roff, --html, and --fragment options dictate which output files are generated. Multiple format arguments may be specified to generate multiple output files. Output files are named after and w
 
I knew that.
Pydoc is just better though. Every program should be a Python program. You can extend it with C or any other compiled language too. :P
 
user55340
 
3:02 AM
Perl? why would you want to extend Python with Perl?
Man, the craziness in here.
 
user55340
use Acme::Python;

print "Hello world\n";
 
user55340
And that that becomes:
 
user55340
        use Acme::Python;
        Hisssssssssssssssss
        hiss Hiss hiss Hiss hisssssssss Hissss hisss
        Hiss hisss Hissss hiss Hiss hisss Hiss hiss
        Hisss hisss Hissss hiss Hisss hissss Hiss
        hiss Hissss hisssssss Hiss hissss Hiss hissss
        Hiss hissssss Hiss hisss Hiss hiss Hiss hiss
        Hiss hisss Hisss hissss Hisss hiss Hisss
        hissss Hisss hiss Hisss hiss Hisssss hiss
        Hisss hisssssss Hiss hisss Hissss hiss Hiss
        hiss Hiss hiss Hisssss hiss Hisss hisss Hiss
 
user55340
Perfect python.
 
user55340
3:04 AM
Though slightly more seriously:
 
user55340
 use Acme::Pythonic; # this semicolon yet needed

 sub delete_edges:
     my $G = shift
     while my ($u, $v) = splice(@_, 0, 2):
         if defined $v:
             $G->delete_edge($u, $v)
         else:
             my @e = $G->edges($u)
             while ($u, $v) = splice(@e, 0, 2):
                 $G->delete_edge($u, $v)
 
4:35 AM
@AaronHall, Pydoc is in the same ballpark as JavaDoc and Doxygen. It's great for documenting API, but what we need is a little different.
@Mi
@MichaelT, Wow! ROFF! That's a blast from my past. My first job was writing TROFF macros for typesetting documentation! However, when I said "man" page, I meant notional man pages. Currently we just use HTML styled to look like a traditional man page.
Doubtless I was much too vague about what we need. We're writing command line applications in C++. Each command has a zillion supported options. We currently create a man page documenting the options, and also providing some expository text and simple examples. In addition each command has a usage statement summarizing the options.
 
Sounds like you need to document API?
 
@AaronHall, no, that's just it, we don't want to document the API, we want to document the command line usage. Doxygen is great for documenting API, picking up method signatures and such, but want to pick up command line options.
In fact we've written our own utility that can generate the docs from strings embedded in the code, just like pydoc, but picking up the command line options rather than the method signatures. However it's incredibly clunky to have the long expository sections in these embedded strings.
I was hoping that there might be some standard tool for this that I somehow missed hearing about it. Actually this conversation has started me thinking: maybe was should write the docs in XML/XHTML and then use XSLT to generate the code to implement the command line argument parsing and usage statement.
Except that I hate XML, and I REALLY hate XSLT.
 
 
4 hours later…
8:21 AM
This site is purely for programming related concerns and answers to this can be purely opinionated and biased, I think programmers.stackexchange.com would be correct place to ask this ask question. Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development.Nimesh 38 secs ago
 
8:49 AM
@Nimesh While on-topic for Programmers.SE, this would be very quickly closed as "too broad" or "unclear" over there, not to mention heavily downvoted as it appears to be a copy-pasted homework/exam question without any effort or context. — Ixrec 46 secs ago
 
 
1 hour later…
10:11 AM
Not on-topic here. Check on rules for programmers.stackexchange.comBill Woodger 17 secs ago
 
10:43 AM
I think it's off-topic for StackOverflow (it seems opinion-based), but think it may be on-topic here.
 
it's definitely on-topic here, arguably it may even on-topic on SO, but it is likely to be too broad/opinion based on any SE site
> Which of these approaches is more appropriate, considering expectations, readability, and usability for both internal and external developers (including as a class for an API)?
case in point
the answers on SO are already forming the typical opinion poll pattern where every answer says something totally different and none of them get highly upvoted
 
Hmm - okay. I thought about raising a custom flag there to have it migrated here but perhaps I should leave it. Thanks for looking.
 
yeah, it's definitely not good enough to justify migration efforts
though if it gets edited in a way that significantly narrows the scope we could revisit it
 
Fair enough. Thanks again.
 
 
2 hours later…
12:49 PM
@Ixrec it's daytime there, no?
 
it is 12:49
 
that makes sense. Stupid sleep. Passed out exhausted at 830 last night and woke up at 230 wide awake. I'm so going to crash today, but weekend. Woot.
@Ixrec Want to try a game of Killing Floor 2?
 
sure, one minute
not that I'll be remotely competent
 
1:04 PM
I have no idea how to find people in Steam
logging in via browser seemed to work though
waiting for the actual game to start up now
I think I'm waiting for you to accept the friend request now
 
 
3 hours later…
user55340
4:51 PM
@ThomasOwens He is one of those names I've stumbled across when digging into the depths of XML.
 
user55340
 
user55340
@CharlesE.Grant which goes to this question - you should ask about it. The expert on XSLT is out there.
 
5:15 PM
@ThomasOwens so what I'm hearing is we have two expert Kay's around here
 
@JimmyHoffa Who's the other one?
 
6:38 PM
@ThomasOwens could you please delete tag from this historically locked question? That would help completing burnination of this tag
 
@gnat Done.
 
 
3 hours later…
9:41 PM
> If you must read the rest of this document to understand the behavior of your program, you are being too clever.
>
> Don't be clever.
 
10:07 PM
haha
 
10:59 PM
Howdy, looking for a suggestion here. I posted a question on SO and of now it has exactly 5 views (2 are mine). I think I should have posted on programmer's or apple's stack instead... Or maybe the choice of tags was wrong. So, I thought maybe someone could help me on Whiteboard with some advice/answer/discussion :)
0
Q: Global hotkey monitoring on OS X

user3496846So, basically, I am trying to do a blocking wait on a global hotkey Command+B: while (true) if (pollKeyboardForCommandB()) break; Now, how do I implement such functionality? I plowed through various methods of listening to a global hotkey (e.g Cocoa Event Handling Guide: Monitorin...

 
"how do I implement ..." pretty much rules out it being on-topic over here
I have no idea what makes SO questions get more or less views though, one of the reasons I hang out here and not there is that we can actually afford to give at least a modicum of feedback on every question we receive (even if it's not a positive modicum)
what I can tell you is that the "normal" way that keyboard input is done is applications never poll for it
 
I agree I should get rid of the implementation part. I was talking "general implementation ideas", not code. I will fix that
 
my instinct tells me that "general implementation ideas" is likely to be less of an answerable question and more of a discussion prompt/tutorial request
(yes, it's not easy to write a good question)
anyway, for your question #2, I believe the general answer is "you don't, and you shouldn't, the whole point of doing this by events is so you don't have to"
 
Oh, well... that kinda make sense. But what about the program flow? In what thread is the handler called?
 
and for #1 it's more like "in order for a computer to run multiple programs, each program has to periodically sleep to free up CPU time for other programs, which is why everyone spending all their time polling for input instead of registering event handlers would be extremely counterproductive"
the threading part I don't know as that would be somewhat specific to Macs, and that might actually be a good SO question
I remember hearing somewhere that Mac OS requires all event handling to be done (at least initially) on the main thread, though I'm not sure about that and I've never written any Cocoa code
 
11:11 PM
Polling is what I did on windows and linux though. I sleep for 15 ms and check. Turned out to load ~0 CPU.
It sorta is counterintuitive about the main thread for me. What if I am doing some work, is the handler just called right by interrupting the flow?
I don't get the general idea of what I do about the events.
 
what I'm used to on Windows is polling an event queue the OS created for me, what I meant was the apps won't be polling the actual hardware keyboard directly
but yeah I have no idea how Mac is different from that at this level, I only ever worked with it via libraries that abstracted away these sorts of Win/Mac/Linux differences
though I am convinced you have a potentially good SO question in there somewhere
 
I see, I will try to scrape something out of it :D It would not be a trouble doing this thing on mac if not for the policy that by default any program sees only its own local events. The events when there is actual focus on the app.
 
to be fair that is the correct default policy for...well almost everything I can think of
I'm struggling to come up with a valid use case of a "global keybinding" other than for functionality in the OS itself
 
if your app is full screen it might be useful (and for some reason you want to override global keybindings?)
 
Yeah, probably, but it is still doable with Hotkey Carbon API. But I lack understanding. Anyway, it is not even the events that I do not receive from the os - that is fine, I cannot get access to the currently keys pressed by simple polling. Windows and linux allow that.
 
11:23 PM
wouldn't you have focus anyway if you're fullscreen?
 
Yeah, my app is fullscreen :)
 
@Ixrec you can still do command tab, stuff like that
 
I just want to open it on a hotkey
 
oh
use autohotkey?
 
like, have the app start up on some key sequence for all of your users?
 
11:24 PM
Good one, but I don't want to distribute 3rd party software with my baby :)
 
I kind of feel like this is an XY problem - I'm less than convinced your solution is the right solution to your (unknown) problem...
 
same
 
Ixrec, yes
Wait, not start up, just continue execution
It is in the tray
I an running an empty while loop. waiting for a hotkey to open it
 
is clicking on it in the system tray not good enough?
 
unfortunately not
 
11:28 PM
I feel like there's a story here
 
you can configure OS:X to assign shortcuts to applications
 
Programmatically
:)
 
so script that as part of your application installation?
I feel like I'm playing 20 questions
why do you want to do this?
what is causing you to need this?
 
3 mins ago, by Ixrec
I feel like there's a story here
 
Enderland, The user might want to change hotkey from inside my program. I want to make it comfortable (+ want to provide the same functionality across platforms (did it on windows already)).
I am writing a notetaker and it is supposed to be easily accessible. There is more to it than just the opening part though. Say, taking a screenshot. Another hotkey. Would not wanna mess with tray.
I hope I am not confusing you even further
 
user55340
11:38 PM
New incandescent bulb: sciencealert.com/…
 

« first day (1961 days earlier)      last day (3039 days later) »