Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Comments

top

Drupal Warns Users of Mass, Automated Attacks On Critical Flaw

Qzukk Re:PHP (53 comments)

XML would not be a standard SQL construct. Neither the PHP-internal mssql driver nor the microsoft PHP driver supports TVP.

The postgresql way to prepare a statement that needs to do something like "... field IN ($1) ..." is to rewrite it as an array operation "... field = ANY ( $1 ) ..." where $1 would be an array, but PHP/PDO can't properly/securely prepare this since it doesn't understand array operations. You would need to manually escape each element and create a literal array string in your code and pass that as the parameter:

pg_prepare($pg, "test", "select * from customer where id = ANY ( $1::int[] )");
pg_execute($pg, "test", array("{52,149,288}"));

Note that a varchar[] in PHP would look something like "{Smith,O'Hare,Wilkerson\\, Esq.}" so none of the normal SQL escaping functions would work properly (note that single quotes are not escaped, but commas and curly braces would be escaped).

I think postgresql arrays are slightly nonstandard (you can declare them using "datatype ARRAY[size]" but postgresql does not enforce array bounds. MySQL does not do array datatypes at all.

1 hour ago
top

Australian Gov't Tries To Force Telcos To Store User Metadata For 2 Years

Qzukk Re:That would make a nice background application (48 comments)

I figure once the government makes an example out of the first few people to do that, getting 0.1% of the population to join in will be an uphill battle.

4 hours ago
top

Imagining the Future History of Climate Change

Qzukk Re:Why not the Golden Age? (355 comments)

The question is whether we can hold up our hand and say "stop! That's great! Leave the thermostat right there!"

Or whether the heat will keep going up until the point where we have two short summer growing seasons punctuated by a scorching mid-summer that kills any modern summer crop not heavily irrigated (who am I kidding, we already get that for Texas corn crops).

5 hours ago
top

Power and Free Broadband To the People

Qzukk Re:So now my bill goes up. (234 comments)

We are all worth the same are we not?

You going to give the millions of people in government housing a job paying enough that they can afford an apartment without the government's help? No? Huh.

I wonder how many of these have a part time job, and would probably like to work a second job but their manager keeps calling them in on 15 minutes notice instead of scheduling them in shifts.

yesterday
top

Dangerous Vulnerability Fixed In Wget

Qzukk Re:super user (54 comments)

which has to run as root since it's unpacking and installing

wget isn't unpacking and installing, it should not be run as root.

yesterday
top

Black Swan Author: Genetically Modified Organisms Risk Global Ruin

Qzukk Re:Bad argument (403 comments)

will randomly create something dangerous

How about intentionally create sometime dangerous in an unforeseen way? There are plenty of examples of that, for instance did you know that peanut allergies spiked after companies started roasting peanuts at a higher temperature in order to get them roasted faster? Turns out the increased temperature causes a protein to denature to a form that has a higher allergenicity than before. Not that that stopped anyone from doing it. More profits to be made selling cheaper peanuts to fewer people.

I agree that there's not going to be any random surprises where someone tries to make a bigger corn cob but ends up with a mobile man-eating plant, but adding toxins to a plant we're supposed to be eating is going to need more testing to ensure that it's not poisonous to us, ideally by someone who doesn't have a vested interest in just declaring it safe and then retiring with a golden parachute before it begins to accumulate sufficiently in brain tissue to cause Alzheimer's.

2 days ago
top

Italian Supreme Court Bans the 'Microsoft Tax'

Qzukk Re:The elephant can forget. The geek never learns. (341 comments)

There is something distinctly fraudulent about buying a Windows PC and demanding a refund when you could have bought a Linux PC

With, and I quote you: "tons of crap-tastic hardware ... for maybe $25 less than a Windows PC"? What fraud, precisely, does "the" geek commit when he wants quality hardware without paying for Windows?

As an aside, you repeatedly use "the" as an indefinite article. Is there a reason for this?

4 days ago
top

OwnCloud Dev Requests Removal From Ubuntu Repos Over Security Holes

Qzukk Re:Clarification regarding backports (126 comments)

I am not impressed with ownCloud's heavy-handed approach to dictating what distros can provide in their repositories

"Please do not ship outdated buggy binaries."

5 days ago
top

PCGamingWiki Looks Into Linux Gaming With 'Port Reports'

Qzukk Re:Gabe Newell is perhaps the biggest driver of th (74 comments)

Let's be honest, SteamOS is done. Steam got exactly what they wanted from Microsoft and dropped it like a hot potato (so sorry, you'll never get to use that cool controller).

