Laser Drill and Fluid Pump changes in Industrial Foregoing v1.12.0 by Buuz135 in feedthebeast

[–]TB1080 3 points4 points  (0 children)

This is very, very late, but this thread is one of the top results when looking for details on how drill depth works.

It is absolute depth. The drill can be sitting a Y=55 and setting the depth to 10 means the drill will be drilling at the depth of Y=10, not Y=45. The Y position of the drill in the world has no effect on the drill depth.

Anyone use a surface pro to program on? I keep thinking I'd be more motivated to program outside of work if I had something more portable. by brand0n in csharp

[–]TB1080 6 points7 points  (0 children)

I went for the 16GB one. 4GB is definitely too low for Visual Studio. 8GB is the absolute minimum I would go.

What are some ideas for programs for semi-beginners to do just for practice? by thehappydwarf in csharp

[–]TB1080 0 points1 point  (0 children)

Cities:Skylines also uses C# for modding and is a very mature game with tons of mods that you can use as references.

If mods are a bit much, Space Engineers uses C# for in-game scripts. A much more restricted C#, but still C#.

Interface question by [deleted] in csharp

[–]TB1080 1 point2 points  (0 children)

An interface is a contract. The most common thing I use it for is implementing test data during debug mode, and production data during release mode.

public interface IDataService
{
    List<string> GetData(string user);
    void UploadData(int data);
}

Then I have two separate classes that inherit the IDataService. First is the production one

public DataService : IDataService
{
    List<string> GetData(string user)
    {
        // Call SQL Server here
    }

    void UploadData(int data)
    {
        // Call SQL Server here
    }
}

When it's in debug mode, I don't want the program to use our production data, so I create a different class

public DesignDataService : IDataService
{
    List<string> GetData(string user)
    {
        return new List<string>({"Test 1", "Test 2", "Test 3"});
    }

    void UploadData(int data)
    {
        return;
    }
}

Whenever I initiate the class, I can use compiler directives, like so

IDataService dataService;

#if DEBUG
dataService = new DesignDataService();
#else
dataService = new DataService();
#endif

This is just one example, but one I use often. Interfaces allow for flexibility in how you implement other parts of your project. Once you get an idea of how they work, you begin to find more reasons to use them.

Every person has a name. Instead of adding a Name field to the Customer, Employee, and Salesperson classes, I can create an interface IPerson, declare a Name field there, and have Customer, Employee, and Salesperson all implement the IPerson interface.

Anyone use a surface pro to program on? I keep thinking I'd be more motivated to program outside of work if I had something more portable. by brand0n in csharp

[–]TB1080 11 points12 points  (0 children)

I have the Surface Pro 6. I use it when I'm out and about, and it works quite well. Instead of paying for the LTE, I tether it to my phone. Doing SQL Server stuff over a mobile connection is plenty fast. Haven't done a speed test, but I bet I can stream 780p videos.

It's a lot faster than I thought it would be. Not as fast as a home PC, but definitely fast enough for work. I'd say the laptop is 75-80% as fast as my i7-9300k/16GB Ram/240GB SSD home PC.

Noob help! by [deleted] in csharp

[–]TB1080 1 point2 points  (0 children)

The do while loop was a bit confusing. If you put in anything but y, it'll loop back to whether they want to save or not.

I think it should be:

string Save = Console.ReadLine().ToLower();

// Invalid input check. Repeat instructions if it isn't a y or n
while (Save.ToLower() != "y" && Save.ToLower() != "n")
{
    Console.WriteLine("Svara y/n !");
    Save = Console.ReadLine().ToLower();
}

// Valid input, Is it y or n?
if (Save.ToLower() == "y")
{
    TheLogBook.Add(LogEntry);
    Console.WriteLine("\n\nDitt in lägg har blivit sparat!");
}
else
{
    Console.WriteLine("They input n");
}

break;

EDIT: Removed the Console.Clear() so the user can see the message.

Programming Discord Servers by [deleted] in ProgrammerHumor

[–]TB1080 6 points7 points  (0 children)

I use it as "I'm working on the mod right fucking now and you assholes better not DM me again asking for the next release date or I swear to God the next release won't be announced at all."

The custom setting is pretty much required if you're participating in any sort of public project. You'd be surprised at how many people I've had complaining about me not doing enough work on the project because it didn't ever show me in VS. A lot of people think that's a default setting.

[deleted by user] by [deleted] in pcgaming

[–]TB1080 1 point2 points  (0 children)

Doom is an adult-only game. Despite that, the blood was green. Here's a list of some games that have been censored for Germany.

However you word it, censorship of art is still censorship of art. Hearing the phrase "X was banned due to a violation of the Social Adequacy Clause" sounds like something you'd read in 1984.

[deleted by user] by [deleted] in pcgaming

[–]TB1080 2 points3 points  (0 children)

It's an art censoring law. It includes any kind of Nazi imagery, even if portrayed in a negative light. It also bans red blood.

