Help Bites


  • Java Dev

    @remi said in Help Bites:

    @PleegWat said in Help Bites:

    @remi I had that happen at some point. I think I was asking for something to the tune of (size_t)(signed int)(3*1024*1024*1024) bytes.

    I think that goes nicely under the definition of "there is something very wrong going on in your program". šŸ˜‰

    Yup. To the shape of void * mem_malloc( int size ), which the area lead at the time wouldn't let me fix.


  • BINNED

    @Tsaukpaetra said in Help Bites:

    @topspin said in Help Bites:

    You need some coffee. I've not been doing that.

    Have you ever heard of an example? Bruce Almighty, when did I claim you were?

    This is the help thread, donā€™t make me go all Gąska on you.
    When did you claim that? Right in the sentence above my reply:

    It seems to me that you're troubleshooting an issue that's not an issue.

    To repeat: I donā€˜t want to limit virtual memory, because as youā€™ve noted that can go badly wrong. I want to limit actually used memory. Unfortunately, only the -v switch, which does the former, actually works. As @aitap has already explained, the -m switch, which should do what I want, doesnā€™t work. So I can either use cgroups as per the suggestion or use -v as a lousy alternative.

    My question has been answered. If you want to provide a different suggestion, feel free to do so. But donā€™t tell me ā€œthe thing you want to do is stupidā€ when me not wanting to do that in the first place is the whole point of my question.


  • Notification Spam Recipient

    @topspin said in Help Bites:

    To repeat: I donā€˜t want to limit virtual memory,

    Oh. Then why mention it at all in the original post?

    @topspin said in Help Bites:

    I have an application that, upon start, reports around 20MB of RES (resident memory) in top but around 500MB of VIRT (virtual memory). The overall memory usage increases only by a few MB, so RES seems to correctly reflect that. Also, the Windows version only uses about that amount in Task Manager, not 500MB.
    ...
    Using ulimit -m 300000, however, doesn't seem to do anything at all. If I load a huge file then top reports a usage of 1.5GB VIRT and 1GB RES,

    The virtual memory usage was listed twice (and being compared across operating systems), so why would I not assume you wanted to limit only RES memory? You're shooting yourself in the foot.

    It would be like, for example, I ask a question: "Hey, whenever I'm connecting to X Server, I'm getting a E_CONNREFUSED, but when I ping X, it works? I When I try to connect with other machines, pinging works too!" and then getting mad when someone comes along and says "Well, pinging isn't really a tool to check if the port is open, maybe stop using that as the diagnostic measure?"

    Don't provide irrelevant information, is all.

    @topspin said in Help Bites:

    My question has been answered. If you want to provide a different suggestion, feel free to do so. But donā€™t tell me ā€œthe thing you want to do is stupidā€ when me not wanting to do that in the first place is the whole point of my question.

    I'm going to go partially Blakeyrat here and say: Quote me where I said ā€œthe thing you want to do is stupidā€. The whole point of your question obviously went over my head, which should have been extremely apparent when I started talking about the incidentally irrelevant parts that you included unnecessarily.

    But then, as you say, perhaps I need more coffee.



  • @Tsaukpaetra said in Help Bites:

    The virtual memory usage was listed twice (and being compared across operating systems), so why would I not assume you wanted to limit only RES memory? You're shooting yourself in the foot.

    He does want to limit only RES memory. The flag that should limit RES memory doesn't do anything.

    He could limit virtual memory, because that flag does work. But he doesn't want to, because virtual memory can exceed resident memory by a fair and unpredictable amount, and doesn't accurately represent how much memory the app is actually using.

    He said this pretty clearly in his original post.


  • Notification Spam Recipient

    @brie said in Help Bites:

    He said this pretty clearly in his original post.

    Well whatever. Fuck you give me coffee I guess.



  • Asking for a friend.

    The friend is going to arrive in Berlin (Tegel airport) around 15:00 and wants to get on a bus to Jena. Most results we are able to find are quite disappointing: FlixBus is either too early (04:00) or too late (arriving at 22:00), and there's also train for about as much as plane tickets cost us.

    Are there any cheaper / more convenient options of getting from Tegel airport to Jena on 2019-04-08 ~16:00? How does one look up such things?


  • BINNED

    @aitap said in Help Bites:

    Asking for a friend.

    The friend is going to arrive in Berlin (Tegel airport) around 15:00 and wants to get on a bus to Jena. Most results we are able to find are quite disappointing: FlixBus is either too early (04:00) or too late (arriving at 22:00), and there's also train for about as much as plane tickets cost us.

    Are there any cheaper / more convenient options of getting from Tegel airport to Jena on 2019-04-08 ~16:00? How does one look up such things?

    You could check the DB website www.db.de if you haven't already done so. Just checked for tomorrow a train / bus combination goes for 32ā‚¬ (going a bit too early from 15:05 to 18:05 though), which doesn't sound too bad.
    If the flixbus thing doesn't work for you, you can try ride sharing apps like blablacar instead. I don't know how well that works on short notice, though.


  • Considered Harmful

    Anyone know an automated icon stitching tool? I want to stitch all of EmojiOne into images 16x16 icons, but googling for 'stitch icon -lilo' brings up nothing useful.


  • šŸš½ Regular

    I have zero experience doing that sort of thing, but I figured ImageMagick would be able to do something like that:


  • šŸš½ Regular

    More to the point, are you looking for something like this?

    Ā  https://github.com/Deveo/emojione-png-sprites/blob/gen-1/dist/sprite-16.png


  • Considered Harmful

    @Zecc Thanks! That would have been super useful a few hours ago. I said 'fuck it' and did it manually in gimp instead in the meantime though. Now Minecraft has emoji.



  • @pie_flavor said in Help Bites:

    Now Minecraft has emoji.

    What's that emoji? šŸ¹
    82a46ab3-8782-4bfb-be74-84a8a6d3f8cf-image.png


  • šŸš½ Regular

    @Zecc said in Help Bites:

    I have zero experience doing that sort of thing, but I figured ImageMagick would be able to do something like that:

    https://www.youtube.com/watch?v=pFrMLRQIT_k

    Okay, carry on.



  • @masonwheeler said in Help Bites:

    @karla said in Help Bites:

    What the hell is pomade?

    Isn't it that black stuff you rub on leather dress shoes to keep them in good shape? Why in the world would you want to put that in your hair?!?

    Or am I thinking of the wrong thing?

    You're thinking of shoe polish. You don't put that in your hair; you put it on your face for parties.


  • ā™æ (Parody)

    @pie_flavor said in Help Bites:

    googling for 'stitch icon -lilo' brings up nothing useful.

    :facepalm:



  • TL;DR: I'm looking for a text messaging app, which one do you use and what features of it make it good?

    So, I've noticed in the past few months that my phone only showed me text messages notifications when I woke it up (i.e. receive a text message: nothing happens, then maybe 1 h later, do anything with the phone: suddenly get the notification for the text message). Not always, but frequently enough to be very annoying.

    I thought initially it was a setting in the phone, I even found a setting to "allow notifications to turn on screen" or something like that, which on first glance seemed to fix the issue (I complained about it being mislabelled somewhere else). Turns out I was wrong, this did not fix the issue at all (and for all I know, maybe the label was actually correct).

    Then recently I noticed that just waking up the phone wasn't enough, I had to actually unlock it to get the text messages to arrive. A couple of meetings missed because of that (including one case where I was checking my phone every 5 min because I was waiting for the message, only to get it much too late when I unlocked my phone!), great.

    So I switched to the default messaging app of my phone, and now the issue seems gone for real. So I guess the other app fucked something in an update, but it's been at least a couple of months now and it happens to my GF's phone as well, so really they should have fixed that long ago. So public notice: Mood is a šŸ’© .

    That said, I'm currently using Messages, which I think is the stock Google app? I can't really fault it, but it does not overwhelm me either. I'm not particularly looking for some specific features, but Messages seems a bit limited in settings (e.g. I could not see a way to change the notification LED according to the sender), and a bit over-eager to send me to web stuff ("chats", whatever that means, plus nagging to use the web version etc.). I guess that's to be expected with Google, but... meh.

    Therefore the final point: what's a good messaging app, and why? What features of your app do you like?



  • @remi I use Textra, but I don't know if I can provide a lot of in-depth reasoning behind it. I switched to it when Handcent got too annoying with ads and crap; Textra has ads but I think they're limited to one banner on top of the message list. For customization, I haven't used a lot of its features but one I did use is the custom vibration pattern, to make it distinct from other types of notification.



  • @hungrier said in Help Bites:

    @remi I use Textra, but I don't know if I can provide a lot of in-depth reasoning behind it.

    I guess it's the same for most people, which is why I'm asking for specific benefits to see if that matters to me or not. Thanks for your answer anyway!

    I switched to it when Handcent got too annoying with ads and crap; Textra has ads but I think they're limited to one banner on top of the message list.

    Definitely a negative for me, even though it's not a hard-pass (yet).

    For customization, I haven't used a lot of its features but one I did use is the custom vibration pattern, to make it distinct from other types of notification.

    Oh that's a nice one, I think I would like it. Noted!



  • @remi said in Help Bites:

    Definitely a negative for me, even though it's not a hard-pass (yet).

    I haven't looked for text messaging apps for a while but I don't know if you'll find any free one that doesn't have ads and/or super invasive permissions, or is anything beyond a really basic one.


  • BINNED

    This post is deleted!


  • @hungrier said in Help Bites:

    @remi said in Help Bites:

    Definitely a negative for me, even though it's not a hard-pass (yet).

    I haven't looked for text messaging apps for a while but I don't know if you'll find any free one that doesn't have ads and/or super invasive permissions, or is anything beyond a really basic one.

    I think that Mood did not have any ads, or at least they were very discreet, to the point that I can't remember seeing any. It might have been "super invasive", although I'm not quite sure what you mean by that and I never felt uncomfortable about it (Messages, the Google thing, wants to send all numbers from my contact list to its servers for, uh, something about blacklisting spam calls -- I know that Google already stores my contacts, but that seems a bit icky. I guess that's the kind of invasion that you're talking about). I'm not entirely opposed to ads (I understand that the devs have to live somehow!), but they'd have to be not too intrusive.

    A basic app might be enough for me though. I don't really care about fancy group chats or integration with other app or whatever. I need the ability to send/receive texts and MMS, one conversation per contact, a notification when I get a new message, maybe a couple other things but nothing fancy. Additional nice things that I could do without, but would like to have, are some customisation things like changing the LED colour or ring tone per contact, or the ability to reply from the notification itself without opening the app (i.e. some kind of overlay). Really, that seems pretty basic?


  • :belt_onion:

    @remi said in Help Bites:

    Therefore the final point: what's a good messaging app, and why? What features of your app do you like?

    I use Signal, but outside the encryption use-case, I can't say it's anything compelling/special on the text messaging front. Doesn't have ads, does have these:

    @remi said in Help Bites:

    I need the ability to send/receive texts and MMS, one conversation per contact, a notification when I get a new message

    the ability to reply from the notification itself without opening the app (i.e. some kind of overlay)

    It has the ability to mute conversations for a given amount of time, which I particularly like. It is nice to have the option for encryption even if you don't use it much. e.g. family members have sent me stuff like account number/routing number for transfers or other sensitive information that we'd normally send in two parts by two different media before.


  • BINNED

    Is there a way to put a Windows 10 Laptop in clamshell mode?
    To be specific: when an external monitor is attached, closing the lid should keep the laptop on (except for the internal display, of course), but without an external monitor attached it should go to sleep as normal.

    Answers on StackOverflow suggest setting the power settings to ā€œdo nothingā€ when closing the lid. Obviously that means the laptop wonā€™t go to sleep without a monitor attached, either, which isnā€™t what I want.


  • Java Dev

    @topspin I don't know about checking for external monitor, but I'm pretty sure you can set different options for this depending on whether the laptop is on battery power.



  • @topspin Maybe this?


  • BINNED

    @Rhywden I guess something like that would work, although Iā€™d prefer a less hacky solution.



  • @topspin According to the comments, there's no event you can monitor through the TaskScheduler so I dare say that's the best you'll get.



  • @topspin My laptop works exactly like that when it is on its docking station. I guess the docking station might trigger some hardware things, so it might not be directly reproducible with simple settings, but is a docking station out of the question for you?

    (self-:pendant:: technically closing the lid still puts the laptop to sleep, but if you dock the laptop already closed it will use the external screen when waking up while remaining closed)


  • BINNED

    @remi said in Help Bites:

    @topspin My laptop works exactly like that when it is on its docking station. I guess the docking station might trigger some hardware things, so it might not be directly reproducible with simple settings, but is a docking station out of the question for you?

    (self-:pendant:: technically closing the lid still puts the laptop to sleep, but if you dock the laptop already closed it will use the external screen when waking up while remaining closed)

    Yes, it's a very low urgency problem, i.e. connecting a laptop (which isn't even mine) to a TV, so a docking station is out of the question. Maybe connecting the HDMI cable when the laptop is already asleep works in this case, too. I'll try that.
    If not, keeping the lid open is a mild annoyance (especially considering this should just work out of the box), but not something I'll go out of my way to solve.


  • Banned

    Just got a new US phone number, and I'm already getting spam thanks to previous owner. No bank statements this time - but I've got a reminder about an appointment at some loan shark business? At the end it says "STOP2STOP", so I guess I can text "STOP" for them to stop. But the phone number is 26435 - and the question is, will I get charged for premium text, or is it like a regular number? How can I check how much it costs to text a particular number (in T-Mobile)?


  • And then the murders began.

    @Gąska Short codes have extra fees for their owners, not people texting them.


  • Banned

    @Unperverted-Vixen okay. I'll take your word for it.



  • @Unperverted-Vixen said in Help Bites:

    @Gąska Short codes have extra fees for their owners, not people texting them.

    SPAM ON!!!



  • @ChaosTheEternal said in WTF is happening with Windows 10? And nothing else:

    So that eventual Microsoft Edge update is also removing [their ebook reader feature]

    So, can anyone recommend an app for reading e-books?

    Preferably with a minimal or no "storefront" component, Windows Store options are fine but less preferred over regular Windows apps (especially if not free), primary format is DRM-free EPUB.


  • Considered Harmful

    @ChaosTheEternal I use Calibre meself.



  • @pie_flavor said in Help Bites:

    @ChaosTheEternal I use Calibre meself.

    i tend to use Google Books or Kindle myself. the paperwhite (where i do most of my reading on) supports non DRM epub just fine......

    but yeah for windows..... I think best option is calibre.



  • @ChaosTheEternal Any specific features you are interested in?

    For Windows, I used to like ICE Book Reader. I use FBReader a lot despite it becoming effectively unmaintained when the author switched to Android development. Nowadays, even STDU Viewer and Sumatra PDF can read ePUBs, but Calibre seems to support more kinds of markup.



  • @aitap said in Help Bites:

    Any specific features you are interested in?

    What I'd like is some of what Edge offers:

    • Adjustable font size/background color (at work, I use dark text/light background, at home it's flipped)
    • Remembers where you left off, and ability to bookmark "pages"

    Wouldn't mind if it has a virtual bookshelf that I can point my existing files into (without it moving them elsewhere on my computer), but I can deal with finding and opening the files myself as I do today.

    I don't need a whole lot. As much as I'm loathe to say it, Apple's ebook viewer for iPad was great, but I swapped out my iPad for a Windows tablet at home and that doesn't help me when I read at work.


  • Fake News

    @aitap said in Help Bites:

    I use FBReader a lot

    Before I started reading most if not all epubs on an e-ink reader, I really loved this software for its proper "justified" display.

    The only trouble is that you need to configure the margin width rather than the width of the text, thus making the number of characters displayed per line dependent on the window width.



  • @ChaosTheEternal said in Help Bites:

    Adjustable font size/background color (at work, I use dark text/light background, at home it's flipped)

    I think this is available more or less everywhere (might be hidden in the config file in case of SumatraPDF).

    Remembers where you left off, and ability to bookmark "pages"

    By default, Calibre ebook-viewer writes down your position inside the ePub file, so every time you read a book it is edited a bit. Usually it is not a problem. FBReader doesn't do bookmarks, AFAIK. The rest are fine withBut all programs I mentioned do remembering the last position.

    Wouldn't mind if it has a virtual bookshelf that I can point my existing files into (without it moving them elsewhere on my computer), but I can deal with finding and opening the files myself as I do today.

    SumatraPDF and STDU only remember the list of recently opened files; specialised viewers like Calibre, FBReader, ICE have "libraries".

    @JBert said in Help Bites:

    Before I started reading most if not all epubs on an e-ink reader, I really loved this software for its proper "justified" display.

    Yeah, it is really convenient. I think that my e-ink reader runs on FBReader too, though sometimes I have to switch to custom-built CoolReader because the latter doesn't choke on <table>s.


  • Fake News

    @aitap said in Help Bites:

    FBReader doesn't do bookmarks, AFAIK. The rest are fine with remembering the last position.

    I just opened FBReader (the 0.12 Windows version, that is) and it seems to have remembered at least the last reading position of the last-opened book. I haven't gone through its Library because I wouldn't even know where I left the other books...



  • @JBert said in Help Bites:

    seems to have remembered at least the last reading position

    Is there a button to leave a bookmark and/or list the bookmarks and return to them? There might be - fbreader on my e-ink reader has one - but I don't see it in fbreader 0.12.10dfsg2-2+b1 on my PC.


  • Fake News

    @aitap Ah, it doesn't allow for several bookmarks if that's what you're asking, it only remembers the last position you where at in the last book.

    I just wanted to state that again because of the way you were singling out FBReader in your original post: "FBReader doesn't do bookmarks [...] The rest are fine with remembering the last position." - it would make it seem that FBReader doesn't remember anything at all, when that's not true.



  • Does anyone know how to easily compute Bessel functions (specifically, the modified Bessel function of the second kind K_a(x)) in Excel, for non-integer values of a?

    (no, that's not cricket)

    There is a BESSELK() built-in function but it took me far too long to properly read the doc (well, to read the doc in the first place) and find out that it truncates to integer values of a only :sadface:

    A quick Google search shows an old thread that basically says "it's too hard to do, use another tool", which is actually a fair answer, but still, if there was a way I'd be happy. I'm just playing with some formulas, not implementing anything permanent (famous last words...) so any random macro or horrible hack would work.

    Barring that I'll switch to something more mathematical like octave, but it's not as convenient as Excel when it comes to fiddling with formulas and numbers and looking at the graphs.


  • And then the murders began.

    @ChaosTheEternal How about Adobe Digital Editions? I don't know about the adjustable background color, and I'm pretty sure it wants to move the books into its own folder, but I think it ticks the rest of your boxes.



  • @pie_flavor said in Help Bites:

    @ChaosTheEternal I use Calibre meself.

    I do as well, but for putting books on my reader, not reading on the computer


  • Considered Harmful

    @JBert said in Help Bites:

    @aitap said in Help Bites:

    FBReader doesn't do bookmarks, AFAIK. The rest are fine with remembering the last position.

    I just opened FBReader (the 0.12 Windows version, that is) and it seems to have remembered at least the last reading position of the last-opened book. I haven't gone through its Library because I wouldn't even know where I left the other books...

    I didn't know FBReader had a Windows version. I may switch to that if it's good.



  • What would be a good idea to bring home from the US? I helped a colleague who is currently there (intending to visit a lot of places) and now he's asking what can he repay me with.



  • I am trying to plug two large screens on an old-ish laptop and I can't get a reasonable resolution out of the second one. Is it that my setup can't support it, or that I am doing it wrong?

    The laptop is an HP zbook 17'', with a docking station (reference A7E32AA which is the, uh, "regular" one I think, not the "advanced" one). It has one DisplayPort port and a DVI-D port. The screens are 2 identical screens capable of up to 2560x1600 (and I know that because I used both with a desktop just before, without issues -- and at that time the desktop used one DVI and one DisplayPort, so I know that nothing is wrong on the screens).

    The screen plugged through DisplayPort has no issue displaying at 2560x1600, but the screen on DVI only goes up to 1280x800, which is tiny (especially when blown up on a 30'' screen!). It's the same when I plug only one of the screen or both.

    The specs that I found (weirdly now the HP website errors with a DNS error??? so I can't link...) clearly said that the DVI output of the docking station can output to at least 1920x1080, if not more. But there was also something that I did not quite understand about chaining DisplayPort devices that mentioned a maximum resolution of (I think... from memory since suddenly that page is no longer there!) 3840x something. While that chaining of devices apparently implied that one screen was plugged onto the other (i.e. that the first screen had some output port for the second one), 3840 looks suspiciously like 2560 + 1280 (i.e. the max that I'm getting)! But then if that was the reason, when plugging only the DVI screen I should be able to get more. And also I'm definitely not chaining my screens in this way.

    So, is this resolution the max I can get on DVI or can I get better (ideally up to 2560x1600... one can dream...)?



  • @remi This is a rectally-derived guess but maybe the graphics card in your laptop can't drive that high of a total resolution.


Log in to reply