Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
User Journal

Journal Journal: How to make "mobile-friendly" web pages 3

I finally got the full texts of Nobots and Mars, Ho! to display well on a phone. My thanks to Google for showing me how, even if the way they present the information is more like trial and error, but it's actually easy once you jump through all their hoops. I'll make it easy.

First, you need to make sure it will fit on a phone's screen. I've been preaching for years that it's stupid to use absolute values, except with images; if you don't tell the browser the image size and you are using style sheets, your visitors will be playing that annoying "click the link before it moves again" game.

Some of you folks who studied this in college should demand your tuition be refunded, because they obviously didn't teach this.

Giving tables, divs, and such absolute values almost assures that some of your visitors will have that incredibly annoying and unprofessional horizontal scroll (*cough* slashdot *cough*).

None of the elements (images, divs, etc) can be more than 320 pixels wide, and you need to tell the browser to make it fit on a screen. To do this, add this meta tag to your page's head:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Next, you need to make sure the text is large enough to read without double tapping. The <p> tag does this:

<p {min-height: 16px}>

This needs to be placed after the <body> tag and before anything having to do with text.

To test it, just pull the page up on your phone. If it scrolls sideways, you need to work on it.

If you're worried about your Google pagerank, Google has a "mobile friendly test" here. If you flunk, well, when Google says "jump"...

My main index page fails their test. To make it pass the test I would have to ruin the desktop/tablet design. As it is now, the text is readably large on a phone but it has a sideways scroll, which is tiny if you hold the phone sideways, and I added a link at the very start of the page to a version that will pass Google's test, looks fine on a phone, not bad on a tablet but looks like excrement on a computer. The main index works fine on a tablet, since I've made it as "mobile-friendly" as possible.

I'd have it redirect if it saw Android or iOS, but it's been fifteen years since I've done that and I've forgotten how.

First Person Shooters (Games)

Journal Journal: Arm the teachers? 6

We recently had a school shooting in Washington state where the (student) shooter was stopped after firing but before hurting anyone. He was indeed stopped by a teacher from that school.

Did the teacher draw a weapon and send lead flying down the hallway? No. The teacher tackled the boy to disarm him. The school principal also helped to hold down the student until police arrived.
User Journal

Journal Journal: Sorry I haven't written...

I have two new stories nearly finished, but I've decided to see if I can sell first publication rights to a magazine. If everyone rejects them, I'll post them then. If one is accepted, it will likely be quite a while before I can post.

With three books in the works I've been really busy. Hell, I've been working harder since I retired than I did when I worked! I got the index pages to my three published books and the "coming soon" page for Yesterday's Tomorrows "mobile-friendly". I don't know why I'm bothering; almost nobody surfs in on a phone or from Google. But at any rate, I got the book Triplanetary and the first two chapters of Mars, Ho "mobile friendly" as well. The Time Machine is next; the epub versions of my books are better than the HTML versions, on a phone, anyway. Twain, Dickens, and God are going to be mobile-hostile for quite a while because of all the artwork in them.

I couldn't make the main index "mobile friendly" without making it look like crap on a computer screen, so I made a copy "mobile friendly", posted it as mobile.html and added a link from the main index.

Site stats say Google has spidered, so I tried to find Mars, Ho!" by googling on the phone. Nothing but Marsho Medical Group, Andy Weir's The Martian, and a facebook page for someone named Mars Ho. Googling "Mars, Ho! novel" did bring up Amazon's e'book copy halfway through the page.

"Mars, Ho! mcgrew" brought up Amazon's e'book first, followed by the mobile-hostile main index, THEN the actual Mars, Ho! index which IS "mobile friendly" (it passed their test). And I thought "mobile friendly" was supposed to raise your ranks? What's up, Google?

The second copy of Yesterday's Tomorrows came yesterday. I didn't expect until the day after tomorrow. I went through it twice yesterday and it's almost ready; there is still a little work before it's published, but it won't be long.

It's a really nice book, with stories by Isaac Asimov, John W Campbell, Murray Leinster, Frederik Pohl, Neil R Jones, Kurt Vonnegut, A. E. Van Vogt, Theodore Sturgeon, Poul Anderson, Phillip K Dick, Frank Herbert, James Blish, Lester del Rey, and Jerome Bixby. Covers of the magazines they appeared in are shown, with short biographies and photos of the authors. It's also well-illustrated with illustrations from the original magazines.

Random Scribblings: Junk I've littered the internet with for two decades will probably be next year.

Oh, how do you like my new shirt?

User Journal

Journal Journal: Neglected Slashdot Feature: Message when friend posts JE 7