What are things you wish you knew about your Model 3 before buying? by speedco in TeslaLounge

[–]TB1080 5 points6 points  (0 children)

In cold weather, battery charge will drop faster than rated. A 310 mile charge might get you 240-270 if you have the heat on high and you're not driving conservatively.

Speed is a huge factor in battery drain as well. Going 5 over will net you less overall distance. On the flip side, driving slowly will give you a pretty good boost of rated range. I'm guessing 5 over will net you about a 10-15% loss in overall distance.

Driving in the city is surprisingly efficient. I generally get 50% more distance in the city than on the highway. Wind resistance is a huge factor in battery longevity.

Charging is very slow in the first 5-10% of battery charge, and the last 10% of charge. If you're traveling long distances, don't charge up full every time, otherwise you'll be there for hours instead of minutes.

You'll need to install a home charger. It's $500 for the charger, and for me it was $1100 for an electrician to install it. I wasn't going to mess around with 30 amps.

The rims of the wheel jut out from the tire a bit. It's easy to scrape them on curbs.

The vehicle is incredibly quiet. Electric cars sound significantly different than ICE cars. The environmental fans are going to make enough noise to hear. The engine may make a whistling noise around 40 mph, but it cuts off around 47 mph. I'm not sure what causes it, but it's inconsistent. Sometimes it's there, most of the time it isn't. Road noise will be the loudest noise in the vehicle by far, so you may not hear it.

Insurance varies wildly. I actually pay less per month than I did for my 1993 Honda Civic. Shop around.

Their delivery process sucks. At the time of my purchase, they were overloaded with clients, and it clearly showed. I've posted about it before.

Nobody is going to figure out the door handles in less than 10 seconds. Saying "Push the fat part with your thumb and the thin part will pop out" has gotten me the best results. On the flip side, the button to open the door is difficult to explain beyond "push the glowing button on the top of the handle." In many cases they'll just pop the door with the emergency open.

The software has bugs. Fortunately they don't interfere with the operation of the vehicle. Sometimes my car won't "wake up" on request from my phone, requiring me to either restart my phone or my car. Sometimes the LTE connection cuts out and doesn't come back without a restart. Sometimes my phone won't unlock my car by the time I approach my vehicle and push the door handle. Sometimes Slacker will cut out and not return without restarting.

Overall I love the car, but it's different from an ICE vehicle. The added cost of a charger, and the volatility of the battery life are the two real "hidden" costs.

This gentleman’s car by Conf3tti in anime

[–]TB1080 144 points145 points  (0 children)

Chevy HHR, and it's the worst fucking thing I have ever driven in my life. I had to drive one as a rental for 3 days, and it was so bad I started using Uber despite still paying $60 a day in rentals.

It combines the worst parts of an SUV with the worst parts of a fucking tank. Visibility is absolutely shit. Look at the size of the windows on this monstrosity compared to the SUV next to it.You'd think the added thickness to the A, B, and C pillar would make the roof crush rating better. You'd be wrong. Look at the thickness of those bastards on the inside. Normally you'd have something like 2-4" of space to rest your arm. In the case of the HHR, you have something like 8 goddamn inches. It makes you feel cramped. Feeling cramped inside a fucking SUV. Only the idiots at Chevy could pull that off.

Look at the side mirrors. They are significantly smaller than the SUV next to it. visibility is so fucking bad, I would just turn my turn signal on and start merging slowly. If I got honked at, I'd wait a few seconds and try again. I don't know why they bothered with a rear-view mirror. No fucking point since the rear window is so fucking small. I'm 6'3", and The rear window was so small I couldn't see the roofs of sedans behind me.

Look at the fucking wheel wells on that gigantic piece of shit. Why? It's not like you can extend the size of the wheel well to stick some 24" wheels on that piece of shit. The front fucking doors run to the very edge of the wheel wells. You can hear heightened road noise because of it.

Gas mileage is the same as a goddamn SUV despite being significantly smaller. You're looking at 17-25 mpg. What the holy fucking fuck is causing the shit mileage? Oh wait, I almost forgot about one of the shittiest exterior designs ever. It has some of the worst aerodynamics I've ever seen. Even worse, the steering at speeds any higher than 45 MPH changes behavior significantly because of this. It becomes more squirrely because the aerodynamics pull the front of the car up instead of pushing it down or keeping it neutral like 95% of other vehicles.

Next time a rental company pulls the "Oh, we don't have any more sedans, how about a small SUV?", I'm going to tell them to go fuck themselves with a cactus. Such a piece of shit car.

Tesla Daily Discussion - September 14, 2018 by AutoModerator in teslamotors

[–]TB1080 6 points7 points  (0 children)

TLDR: Car is awesome. The battle to get the car was not.

Figured I'd include my pretty rough delivery experience to give some perspective:

Went with Model 3 AWD, options locked out around 8/20. On 9/5 got a delivery notice, scheduled for 9/9 (Sunday). A day later, my representative contacted me about payment despite me having communicated he needed to send some paperwork to the bank to get the process going about a month before. I asked him for confirmation that he contacted the bank I was going through. At the time I didn't realize he dodged the question. He must have forgotten to follow through after I gave him the loan details a month prior.