Consider that for decades Microsoft has not allowed anyone, anyone to touch the user experience. Even after Netscape's antitrust lawsuit over active desktop, even after BeOS withered and died hoping someone would sell a windows computer with dualboot, or hell just a windows computer with a "Setup BeOS" icon on the desktop. Steam is facing the Microsoft Store and a real threat that the Microsoft Store will become the way to buy programs (see also: iOS). Steam trots out SteamOS, and Microsoft snickers. The hype train builds up, and Microsoft sweats. Games start to port and Microsoft snaps.

Alienware ships a Windows 8 PC that boots to Steam instead of Metro.

Now, let's step back a second and look at the big picture here. At the time, windows 8 adoption is absolute total shit, swirling the drain of a public restroom that hasn't been washed for years. The last windows evangelists are all hanging on imploring people to just try it out, just give it a chance, and oh by the way install Start8 to fix metro. Think about that. PC vendors are on the verge of revolt, their customers refuse to buy their goods, and all for the want of installing a $5 program to fix the metro experience. Best Buy is probably screaming at Microsoft, begging them to allow them to remove the metro experience so they can move their inventory. Hell, they're probably begging them to let them advertise their Geek Squad services to "optimize" the experience and install that $5 program for $100. But no, the Microsoft Experience is inviolate, the holiest of holies, eternally immutable. No matter how much hatred it gets, it Must. Not. Be. Changed .

And then Alienware ships a Windows 8 PC that boots to Steam instead of Metro.

SteamOS's job is done. When no-one was looking, Steam took Microsoft and snapped it like a twig. We'll never know exactly what dark magicks were invoked here, but in the blink of an eye, Valve routed Microsoft in a war that nobody even realized was being fought. When Japan makes an anime out of this event, GabeN will point at Steve Ballmer, say omae wo shindeiru and Ballmer's head will implode, without GabeN throwing a single visible punch.

Steam OS will probably putter along, we'll probably see a few things be trotted out to keep the dream alive, after all the hype train did build up a lot of steam (pun not intended). Eventually a few of these AAA developers will say "it's really just not ready for the prime time" and we'll go back to getting a few wine ports and indie games from hardcore dedicated guys who just really love Linux.

But the masses will probably never get to hold that controller.

about a week ago
top

FTDI Removes Driver From Windows Update That Bricked Cloned Chips

Qzukk Re:Probably Not (571 comments)

tl;dr: two years, later.

about a week ago
top

FTDI Removes Driver From Windows Update That Bricked Cloned Chips

Qzukk Re:Sorry They're Changing (571 comments)

Well obviously you can, you just need to install this driver.

about a week ago
top

U.K. Supermarkets Beta Test Full-Body 3D Scanners For Selfie Figurines

Qzukk Re:UK article, US units (165 comments)

I'm sorry but the best we can do is 1:1 scale, it doesn't enlarge.

about a week ago
top

Deutsche Telecom Upgrades T-Mobile 2G Encryption In US

Qzukk Re:But disabling GSM when possible is still smart (27 comments)

They're eager to do things they can charge for. I bet AT&T charges a pretty penny for the connections to room 641A

They're a little less eager to do things they can't make money on. Of course, if they don't participate they might find themselves like Qwest's CEO, who lost all the government contracts because he wouldn't play ball with the NSA, then got arrested on securities charges for losing stockholders' money by losing the government contracts.

about a week ago
top

Windows 0-Day Exploited In Ongoing Attacks

Qzukk Re:Only for root users (114 comments)

well managed environment

Number one target for this will be grandpa forwarding that patriotic slideshow with God Bless America playing as it pages through sunsets and crying eagles and a root kit on the 4th slide.

about a week ago
top

Ask Slashdot: Stop PulseAudio From Changing Sound Settings?

Qzukk Re:Feature not a bug (286 comments)

