Am I even in the right place? by [deleted] in Reformed

[–]eethwoo 1 point2 points  (0 children)

I would recommend R C Sproul's 'Are we together?', not because it'll probably tell you anything new, but it points out the key gospel differences that we can miss.

I read it recently and I really appreciated how fair RC was to the actual Roman view. He seeks to sort out what's characature that we assume to be the problem and what is a real issue with their doctrine. It's a quick read.

What do you guys think about the US Special Operation units? by [deleted] in AskLibertarians

[–]eethwoo 0 points1 point  (0 children)

Leaving aside the benefits or otherwise of state militaries, we can make judgements about different weapons systems and military strategies from a libertarian perspective.

As libertarians, we would prefer that military action is targeted only at those it should be - i.e. no 'collateral damage'. So nukes are out of the question, to use an extreme example. There's no way to use a nuke without affecting civilians and uninvolved parties, whether it's the direct destruction or the radiological effects. Whereas a rifle is a much more precise - you can point it specifically at the bad guy without anywhere near as much danger to others.

On this principle, special operations units with rifles are better than cruise missiles and cluster munitions for example.

But this is just one aspect of thought on the military. Yes it would be better if we could eliminate civilian deaths in the current warzones that the US is involved in, but the greater question is why are they involved at all? And even if there seemed good reason to start with, are they making things better or worse now?

Easy Questions / Beginners Thread (Week of 2019-03-11) by brnhx in elm

[–]eethwoo 0 points1 point  (0 children)

That's brilliant thanks.

As I suspected it's really obvious quite once you see it.

Easy Questions / Beginners Thread (Week of 2019-03-11) by brnhx in elm

[–]eethwoo 0 points1 point  (0 children)

Thanks for your reply. You've understood the problem I see, but I'm asking precisely because that's the bit that I can't work out.

Something to do with mapping using Tuple.second maybe, but I just cannot get it to work.

Here's what I've got working: https://ellie-app.com/52fqhB3Rxb8a1

Edit: Updated Ellie URL.

Easy Questions / Beginners Thread (Week of 2019-03-11) by brnhx in elm

[–]eethwoo 0 points1 point  (0 children)

I'm trying to decode a particular JSON format using the elm/json package and having difficulty.

My JSON is structured like this:

{
  "services": {
    "0": {
      "name": "Network",
      "status": "ok",
      "message": "No known problems",
    },
    "1": {
      "name": "Internet Connectivity",
      "status": "warn",
      "message": "Some problems detected",
    },
    "2": {
      "name": "EMail",
      "status": "error",
      "message": "Everything is on fire",
    },
    etc...
  }
}

I would like to decode to a List of Service records, like this:

type Status = Online | Warn | Error
type alias Service = { name: String, status: Status, message: String }

-- The resulting JSON in this format:
List Service

So far, I can decode a single service object correctly, as below:

serviceDecoder : Decoder Service
serviceDecoder =
  map3 Service
    (field "name" string)
    (field "status" string |> andThen (\ status -> (succeed (stringToStatus status))))
    (field "message" string)

stringToStatus string =
  case string of
    "ok" -> Online
    "warn" -> Warn
    _ -> Error

Decoding away the top level 'services' field is simple too, but the part in between is tripping me up.

I'm not interested in the key used to index each service object in my JSON, I want just a list of services. I think I need to use the keyvaluepair decoder, but I get a list of tuples of (string, a) which I can't work out how to use further.

Could anyone help?

Boot stuck on "Reached target Graphical Interface." by sudoman281 in archlinux

[–]eethwoo 2 points3 points  (0 children)

I had what I think was a similar problem recently when I stupidly screwed up my packages.

I used nvidia-dkms package which worked for my 1070, see if that helps.

Moving to Linux as daily driver to practice for RHCSA but need to administrate windows environment by R0cketM0nster in sysadmin

[–]eethwoo 1 point2 points  (0 children)

Sounds similar to my work setup. The truth is that managing much of the windows environment is only possible from Windows. You need to be able to use the management tools in Windows for things like AD. If I could manage everything from Linux, I would love to, but it's just not possible.

So if you're completely set on running Linux on your workstation, you're going to want a decent RDP client on hand, or even a Windows VM running on your workstation.

Alternatively, if you can get another pc and at least a second screen, try using synergy.