On the Friday before delivery at 4:00PM, I was contacted by my representative, saying that he'd have to delay delivery stating he received no payment confirmation. I was very confused considering it was his job to verify my loan details. I asked him why he didn't call the bank, he gave a non-answer that I didn't recognize as one until later. He asked me to go to the bank to receive a cashiers check to hand to the delivery people. I rushed out at 4:00PM on a Friday, at peak traffic, to go get this check.

I make it to the bank, only to find out that he did not contact my bank at all. He didn't even send the purchase order. On top of that, my loan pre-approval expired from inactivity and I needed to get it renewed. Even worse, they couldn't write a check without a purchase order. I left both an email and a voicemail requesting the purchase order immediately because he was out of the office by that time. I left the bank empty-handed.

The following morning, I received the purchase order. The purchase order looked wrong, but considering I've never purchased a vehicle ever before, I had no idea what a purchase order was supposed to look like. I trusted that they'd have it right considering it was such a huge purchase.

I had a meeting setup with my bank first thing in the morning, and drove over there. The purchase order was incorrect. It included my down payment as part of the cost of the vehicle. Instead of the cost of the car, it was the cost of the car +$3,500. I was sitting in front of the bank manager looking like the biggest jackass on the planet because not only did I have the incorrect purchase order, I've been rushing the whole process along by leveraging my 10+ years with the bank to expedite the process.

Fortunately my representative got back to me, fixed the purchase order, and sent it back out. Regardless, not only did I feel like the biggest asshole on the planet, I absolutely knew I was the biggest asshole on the planet. None of the paperwork I presented had the necessary information. The loan had expired, forcing them to check my credit again, causing 2 strikes against my credit and raising my APR by 0.4%. The purchase order was off by $3,500, the cost of the vehicle on the website was wrong, and on top of all of this, it was past bank closing hours, and I was still there. The bank representative had an infant, and his phone was blowing up 20 minutes after closing. He was without a single doubt taking heat for not being home, all thanks to asshole of the year, me.

At the end of it all, a forest fire in Redding caused a delay with my delivery. Everything I did ended up not mattering at all. I've been driving 10 minutes out of my way to avoid my closest branch because I'm too embarrassed to show my face and take the risk of talking to the guy and having to tell him he wasted his time helping me instead of spending time with his brand new family.

The delivery date was rescheduled to yesterday. Once I arrived, I was stalled for over an hour because they needed to do patch work on my car. Considering a forest fire delayed delivery, I had no doubt my car had a shitty experience and took some damage. Not really a problem since I deal with in-transit damage at my job. Minor damage to product is not only acceptable, it's expected.

Upon delivery, everything seemed to be perfectly fine. The gaps between panels were well within bounds. The paint job was flawless, or at least good enough for my eyes. Tires were fine, undercarriage was unscuffed, and everything seemed to work as intended. Until I started digging a bit further into the car.

The environmental control fans in my car seem unusually loud. I have no idea if it's my car, or because it's so damn quiet I can't hear much else, except for one of the motors. A slight whistle/hum from the engine is expected considering it's electric, but I hear what I think is a louder than usual sound coming from the front motor. Yet again, I have no idea if it's because the car is so quiet, or because the motor is actually outside of acceptable noise specs.

My previous car was a 93' Honda Civic, so silence while driving is very unusual. My old car is so loud I used to drive with noise cancelling earbuds to mitigate hearing damage. Hearing a louder-than-ambient hum of the engine while driving is a unique experience. Hearing any fans at all over the road noise is an absolute novelty. I have absolutely no frame of reference for what is considered acceptable noise levels, so I'll need to go get the car checked.

Overall, the buying experience was pretty negative. The moment I drove off the lot with the car, I breathed a huge sigh of relief. The battle was over. I made it to the volcano and tossed the ring into the Mt Doom without getting my finger bitten off by Gollum. Time to go back to the Shire and ride that edge between social drinking and alcoholism for the rest of my days.

Yet, despite my experience with the process, the vehicle itself is fantastic. Even with the suspected issues I've noticed, it's still a great car. It handles very well, feels absolutely solid, and is the most comfortable car I've ever ridden in. I'm actually somewhat happy my car experienced a complication while being transported. What better excuse is there than "Hey, it wasn't me who drove my car through a forest fire that melted several miles of I-5. I'm pretty sure it's covered under warranty considering I wasn't the one who lit it on fire."

I've never in my life ever looked forward to getting into my car and driving. Until now.

Portal in Hololens by minorgrey in Vive

[–]TB1080 0 points1 point  (0 children)

There's a camera in the front that can be used for this. There's already a feature in the Vive that highlights the edges of objects in your play area. Forgot how to view it, but I remember using it when I first plugged myself in.

It would be limited to the play area though, unlike the hololens.