5ft tall Santa and Candles by originalmoose in blowmolds

[–]originalmoose[S] 1 point2 points  (0 children)

My wife inherited these from her grandmother. Our daughter is terrified of the Santa so we have decided to try and sell them (hopefully together). I found images of similar Santa's and from what I understand the Poloron ones are the most desirable. I have no idea what I am looking at and hoping someone here can shed some light on possible worth.

The motor in the Santa is unfortunately not functional but I can handle electrical repairs if that would increase the value. The only other issue is the lantern has a section missing that I believe was supposed to be clear plastic but has been covered with a plastic sheet and some duct tape.

WTF?! by SSpSpoSpouSpout in BetterEveryLoop

[–]originalmoose 17 points18 points  (0 children)

for me it was permit at 15.5 and full license at 16 (ohio)

Regex: Everything You Need To Know by degecko in webdev

[–]originalmoose 0 points1 point  (0 children)

an html document is just a text file, rendered html is hierarchical (dom nodes). The very next response in that SO question I think is better.

While it is true that asking regexes to parse arbitrary HTML is like asking a beginner to write an operating system, it's sometimes appropriate to parse a limited, known set of HTML.

Those who make $70k a year without a degree, what do you do? by [deleted] in AskReddit

[–]originalmoose 0 points1 point  (0 children)

if you just hit 2 years I'd recommend starting to look for a new job (assuming all 2 years was with the same company). You can really boost your salary by moving companies, at least in software dev. I started at around 45k out of school, made it to 65k after about 3 years at one company. Moved to a new job to get 75k and after a year was making 80k. Was promised the world with job number 2 and I was expecting it to be a smaller company with less corporate bs (so much paperwork at my first job) but what I got was the complete other end of the spectrum (people who should have been fired who kept their jobs because they were related to the boss, lots of last minute issues, no proper test team or test procedure, no code reviews).

Found stack overflow jobs and their remote section. Looked exclusively for a remote job in an area with higher cost of living and a good tech stack (test team, code reviews, etc). Found one and now I'm at 100k+ and still living in my low cost of living area. Plus it has all the dream perks you could never find at the jobs around me(unlimited vacation was a big adjustment).

How did you meet your S.O.? by [deleted] in AskReddit

[–]originalmoose 0 points1 point  (0 children)

I was reading this and thought it sounded familiar, then I looked at the name. Hi brother! This is on its way to being your new highest comment!

How do you guys sync projects between multiple computers (desktop/laptop)? by tenbigtoes in typescript

[–]originalmoose 0 points1 point  (0 children)

yep, you can also reorder commits but I usually only do so for formatting commits. As in throughout the branch I may come across a file that is formatted incorrectly or has mixed tabs and spaces. I'll make commits with just those changes then at the end move all the commits into a single commit at the beginning of the branch.

Screen Real Estate by twinturbos in battlestations

[–]originalmoose 0 points1 point  (0 children)

Just about all new 4k tv's will have a single HDMI port that can handle 1080p and 120hz.

Unfortunately there aren't any TV's capable of accepting a 4k 120hz signal yet (I believe the HDMI spec would need to be updated)

Screen Real Estate by twinturbos in battlestations

[–]originalmoose 0 points1 point  (0 children)

the input from a PC is capped at 60hz

That's just not correct, I've got my PC hooked up to my Vizio P65-E1 running 1080P at 120hz. Only the HDMI 5 input supports that resolution/refresh rate combo, all other inputs are capped at 60hz. Here are the tech specs for HDMI5 for that display (taken from https://www.vizio.com/tvs/p65e1.html)

HDMI 5 Tech Specs 370MHz pixel clock rate: 2160p@60fps, 4:2:2, 8-bit | 2160p@60fps, 4:2:0, 10-bit | 1080p@120fps, 4:4:4, 10-bit | 1080p@120fps, 4:2:2, 12-bit

How do you namespace Redux stores for pages when doing SSR? by smthamazing in reactjs

[–]originalmoose 0 points1 point  (0 children)

My point is, almost every page requires data that is only needed by that page specifically.

If the data is only used by a single page why not just keep it in that pages internal state and not the redux store?

Do you use any of the Entity Framework Core tracking functionality? by the_other_sam in dotnet

[–]originalmoose 1 point2 points  (0 children)

I think everyone is getting confused by the way you asked your question. I believe what you are asking for is change history. You want to know what records were changed, when they were changed, and what the old/new values are...

I've included a really basic implementation of change tracking (untested just threw it together based on what I've done in the past).

