Hacker News new | past | comments | ask | show | jobs | submit | sillystuff's comments login

I played around with this in a VM the last time it was mentioned on HN.

The thing I want to do, but wasn't able to find a way to accomplish was to have a virtual desktop switcher gadget and a separate gadget to swallow minimized applications where each can be placed independently on the screen (and preferably auto hide)-- this will be separate application(s) from Labwc, but I did not find anything for Wayland that could do this (I do not like the MS Windows style task bar with menus, desktop switcher, etc., in one single bar).

Anyone have any suggestions?

Another nice to have would be to have screen edge bindings, where moving the mouse pointer or dragging a window over an edge, or corner, of the screen can be made to take an action. I'm not sure if this could even be accomplished with a stand-alone utility under Wayland, or if this must be done by the compositor. But, if possible, and anyone knows of something that exists, I am all ears.

One of the things I liked with labwc is that you can have traditional X style application menus by right-click/left-clicking the root window (it is not the default, but was easy to setup).


I can help with the virtual desktop switcher...

Edit "~/.config/labwc/rc.xml" to add the following:

<!-- desktop pager settings -->

<windowSwitcher show="yes" preview="yes" outlines="yes" allWorkspaces="yes"> <fields> <field content="type" width="25%" /> <field content="trimmed_identifier" width="25%" /> <field content="title" width="50%" /> </fields> </windowSwitcher>

<desktops> <number>4</number> <prefix>ws</prefix> </desktops>

  <keyboard>
    <default />

    <keybind key="C-A-Left">
      <action name="GoToDesktop" to="left" wrap="yes"/>
    </keybind>
    <keybind key="C-A-Right">
      <action name="GoToDesktop" to="right" wrap="yes"/>
    </keybind>

  </keyboard>


I use offlineimap to sync several email accounts both to local storage, and to accounts on other free email providers. E.g., a gmail account dedicated to bug reporting is replicated by offlineimap to an outlook.com account.

Address books and calendars for random gmail accounts get synced by vdirsyncer to both local storage and also to other backup gmail accounts.

It works well, and I don't have to worry about e.g., Google permanently locking me out of one of these accounts, without recourse.

* Both offlineimap and vdirsyncer are in Debian's repos. But, I had to pin/install vdirsyncer from testing to get working oath support for gmail (it did not pull in any dependencies from testing that were concerning [I don't recall if it pulled in anything at all, but I would not have installed from testing if it pulled in anything concerning]).


Instead of dupremove, bees may be more appropriate for your goals.

https://github.com/Zygo/bees

Bees does things at a lower level than just reflinking full files like dupremove (it dedups at the level of extents). Be sure to read the links in the "Recommended Reading" section, of the above link, to hopefully avoid issues.


duperemove has "--dedupe-options=partial" which also enables this, not just full extents. the issue still is, that the data within the archive is not block aligned, thus preventing me from deduplicating them properly


Not LED light bulbs specifically, but...

"The Phoebus cartel engineered a shorter-lived lightbulb and gave birth to planned obsolescence"

https://spectrum.ieee.org/the-great-lightbulb-conspiracy


It's true that the Phoebus cartel arranged to have light bulbs die after a certain number of hours, but bulb lifetime is a trade off between lumens, filament life, and energy consumption. The cartel-defined lifetime limit sits very close to the sweet spot for all of those metrics for incandescent bulbs.

Technology Connections explained this well in a video about a year ago: https://youtu.be/zb7Bs98KmnY


  > bulb lifetime is a trade off between lumens, filament life, and energy consumption
At a specific temperature, using specific materials.

There is no reason to suspect that material science would not advance. Or other constraints would change. A specific company choosing that particular sweetspot for a particular product line is fine. But a collusion between companies dictating that specific constraint (in lieu of, e.g., wattage per lumen) is too clear a marker of anti-consumer intent.


>At a specific temperature, using specific materials.

The temperature of incandescent bulbs is directly related to the light that they give off, and tungsten is the obvious best material, there's no other materials on the horizon giving an improvement for the tech. It really is a pretty well understood tradeoff surface on a very mature technology (which was then displaced by completely different ones).


Advancements in materials led to LED bulbs, which operate under different principles and run fall cooler. Yet the time-limited bulb lifetime remains.


I don't understand why you think a celebrity endorsement would matter-- at all. One endorsement that mattered was Dick Cheney, the man behind the US's illegal and immoral torture campaigns, and who shared responsibility for the US killing of over a million innocent civilians in the US illegal war of aggression against Iraq. Harris welcomed the endorsement and talked up her war hawk credentials.