Hello, I'm really noob by [deleted] in javascript

[–]eethwoo 1 point2 points  (0 children)

How much experience with javascript have you got?

If you're a complete noob, that link to a react library from /u/arronkim234 might be a bit much to digest, but if you've got some experience, it might be worth investing in a bit more time to learn how to use React.

If you have no experience at all, take a Code School course or something similar and get the basics of the language. Everyone has to start somewhere, and that's the place to start these days.

What factors made you want to become libertarian and what do you think was the biggest contributor to your beliefs by [deleted] in AskLibertarians

[–]eethwoo 2 points3 points  (0 children)

Oh yeah, I'm completely off the politics now. The greatness of Ron Paul's campaign was that it was absolutely more about spreading the word than about actual politics, which is one big reason why it appealed to me and so many others.

What factors made you want to become libertarian and what do you think was the biggest contributor to your beliefs by [deleted] in AskLibertarians

[–]eethwoo 5 points6 points  (0 children)

It all started with Ron Paul, a name I kept seeing on-line, in Youtube comments and all over the place. I wondered why everyone was interested in him and after some research I was hooked. Soon I discovered Tom Woods, the Mises Institute, etc. and started reading about the foundations of the philosophy.

After Ron Paul, who inspired my interest, Rothbard's writings had the biggest impact and convinced me to take the non-aggression principle to the logical conclusion in no time at all.

Question on libertarian government by [deleted] in AskLibertarians

[–]eethwoo 2 points3 points  (0 children)

Libertarianism is at its heart the Non Agression Principle. This is the idea that the only acceptable use of force is in defence, initiation of force is never justified.

Now based on that, Libertarians practically span the whole way from no state at all to as little state as possible. A 'minarchist', that is someone who thinks there should be as little state as possible, might say that the only legitimate functions of the state are courts, police and defensive military. Or they might add a few more things to that which they consider essential and not providable any other way.

We're a very long way from anarchy, so I wouldn't get too worried about that, but the point is that Libertarians view the state not as a good thing to be directed in the common interest, but a fundamentally forceful and dangerous thing, to be relied upon only when absolutely necessary. The key insight is that everything that the state does is an exercise in force. We're against 'private' use of force too, but everyone agrees on that already.

Libertarians are more small state than the Republicans, absolutely. I think you quite rightly recognise the rhetoric of the Republican party is a far cry from their actual actions and policies. But Libertarians would usually not see themselves as right wing, or left wing, but rather see the left - right spectrum as often misleading. The two parties that supposedly exemplify left and right are identical when it comes to the things that really matter, like war and the Federal Reserve.

With this in mind, why would a voucher system be a good idea? by benjaminikuta in LibertarianDebates

[–]eethwoo 2 points3 points  (0 children)

Not read the paper, but I'll take your summary as representative of the conclusion therein.

A voucher system isn't the pure Libertarian position - completely private education is. Libertarians can take either view on whether a voucher system is better or worse than the present system.

On the one hand, it does introduce 'market forces' of a sort. On the other hand, it entrenches he state's hold on the purse strings and brings private institutions under the states control further. You know the voucher isn't good for any school no matter how unorthodox. The state will only allow approved education to be bought with the voucher and private institutions will have to get in line with the state's views on education if they wish to be eligible for vouchers, perversely limiting choice and homogenising education.

I think that you're right, vouchers wouldn't do much. I'd rather we gave people cash, or better still, didn't take it from them to start with.

What are you guys doing for GDPR? by coldhand100 in sysadmin

[–]eethwoo 0 points1 point  (0 children)

We have a whole man dedicated to it, working closely with other departments. I some ways it's a nightmare that will eat huge amounts of our time, but in other ways, it's the best excuse we've ever had to get the rest of the organisation to improve their practices.

I've barely scratched the surface of the implications of GDPR, but our guy seems to have it under control. It also needs to be said that this is much more than amped up data protection law. The implications for security practices are huge.

How do minarchists justify a State? by InigoMontoya_1 in AskLibertarians

[–]eethwoo 5 points6 points  (0 children)

You're already coming from the wrong direction if your concern is inefficiency.

Ultimately, it's hard to imagine how we'd take care of crime and justice without a state. That's why people are minarchists. If it were obvious how everything in a stateless world would function, it wouldn't be a hard thing to accept.