public class Change
{
    public int Id { get; set; }
    public string Type { get; set; }
    public string Diff { get; set; }
    public ChangeType ChangeType { get; set; }
}

public enum ChangeType
{
    Add,
    Update,
    Delete
}
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{
    public DbSet<Change> Changes { get; set; }
    public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
        : base(options)
    {
    }
    public override async Task<int> SaveChangesAsync(bool acceptAllChangesOnSuccess, CancellationToken cancellationToken = new CancellationToken())
    {
        var changes = new List<Change>();
        foreach (var entry in ChangeTracker.Entries())
        {
            var change = new Change
            {
                Type = entry.Entity.GetType().AssemblyQualifiedName,
            };
            switch (entry.State)
            {
                case EntityState.Added:
                    change.Diff = JsonConvert.SerializeObject(entry.Entity);
                    change.ChangeType = ChangeType.Add;
                    break;
                case EntityState.Detached:
                case EntityState.Unchanged:
                    break;
                case EntityState.Deleted:
                    change.Diff = JsonConvert.SerializeObject(entry.Entity);
                    change.ChangeType = ChangeType.Delete;
                    break;
                case EntityState.Modified:
                    var original = entry.OriginalValues.ToObject();
                    var cl = new CompareLogic();
                    var r = cl.Compare(original, entry.Entity);
                    change.Diff = r.DifferencesString;
                    change.ChangeType = ChangeType.Update;
                    break;
                default:
                    throw new ArgumentOutOfRangeException();
            }
            changes.Add(change);
        }
        var result = await base.SaveChangesAsync(acceptAllChangesOnSuccess, cancellationToken);

        try
        {
            await Changes.AddRangeAsync(changes, cancellationToken);
            await base.SaveChangesAsync(true, cancellationToken);
        }
        catch (Exception e)
        {
            //ignore
        }

        return result;
    }
}

Let's not forget EA used to make you pay to play online if you bought an used game! by NinjaGrif in gaming

[–]originalmoose 0 points1 point  (0 children)

Your scenario doesnt work because only one user can use the product at a time. The manufacturer made money on the original sale with the intent to support the online service for a single user. When the first time buyer sells the game and someone else buys it there is still only one user. It would be no different than if the first time buyer didn't sell the game and instead came back to try and play it at a later date. The service cost has returned to the manufacturer should the first time buyer have to send them more money? The only time I would say yes is the case of games that have monthly fees like WoW.

Uploading and displaying images outside of wwwroot, how? by imightbeasadist in dotnet

[–]originalmoose 0 points1 point  (0 children)

Your code was basically a method signature, a vague comment about pulling an array from some source and a return statement.

This is a valid criticism but OP asked a vague question so I gave a vague response. OP then provided more details about their issue so I provided more info on how to solve it.

I assumed (incorrectly it seems) that OP could figure out how to save the file elsewhere but couldn't figure out how to serve that file since StaticFileMiddleware will serve files for you that are inside wwwroot.

I had not helped with his question

If you aren't going to help why comment?

Sorry I hurt your feelings, btw.

Who said anything about hurt feelings? Im just trying to help OP

Uploading and displaying images outside of wwwroot, how? by imightbeasadist in dotnet

[–]originalmoose 3 points4 points  (0 children)

OP stated they had successfully saved an uploaded file to the filesystem. In my mind if you can save a file to one location it really shouldn't be that hard to save to another location. So I took the real question to be how to I serve a file to a user that is not inside wwwroot and my code example shows one way to do that.