She promised to give even more money to the military (it is a zero sum game-- a contributing factor to why Americans can't have nice things that Europeans enjoy, like medical care). She promised to continue to enable genocide of the indigenous Palestinian population by the Israeli settler state. She is reprehensible.

Her center-right to right party attacked left parties, like the Greens (our Green party is anti-war and pro human rights, unlike the European Greens, and is not affiliated with the European Greens). The so-called Democratic party sued to have the Greens removed from the ballot in several states. The Democratic party should be called the anti-democracy party.

So, many people on the actual left couldn't hold their noses and vote for her due to POLICIES of her and her party. In states where good candidates like Dr. Jill Stein, or Dr. Cornell West were on the ballot, they may have voted for these, or they may have withheld their votes entirely. This includes a sizable number of young people disgusted by the current administration's complicity in genocide, and the extreme suppression of protest whether they identify as on the left, or not.

People where specific policy was not a deciding factor in their votes, may have voted against the Democrats because they, rightly or wrongly, blame the insane increases in costs of living on the party that was in charge when rent/house prices/loan interest rates, food, and energy prices went through the roof.

Also, the endorsements of several establishment Republicans for Harris cemented her as the candidate of the establishment. And, the majority of folks in the lower income tiers don't have anything good to say about the establishment that keeps making their lives harder. Trump won decisively in under $100K/yr. earning males. A significant number of people want to see the whole damn corrupt system burn.

It is concerning that the far-right controls all federal branches of government. Hopefully there will be in-fighting, so they do not do too much damage. But, realistically, with the ever rightward movement of the Democrats, eventually, we would have reached the same point.

On-topic: there are multiple examples of US companies (and a US owned Swiss one too), installing back-doors in equipment, encryption, etc. I don't think the political party controlling the executive branch matters a bit for this.


> I don't understand why you think a celebrity endorsement would matter-- at all.

I'm sorry, but I'm going to go ahead and trust the opinion of the most qualified person to be President of the United States of America — i.e. vice president Kamala Harris — over yours. You are not an expert at campaigning, she is. She ran the best presidential campaign in history. Celebrity endorsements matter.


> She ran the best presidential campaign in history.

She lost.

If you liked her, that is fine, sorry for your loss. But, I think this quote from you sounds delusional.

If you were arguing she and her party's policies and record were deeply unpopular, and could not be overcome by even a great campaign, I'd give you that. But, I don't think she had a good campaign.

She alienated vast swaths of voters.

She lost Michigan because of her policy of continuing to enable genocide of Palestinians by Israel and she, and her party, being actively hostile to any who speak out, even mildly, against it.

At a campaign stop, she responded to a woman who had told her she was recently made homeless because of medical bills, that if she were elected, she would would prevent medical debt from being reported on credit reports. This makes her sound almost as out of touch as Romney famously admitting, during his presidential run, that he'd never stepped foot into a grocery store; that was a duty for his servants.

In an interview, she said, she couldn't think of a single thing she would change from Biden's policies. Her lack of proposals to help the working class, and her promise to maintain the (painful) status quo, lost her the majority of working class families, throughout the country, to Trump-- The status quo is not good for the majority of Americans. Harris effectively told working class Americans, that they will continue to struggle and suffer if she is elected-- working class America took note, and the majority, all across the country, voted for Trump (he may be just as bad, or worse, but he didn't promise to keep things terrible; I believe he will be, at least, as bad, but he represents some small hope that things might get better, for a lot of Americans).


It was her turn.


Searched for author, she is with the Heartland Institute.

Second link returned on search for Heartland Institute:

https://insideclimatenews.org/news/08082018/heartland-instit...

It appears this article is just some petroleum/plastics industry funded propaganda. The article pretty much screamed total B.S., but always nice to confirm suspicions.

I'll keep my eye out for a future Heartland Institute article on phthalate exposure from plastics and the DNA damage / cancers caused being a good thing! Maybe they will go with a eugenics angle. I wonder how these corporate hacks can sleep at night.


Stop all JS, CSS, and any other processing for any tabs that are not currently active where the site has not been placed on an allow list allowing it to continue to run in a background tab.

Also stop JS, CSS, etc., for any active tabs where the Firefox window does not have current focus unless on the allow list, above. Firefox currently assumes any active tab, even for an iconified window, shaded window, window on non-current virtual desktop, or otherwise not currently visible window, should be allowed to burn through CPU/battery while doing nothing of value. Using window focus would allow for stopping all non-active/non-visible windows.

This would improve battery life, and leave CPU capacity for other tasks that aren't just wasting the CPU.


Seems like the smaller virtual address space available to each x32 userspace application would negatively impact ASLR too.


You need to pass syscall.x32=y on the kernel cmdline for Debian packaged kernels.

https://wiki.debian.org/X32Port

But, maybe support has gone away recently, too since upstream apparently was interested in removing support?

https://www.phoronix.com/news/Linux-Potentially-Drops-x32


As far as I'm aware, kernel-side support hasn't budged an inch since all those articles came out. The bigger annoyance is that you'll either have to compile a special libc or define your own raw-syscall wrappers.


It has been several years since I played with x32, but Debian had pretty good support. Not every package built for amd64 was also built for x32, but most server stuff was there.

It has been a long time, but I was using x32 containers on an amd64 host (both Debian), and things worked fine without having to build anything from source. After moving to a different VPS provider who was less stingy with RAM in their base offering, I just simplified and used straight amd64.

While I didn't try adding x32 as an additional arch with Debian's multi-arch, I'm pretty confident, it would "just work" just as adding i386 as an additional arch does.


Perhaps. I was just trying it on Ubuntu, and found that while I can add x32 as an architecture on dpkg, there aren't any x32 versions of libc6 and other basic libraries. The odd part is, I distinctly recall playing with x32 assembly quite recently on Ubuntu with no special configuration, but now it seems like it's no longer enabled in the kernel by default. Maybe it was disabled with 24.04.


On debian libc6-x32 is definitely there: https://packages.debian.org/search?keywords=libc6-x32


Apparently Sailfish is using libhybris.

I looked at the libhybris page and a few other sources, but am unsure how much of Android is implied when using libhybris. Random person on Internet claimed it is a minimal, but complete, Android user space install, but my reading of the libhybris page doesn't seem to imply that. The libhybris page does imply some of Android user space. A (probably out of date) Android kernel with all the OOT binary blob drivers Android is famous for, seems like it would also be a requirement.

Am I misunderstanding how bad this is? Or, is Sailfish rather than being a real alternative to Android just helping to entrench the terrible situation with Android Linux kernels?


The Sailfish guys are actually the creators of libhybris.

If you run SailfishOS you have to first have Android flashed onto the phone. They use the same kernel, camera drivers, GPU drivers, etc as the original OEM including the prorprietary wireless BLOBs and the Android Radio-Interface-Layer ("RIL").

I've spoken to the Sailfish guys awhile back and I get why they did this -- 10+ years ago there was basically no choice but to use the Android port of drivers + the Linux kernel the vendor shipped because there was no other way to make these hardware pieces work, thanks to the silicon vendors.

The story of not needing BLOBs and things like a libhybris-shim has slowly improved, but not 100% . We can run Debian linux on the Qualcomm Snapdragon laptop devices (Thinkpad X13s, etc) but bits and pieces are still not there (audio, full power management, Bluetooth, etc).

To current Qualcomm's credit there are people inside who are pushing for everything mainline Linux, and minimizing proprietary pieces.

Ubuntu Touch relies on libhybris as well.


Libhybris is great for making a tech demo. I wouldn't base a product on such hack, anymore than sell Linux laptops with ndiswrapper...

If something doesn't work in the binary android drivers, the vendor won't help you (we support only android, sir). Nor can you fix the drivers yourself, because you don't have the sources or the knowledge how drivers work.


All the phones sold with Sailfish OS & all the officially supported Xperias used libhybris - same with most unofficial ports. While not ideal, it works reasonably well - saying that as someone who has been using a Sailfish OS device as primary phone since 2013.


"and yet, it works". To this day my Jolla is the best phone I had, always fluid and reactive compared to much more recent and powerful Android phones. I don't remember any driver issue with it.


Android apps on Sailfish were rarely usable, if they worked at all. One issue I remember, because it caused us a lot of grief was GPS.

The android app would not get an accurate fix unless a Sailfish app first woke up the GPS and obtained an accurate lock.


Well, again, while not covering all aspects of mobile apps, it could run Android apps at a time no other mobile Linux (or any other non-Android device could do it).


True, but in the “my horse can sing” category. Not well, but it can sing.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: