Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
Note: You can take 10% off all Slashdot Deals with coupon code "slashdot10off." ×
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: Why libressl is stupid 2

I really want to like libressl. But it pretends to be openssl badly. They refused a patch that would have mitigated this whole RAND_egd problem by simply returning that it doesn't work when someone tries to use it, which means that you commonly need a patch to use it at all. If it's not going to work like openssl, then it shouldn't occupy the same space in the filesystem.

User Journal

Journal Journal: OMFG GNOME3 is asstacular

This is not news to most people, but I just tried it for the first time on my first-ever normal Debian Wheezy install (I've always done minimal, netinst etc. and built it up from there for a purpose) and wow, GNOME3 is amazingly horrible. It makes Unity look usable. If that was the idea, mission accomplished, I guess.

Slashback

Journal Journal: I READ THE NEWS TODAY OH BOY 6

Your friends

User User's... Last Journal (H)elix1 (231155) friends fans Wednesday October 03, 2007 @09:41PM A nonymous Coward (7548) friends fans adpsimpson (956630) friends fans ak3ldama (554026) friends fans Saturday May 28, 2011 @05:01AM AKAImBatman (238306) friends fans Thursday October 02, 2008 @01:12PM alfaiomega (585948) friends fans Alioth (221270) friends fans Saturday October 16, 2010 @08:34AM AndroidCat (229562) friends fans Anonymous Brave Guy (457657) friends fans Artifakt (700173) friends fans artifex2004 (766107) friends fans Friday July 25, 2008 @12:29PM Ashtead (654610) friends fans Thursday February 06, 2014 @09:03PM atomico (162710) friends fans Attaturk (695988) friends fans AYauFu (708368) friends fans Azadre (632442) friends fans Azi Dahaka (625546) friends fans babbage (61057) friends fans Tuesday April 12, 2005 @01:34PM BandwidthHog (257320) friends fans Tuesday February 20, 2007 @05:20AM banky (9941) friends fans Thursday February 08, 2007 @03:52PM bcrowell (177657) friends fans bechthros (714240) friends fans Wednesday August 06, 2008 @12:12AM Behrooz (302401) friends fans benhocking (724439) friends fans Wednesday December 05, 2007 @03:20PM Bertie (87778) friends fans bgfay (5362) friends fans bhima (46039) friends fans Tuesday March 24, 2009 @03:56PM Billosaur (927319) friends fans Wednesday January 23, 2008 @03:33PM Bimo_Dude (178966) friends fans Friday June 20, 2008 @10:14PM Black Parrot (19622) friends fans BlackHat (67036) friends fans Tuesday December 30, 2008 @12:10AM BlackTriangle (581416) friends fans blincoln (592401) friends fans Monday March 22, 2004 @04:14AM blinder (153117) friends fans Saturday January 29, 2011 @03:15AM Bloater (12932) friends fans Sunday March 19, 2006 @01:59AM BlueShirt (919167) friends fans Bluesman (104513) friends fans bonch (38532) friends fans btlzu2 (99039) friends fans Friday March 09, 2007 @05:53PM BWJones (18351) friends fans Monday October 24, 2011 @10:35PM capoccia (312092) friends fans Thursday July 30, 2009 @12:31PM Captain Splendid (673276) friends fans Monday February 02, 2015 @04:26PM CastrTroy (595695) friends fans Catamaran (106796) friends fans ces (119879) friends fans Tuesday June 29, 2010 @04:53PM Chacham (981) friends fans Thursday April 23, 2015 @02:10PM Chris Burke (6130) friends fans circletimessquare (444983) friends fans Thursday January 22, 2015 @10:43PM clem (5683) friends fans Colonel Korn (1258968) friends fans Communist_Supervisor (1062168) friends fans Conspiracy_Of_Doves (236787) friends fans Corporate Troll (537873) friends fans Tuesday November 30, 2010 @12:24PM crotherm (160925) friends fans Friday March 18, 2005 @10:33PM crow_t_robot (528562) friends fans curtisk (191737) friends fans Wednesday December 21, 2011 @05:03PM CyberBill (526285) friends fans cyranoVR (518628) friends fans Saturday January 31, 2009 @03:00AM DaedalusHKX (660194) friends fans Thursday April 24, 2008 @11:24PM damn_registrars (1103043) friends fans Thursday April 23, 2015 @08:03PM Damvan (824570) friends fans Dan Ferguson (691027) friends fans Darby (84953) friends fans darkpixel2k (623900) friends fans Datana (516170) friends fans dave-tx (684169) friends fans DaytonCIM (100144) friends fans Sunday November 11, 2012 @02:30AM dbIII (701233) friends fans dcam (615646) friends fans

User Journal

Journal Journal: What do I have to enable now? Fucking DICE. 5

Welp, I can use Slashdot in Chrome and not in Firefox, which implies that something I'm blocking in Firefox is preventing the new improved Slashdot from working. What new spyware bullshit do I have to enable to use Slashdot now? Thanks, DICE! You'll run this place the rest of the way into the ground any day now.

User Journal

Journal Journal: Keep burning those modpoints, punk 4

http://slashdot.org/comments.pl?sid=6928647&cid=49008431
http://slashdot.org/comments.pl?sid=6921395&cid=49008481
http://slashdot.org/comments.pl?sid=6928395&cid=49008511
http://slashdot.org/comments.pl?sid=6928647&cid=49008549
http://slashdot.org/comments.pl?sid=6921395&cid=49008565

User Journal

Journal Journal: Yay, I made an idiot angry! 8

Then they modded down five of my comments in a row. Why doesn't the system catch this kind of obviously abusive moderation? Oh right, because this is slashdot, not someplace with competent employees.

http://slashdot.org/comments.pl?sid=6897301&cid=48979217
http://slashdot.org/comments.pl?sid=6897699&cid=48979955
http://slashdot.org/comments.pl?sid=6898589&cid=48984949
http://slashdot.org/comments.pl?sid=6904433&cid=48985865
http://slashdot.org/comments.pl?sid=6904445&cid=48986419

If moderation on slashdot were intelligently designed, this person's abusive moderation would have been autodetected and they would have been banned from moderation permanently.

User Journal

Journal Journal: An unbiased comparison of Windows and OpenBSD

http://humorix.org/10566

Freaking hilarious. A bit dated, but definitely still valid... ;-)