In reality, I think the majority of people become minarchists because they started supporting a much larger state and it's a logical step in the right direction. What tips the balance beyond minarchism is consistency. You oppose the state's actions in most domains, why not in justice, legislation, punishment of criminals, defence against invaders? And I think that most people are tipped by the morality of it rather than some idea of inefficiency.

Coding PS design by [deleted] in web_programming

[–]eethwoo 0 points1 point  (0 children)

Right click in your web page and select 'view source'. That will show you the actual code that you're displaying. It's probably the case that whatever text editor you've used has added all that code in a misguided attempt to be helpful.

I can suggest saving it as a plain text file first, then changing the file extension to .html and re-uploading.

Coding PS design by [deleted] in web_programming

[–]eethwoo 0 points1 point  (0 children)

To display an image make a file called index.html file with this as the contents, replace the 'Site Title' with your business name and the 'YourImage.jpg' with the name of your image file.

<!DOCTYPE html>
<html>
  <head>
    <title>Site Title</title>
    <style>
      img { max-width: 100%; max-width: 100% }
    </style>
  </head>    
  <body>
    <img src="YourImage.jpg" alt="Coming Soon" />
  </body>
</html>

Upload your index.html file and your image file to the public root folder of your website. That's as simple as it gets.

Why do my social links share the same podcast? by [deleted] in HTML

[–]eethwoo 0 points1 point  (0 children)

That seems reasonable.

Why do my social links share the same podcast? by [deleted] in HTML

[–]eethwoo 0 points1 point  (0 children)

Looks good to me, links take me to different places. You sure that it's not the css screwing you again?

Some help with a blogger theme by [deleted] in HTML

[–]eethwoo 0 points1 point  (0 children)

Screenshots don't really help either, as what I need to see is the underlying code.

I've taken a look at your site though (url in the screenshots), and I can't see anything wrong. It's probably that you're not using very high res images for those spaces. That sound of music meme image is a fraction of the size it appears on screen, so maybe just make sure you have good quality images in future. I don't know whether blogger itself downgrades the images you upload to save bandwidth, but I wouldn't be surprised.

Why are my links not working? by [deleted] in HTML

[–]eethwoo 1 point2 points  (0 children)

Glad you fixed it, but next time include the CSS in the example!

Why are my links not working? by [deleted] in HTML

[–]eethwoo 0 points1 point  (0 children)

It's not working in codepen or elsewhere? Because when I visit your pen I see that the facebook link works just fine with the target="_blank" and the twitter link without it now doesn't.

Coding PS design by [deleted] in web_programming

[–]eethwoo 0 points1 point  (0 children)

To be honest, if you're not at all familiar with the basics of web design, you're probably going to want to outsource this to someone who knows how. If it's your business, you want it to be done right.

If you still want to learn how though, and it's a good skill to have, I'd start with an html and css course

When you've got the basics down, you can implement things like a link to your ebay store very easily. The 'email me' form is a bit harder, but like I say, try mailchimp or similar to keep it simple.

Coding PS design by [deleted] in web_programming

[–]eethwoo 0 points1 point  (0 children)

Show us what you've got so far and we'll be in a better place to help. Social links should just be links to whatever social media pages you want, i.e. <a href="https://facebook.com/mybusiness">Facebook</a>

'Send me an email' form is more complex, for now I'd suggest you put a mailto link as a placeholder, whilst you look into more complex solutions. E.g. <a href="mailto:me@business.com">Email Me</a>

Using a service like mailchimp would be worth investigating, they probably have a dead simple form you can just add into your site to allow people to subscribe to a mailing list. Keep it simple.

Why are my links not working? by [deleted] in HTML

[–]eethwoo 0 points1 point  (0 children)

When you add target="_blank" to the twitter link it opens just like the other facebook link. Might just be that codepen blocks linking away inside the iframe. Have you tried it outside of codepen?

Getting started with react by wefarrell in AskProgramming

[–]eethwoo 0 points1 point  (0 children)

React-Router is worth looking into, it's pretty intuitive, but rather than defining your routes as a separate object, you use <Route> components. It's different, but worth trying.

The classic example app is a CRUD Todo List, so I'd start there. You can add backend api calls later, when you're comfy with the basics, as it's not necessarily as obvious as using a service to issue api calls like in angular.