Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
Note: You can take 10% off all Slashdot Deals with coupon code "slashdot10off." ×
User Journal

Journal Journal: Back into Python 1

Okay... A couple weeks ago, I decided to take another look at Python-- the first such look I've given the language since around 1997.

So far, I have the basic stuff down. I've got a quick script down that provides functions to add ANSI colors to my output, so I have that going for me. :D

I have Python 2.x on a VM on my work system, but I'm using Python3 on my home system.

Now I need to look at learning classes and lambda (I know OF classes but I've only heard of lambda in passing), and that may take me a while.

User Journal

Journal Journal: When did I become an incompetent at TSQL? 21

What is wrong with this code? It's like I can have the inner loop execute, or the outer loop execute, but not both.

DECLARE @RC int
DECLARE @BatchMatch varchar(40)
Declare @mcount int
Declare @dcount int
 
Set @mcount=1
Set @dcount=1
 
While @mcount <13
    Begin
        while @dcount<32
            Begin
                Set @BatchMatch=Right('00'+Convert(varchar(2), @mcount),2) + Right('00' + Convert(varchar(2),@dcount),2)
                Print @BatchMatch
 
                Set @dcount=@dcount+1
            End
        Set @mcount=@mcount +1
    End
   

PS, no I don't care that all months don't have 31 days, but I must cover months that do.

-------------------------------------------
Update- failed to reset the inner loop counter, that's what.

User Journal

Journal Journal: Clearly I suck 4

My linux skills have atrophied. I need to set up 10 workstations today. I have one done. What is the *easiest* way to clone a partition in ubuntu 14?
--------------------------------------
Update: Ghost 4 Linux and LinuxLive USB Creator to the rescue. I haven't had a usable copy of Ghost since floppies ruled the emergency boot sector, now, I'm going to buy a 32GB keychain drive off of Amazon and make sure I am NEVER without a copy of G4L. Drive imaging in an emergency is just way too useful of a skill to have.

User Journal

Journal Journal: Fallout 7

Pretty interesting, that Reddit has been undergoing some grief over their policy changes. Many of their readership have jumped ship (to one extent or another) to voat.co, a site that has recently incorporated as an American entity in order to improve their chances of success. Factors in play (according to their announcement) include the ability to host in the US, ability to get financial support from the readers, and freedoms guaranteed under the US Constitution.

Reddit looks tired and old. Voat appears refreshing (mostly), though some of the attitude that drove Reddit is now driving Voat. By this, I mean the Hive Mind is active there, already able to "downvoat" points of view that they don't like.

I'm really hoping Slashdot improves again. The tales I've heard of Dice wanting to sell Slashdot might be a Good Thingâ, if it means that the buyer is willing to go back to Grass Roots.

User Journal

Journal Journal: Google, my Hero! 6

Yeah, I said that.

Many, many moons ago, anyone that knows me that long might remember me asking about where to find a two-page advertisement that Sun Microsystems had put out some time around 1998. It had a picture of Sally Struthers and a caption that said something like "Thinking of running your critical apps on NT? Isn't there enough world suffering?"

Well, it's been found in the November 23, 1998 issue of InfoWorld, on pages 8 and 9.

Needless to say, I'm very happy. :)
User Journal

Journal Journal: Well, this should be fun... 3

I went to SlashCode.com and saw there was a link for the code that runs Slashdot (well, probably several versions ago). Fine. I have a file called Bundle-Slash-2.5.2.tar.gz . There's a link for instructions, BUT it's a dead link.

I wonder how long it will take before I have something useful?

If I can get it running, I'll let you all know... Pudge, if you're reading this... A little guidance would be greatly appreciated. :)

User Journal

Journal Journal: Strange SQL Server 2014 behavior 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: Days Go By 1

The Offspring released a new album in 2012 and I didn't know until yesterday. There are implications to that I need to get sorted but now you know what I'm listening to all day while I work.

They have a newer song out which I heard on the radio, which is what clued me in that something had been done since Rise and Fall, Rage and Grace. (Which was the 'new album' in my brain until yesterday even though it's 5 or 6 years old. Not that that is a big deal. I also think of Seventh Son of a Seventh Son as 'new' Maiden and that came out in '88)

I may start streaming US radio stations to stay more aware of what is going on in music back home.

User Journal

Journal Journal: Linux Genius 3

I have a file on my machine - render.conf

I just did the following:

        cp render.conf render-snap.conf
        mv render.conf render-main.conf
        mv render-snap.conf render.conf

And then I just laughed at myself for a bit. It made sense when I did it and as soon as I had I realized how stupid it was.

User Journal

Journal Journal: When did Net Neutrality change? 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.

Biology grows on you.

Working...