Skip to Content

Computers

xrayspx's picture

Dear Internet Advertisers

[music | Nick Cave and the Bad Seeds - All Tomorrows Parties]

This week both Ars Technica and Fark, both of whom get decent traffic, have basically begged users not to use ad blockers. I think people would be less likely to use ad block if your ads didn't kill our browsers, below are some examples.

On Fark, the square ad at the top of the right-hand navigation bar demolishes WebKit based browsers on Linux. Doesn't matter what the ad actually is, but if I hit Fark in Arora or ReKonq without Flash turned off, they die as soon as they hit that ad, every single time, write it down. Fix that shit.

Sprint ads. Sprint ads have been consistently crippling Mozilla based browsers on Linux as well, both Firefox and Flock. "Occasionally", using autoscroll (mid click scrolling), the browser will just crawl and become unresponsive. It will continue to slowly scroll until the ad is off the page, then become responsive again. I can't tell if this happens on Mac, since I mainly use Safari.


Holy fuck, it's the Perfect Storm(or perfect Curve I guess)! Luckily this session is in Chrome on a Mac or else my machine might have just shot itself in the face

I realize these are both Flash issues, and that the state of Flash on Linux and Mac is pretty abysmal, I use both platforms. So…. you want people to stop blocking your ads? Show ads that don't break my goddamn computer, is it a deal? Maybe stop dealing Flash ads? JS only? Maybe?

Now, I honestly don't use ad blockers. In the case of Arora or ReKonq, the only way is to turn off Flash, which is annoying, and in a general sense I don't mind getting ads. I do hate ads that break my browser, or which open popups, resize my browser, redirect me, etc. Stop that shit Fark, stop trying to open pop-ups, and fix the ad in the right-hand nav on the homepage and we'll be buds.

One more time: Don't complain that no one wants to view your ads when your ads are harmful.

Find LDAP groups with obsolete users

OpenLDAP has a nice "feature" that allows for group members to continue to exist, even if the user does not exist any more. Really handy! Problem is, if you, say, have a user in the "Domain Admins" group, and you delete that account, and then some normal user comes along with the same username, they will end up with unexpected elevated privileges.

So I created a script that I run weekly that finds group members that no longer exist, and sends me a report. It also tells me which groups are empty.

This relies on my toolbox... Find it here.

Using some of our new tools

Ok... Now that we have our toolbox Let's do something with it. Today we'll look at a simple solution to an everyday problem. Resetting a password.

Part 4: Wrapping up the foundations

Just to wrap up, and in case you are lazy like me, give you a whole file worth of subroutines. It's my toolbox and I'm giving it to you. I put this in a secure location and just call it from my other scripts. This makes the code much shorter in my other scripts, nearly auto-commenting, and avoids bugs because if it works in one, it will work in others.

NOTE: This uses the foundations in parts 1, 2 and 3. You can find them here: Part 1 Part 2 Part3

Part 3: The SubRoutines

Now for the tools. There's a lot here, but in further articles you will see how this can be useful. I'll go through each tool with what it does, how to call it, and then the code itself.

NOTE: This uses the foundations in parts 1 and 2. You can find them here: Part 1 Part 2

Part 2: Some Standard declarations and personalizing for your site

More foundational work. This stuff will configure for your site, and the routines that follow will regularly rely on them.

Opening Message

Hello and Welcome!

Over the course of my time as an Admin I've done a lot of Google searches and writeen a lot of code that has been very helpful to me in my work. I will be posting things here that hopefully will help you in your quest to master some of these technologies (Or simply stand on the shoulders of midgets).

I by no means consider myself a Perl or LDAP expert. It has been a "Learn as you go" ordeal. No formal training, just get things done on an as-needed basis.

I assume that you have a basic knowledge of PERL and LDAP.

Enjoy!

-Sean

xrayspx's picture

HOWTO: Properly SPAM A Blog

For anyone spamming blogs, especially my blog, this is the proper way to do it. This comment is vaguely related enough that it seems like maybe the person just missed the point they were trying to make, or is a bad writer. In fact, it was copied from this Amazon review of a DVD from 2007.

So rather than general Russian cyrillic nonsense, how about you morons try a little harder. I'm leaving that comment up as a monument to the way you idiots should be working. Put your damn back into it once in a while.

xrayspx's picture

Google Chrome Review @ 5 Minutes in

I've just been playing with Google Chrome from the Dev Channel site. After 5 minutes, I've got some things I hate.

  • Title Tabs Done Wrong:
    I like the idea of integrating the tabs into the title bar, however they don't go far enough. If you just reach up there and click-and-drag, chances are you'll grab a tab, and detach it or move it in the tab order.

    When Apple lifted this same trick in the Safari 4.0 betas, it was great because if you just grabbed any tab, it acted as the title bar would and moved the window, if you clicked and held, then started dragging, it would drag/detach that tab. That's how this should work.

    I like the fact that there's very little, well, chrome in Chrome. I like minimal layouts that give me maximum space for what I'm looking at and don't interfere. Chrome could probably drop 20 pixels by pushing the tabs to the top of the window and making them behave properly.


  • Tabs open behind current tab:
    This makes me nuts. When you click a link in the current tab, the new tab opens behind the current one, and not all the way to the right like I expect. Here's a use case that shows how worthless this is. If I'm on Fark, and Fark is on tab 4 of 8, and I click 3 links and 3 comment section links, they're now jumbled in as tabs 5-10, rather than 9-15. They're not where I expect them, they're where I have to hunt for them. This cannot currently be changed by the user.

  • No on-the-fly Search Selection
    I like Flock because, among other things, you can drop down the search box and choose an engine on the fly. By default Chrome will let you change your default engine between Google (go figure), Yahoo and Bing!. But there is no search box in the browser. What they mean by "default engine" is "what engine is used when you type text into an empty tab URL box, or highlight and right-click text in a page". That's pretty cool, but I'd love the ability to change that engine based on the context of the search rather than through Preferences. A good case is typing in "Big Trouble in Little China", dropping down the menu to IMDB and pulling up the IMDB page. The way to do that at present is to type "Big Trouble in Little China" into the URL box, right click the URL area, click Edit Search Engines, and tell it to make IMDB the default (after setting up the IMDB search engine yourself). Then you'll have to change your default back to Google later.

  • Mid Click Auto-Scrolling:
    There is none. One of my main gripes in Safari is the lack of auto-scroll. For anyone not paying attention, the idea is you click the middle mouse button, and then move the mouse up/down left/right to scroll around, no need to slavishly ZING a scroll-wheel/ball around to go up/down the page, or dive to the edge of the window and try to grab the scroll bar. Civilized, brainless, and easy on the tendons.

  • Chrome is low on Chrome:
    This is a "LIKE", I'm really happy with how sparse it is. The nav-bar + tab bar + window chrome is much smaller than Firefox, and even smaller than Safari. That gives more room to me and gives me a window that is small and tight, not annoying like FF. I also like the solution to the Status Bar, which is the bar at the bottom of Firefox or Safari where it shows you the destination of a link you're hovering, or how many items of a page have loaded.

    Chrome doesn't have a status bar, but instead they have a status "ribbon", let's say, that appears to cover part of the lower left of the window when you hover something or the browser has something to say, like that.

I'm sure there will be more, I'm not sure if it will be more positive or more negative. I suspect this will be another browser I use occasionally to see if it fixes the things I gripe about, and then put back in the drawer and go back to FF or Flock until it gets better, MOAR, or whatever.

Syndicate content