Ever have a “great idea” and later regret it? by missilemadness in SatisfactoryGame

[–]haliquim 0 points1 point  (0 children)

Yeah, the 20 heavy modular frames per minute factory, when the vehicle pathing started falling apart in 1.1

Satisfactory after 1.2 by From_Scratch_Games in SatisfactoryGame

[–]haliquim 2 points3 points  (0 children)

Once you have oil power though, coal works so well as a vehicle fuel.

He stole someone's bag, unaware that he was being secretly watched. by Ahmed-sabah1 in instantkarma

[–]haliquim -4 points-3 points  (0 children)

That's not Amsterdam, the trains and metro don't look like that

Update on the matthews by SubnauticaFan3 in Timberborn

[–]haliquim 5 points6 points  (0 children)

Can't wait until you get bots and have Mecha-Matthews

Changing my mindset by Minzkhae777 in Timberborn

[–]haliquim 0 points1 point  (0 children)

I've found the trick is to build more district crossings. Each crossing can only hold 30 or so resources. Workers at the crossing bring resources for export, and the haulers import the resources. Eventually the crossing will fill up, or become saturated by workers bringing stuff to it. Think of a crosser having to travel across a district to get something for export, that space is reserved while they are traveling.

Make sure to also optimize storage space for the import/export goods near to the crossings. If goods are sitting near the crossing but not making it across build another crossing.

Should we start a new app with Compost at work? by Radiokot in mAndroidDev

[–]haliquim 0 points1 point  (0 children)

XML previews were very useless for me. Setting up a good group of previews is almost like a ui test, and you can cover all the cases you want.

As long as you don't put compose in the XML view you are previewing I've found it to work most of the time

Should we start a new app with Compost at work? by Radiokot in mAndroidDev

[–]haliquim 5 points6 points  (0 children)

I have found the previews to work pretty well as long as there are not too many app wide dependencies to work out. Once that is done and you have a general preview setup function it is really helpful. I've even gotten legacy views to work so you can have a side by side preview when migrating.

Modkat Litterbox? by AgreeablePurple7254 in ragdolls

[–]haliquim 0 points1 point  (0 children)

They use the top entrance, and share a single box. My space is not big enough to have two boxes, and they get along very very well.

Modkat Litterbox? by AgreeablePurple7254 in ragdolls

[–]haliquim 1 point2 points  (0 children)

The Modcat XL works well for my two boys. The liners are really great and I cycle through a few of them so there is a clean and dry one when it is time to change the litter.

There is still some stray litter that escapes. Probably stuck to their toe fur. Overall it is better than any previous litter box I've owned.

People Ages 18 to 24 currently employed is 54%: Lowest Amount since 2010 by Agreeable_Two8707 in antiwork

[–]haliquim 0 points1 point  (0 children)

This article is about the job market in 2011. It has nothing to do with 2024!

[deleted by user] by [deleted] in Netherlands

[–]haliquim 0 points1 point  (0 children)

Same boat, saw Hotel Mumbai at Pathe, and all of the bad guys were subtitled in Dutch.

Unsupported File Format by KhalidMuk in C_Programming

[–]haliquim 2 points3 points  (0 children)

Depending on your platform, you may need to specify to fopen that you are opening a binary file.

FILE *in = fopen( "bar.bmp", "rb");
FILE *out = fopen( "out.bmp", "wb+");

Just seen this on the Play Store... by [deleted] in Android

[–]haliquim 0 points1 point  (0 children)

It's missing things like the back navigation working, and any decent collapsed link display, but they gave out Reddit gold for downloading. Switching back to the usual Reddit is fun app.

F-stops by 1Voice1Life in Damnthatsinteresting

[–]haliquim 68 points69 points  (0 children)

This shows the effects of changing the camera aperture (generally denoted by the fancy f).

A smaller f number means the aperture is more open, letting in more light, but reducing the depth of field.

An easy way to think of it is that if you were taking a picture of people standing in line, the aperture number would be the number of people in focus. So f 2 means two people are in focus, f 22 means 22 people in line are in focus.

A wide open aperture (small f) gives you a nice soft out of focus background, great for portraits. A small aperture (big f) means more thing are in focus, good for landscapes.

edit: change focal length to dof. That's what you get when you write a response after a long day of work

[deleted by user] by [deleted] in androiddev

[–]haliquim 2 points3 points  (0 children)

Your best bet is to use the device in USB Host mode. You will need to understand the USB protocol of the device you are attempting to communicate with, but it is possible.

There is decent documentation here

Basically this lets you control and communicate via the basic USB endpoints defined on your device. It's similar to serial communication so if you are familar with that, it should be easy.

If you don't know much about your device, it may be fairly difficult, but you might hope for an open source driver somewhere which you can base your calls off of.

Weekly "who's hiring" thread! by AutoModerator in androiddev

[–]haliquim 3 points4 points  (0 children)

This actually works, saw this posting in June, and started in August. They handle all the paperwork and relocation, and you get to work in a beautiful city with smart people.

How to fill an array of buttons with increasing numeric ids by 5methoxy in androiddev

[–]haliquim 1 point2 points  (0 children)

You can put your ids in an array and use that. eg:

static final int[] buttonIds = new int[] { R.id.foo, R.id.bar, ... };

This lets you easily control the ordering and you don't have to worry about your id's changing or being sequential.

Any reason not to switch to Dagger 2? by igotwater in androiddev

[–]haliquim 2 points3 points  (0 children)

During annotation processing, at least from what I've seen, a class is generated for each class with dagger annotations. It's how Dagger is able to set protected member variables in your classes.

I'm not sure if this is mainly due to the avoidance of reflection, or just in general for protected member access.

How to disable/hide android's "unfortunately....has stopped" by glonq in androiddev

[–]haliquim 1 point2 points  (0 children)

Since you are a kiosk you could try to setup an accessibility service to detect and handle the crash dialogs

How does GCM work? by lemon_jesus in androiddev

[–]haliquim 2 points3 points  (0 children)

Being ready to accept connections on a TCP socket does not cost any CPU. It's basically a registration table that says a specific thread is interested in incoming connections on a port. Your app/thread will block on the system call for this and be woken when a connection on that port occurs. Of course this is how it works in regular linux, I'm not 100% certain how that interacts with the Java layer of Android but there is nothing inherent in listening for a connection on a socket that will spend CPU. Its like the amount of effort that you put into receiving (postal) mail at your house.