|
EAT THE EGGS RICOLA posted:I am using PDQ Deploy to do this, but the user needs to be logged in (the packages make a ton of changes to HKCU). Everyone I work with is a Pretty VIP Princess and this has to be done after hours since the package requires a few reboots and it needs to be logged back in again after each reboot. Maybe try loading the user's HKCU in an administrative account's environment? I'm not familiar with PDQ Deploy, so that may be the limitation, but you could script loading the user's hive and then applying changes that way.
|
# ? May 22, 2014 18:59 |
|
|
# ? May 10, 2024 16:14 |
|
So the exchange server died, that was neat. Now its being rebuilt. Boss has been here since 12:45 AM working on it, I never got a single alert, I feel bad for the guy, and I can do gently caress all about it at the moment. I guess... back to reimaging some machines.
|
# ? May 22, 2014 18:59 |
|
mewse posted:At least you have your stapler? I don't actually have one! I'm on the verge of being obliged to drive across town to turn on the monitors for someone's small video art installation. They told me yesterday that after a power issue the installation was off. I told them to verify that the monitors are on. Now there's an executive visit there tomorrow morning and it's an emergency and they're refusing to turn the goddamn monitors on because they insist it's my responsibility. I hate this place so much now.
|
# ? May 22, 2014 19:06 |
|
Correct me if I'm wrong, but I remember back in the day you had escaped a hell hole (the one with Tony) and found yourself in an amazing company. Is this the company you're with now?
|
# ? May 22, 2014 19:11 |
|
None of you can hold a candle to Fizz Buzz Enterprise Edition
|
# ? May 22, 2014 19:15 |
|
Santa is strapped posted:Correct me if I'm wrong, but I remember back in the day you had escaped a hell hole (the one with Tony) and found yourself in an amazing company. Is this the company you're with now? Yup. It's a long story but boils down once again to terrible management. The user just emailed me that the video installation is working fine but that no one there touched anything.
|
# ? May 22, 2014 19:22 |
|
evol262 posted:Programs and timings. To be fair, with python you are loading the interpreter. I don't know if you have this is compiled or not, but there is a bit more overhead. The C version is just the raw machine code (plus several c runtimes).
|
# ? May 22, 2014 19:23 |
|
Dick Trauma posted:I don't actually have one! Wow. Sounds like some of the users where I work.
|
# ? May 22, 2014 19:24 |
|
GanjamonII posted:Yeah, upon further conversation it looks like it was a misunderstanding of scope in the first place rather than scope creep. I'll do what I can to deliver, but there is no way the whole thing is going to be ready. If it's a matter of an extra hour or two during the week to get it done that's one thing. If the difference in scope is as great as you say then you should by no means work weekends or holidays to finish this, because it's still not going to get done in the next week and a half. A failure to plan on your PM's part does not constitute an emergency on yours. Also you have learned a very important lesson, namely to get a spec and an approval in writing. If they try to dick you around then show them what they approved when you deny their request for enhancements.
|
# ? May 22, 2014 19:35 |
|
HFX posted:To be fair, with python you are loading the interpreter. I don't know if you have this is compiled or not, but there is a bit more overhead. The C version is just the raw machine code (plus several c runtimes). Oh, I'm not saying Python's slow. I mean, it's slow in comparison, but my point was that 100ms is an order of magnitude faster than 4 seconds, even if that 100ms is two orders of magnitude slower than C. But it's really an unfair comparison unless we were trying to deal with a much larger dataset, since the principal limitation of the C version's execution may well be process invocation, ld.so, and other things mostly out of the binary's control. I just wanted to show that the Python version could also be fast, not that C's faster. Go highlights the difference: it's 1-2ms compiled. 110ms interpreted. Things that piss me off: Recruiters. Stop calling me. No, you did not see an updated resume from me with an address 2000 miles away.
|
# ? May 22, 2014 19:40 |
|
evol262 posted:The same in C: I wonder how much faster it would be to calculate a*a (and for the hell of it, b*b) once per for loop instead of once per c value: C code:
|
# ? May 22, 2014 20:32 |
|
Since we're all talking about python and a few other programming languages: I'm currently in desktop support, I'd like to move up to system administrator. What'd be useful?
|
# ? May 22, 2014 20:40 |
|
Dr. Arbitrary posted:I'm currently in desktop support, I'd like to move up to system administrator. I would recommend PowerShell, bash, ksh, Python, and maybe Perl. It all depends on what kind of environments you'll be touching, but knowing any of those will make your job easier through automation.
|
# ? May 22, 2014 20:48 |
Inspector_666 posted:I've never worked at a place that had an org chart. I just realized how funny it is that we're supposed to draw local org charts and put them up on a board where I work. There's a template, it's basically this: Boss at the top, other three or four personnel on the lower row. In case we forget, I guess.
|
|
# ? May 22, 2014 20:49 |
|
3 pages and all solutions are still wrong (hint: a=-61500, b=992, c=61508)
|
# ? May 22, 2014 20:55 |
|
M31 posted:3 pages and all solutions are still wrong (hint: a=-61500, b=992, c=61508) Wait, they're supposed to be integers?
|
# ? May 22, 2014 21:05 |
|
You guys realize you can do that with just one loop, right? You've got three variables and two equations. Let c = 1000 - (a + b), then substitute that into the squares equation and solve for b. You get b = 500 * (1000-2*a)/(1000-a). Then you just have to compute this for each a, and if you get an integer result you've found a solution. code:
|
# ? May 22, 2014 21:43 |
|
I am finishing up all the projects I've been working on before I start my new job next week. Today I am finishing up a major project that will take me until relatively late tonight and that has to be done as fast as possible. One of the lawyers just asked me to stop what I am doing to go take apart the computer at reception so that they could turn it into a bar.
|
# ? May 22, 2014 21:48 |
|
Dr. Arbitrary posted:Since we're all talking about python and a few other programming languages: Totally depends on if you want to go Windows or *nix. If Windows definitely learn Powershell, and though it's not really scripting per se, I would familiarize myself with the AD command line tools as well (dsquery etc.). It could be argued that VBScript could be useful when dealing with legacy scripts, but I wouldn't spend a tremendous amount of time with it. Never ever ever write a new script in VBScript. VBScripts with create dates later than around 2007 make Baby Jesus cry.
|
# ? May 22, 2014 21:49 |
|
EAT THE EGGS RICOLA posted:One of the lawyers just asked me to stop what I am doing to go take apart the computer at reception so that they could turn it into a bar. That sounds mission critical, you should definitely make that your primary action item
|
# ? May 22, 2014 21:51 |
|
Alien Arcana posted:You guys realize you can do that with just one loop, right? You've got three variables and two equations. The real problem with this is that while it might work algebraically, the legibility is awful, and it's virtually impossible to tell what it's doing if you scroll past this in the codebase. It also doesn't work, but y'know.
|
# ? May 22, 2014 21:59 |
|
Dr. Arbitrary posted:Since we're all talking about python and a few other programming languages: If you want to do SysAdmin in the *nix world, learn bash and vi, as well as the shell and editor you actually like(every *nix system has bash and vi, everything else is hit or miss). I would also suggest knowing ipmitool so you know how to query the server hardware directly(not all systems use it, but it is the closest to consistent). Everything else is a thing you will have to learn new at every job, since every environment is different(for example, my company has AD layered on top of ldap, on top of NIS, and any given account modification might have to go through any and all of those layers)
|
# ? May 23, 2014 12:05 |
|
evol262 posted:
code:
|
# ? May 23, 2014 12:57 |
|
theangryamoeba posted:I ran your code and the Clever method does not meet a < b < c Python code:
RFC2324 posted:If you want to do SysAdmin in the *nix world, learn bash and vi, as well as the shell and editor you actually like(every *nix system has bash and vi, everything else is hit or miss). I would also suggest knowing ipmitool so you know how to query the server hardware directly(not all systems use it, but it is the closest to consistent). Bash is not required to be present on non-Linux systems (and even some Linux systems). Ksh is more common. Learn sh scripting. Better, learn python, perl, go, ruby, or any other language you can for scripting (large standard library is nice). Python is probably best these days because it's very common and "batteries included", but eh.
|
# ? May 23, 2014 15:19 |
|
Losing my poo poo just a bit this morning and could use some help if someone has seen this before. Exchange server took a poo poo, just a day or two before migration to our new SAN. Good news, we rebuilt it on the new SAN, moved the datastores (after they were marked dirty and subsequently handled) and got everything rolling again this AM... at least mostly. Desktop users are now getting mail once again, but for whatever reason, a bulk of mobile users get nothing; no messages, errors, anything. Just blank. Tested connectivity with testexchangeconnectivity.com which showed mostly everything being correct with the exception of a 401 error which seems to reference something about IIS virtual stores and authentication.
|
# ? May 23, 2014 15:32 |
|
GoatShaver posted:IIS virtual stores and authentication. Don't pretty much all mobile clients use EWS? Is your OWA working?
|
# ? May 23, 2014 15:46 |
|
GoatShaver posted:Losing my poo poo just a bit this morning and could use some help if someone has seen this before. Can you browse to https://mail.yourdomain.com ? We went through something similar a while back with an Exchange migration. For the phones I had to delete and recreate the account and then enable inheritable permissions: http://social.technet.microsoft.com...um=exchange2010
|
# ? May 23, 2014 15:59 |
|
GoatShaver posted:Losing my poo poo just a bit this morning and could use some help if someone has seen this before. Check all you exchange services. I would bet that something is off there. I ran into an issue where services that were set to automatic refused to turn on even after a reboot and had to be manually turned on. Exchange only has what... 25 separate services?
|
# ? May 23, 2014 16:04 |
|
Things NOT pissing me off: Today everyone seems to be starting their long weekend early. My new long commute sucks, but there wasn't even a hint of traffic this morning.
|
# ? May 23, 2014 16:06 |
|
Pissing me off so much today is getting WSUS to play nice with SCCM. System Center just doesnt see the updates no matter what I seem to do. How has pushing out updates somehow gotten harder?
|
# ? May 23, 2014 16:12 |
|
evol262 posted:It's not supposed to, since Euclid's Formula does not. You can trivially swap the variables if you care. Any met condition will necessarily have a larger than b or vice versa, so check. My question is why is Python so much slower brute forcing the equation? It's 3 compounded for loops. I'm not an expert in algroithms, and I know it can be made to be more efficient as you have shown, but it's just three for loops.
|
# ? May 23, 2014 16:16 |
|
evol262 posted:Bash is not required to be present on non-Linux systems (and even some Linux systems). Ksh is more common. Learn sh scripting. Better, learn python, perl, go, ruby, or any other language you can for scripting (large standard library is nice). Python is probably best these days because it's very common and "batteries included", but eh. Bash isn't required, but it typically is installed. Ksh is more common on older systems, but I have seen some more recent linux boxes without it and I haven't even seen an option to install sh in years on builds I have done. And if you have the luxury of installing some programing language across your farm, then you are certainly not a new sysadmin. Python might be best of what you listed, but perl is by far more commonly installed on systems, but even it is not guaranteed unless that box is running something that requires it. I guess, ultimately, a unix admin just needs to be better at learning a new environment than a windows admin, since there is such a huge amount a variance in what you might encounter on any given box(even within an org, if the org is big/old enough) so just learn to be able to figure it out as fast as possible.
|
# ? May 23, 2014 16:37 |
|
I just had somebody from an enterprise helpdesk tell me to "just Google" for their Citrix SSL cert, and then gave me lip when I said I wasn't going to do that.
|
# ? May 23, 2014 16:40 |
|
ratbert90 posted:My question is why is Python so much slower brute forcing the equation? It's 3 compounded for loops. I'm not an expert in algroithms, and I know it can be made to be more efficient as you have shown, but it's just three for loops. range() instead of xrange() generates the entire list in memory as soon as it's invoked instead of using a generator. Python doesn't unroll loops, which itself has an enormous influence on performance. Python is dynamically typed, which makes bytecode optimization hard, and the interpreter itself would rather err on the side of correct behavior than performance. This isn't to say that all interpreted languages are slow. But, as a rule, interpreted dynamic languages are slow. Perl is half the speed of Python on "just three for loops". That said, Go is also half the speed of a better algorithm. The real answer to your question lies in understanding how complexity affects runtime. I'm not the biggest big O weenie in the world (I'd rather have legibility), but I don't do the kind of development where that really matters. Processors are fast, and compiler optimizations are good these days, but execution time is incredibly important. For fun, pick another pythagorean triple. You can generally multiply all parts. So 3^2+4^2=5^2. This is also true for 30. And 300. And 3000. 12000 (3000 + 4000 + 5000) will be the triple you're aiming for. Brute force it in C. I'll wait. (Note that there are actually multiple combinations which fulfill a+b+c=12000, a^2+b^2=c^2, but the naive python algorithm finds them all in 6 seconds, for comparison) RFC2324 posted:Bash isn't required, but it typically is installed. Ksh is more common on older systems, but I have seen some more recent linux boxes without it and I haven't even seen an option to install sh in years on builds I have done. And if you have the luxury of installing some programing language across your farm, then you are certainly not a new sysadmin. I guess I tend towards bash on Linux, ksh on everything else. I've never seen bash on Solaris, AIX, or HP-UX. Likewise, I don't see ksh on Linux. Hence the recommendation to learn sh, and use a real language if you have to do anything more complex. ksh and bash will both parse sh syntax fine, without getting into weird bash-isms with regexes or differences between ksh and bash arrays. If you're on an EL distro (~65% of the Linux market), Python is guaranteed to be there. Perl will probably be there, too, but Perl's problematic for new admins for a variety of reasons (dependence on CPAN, reliance on regular expressions), even if the syntax is similar to shell. But if you don't know shell, Perl doesn't necessarily have a lot going for it (unless you're on proper UNIX or something that'll have Python 2.2, if it has it at all). evol262 fucked around with this message at 17:05 on May 23, 2014 |
# ? May 23, 2014 17:01 |
|
Pissing me off: getting pressured into completing our company employee survey since our leadership wants 100% participation. Guess what forcing employees to complete the survey might not result in positive survey results. Not pissing me off: One more meeting before I can cut loose for the holiday weekend.
|
# ? May 23, 2014 17:30 |
|
AlternateAccount posted:Don't pretty much all mobile clients use EWS? Is your OWA working? UFOTofuTacoCat posted:Can you browse to https://mail.yourdomain.com ? Sickening posted:Check all you exchange services. I would bet that something is off there. I ran into an issue where services that were set to automatic refused to turn on even after a reboot and had to be manually turned on. Exchange only has what... 25 separate services? Thanks for getting the gears turning in my head, its much appreciated.
|
# ? May 23, 2014 18:12 |
|
GoatShaver posted:It is, but for some users when logging in, getting a strange account disabled error even though it isn't. Remote manage it then?
|
# ? May 23, 2014 18:19 |
|
evol262 posted:The real problem with this is that while it might work algebraically, the legibility is awful, and it's virtually impossible to tell what it's doing if you scroll past this in the codebase. I didn't test it, so it's entirely possible I screwed up the algebra The basic principle should still work though: c² - (a² + b²) will definitely be some linear function of a, b, and ab, which you can easily solve to get b = R(a), with R some rational function. Then just iterate over a until R(a) is an integer, and you're done. And yes, the code is more obtuse written this way, but you can easily add comments to explain what it means. For instance: code:
|
# ? May 23, 2014 18:27 |
|
Alien Arcana posted:
code:
Blunt answer: Don't write code like this and try to excuse it with comments. Your comment doesn't matter if the code is illegible. Unless you're Carmack writing a game engine or someone working on HPC code, I'd sacrifice speed for readability. Kernighan posted:Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. The simple truth is that the vast majority of developer you'll work with don't have degrees in CS, and have a questionable math background. When you leave that company, get hit by a bus, or whatever, and someone potentially has to modify or port that code, and they may not be competent at algebra, or may naively port it and reproduce an error in the original codebase. Explicit is better, even if marginally slower, and comments are not a substitute for literate code. evol262 fucked around with this message at 19:11 on May 23, 2014 |
# ? May 23, 2014 19:09 |
|
|
# ? May 10, 2024 16:14 |
|
Sickening posted:Remote manage it then? Not sure what you mean - two are logged in currently on that particular box.
|
# ? May 23, 2014 19:18 |