Become a fan of Slashdot on Facebook


Forgot your password?
User Journal

Journal Journal: Back to coding, doing something I haven't done before 6

Does anybody know of a good Javascript, .NET, or HTML5 (or combination of the three) library for doing a user-customizable widget grid?

I've seen it done enough that this *should* be a readily available control, but I don't seem to be able to find one with my first three rounds of google searching, I'm probably calling it the wrong thing.

What I want is to be able to configure a user's home page on the website with their choice & order of several widgets.

Anybody know of a great tool for doing this? Worst case scenario is I roll my own with a three column table built up from a sub table off of the users.

Oh yeah, and mandatory technology for this project is SQL Server Database, Visual Studio .NET Webforms (yeah, after doing MVC the last 4 projects I'm thinking Yuck too with these code-behinds), intended for HTML5 browsers.

User Journal

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

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 @BatchMatch varchar(40)
Declare @mcount int
Declare @dcount int
Set @mcount=1
Set @dcount=1
While @mcount <13
        while @dcount<32
                Set @BatchMatch=Right('00'+Convert(varchar(2), @mcount),2) + Right('00' + Convert(varchar(2),@dcount),2)
                Print @BatchMatch
                Set @dcount=@dcount+1
        Set @mcount=@mcount +1

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: 2 seconds of noise 1

That's all it took for me to finally check the "don't show me ads" checkbox. Good job, Dice! Tone deaf as always, I see.

Edit: testing editing.

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)" : ""))


User Journal

Journal Journal: Am I human? 4

According to slashdot, apparently not. I keep getting "You have failed to confirm you are a human"

User Journal

Journal Journal: 15 minutes of uselessness 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

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

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".


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

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: WTF? Autoplaying video ads with sound? 2

Slashdot used to be a safe site to visit, it never made noise when you didn't want it to, making it the go-to site for quiet, in-office news aggregation.

Not anymore. I just had to mute my laptop due to a slashdot auto-playing video advert.

The two most common things in the Universe are hydrogen and stupidity. -- Harlan Ellison