Sure, if you don't want to change the volume of your audio, you can ignore the audio control.

Or you could open your mixer app of choice and turn up or down each individual program one at a time separately instead of using the master control to turn them all up or down together.

Both options will allow you to ignore the master volume control.

about two weeks ago
top

Manga Images Depicting Children Lead to Conviction in UK

Qzukk Re: Moral Imperialism (474 comments)

He's saying that the powers granted by the Constitution are the total powers of the Federal Government. Anything not mentioned in there is reserved for states and the people.

Your task is to cite where the Constitution gives the feds the power to prohibit this material. I suggest you go for interstate trade, that's what everyone else does: "you found it in your backyard and kept it for yourself? Interstate trade!"

about two weeks ago
top

Ask Slashdot: Stop PulseAudio From Changing Sound Settings?

Qzukk Re:Feature not a bug (286 comments)

I have no idea what 'master' is even supposed to mean.

Once upon a time when ye were but a wee lad, we had sound cards with multiple channels for cd audio, midi output, wav output and so on. Legends say some cards even had separate controls for left and right speakers, and many a story was told of people who heard ghostly music through one speaker as if they were only hearing half of the song.

Back then, you could adjust those channels separately or use the "master volume control" to set all of them at once.

Now that we have per-app mixing capabilities and volume controls we still have a master audio control, only now it's in software instead of in the soundcard.

about two weeks ago
top

Internet Companies Want Wireless Net Neutrality Too

Qzukk Re: Wireless bandwidth is limited (38 comments)

Don't you want to discriminate voice

The telcos do, that way they can degrade Vonage connections until you cave in and get their phone service.

about two weeks ago

Submissions

Qzukk hasn't submitted any stories.

Journals

top

Holy shitballs, slashdot. Malicious ads being served up.

Qzukk Qzukk writes  |  about 3 months ago

Love is over.

I was redirected to http://java-update-us.com/index.html?sid=42&aff_sub=wb-playanma-us&aff_sub2=am1&aff_sub3= which dropped a java_installer.exe into my Downloads folder from some ad playing on http://science.slashdot.org/story/14/07/24/1357256/empathy-for-virtual-characters-studied-with-fmri-brain-imaging around 2:30PM central time 7/24

top

Serious proposals to replace obamacare begin

Qzukk Qzukk writes  |  about a year ago

The WSJ has floated an opinion piece offering what it calls a conservative alternative to Obamacare, that I think is the first time I've seen any conservative alternative except "Nuh-Uh!" Google news popped it up with a link to http://stream.wsj.com/story/latest-headlines/SS-2-63399/SS-2-381425/ which seems to be some sort of glorified rss feed with an HTML skin, so I have no idea if the link will be good for anyone else in the future.

It is, in my opinion, a beginning. In the past, I've called obamacare the wrong answer to the wrong question. This article suggests extending the current employer tax writeoff so that everyone, not just the employers, can buy insurance with tax-free money. Then it goes a step further by means-testing a tax credit for the poor so they can buy privately operated insurance with their tax credit instead of getting Medicaid. I think this is a good start to answering the question of how to make it possible for everyone to get at least minimal health insurance (if they want it. This is the conservative version, remember).

It is still the wrong question, though.

top

2.8 seconds of hate - bash-completion

Qzukk Qzukk writes  |  1 year,20 hours

In an effort to be fancy and helpful, bash now has context aware tab completion (in the bash-completion package on Debian). Based on where you are and what command you're typing, pressing tab will Do (what the completion script writer thought was) The Right Thing.

Unless what you think is the right thing was was the behavior of older versions of bash where you could do

