Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
User Journal

Journal Journal: FizzBuzz in Swift

The following is my prepared answer for anyone who asks me this stupid fucking question in any interview in the future.

extension Int
{
  func modBool(modulus: Int) -> Bool
  {
  return (self % modulus).boolValue
  }
}
 
for x in 1...100
{
  print((x.modBool(3) ? "" : "Fuck ") +
    (x.modBool(5) ? "" : "You") +
    ((x.modBool(3) && x.modBool(5)) ? "\(x)" : ""))
}

-jcr

User Journal

Journal Journal: 15 minutes of uselessness 5 5

Every day at about 10:45 AM central my Windows 7 computer at the office grinds to a halt, and trying to use the computer is an exercise in absolute frustration. Windows are slow to gain focus, tabs don't change, even typing has a delay that I haven't seen since typing on a BBS with a 300 baud modem decades ago. The weirdest part is that when I try to alt tab to a different application during this, the window I'm trying to get to will actually completely disappear (showing the desktop underneath) for a couple of seconds then reappear as if nothing was wrong. Sometimes the entire monitor goes black and starts to redraw a little bit at a time.

Task manager shows svchost.exe sucking up 800+MB of RAM (on this paltry 1GB system). Even listing the processes and services by PID, it's impossible to tell what's going on, the PID of this svchost.exe process is listed on 15 different services: wuauserv, winmgmt, themes, shellhwdetect, sens, schedule, profsvc, mmcss, lanmanserver, iphlpsvc, ikeext, gpsvc, browser, bits, and appinfo. I'd like to say that I assume it's Windows Update causing this (isn't it always?), but windows update is scheduled to download and install updates at 3AM (and the computer is left on overnight), so either one of those other services is going haywire or Windows 7 hasn't got a clue what time it is.

Any ideas on figuring out what's going on, or is it time to give this thing the ol' reboot reformat reinstall?

User Journal

Journal Journal: Strange SQL Server 2014 behavior 7 7

I have a Select Statement that returns 4 rows. When used in a stored procedure as input to an Insert Into, though, it was returning five rows. I commented out SET NOCOUNT ON; which is added by the SQL 2014 template. It then returned 4 rows. To test that was what was really going on, I uncommented out SET NOCOUNT ON; and it is now returning 4 rows properly.

I made no other changes.

Anybody else ever run into anything like this??

User Journal

Journal Journal: Two minutes of euuugh 2 2

Chrome's new bookmark manager is definitely a poster child for "half-ass it then push it to the masses". It seems to be working hard to almost replicate the Windows 8.0 Metro interface that everyone loved down to the "checkmark a tile to open the menu".

Tips:

If you want to make a new folder, go to the folder you want it to be in and press the NEW button on the left outside of the folders, there's no button for it on the right inside the folder (but there is a button to delete the entire folder from inside the folder).

If you want to drag items into your new folder, drop them quick. If you hesitate Chrome decides that you are re-ordering the items and you want the bookmark to go before the folder even though your mouse is directly over the tile.

If you have nested folders, opening a subfolder seems to randomly display all the elements in the center of the screen where you can't click on anything because its all on top of each other. Sometimes. There's no tree view of nested folders. Top level folders are on the left, after that you have to drill down individually.

No right clicking. Haven't you heard that there's no way to right click on a tablet?

When you checkmark a folder you don't get the option to edit its name or description. You have to open the folder then rename it from the inside.

User Journal

Journal Journal: When did Net Neutrality change? 26 26

As late as last year, I remember Net Neutrality being a libertarian free market concept- preventing a crony corporate takeover of the Internet. Now that it is being implemented by the FCC, it has suddenly become a crony corporate (Democrat Brand) takeover of the Internet, that all good libertarians should oppose.

I haven't had political whiplash like this since the Catholic Church went from those nice monks doing AIDS research and running hospice care centers to those bigots who want to keep THOSE people from marrying.

User Journal

Journal Journal: Found at a Catholic site 39 39

The legal impossibility of a Christian polity in America is formally declared in the First Amendment of the U.S. Constitution. The so-called 'free speech' and 'free exercise' clauses of the First Amendment are purely secular mandates. They are a rejection of the Catholic notion of the common good, mandating that there be no restraint whatsoever on things that damage souls and ultimately destroy the State itself. They grant as lawful precisely what many popes have called unlawful: unconditional freedom of thought, of speech, of writing, and of worship -- as if these were so many rights given by nature to man. The language of the First Amendment reflects the Protestant-borne, Enlightenment-bred faith of the deistic Framers in the ability of unaided human reason to define and sustain liberty apart from Trinitarian Truth; that is, without a cooperative effort by the Church and the State. Thus, all manner of violations of natural and divine law, including the "right" to murder children in the womb, and the coming "right" to "marry" someone of the same sex, are found lurking in the secular mandates of the First Amendment. The true Church foresees these errors. Oddly enough, the Secular State itself will not be able to endure its own mandates.

User Journal

Journal Journal: Final Thoughts at End of Contract

Things that were not explained adequately upon conversion from CW to ICE.

  1. Bonuses- it was thought by my management that QPB applied to all blue badge employees including ICE. If I had known I wasn't going to get bonuses, I would have asked for higher base pay.
  2. Vacation Time- MUST be taken while still an employee, and unlike what the recruiter who wrote my job offer told me, cannot be used to extend your final week. Any unused vacation time will be lost at end of contract, by policy. In addition, apparently you lose it at the end of the year, I really should have taken WW52 off, then the sting would not be so bad now.
  3. ICE as a stepping stone to full employment at Intel is a lie. I couldn't get anybody, despite spending many hours on networking, to give my resume a second look. I even learned a new tool in this contract that is internal and can only be used at Intel and is completely worthless outside of Intel. No matter, I've had many interviews outside of Intel, and will land well, but I'll keep this in mind the next time I am tempted to take a short term contract at Intel.
  4. Being a blue badge, if you are ICE, still means you're treated more like a resource than like a human by human resources. Many policies are used to reverse decisions that your manager, who is working more closely with you, has made.
     

Software Project Management At Intel in non-software divisions

  1. Brooks Law is almost unheard of at Intel. Hardware Managers think that all software projects can be completed in less than six months, and therefore throw contingent workers at the project. Since software estimates, in general, are 75% engineering and 25% new science, they are wildly inaccurate. When the project inevitably fails to be complete in the first six months, the temptation is to break Brook's Law by adding more contingent workers. The time to ramp up CWs on the project of course exceeds the time to complete the project if you kept software engineers working for more than 18 months at a time.
  2. Agile or Waterfall- Pick one and stick to it. This crazy combination used on software projects in hardware divisions is ridiculous, as is the general lack of written requirements.
  3. It's hard to hit a moving target- input data integrity must be respected. If you don't have input data integrity, then there will be bugs. Bugs add complexity. Bugs make software estimates inaccurate. Lather, rinse, repeat.

On the new diversity initiative

  1. There is no link between surface appearance and how a person thinks, or how capable they are. None at all. While this makes the apparent racism of the past a mistake, this also makes modern affirmative action programs equally racist and invalid.
  2. There is no link between religion, sexual orientation, or disability and how a person thinks, or how capable they are. Such factors should not enter into hiring or promotion decisions at all, and when they do, that is what Intel needs to eliminate from the system.
  3. There IS a link between certain forms of mental illness and the ability to innovate. Since mental illness affects the brain directly, having somebody with a well controlled mental illness on your team increases diversity of thought, which leads to innovation.
  4. I believe that the uncertainty surrounding the diversity initiative was a part of my failure to convert to FTE. Not necessarily outright discrimination against a white male, and due to my autism I fall into one of the protected groups anyway and HR is well aware of that. But I believe the way the diversity initiative was announced, and the weeks of confusion surrounding it before BK finally clarified his position, coming at the same time I was trying to convert to FTE, meant that I had a harder time of trying to get my resume noticed and find open, externally advertised jobs for my skillset.

Final Thought and contact info

While my search to convert to FTE at Intel has failed, my external search has succeeded. I have at least one, maybe two job offers in hand; I will likely be back to work sometime between March 25 to March 30. This posting will be crossposted to Inside Blue before I leave Intel. Comments section below is open.

 

User Journal

Journal Journal: I owe Bill Dog continuation, Prius Hack ideas 10 10

Bill's last set of answers, and my answers to his answers
 
>>1. The only reason to run the gas engine under 25 miles an hour [â Typical residential speed limit] should be for recharging and generating, period. EV mode only at low speed.

>And Toyota may have started out planning on along those lines, but may have gotten focus group research that indicated people preferred a little more acceleration.

Which is weird, because when you put the two electric motors working together, you have MORE acceleration than the gas engine alone. 104 HP vs 70 HP.

>>2. An expert mode should be available wherein "creep ahead at stop" is disabled

>Having switched to owning only manual transmission cars, I only miss that on a metered freeway onramp, that's uphill. I imagine it's added behavior when in electric-only mode, to simulate a slush box, so not sure how it could be universally defeatable. There's no "neutral" on those smug little cars?

There is, it just doesn't auto-engage. The default is creep ahead (and yes, it's electric- it is quite obvious that your gas engine has stopped and it's in stealth mode- which makes it even more dangerous for say, a pedestrian in the cross walk in front of you, no warning roar of the engine as the car speeds up to 8mph slowly).

>>3. Cruise control should also be able to be set by a numeric keypad, and should be able to handle values lower than 23.

>That's an awesome idea, rather than having to bring the car up to the desired speed manually. But I wouldn't be surprised if it's the government disallowing the latter.

It certainly gets them more speeding ticket revenue in 20mph and 15 mph zones. That, and thanks to the "delayed reaction" in the CAN of the prius, I can never seem to hit the correct speed. Always 1mph off, either above or below. And why does slowing down below 23 erase the register, forcing a manual reset, instead of disengaging alone?

>>4. Sport mode should be available that disengages the traction control and enables all three motors for acceleration (you can get the second half of this in a gen2 by angrily stomping on the accelerator, it takes a second to engage, but you suddenly go from 34 HP to 174 HP as the second electric and the gas motor kick in).

>Why would a Prius owner want this?

Ice, sand, and mud. Thanks to the traction control the way it is, and the standard modes, it is impossible to get more than 34hp to the wheels in the first second of travel; and in addition to that, if there is any wheelspin at all, that 34 goes to 0 hp real quick and a little light blinks on to tell you that your transmission is disengaged. A sport mode would enable both drag racing and off road abilities that the prius currently lacks.

>>5. Finer resolution than 5 minutes on the average MPG consumption graph.

>>6. Ability to download trip data onto an SD card.

>Likely never, directly. Companies want your personal info to go to "the cloud" first, so that they can mine it and monetize you further.

I'd even accept an upload to the cloud if I could get fine resolution consumption and the ability to diagnose my driving habits after the fact. The big change in driving a prius isn't so much the technology, it's the feedback given about your fuel consumption, and it occurs to me more feedback is better.

>>7. If gas tank 20% full and battery 20% full, hibernate mode on computer if accidentally left on and wheels are not moving. Right now if you tried to use a Gen2 prius as a backup house generator, you run the risk of bricking the system, unable to boot computer, unable to add more gas, must drag onto a flatbed and tow to Toyota to use their fancy charging system to bring the car back to life.

>I guess you're saying these cars have no under-hood starter battery like ICE vehicles, that's user-swappable with a replacement from any auto parts shop. And I guess neither can these cars be jump-started, simply by using another vehicle (with a battery of equal or greater cold cranking amps). Wow.

More of an in-the-trunk starter battery that is only good for booting the computer system. If you run out of gas *and* the high voltage battery goes totally flat the most you will be able to do is boot the computer, the high voltage battery is needed to spin M1 to be the starter motor (M1 does triple duty- it's a 34 HP electric motor that does the initial acceleration, serves as a generator, and also serves as the starter motor for the gas engine- and it runs off the high voltage battery; M2 is a 70 HP electric engine that can also double as a generator, and then E1 is the gas engine that can send power to the wheels, to M1, to M2, or to all three- quite a complex computerized transmission runs it all). So there would be good reason to provide a hibernate mode that would allow a Prius to be parked for more than three weeks.
I suspect that a plug-in conversion and/or a Gen4 plug in prius is the answer to that last problem- if you're feeding off the grid regularly, there's no need for the gas engine to generate power to begin with.

User Journal

Journal Journal: 0.38 Seconds of Hate 2 2

For the love of all that is holy, please do NOT automatically select shit from a dropdown list if I'm typing and a dropdown opens up underneath where the mouse pointer just happens to be idling on the screen.

Chrome: This. Means. YOU.

My mother is a fish. - William Faulkner

Working...