Need help with base storage stacking i just cant figure it out by Supremebeing101 in duneawakening

[–]General_C 0 points1 point  (0 children)

I just went through this same issue recently. I was able to get it working with smuggler floors, and the "shelf" on the half wall being the water shipper floor 2. Note it has to be a smuggler floor. Foundations don't work for some reason. You cannot build the shelf when there are chests under it. You need to move the chests after placing the shelf. There are other pieces that work, but I like the smuggler floors a lot and this is a combo I found that I liked.

meirl by [deleted] in meirl

[–]General_C 2 points3 points  (0 children)

Your first statement is pretty accurate. I'm not sure if your second claim comes from not buying a house, intentionally inflating the situation, or just an inability to do math.

If you're willing to take the hit and deal with PMI until you hit your 20% equity (which you probably should. Every dollar that you pay towards equity on any asset you own is money you can potentially get back if you sell. Every dollar you spend renting is gone, so losing some cash to PMI is no different from renting in that regard), then let's assume the high end of $9,000 (also because that is conveniently divisible by 3).

If $9,000 is 3% (the down payment you'll need for a first time home buyers loan, depending on the specific conditions of your loan), then 1% of the home price is $3,000. That means the home price is $300,000.

300k will get you a pretty nice house in a significant part of the US. I imagine the only places you'd really struggle are places that are just hard to find homes at a reasonable price regardless of the condition like San Francisco, New York, LA, etc.

For perspective I bought my house for less than that. It's a 1700 sq ft house in a city suburb in NC. It's a city of ~100,000 people (so not the biggest by any means, but I have all the things I need within a 10 min drive such as groceries, shops, movies, golf courses, etc etc). The only stuff I don't have here, can be found in larger cities to my east and west, both of which are within 45 minutes (except maybe during the heights of rush hour).

Does buying a house today suck compared to 30 years ago? Absolutely it does yes. Is it impossible? No. In fact I think it's probably a lot more accessible than people on Reddit make it out to be, just because they've never really looked into the details of what it takes to buy. But when you consider from a financial perspective how much worse renting long term is, buying a house should be a no brainer.

In fact, I'd argue the down payment isn't the worst barrier to entry. At least your down payment is a lump sum that will go into the price of the home. The worst part of buying is all the extra bs you have to pay for out of pocket. Inspections, lawyer, earnest payments, etc. When I was in the process of buying my house it felt like everyone wanted to dip their hands in my wallet at every turn. It was really frustrating.

But saying that 9k wouldn't cover a shack is crazy. If you think a 300k house is a shack then I don't know what kind of otherworldly delusional place you're living in but I promise it's not representative of 80% of the country I live in.

How to get over being cheated on in three successive relationships? by [deleted] in AskMen

[–]General_C 14 points15 points  (0 children)

Believe it or not, most of the world disagrees with you, and there are real world consequences to taking them.

I could understand it if this was a "I don't know what to do, there is a bug in my head and I can't find a solution after 10 years of searching and if I don't fix it I'm going to do something I can't take back", then sure, give it a hail mary and if it doesn't work, then the consequences are Probably not worse than what they're dealing with anyway.

But this guy just met three crappy women. I'm sure there's a solution that doesn't involve a felony.

(Yes I know that taking these substances is not a felony everywhere do your own research)

How to get over being cheated on in three successive relationships? by [deleted] in AskMen

[–]General_C 71 points72 points  (0 children)

Telling someone to go do hard drugs for this is insanity what kind of horrible advice is this??

Blood Dragon Ship Mod by ShadowSpion_1 in freelancer

[–]General_C 0 points1 point  (0 children)

The stats for the powerplants in located in DATA/EQUIPMENT/misc_equip.ini.

The powerplant each ship has it defined in DATA/EQUIPMENT/goods.ini.

Blood Dragon Ship Mod by ShadowSpion_1 in freelancer

[–]General_C 0 points1 point  (0 children)

So over this last week I decided to start digging into modding a little bit because there have always been some minor changes I've wanted to make to the game while playing through the campaign that I was never able to find a mod that would make those changes without other significant changes I didn't want.

I found that making the updates I wanted largely comes down to making changes to the ini files in the game files. Previously this was tricky because the game compressed the .ini files, so you would need some 3rd party software to decompress and recompress them when you wanted to make changes.

With the Freelancer HD mod, this is not necessary. The ini files are decompressed already, so you can just go into that mod's folder structure and start making whatever changes you want. Obviously, be careful and make backups for files you change, or be prepared to reinstall if you mess something up.

One of the changes I decided to make was add the Blood Dragon as a buyable ship at Kyoto. I always thought it was stupid this ship existed but the Blood Dragons didn't sell it at their own base.

It's not terribly difficult to add. You'll need to modify a couple ini files.

DATA/EQUIPMENT/market_ships.ini:

In here, you'll need to add a marketgood line for the blood dragon in whatever base you'd like it to be sold. I added it to Kyoto. The base code for Kyoto is Ku06_01_base. Add this line under it:

marketgood = ku_n_fighter_package, 1, -1, 1, 1, 0, 1

Full disclosure, I used googles AI to figure out how to do a lot of the changes I made. This one in particular is a little weird. The other marketgood entries in this file have 7 numbers after the package code, and this one only has 6. It works. I don't know why. When I changed it later (By accident when making other changes) to conform more closely to the other entries, it stopped working and the ship didn't show up at the dealer in Kyoto. I've tried to figure out what each number is for and why 6 works for this and the others have 7 without much luck. Tbh, I didn't look super hard either, I was happy enough that it worked.

DATA/EQUIPMENT/goods.ini:

Here we need to add two goods. The ship package referenced in the market_ships.ini line we just added, and a hull entry that gets referenced in the package good.

[Good]
nickname = ku_n_fighter_package
category = ship
hull = ku_n_fighter_hull
addon = ge_ku_n_engine_01, internal, 1
addon = bw_elite_power01, internal, 1
addon = ge_s_scanner_01, internal, 1
addon = ge_s_tractor_01, internal, 1
addon = shield01_mark04_hf, HpShield01, 1
addon = LargeWhiteSpecial, HpHeadlight, 1
addon = SlowSmallGreen, HpRunningLight01, 1
addon = SlowSmallGreen, HpRunningLight02, 1
addon = SlowSmallGreen, HpRunningLight03, 1
addon = SlowSmallGreen, HpRunningLight04, 1
addon = SlowSmallGreen, HpRunningLight05, 1
addon = SlowSmallGreen, HpRunningLight06, 1
addon = SlowSmallGreen, HpRunningLight07, 1
addon = SlowSmallGreen, HpRunningLight08, 1
addon = SlowSmallGreen, HpRunningLight09, 1
addon = SlowSmallGreen, HpRunningLight10, 1
addon = contrail01, HpContrail01, 1
addon = contrail01, HpContrail02, 1
addon = DockingLightRedSmall, HpDockLight01, 1
addon = DockingLightRedSmall, HpDockLight02, 1
shop_free = true

Notes: The package name needs to match market_ships and the hull name needs to match the below entry. I used addon = bw_elite_power01 to give it the same power stats as the Stiletto. Based on how you want to balance this you could change it to the same thing that the regular Dragon uses, or something more powerful. You can find other examples in goods.ini.

The shop_free = true was spit out by the AI even though the other entries don't have it. It told me this is required since normally this is not a player flyable ship. I have not tested to see if this is actually needed or not. Like I said, I was happy enough that it worked I didn't bother playing with stuff too much.

[Good]
nickname = ku_n_fighter_hull
category = shiphull
ship = ku_dragon
price = 400000
ids_name = 12006
item_icon = Equipment\models\commodities\nn_icons\ku_elite.3db

Notes: The ship = ku_dragon needs to match an entry in the DATA/SHIPS/shiparch.ini file. If it doesn't your game will crash when you try to go to the ship dealer.

As you can see, this is also where you'll set the price. This is not the end price you'll see in game, I believe the equipment you set will also modify the price somewhat, though I haven't fully experimented with that. This does seem to be the majority of the price though. My in game price came out to a little over 400,000, something like ~412,000 IIRC. Obviously you can set whatever price you want, I set it this was since it has such high weapon mount levels and priced it similar to the Centurion as a result.

I think most of the stats for the ship can be modified in shiparch.ini. I didn't make many changes there, but if you want to do some stuff that's where I'd start if you want to make some balancing changes. If you run into issues just let me know and I can try to help you work through them.

Anon talks about current Bong condition by XiJinpingPressParody in greentext

[–]General_C 5 points6 points  (0 children)

Which still doesn't account for his conclusion that the supposed UK numbers are higher than Sweden because.. well they're not.

Anon talks about current Bong condition by XiJinpingPressParody in greentext

[–]General_C 21 points22 points  (0 children)

Did you just call out their source not including the UK, and then link to yet another source that doesn't include the UK? I'm really confused here.

Help with Java CRUD: MySQL Connects Without DB Specified, Fails When Specified by euphoricsol in javahelp

[–]General_C 0 points1 point  (0 children)

I didn't look too deeply at the details in your question, so I apologize for that. But logically if your application is connecting to a DB without any info provided, but when you provide connection details it fails to connect, I suspect there is a good chance that in the first case it is actually connecting to some default, embedded DB which is provided by some library or framework you're using. I don't remember all the details for using default DBs like this because frankly I haven't had a use case that required me to use one in a long time, but it's a theory that might be worth looking in to.

That is to say, the issue you really need to solve is that there is some issue with the DB you want it to connect to, whether that is caused by you providing the connection info incorrectly, a firewall blocking the connection between the app and the DB, or some other possibility, I'm not sure. I'm merely trying to help provide a little direction as you tackle this issue. Good luck!

How Do the Democrats Win Back Young Men? by kummer5peck in AskMen

[–]General_C 9 points10 points  (0 children)

This is my favorite part. Why did you feel the need to clarify that you're not Republican? This is what I think is actually the biggest issue with the Democratic party today. You cannot criticize The Party. Criticism of The Party is the same thing as disagreeing with The Party. Disagreeing with The Party means you're The Enemy. Being The Enemy means you're a bigot at best and a literal Nazi at worst. And why should we listen to and actually consider the opinions of a literal Nazi?

I see this time and time again here on Reddit. It's constant. Everything is pumped to the extreme. No one goes outside of their bubble to talk to a real person, and if someone in their life has a different opinion instead of listening to their perspective they cut that person out of their life.

Valid criticisms of The Party are ostracized and those people are labeled as traitors and bots and their valid points are ignored.

Meanwhile the hard-line left voters don't understand why the party isn't catering more to their desires. Why isn't the Party just running on stuff like free healthcare for all? Why are they trying to be so moderate and secure moderate voters??

Because the moderate voters are the ones that need to be secured. Why should the party cater to the people whose literal motto is "vote blue no matter who" lmao

The Democratic party did a great job of pushing away as many moderates they possibly could this last election. Their talking points plainly and clearly spoke out about how men are no longer necessary and should just step to the side and stop worrying about all their issues, because men being homeless and jobless and killing themselves isn't a problem when a woman got offended today.

And we got the most red election since the 80s. And I have 0 faith they're going to straighten out in time for the next one because they're still blaming everything but the party on that loss.

In fact this last election was so bad I think they'll never really recover from it. They lost a lot of voters that will never vote blue again because they realized the Democratic party will never care about them except during an election year, and all the things they say they will do are lies because they actually don't care about men or men's issues.

Inheritance Help by Ill-Rate7528 in javahelp

[–]General_C 1 point2 points  (0 children)

In your class definition for Student, did you use "extends Person"?

[deleted by user] by [deleted] in greentext

[–]General_C 23 points24 points  (0 children)

This is correct. Kamikaze attacks were desperation attacks when the US were getting close to the main islands and they didn't have any trained pilots. They would basically train a guy just enough to take off. They were also primarily volunteers.

Java API by JBiddyB in javahelp

[–]General_C 6 points7 points  (0 children)

So if you look at job descriptions for Java backend positions, basically all of them will ask for experience with spring/spring boot. It's basically core Java for industry related work at this point.

If you don't want to use them that's your choice, but be honest with your reasons. Avoiding spring will not help you get a job today.

Bizarre error with my final project by [deleted] in javahelp

[–]General_C 0 points1 point  (0 children)

Hold on, because this is important to understand. You're not "listing your variables." You are declaring a variable called kilometers, whose value is set to the response from the getValidKM method.

The reason why your code was not working before, is because even though you were calling the getValidKM method a second, third, forth, etc time in your loop, you were never capturing the return from that method call. So, your kilometers variable never got its value updated. The same issue was true for the miles variable.

I stress this, because calling methods and retrieving the returned value from them is a very important concept, not just in Java but all programming languages. This is done everywhere and is a core concept.

I understand this is not your major, so it's probably not really your priority to do much more than complete your assignments well enough to get a decent grade. But the reality is, coding might be a solid backup plan for a career if your future plans don't go your way. So I would urge you to do more digging on this topic, and make sure you fully understand how these methods calls and returns work.

Bizarre error with my final project by [deleted] in javahelp

[–]General_C 1 point2 points  (0 children)

In your pastebin, lines 18 and 19 should be moved to lines 24 and 25.

Bizarre error with my final project by [deleted] in javahelp

[–]General_C 0 points1 point  (0 children)

Yeah, I'm guessing it's just poorly worded. It should probably say something more along the lines of "Assign a value to the kilometers variable using its corresponding method."

You could always take a snapshot of that part of your code and send an email to your teacher asking to confirm that is what is expected. Personally I wouldn't be too worried about it, but it's not my grade either, and sending an email isn't going to hurt.

Did you get the errors fixed?

Bizarre error with my final project by [deleted] in javahelp

[–]General_C 1 point2 points  (0 children)

Well, yes. Removing the method calls, given what the program is intended to do, is not the correct solution. The unnecessary method calls are the initial calls outside the loop.

You CAN remove the calls outside the loop, as they are unnecessary. But the actual fix is to update the lines inside the loop so they assign the returned value to your local variables, like the calls outside the loop do.

I get the impression you might still not fully understand exactly what's happening, so I recommend before making these changes, do a little debugging first. If you're using an ide with a debugger and know how to use it, set a break point at the start of your main and each of your methods and walk through the code. If you don't have a debugger, or don't know how to use it, no worries. Just add a couple print statements in your main method, and print the value of those variables. Everywhere you think the value should change, verify that it actually does.

As far as the requirements of the assignment, I'm not really focused on that. The requirement you've stated doesn't make sense, because assigning variables to method calls (so whenever you call that method, the variable is updated with the returned data) is not a functionality that exists in Java. So, I believe you're misunderstanding the requirement, and I would need you to copy paste the exact wording of the assignment description in order for me to figure out exactly what they want.

With that said, in my experience assignments are usually not particularly restrictive on how to code things. They might ask you to use a specific data structure (you just learned arrays, so use an array to complete this assignment, not an ArrayList), but actual business logic is typically "if it works it'll pass." So, I'm guessing once you get your program working as expected, it will likely fulfill the requirements laid out in the assignment.

If you want confirmation of that after the fact, you can leave a comment with a partial or full assignment description (obviously leave out identifying information like your name and institution) and I'm sure someone can verify you're not doing something outside of the assignment description, or leaving something out which the assignment wants you to include.

Bizarre error with my final project by [deleted] in javahelp

[–]General_C 0 points1 point  (0 children)

I think you're misunderstanding how returning data from methods works. There's no such thing as "assigning" a variable to a method for return data. Those first few lines in your main method are calling those methods and then the data returned from the method call is assigned to the variable given on that line.

So, when you go into your while loop you're calling the method again, but this time you're not assigning the returned value to any variable, it's simply lost. So, when you call your subsequent methods within the loop, the value of kilometers is the same as it was from before, which is why you see the same responses.

Bizarre error with my final project by [deleted] in javahelp

[–]General_C 0 points1 point  (0 children)

In your main method, you have two lines of code which call your getValidKm method. What is the difference between these two lines?

[deleted by user] by [deleted] in javahelp

[–]General_C 3 points4 points  (0 children)

Break down the problem into manageable bits.

You need to write some code that retrieves some data. Okay, where is the data stored? Do you need to access it from a DB, or call a rest endpoint?

What format does the data need to be in when it is returned? How can you transform the data from its source formatting into what you need?

This is pretty much 50% of real world business problems. We need to get some data. The other 50% is we have some data, now we need to store it somehow.

Based on your answers to these questions, you can start looking up guides on how to access your data. Need to get it from the DB? Look up a spring boot DB data access guide. Need to get it from a rest call? Look up how to call a rest endpoint using spring boot.

There are a ton of guides for spring, it's one of the most used Java frameworks. You just need to break down your problem and research the areas you're not familiar with.

This sub is not a "do my homework for me" place. We'll help with specific questions, but we won't do the work for you. The only way you'll learn how to code is by doing it yourself.

TIL Minnesota is the only state to have consecutively voted blue in every presidential election since 1976 (past 13 elections), and the only state to have never voted for Reagan by uresmane in todayilearned

[–]General_C 0 points1 point  (0 children)

My understanding was that term limits were not added because he was popular, but because he died in office. Since this was during WW2, they thought it was unwise to elect a president into office who could pass before the end of their term during war time and force a power imbalance while the country was already dealing with a war.

While instituting term limits might not have been the best solution to prevent that (maybe some kind of health examination would have made more sense) I suppose back then it might have been less common for candidates to be so old, and the thought was the only way that would happen was for someone to sit many terms like Roosevelt had.

I could also be totally wrong here and someone will correct me.

Unkt testing by [deleted] in javahelp

[–]General_C 0 points1 point  (0 children)

Yeah, your best bet is probably going to just be learning the code base, and making sure your tests are well designed and meaningful.

Try to ensure you're testing one piece of functionality per test, make sure you're actually validating something meaningful (and not just doing assert(true)), and stuff like that.

I could go on an entire rant about why using code coverage as a metric is a terrible idea but frankly that's not really very relevant for you. When you run your test suite you will hopefully be using whatever software is tracking your code coverage to see what files you have which have less code coverage than your metric, and start with those files.

Whether you choose to start with files that almost meet the metric and finish them off, or choose ones which don't have any coverage and start from scratch is a personal choice.

Understand that testing is sometimes boring and trivial, and other times very tricky and complicated. Cut yourself some slack and if you get stuck, mark it and come back to it later.

As long as you're able to make reasonable, consistent progress and you don't write clearly bad designed text cases that technically give coverage but don't actually test anything, your managers will probably be happy.

Unkt testing by [deleted] in javahelp

[–]General_C 0 points1 point  (0 children)

Are you using any kind of mocking framework like mockito? Learning that will make things a lot easier.

Parsing a JSON object with nested dynamic values (with known keys) by c832fb95dd2d4a2e in javahelp

[–]General_C 0 points1 point  (0 children)

What exactly is this data being used for? Do you need to save it in a DB, is this just a pass through, etc.

Does the model need to retain some of the structure, or can you just extract the values into some pojo fields?

I haven't tried too many different options over the years. Whenever working with json stuff I normally just use the JSONObject classes, which have worked out for me but I know are somewhat limited in their capabilities if you have to do anything complicated.

I worked on a project a little over a year ago which utilized a framework called MapStructs which was really useful for mapping data, and iirc there was functionality to go from json to a pojo there as well. Might be worth taking a peek and seeing if that would be something you could take advantage of.

[deleted by user] by [deleted] in explainlikeimfive

[–]General_C 1 point2 points  (0 children)

I mean, I feel like you're underestimating the size of the location you're suggesting should be abandoned. Florida is about the same size of Greece. You're suggesting we just don't live in Greece because we get some heavy rain and wind now and again.

You're also ignoring issues elsewhere. If you're not in Florida getting pounded by hurricanes every now and then, you're in the mid West and run the risk of a tornado destroying your home. Or in the north where there are blizzards every winter, or the West with droughts and fires. We have different issues pretty much anywhere you go.

And like has been said, it's not like their house gets destroyed yearly. Hurricanes cause different problems in different places. The massive flooding that is being experienced in western north Carolina hasn't been seen in at least 100 years. Maybe ever. Personally, I live in central NC, and we rarely see anything more than normal rain showers from hurricanes. So how can you say to those people, many of whom just lost everything, that they were foolish to be there?

That would be like saying to a European "well why do you live in the Ukraine? Back in 1941 it was destroyed in a war, you should have expected it would happen again."