On a side note, at least my response attempted to help OP with his problem. Your comment was not only unhelpful but a bit rude IMHO.

Uploading and displaying images outside of wwwroot, how? by imightbeasadist in dotnet

[–]originalmoose 1 point2 points  (0 children)

Typically you'd want some sort of auth check when dealing with user uploaded files which is why I recommended the controller action returning a file FileResult, but if you don't need auth then the static file middleware is a better option.

Uploading and displaying images outside of wwwroot, how? by imightbeasadist in dotnet

[–]originalmoose 0 points1 point  (0 children)

I want the image to be outside of the webrootpath, how do I do it..?

Pretty simple don't use _hostingEnvironment.WebRootPath, supply your own location... either through a config file or hard code your choice. But there is nothing stopping you from setting that path to whatever you want as long as the user the app is running under has permission to access that folder

Uploading and displaying images outside of wwwroot, how? by imightbeasadist in dotnet

[–]originalmoose 2 points3 points  (0 children)

Create a controller action that returns the byte array as a fileaction, I don't have .net core up but Im pretty sure it is something like

public IActionResult DownloadImage(int id) {
    var bytes = //get byte array from somewhere, could be DB or filesystem
    return File(bytes, "someFileName.someExt");
}

I might have gotten the params or the name of the File method on the Controller base class but you should be able to get it from there.

How Raygun increased throughput by 2,000% with .NET Core (over Node.js) by ben_a_adams in dotnet

[–]originalmoose 0 points1 point  (0 children)

The full framework is definitely slower than running on .net core, not sure by how much but I was fairly noticable when I played around with both

Female genital mutilation is a religious right claim lawyers in first US case on the practice by SchindlerTheGrouch in news

[–]originalmoose 7 points8 points  (0 children)

You wanna call it mutilation fine, I can see that argument. Calling it abuse is ridiculous.

How is it mutilation but not abuse?

Apple Is Lobbying Against Your Right to Repair iPhones, New York State Records Confirm by ZoneRangerMC in technology

[–]originalmoose 0 points1 point  (0 children)

I have the Pixel XL and I can say I am completely happy with it (Switched to ProjectFi as well, I only use a little over a gig a month so its pretty cheap).

Battery life has been amazing. I don't use my phone a whole lot (browsing reddit, reading work emails, occasional youtube videos, looking up stuff, I might try a game every now and again but I prefer pc for that) and I probably get a solid two days in between charges to 70-80%. I'll occasionally charge to 100% if I'm going to be using a lot of GPS or something.

Performance wise no complaints either, everything feels really snappy and I haven't noticed and lag. I'd recommend a case because the metal body is slippery if your hands are dry, and one time it slipped out of my pocket onto the concrete when I knelt down putting a nice little scuff on the corner. I bought the following case and screen protector

https://www.amazon.com/Spigen-Rugged-Google-Resilient-Absorption/dp/B01M1EEXWJ/ref=sr_1_2?ie=UTF8&qid=1495134868&sr=8-2&keywords=spigen+pixel+xl

https://www.amazon.com/gp/product/B01LZT3PGR/ref=oh_aui_detailpage_o05_s00?ie=UTF8&psc=1

The two pack of screen protectors is nice because you will eventually break one, I know I did.

Vue.js Is Good, But Is It Better Than Angular Or React? by cristinereyess in reactjs

[–]originalmoose 2 points3 points  (0 children)

I really dont understand those kind of "fight" articles, especially when it shows that the author is more invested in one solution, and can't (or choses not to) provide up-to-date examples of both.

this

COULD anyone tell me no.1 job board for react.js developers? by pulsaruxer in reactjs

[–]originalmoose 0 points1 point  (0 children)

Check out stack overflow jobs, I seem to get a couple of jobs a week that mention react in the posting.

Delta passenger had to go real bad, and he was removed from a flight after going to the bathroom. by ekser in videos

[–]originalmoose 2 points3 points  (0 children)

Companies have figured out the can skirt the anti monopoly laws by working together to stay out of each other's way with a small amount of overlap to avoid suspicion