It seems that some people might not be familiar with this function, so I thought I'd mention it as I find it useful. Slashdot can send you a message when someone on your friends list posts a Journal Entry (JE). This feature is under "Message" in the "User Preferences" settings. If slashdot renders as oddly in your browser as it does in mine, you now get to User Preferences by clicking the icon that looks like a 6-toothed gear that should be near your name in a small panel on the front page. Then once that is open, find the "Messages" settings (in my case it is the last link on the right). Scroll about half-way down until you see Journal Entry by Friend. In there, you'll see several options
  • No Messages
  • E-Mail
  • Web
  • AIM
  • REST API

I find the Web option to be the most useful myself, by YMMV.

User Journal

Journal Journal: Product Review: Seagate Personal Cloud 5

Around the first of the year all three working computers were just about stuffed full, so I thought of sticking a spare drive in the Linux box, when the Linux box died from a hardware problem. It's too old to spend time and money on, so its drive is going in the XP box (which is, of course, not on the network; except sneakernet). I decided to break down and buy an external hard drive. I found what I was looking for in the "Seagate Personal Cloud". And here I thought the definition of "the cloud" was someone else's server!

I ordered it the beginning of January, not noticing that it was a preorder; it wasn't released until late March. I got it right before April.

I was annoyed with its lack of documentation -- it had a tiny pamphlet full of pictures and icons and very few words. Whoever put that pamphlet together must beleive the old adage "a picture is worth a thousand words". Tell me, if a picture is worth a thousand words, convey that thought in pictures. I don't think it can be done.

I did find a good manual on the internet. For what I wanted, I really didn't need a manual, but since I'm a nerd I wanted to understand everything about the thing. Before looking for a manual I plugged it all up, and Windows 7 had no problem connecting with it. It takes a few minutes to boot; it isn't really simply a drive, it must have an operating system and network software, because it looks to the W7 notebook to be another file server. Its only connections are a jack for the power cord and a network jack.

The model I got has three terrabytes. I moved all the data from the two working computers (using a thumb drive to move data from XP) and the "cloud" was still empty. Streaming audio and video from it is flawless; I'm completely satisfied with it, it's a fine piece of hardware.

However, it WON'T do what is advertised to do, which is to be able to get to your data from anywhere. In order to do that, Seagate has a "software as a service" thing where you can connect to a computer from anywhere, but only the computer and its internal drives, NOT the "personal cloud". And they want ten bucks a month for it.

I downloaded the Android app, and I could see and copy files that were on my notebook to my phone, but I couldn't play music stored there on it. I uninstalled the crap. "Software as a service" is IMO evil in the first place, but to carge a monthly fee to use a piece of crap software like this is an insult. Barnum must have been right.

If you're just looking for an external hard drive, like I was, it's a good solution. If you want what they're advertising, you ain't gettin' it. The Seagate Personal Cloud's name is a lie, as is its advertising.

User Journal

Journal Journal: Gun Fail of the week 9

A toddler was killed in Cleveland, Ohio, on Sunday afternoon when a 3-year-old boy accidentally shot him with a gun that had been left unattended in a home

Seriously, doesn't anyone give a shit about irresponsible gun owners?

neighbor Larry Simpson said of the family. "It's a shame this had to happen."

Apparently not. If this "had to happen" then apparently we have to have irresponsible gun owners, whose irresponsibilities lead to the deaths of innocent people.

The Internet

Journal Journal: ICANN confirms that ICANN sucks 2

ICANN unilaterally made the decision some time ago to start selling gTLDs; in spite of the volume of complaints they received before hand over the consequences of said awful idea. As much as they claimed that selling them would bring world peace and universal awesomeness to all, that did not transpire. In fact, they even sold ".sucks" TLD to someone who took their game to the next level:

.Sucks Seller Accused Of Ripping Off Poor Helpless Celebrities

Now, I don't have a whole ton of sympathy for some of the victims, but this could have been prevented. If ICANN was actually concerned about the coherence of the internet - rather than just the depth of their own bank accounts - they would have realized that selling gTLDs is a terrible idea.
Republicans

Journal Journal: A Teflon Endorsement 9

Pawlenty talks up Wisconsin's Walker for president, demurs on own political future

He forgot to talk up another similarity between them - they both spent years running for president only to crash and burn. I'll predict now that the Kevlar Kandidate will be the first to bow out after the Iowa caucuses. It will be fun to watch, though.

Unfortunately Wisconsin will still be stuck with him for a while after, as he will still be "governor" after losing the GOP nomination.
Republicans

Journal Journal: Michelle Bachman Compares Obama to Andreas Lubitz 65

Former presidential hopeful Michelle Bachman recently compared President Obama to Germanwings copilot Andreas Lubitz:

"With his Iran deal, Barack Obama is for the 300 million souls of the United States what Andreas Lubitz was for the 150 souls on the German Wings (sic) flight - a deranged pilot flying his entire nation into the rocks. After the fact, among the smoldering remains of American cities, the shocked survivors will ask, why did he do it?"

No, this is not an April Fool's joke. She really is that far disconnected from reality.

User Journal

Journal Journal: We've been spelling it wrong for over a quarter century 8

I'm surprised that this hasn't been addressed by the academic communities. Someone with a degree in English or linguistics or something like that should have though of this decades ago.

This word (actually more than one word) has various spellings, and I've probably used all of them at one time or another. The word is email, or eMail, or e-mail, or some other variation. They're all wrong.

It's a contraction of "electronic mail" and as such should be spelled e'mail. The same with e'books and other e'words.

So why hasn't someone with a PhD in English pointed this out to me? I have no formal collegiate training in this field. It's a mystery to me.

User Journal

Journal Journal: Are printed books' days numbered? 4

In his 1951 short story The Fun They Had, Isaac Asimov has a boy who finds something really weird in the attic -- a printed book. In this future, all reading was done on screens.

When e'books* like the Nook and Kindle came out, there were always women sitting outside the building on break on a nice spring day reading their Nooks and Kindles. It looked like the future to me, Asimov's story come true. I prefer printed books, but thought that it was because I'm old, and was thirty before I read anything but TV and movie credits on a screen.

And then I started writing books. My youngest daughter Patty is going to school at Cincinnati University (as a proud dad I have to add that she's Phi Beta Kappa and working full time! I'm not just proud, I'm in awe of her) and when she came home on break and I handed her a hardbound copy of Nobots she said "My dad wrote a book! And it's a REAL book!"

So somehow, even young people like Patty value printed books over e'books.

My audience is mostly nerds, since few non-nerds know of me or my writing, so I figured that the free e'book would far surpass sales of the printed books. Instead, few people are downloading the e'books. More download the PDFs, and more people buy the printed books than PDFs and ebooks combined.

Most people just read the HTML online, maybe that's a testament to my m4d sk1llz at HTML (yeah, right).

Five years ago I was convinced ink was on the way out, but there's a book that was printed long before the first computer was turned on that says "the news of my death has been greatly exaggerated".

* I'll write a short story about the weird spelling shortly.

Republicans

Journal Journal: The Kevlar Kandidate Wants A 7-Day Workweek, No Days Off 78

He already signed a law that gets as close to abolition of public-sector unions as any that has ever passed in this country. He has already gone back on his word to not be interested in attacking private-sector unions, in voicing his support for a similar bill for private-sector unions. He has also shown big support for "right to work" laws.

But none of that is really good enough for the Kevlar Kandidate, at least not when he's running for president. He has to out-conservative the likes of Rick Perry, so he has to really show he's willing to screw the working class as hard as possible for maximum enjoyment of as few as possible.

Well, this might do it: Could Wisconsin's Scott Walker now abolish the weekend?

State law currently allows factory or retail employees to work seven days or more in a row for a limited period, but they and their employer have to jointly petition the Department of Workforce Development for a waiver. These petitions apparently number a couple of hundred a year. The new proposal would allow workers to "voluntarily choose" to work without a day of rest. The state agency wouldn't have a say.

It can't be a secret what "voluntary" really means in this context. As Marquette University law professor Paul Secunda told The Nation, the measure "completely ignores the power dynamic in the workplace, where workers often have a proverbial gun to the head." Workers will know that if the boss demands it, they'll be volunteering or else.

Going on...

Bloomberg economic analyst Christopher Flavelle wrote recently that as measured by improvement in "the living standards of the people he represents...Walker's tenure falls somewhere between lackluster and a failure."

It's funny.  Laugh.

Journal Journal: Smitty, do you know this guy? 20

Someone just introduced themselves in one of my journal entries, and the way he writes you could be brothers separated at birth. I thought you were quick to move the goal posts, but if you two teamed up I'd never even see them!

Take a look at the humor starting here. To make it even better he has a much higher UID than my own and over 5,000 comments to his credit, so I would bet the hits just keep rolling!
User Journal

Journal Journal: Where's my damned tablet? 11

I'd like to know why in the hell nobody is selling a tablet, or maybe an app for existing tablets, that will let me watch over the air TV on it?

All the necessary hardware is there. Wi-fi and bluetooth are radios. Some cell pones can pick up FM music stations, and have been able to do so and have done so for years.

The FM radio band sits between channels six and seven on the VHF television channels. If it can hear radio, it can see TV.

The technology is there, why isn't the commercial device to be found? Offer a tablet I can watch TV without the internet and I'll buy one. Maybe two.

Slashdot Top Deals

"When it comes to humility, I'm the greatest." -- Bullwinkle Moose

Working...