Money quote:

INCLUDED PROGRAMS:

Web browser:

OpenBSD comes with a text based browser called lynx, which is limited in functionality. Windows comes with Internet Explorer. Let's face it: Internet Explorer is a hunk of crap.

Winner: OpenBSD

Text editor:

Windows comes with Notepad, a great easy-to-use text editor.

OpenBSD comes with vi, another hell-spawned weapon of evil which causes mayhem and kills kittens every time a user attempts to do something productive with it.

Read the rest, it's great

User Journal

Journal Journal: I think Steve Ballmer is trying to hack my Linux machine...

I swear in the holy name of Ken Ritchie this is what I am seeing in my Linux server logs right now:

OSSEC HIDS Notification.
2014 Oct 13 16:41:45

Received From: udon->/var/log/messages
Rule: 5712 fired (level 10) -> "SSHD brute force trying to get access
to the system."
Portion of the log(s):

Oct 13 16:41:45 udon sshd[13920]: Failed password for invalid user developer from 79.110.193.148 port 49864 ssh2
Oct 13 16:41:45 udon sshd[13920]: Invalid user developer from 79.110.193.148
Oct 13 16:41:44 udon sshd[13918]: Failed password for invalid user developer from 79.110.193.148 port 49081 ssh2
Oct 13 16:41:44 udon sshd[13918]: Invalid user developer from 79.110.193.148
Oct 13 16:41:43 udon sshd[13910]: Failed password for invalid user developer from 79.110.193.148 port 48407 ssh2
Oct 13 16:41:43 udon sshd[13910]: Invalid user developer from 79.110.193.148

Now, take a look at the following and tell me it isn't true!

https://www.youtube.com/watch?v=8To-6VIJZRE

User Journal

Journal Journal: Three years after Steve died... 1

I don't think I've written this down anywhere before, so here's my story about the first time I had a face-to-face conversation with Steve Jobs.

I was working for Richard Kerris in Apple Worldwide Developer Relations, on a group called the SWAT team. I was the Cocoa expert on that team, and I had colleagues who had expertise in UNIX internals, Windows development, and the Metrowerks tools.

Our role was to help third-party developers bring their products to Mac OS X, whether they were coming from Windows, Solaris, Mac OS 9, etc. We would look over their code, and consult with them on how to go about porting and/or rewriting their products for the new platform.

I went to Fred Anderson's retirement party which was held at Cafe Macs in Building four of the Infinite Loop campus. I saw Steve there, and I went over to introduce myself. I said "Hi Steve, I'm John Randolph. You may or may not recognize my name, but I used to flame you from time to time before I worked here." He asked me "Why did you stop?" I told him "Well, I work here now, and I respect the chain of command."

At the time we had this conversation, there was a big fight going on between the foot-dragging laggards who wanted to keep using the old Mac Toolbox API (which had been cleaned up considerably and put into a framework we called "Carbon"), and those of us who wanted to get everyone using the NeXTStep-derived "Cocoa" frameworks,

At the previous WWDC, Steve had started the keynote with a bit of theater: a coffin had risen up through a trap door on the stage, in the midst of a cloud of dry ice fog. Steve had opened the coffin to show a big Mac OS 9 box, and he praised OS 9 in a eulogy, to make the point that Apple developers should consider it dead and gone.

So getting back to our conversation.. I told Steve what I was doing on Richard's team, and I said "I know that you can't do this politically, but I wish you could have another coffin on the stage at the next WWDC...." and he said: "With Carbon in it?"

He was grinning. At that point, I realized that I could quit worrying about where Apple's development environment was heading. Steve knew what we needed to do, and in the years that followed, Apple has kept the best of NeXT's technology, and let go of what we didn't need.

We miss you Steve, but we're doing fine. Thanks for the things you made happen.

-jcr

What the gods would destroy they first submit to an IEEE standards committee.

Working...