**/*.c<Tab><Tab>

and (eventually, ** is damn slow) get a list of all of the matching files. It also worked with [...] {...} ? or any of the other bash wildcards. You know, just in case you wanted to see what your command is going to do before you hit enter.

Now I have to ^U, ls ^Y, then ^Y, which takes about 2.8 seconds (including the realization that bash is just going to keep beeping at me if I keep hitting tab). Or disable fancy and helpful completion with complete -r

top

Two minutes of WTF

Qzukk Qzukk writes  |  about a year ago

So I right clicked in an explorer window in windows 7 and went to "New >" on the menu and the submenu didn't open. I clicked it a few more times and nothing happened. I clicked it a few more times and the entire explorer shell crashed and restarted.

Wish I knew why the hell it sometimes takes 30+ seconds to get to "New Word Document" on my work computer.

top

2 minutes of love: how to properly notify users of an update

Qzukk Qzukk writes  |  about a year ago

Ran paint.net today and a popup appeared letting me know there was a new version. It had two buttons:

  1. Install when I exit
  2. Install now

This is doing it right.

top

2 mins of hate: What can make me switch to a new RCS again

Qzukk Qzukk writes  |  about a year ago

Three words: Four. Way. Diff.

Show me where my patch (before and after) conflicted with the last patch (via blame) before and after. Bonus points if you can show both complete commit messages. Extra bonus points if you look at the branch, figure out where it went wrong (at what point did my patch last apply cleanly?) and show me all the commits since.

Telling me shit's fucked up doesn't help anyone (that's what I got with cvs).

Telling me what I was trying to do tells me what I was trying to do, not what Bob was doing when he checked in before me, but at least I know what the hell I was doing when I did it months/years ago (this is where I am now with git rebase).

Telling me what the hell I was trying to do and what the hell Bob was trying to do, now that's what I need, because now I know what it's supposed to be doing when I'm done merging the code and can do so with a reasonable degree of confidence that both Bob and I will be happy with the result.

For my company's workflow, this would be the holy grail of revision control. I'd even be tempted to use a graphical tool to do it.

top

Today's two minutes of hate

Qzukk Qzukk writes  |  about a year ago

git, a love/hate relationship. Right now, hating really really hard.

You can do all sorts of incredible things with it, but there's so much that seems obvious I ought to be able to do, but just can't see how.

Case in point: git rebase. This is an incredibly powerful tool that lets you take changes and apply them to a different branch, one at a time very rapidly (if there are no conflicts). If a conflict arises, the process pauses, tells you where it died, lets you fix it, then you git rebase --continue. EXCEPT you get half of the first line of the commit message (despite being on a 128 column terminal it cuts off at 80) and no hash or any other way (I can find) to look up the complete description of the current commit being fixed (other than aborting the whole thing, going through the complete log to find the commit starting with whatever message then starting again (rerere makes this not painful, just annoying)). Oh, and if you used a branch name, that branch name is MOVED to the new location.

Other case in point: git merge. This is an incredibly powerful tool that throws everything together all at once and lets you deal with the aftermath. Conflicts, conflicts everywhere and no explanation of what the code is supposed to be doing. Fortunately, someone made a git-merge-like-rebase script that creates a temporary branch, rebases it to the target, then deletes the temporary branch leaving you with the original branch where it was (like merge) but applying one commit at a time (like rebase).

Still, I just took 2 hours of work doing something that would have taken 2 days in CVS, thanks to git rebase (rolling out a new version of our code for one of our customers with a heavily customized application. Rebased their custom branch onto our new release branch, fixed all the conflicts where they want customers sorted firstname lastname or blinking red lights or whatever and done). Probably could have done it in 1:30 if I didn't have to go back through the log to figure out how to fix "Change order of fields so that customer rep appears before ". I'm working in more and more tricks to reduce conflicts every upgrade so hopefully I'll have it down to less than an hour soon.

So now I love it again.

top

Life post Google-Reader

Qzukk Qzukk writes  |  about a year ago

So Google followed through on their threat to kill Reader and I ended up having to track down a new RSS feed reader. Having been bitten by the Cloud, I decided it'd have to be locally installed, after trying a few I've settled on FeedDemon (now discontinued, a shame) as "best so far".

The one thing I really, really miss about Google Reader (which in fact was the reason I started bothering with RSS in the first place) is that it had a bookmark you could set that would open the URL of the next unread item in your queue. Dragged the bookmark to the bar, and one click gets me to read something new and exciting (and middle click to read lots of new and exciting things in tabs). Sure, every time someone published an RSS entry without a URL google gave me a 500 error and marked every single article read, but hey, it was damned convenient when it didn't implode.

FeedDemon gives me a link to click on each article to open in its (embedded IE) browser, but as I go down the list of articles it doesn't automatically remove the read ones nor does it automatically add new unread articles unless I manually refresh the article list (maybe I'm doing it wrong?). It has a "Next Unread" button but it doesn't open the URL, it just shows the RSS item header and then I have to click it to open the URL.

Strongly considering taking some of what I learned in the Coursera python class a while back, this feed parsing library, and learning wxPython (platform independence!) and spinning my own. It won't do much, but it WILL have a button that launches a chosen browser with the chosen URL (thinking of making it a systray icon: left click to open next item, right click for menu, blinks when there are unread articles).

It could even pop up a window to display an article with no URL.

top

20 seconds of hate: outlook, *again*

Qzukk Qzukk writes  |  about a year and a half ago

Hello, Microsoft. Please explain to me the reasoning why when a meeting is sent to people, they get a blank email with an .ics file attached, which is absolutely fucking useless to everyone not using a calendar app?

Thanks.

BTW, yes, I know about the option to turn ical off, explain to me why the FUCK you are incapable of sending a readable email with an attachment.

top

Today's two minutes of hate

Qzukk Qzukk writes  |  about a year and a half ago

In every version of it Outlook I've used, it stands out as being terrible at dealing with email in general (aside from the various exploits just from opening malformed emails). It's got rules that cancel themselves because the computer just woke from sleep and isn't connected to the internet (and therefore the rules are "invalid") to having a hojillion different sources of email addresses, none of them configurable or editable (Seriously, why can't I fix a misspelling in an email once it's been saved wherever the hell it gets saved?). Autocompletion of email addresses is a complete clusterfuck. I had to delete a customer from my contact list completely and start over because her email address changed and when I edited her contact, her record refused to come up when I'm sending an email (Doesn't come up when I type, doesn't come up in the contact list when I press the "To" button, but if I write her email by hand and choose "Look Up Outlook Contact" bam there she is complete with name and company information)

If it weren't for Exchange, I'd have ditched this shit long ago. Sadly, it's still the best I've got at dealing with scheduling meetings (at least as long as they're in our own time zone).

top

Today's two minutes of hate (yay backups!)

Qzukk Qzukk writes  |  about a year and a half ago

So years ago I needed a backup drive for my home computer after the last backup drive up and died on me, so I was possessed by idiocy and decided to get one of those external RAID blocks with two drives in it, RAID-1. Worked fine for years, now it's got a red blinking light on it and doesn't show up to the system anymore.

This is one of those things where foresight would have said "Hey, why are you spending 3x as much on drives when you're going to be stuck with a box with one red light to tell you there is a problem and no way to find out what the problem is". Hindsight says I'm an idiot.

At least it's just a backup.

Maybe next I'll get a LTO drive for a few thousand bucks for shits and giggles. Of course we had one of those at work that ate a tape. Better get two and take redundant backups...

top

Today's two minutes of hate

Qzukk Qzukk writes  |  about a year and a half ago

God damn where do I get a fucking ftp server that can run a command after an upload without preaching to me about how insecure yadda yadda yadda. I'm not running a goddamned anonymous ftp site (and even if I was, MAYBE I'd like to have a virus scanner run on whatever bullshit goes in and out!)

Currently using ProFTPd because mod_sftp appears to be the only way to get an sftp server with virtual users on Linux without using OpenSSH+PAM voodoo. mod_exec runs programs on every single little command EXCEPT the completion of an upload because fuck you. The documentation suggests logging to a FIFO and writing a program to read lines from the FIFO and acting on each line of the log. Great, only two problems: 1) proftpd shits itself if nothing is listening to the FIFO which means the listening program has to immediately reopen the socket when logrotate restarts proftpd 2) proftpd's xferlog format can't be changed and rather than doing any sane quoting, replaces spaces in filenames with underscores because fuck you.

top

30 minutes of hate

Qzukk Qzukk writes  |  about a year and a half ago

I just spent 4 hours doing onsite customer training for a customer of ours who is transitioning from an ancient terminal-based software to our software. These customers had therefore bought all new laptops with all new Windows 8 to replace their old terminals. The decision to use laptops had been made because 1) the network infrastructure in place currently ran the terminals which were actually win95 computers plugged into a local network and using telnet to reach the server so wireless was necessary until the old equipment could be removed and 2) the computers running the old system needed to stay there until after the training was complete and they were ready to switch.

I estimate 30 minutes of that time was spent unfucking shit that went wrong when people who had never seen a GUI or used a touchpad in their life had their palms brush the touchpad and trigger random win8 gestures, opening the charms bar, opening bing, opening the start screen, and in at least one case, somehow closing the program window (or was it open somewhere but alt-tab no longer works in windows 8? Damned if I know!)

For the next round of training tomorrow I plan on disabling the gestures. Easy peasy, just a few SynTPEnh\ZoneConfig registry entries to change. And they say Windows 8 isn't ready for the desktop!

top

Today's two minutes of hate, redux

Qzukk Qzukk writes  |  about 2 years ago

Customer: Your website is broken, I can't log into it

Me: What exactly do you mean?

Customer: I decided to work from home and when I go to your website it gives me this list of things so I clicked on the first one and it gives me an error when I go there

Me: It sounds like you put the address into google and clicked on someone else's site.

Customer: Well, what search engine am I supposed to use?

At this point, I was about to say "well, lady, whichever search engine that links to the actual website when you type www.foo.com into it" but then I realized the answer was "none of them". After all, how would you get people to click on your ads if you took them where they really intended to go?

I explained to her about Ctrl-L and pressing it before typing in a website. I think she got it.

top

Silly SQL trick

Qzukk Qzukk writes  |  about 2 years ago

Tonight's task is to manually categorize a rather flat tree structure in SQL (currently two levels only) by reading the top level entry and assigning it and its children to a category. On a lark I gave this a shot:

update tree set category=1 where 5 in (id,parent);

and it worked in PostgreSQL.

Why? Because I'm sitting here reading the list of top-level entries in one window while using psql in the other and pressing up to edit the previous query. Before I tried that I had

update tree set category=1 where id=4 or parent=4

so I'd have to retype TWO numbers instead of just one.

top

Today's two minutes of hate

Qzukk Qzukk writes  |  about 2 years ago

Today's rage divides evenly between:

  1. people who type site addresses into the search box instead of the address bar
  2. gotomeeting.com for not putting "join a meeting" link on their search engine landing pages

That's 15 minutes of my life I'll never get back.

top

Today's two minutes of hate

Qzukk Qzukk writes  |  about a year ago

Windows Media Player is a flaming pile of shit.

Trying to copy notes from a webinar, and every time I press the pause button in WMP the video keeps playing for another couple of seconds. When you add to this the fact that it takes WMP a couple of seconds before it will start the video again when I'm trying to click on the bar to seek, the tooltip on the bar is "Seek" rather than the time it's going to jump to when I click it, and the fact that there's no x0.5 or x2 or any other speed control but a jerky skiptastic fast forward button, it all adds up to an enormous hassle.

This is turning a task that SHOULD have taken a bit more than 30 minutes (the length of the video) into something I've spent the whole morning on. Good going folks!

After failing to get it to work in MPC or VLC, I managed to get it working in mplayer, but apparently it's only seekable to the nearest 5 minutes or so in there, which probably means that the g2m4 codec put next to no keyframes in the video. But at least mplayer has speed control so I can cover the ground I've already covered quickly, and when I press the space bar it stops immediately.

top

UI WTF

Qzukk Qzukk writes  |  about 2 years ago

UI Elements that only operate when the stars are properly aligned annoy the hell out of me. Especially when they do something I want to do on a regular basis. All those grayed out menu items with no hints as to how to activate them are one thing, at least you know there's something there you can use, but sometimes there's things that make absolutely no sense at all...

If you're using the current Chrome, right click the reload button. OK, now open the developer console (Ctrl+Shift+J). Right click the reload button again. An option to dump cache and reload! Pretty cool, eh?

I don't even know what the fuck inspired me to try right clicking the reload button in the first place...

top

Election Campaign Forecast

Qzukk Qzukk writes  |  about 2 years ago

On the Democrat side, I expect to see more "adjustments" in the jobless rate. On November 7th, we'll be back to 9%.

On the Republican side, I expect to see more refineries have mysterious fires, power outages, and pipeline closures. On November 7th, they'll all suddenly be fixed.

Slashdot Login

Need an Account?

Forgot your password?