Relearning why I never wanted to be a programmer

Checkboxes, when unchecked, don’t send with the form. It makes sense. Therefore, when updating the database if this box is checked or not, I need to be sure the form field exists on the sent page.

It’s fine though! ColdFusion has a function for that!

Wait a second…

This doesn't seem right

I kept looking, mostly using the ColdFusion 8 documentation, and I saw something: quotation marks. Bang boom add ’em in and it works. ColdFusion’s idea of what does and doesn’t need quotation marks is a little difficult after 4 years of programming in C, plus two before that when I programmed in Visual Basic. In my mind, form.formwhatever is a variable, not a string. Yeah, so it might have a string inside it, but we’re not checking for that, are we? We want to see if a variable exists, and variables don’t hang out inside quotation marks. That’s what strings do.

The lesson here, honestly, is pay attention to syntax. Just because it seems stupid doesn’t mean you can ignore it, so you should save yourself the hassle and make sure the syntax is correct.


View local website on iPad over ad-hoc network: the solution

Now, I addressed this issue yesterday. Today, it seems I have a solution of some sort. Let’s get this out.

The Problem:

  • Laptop/webserver containing our software is to be used for demonstration
  • No wireless connection at the demo locations
  • iPads need to connect to the same software that is on the laptop. This shows both how the software functions and adds a new selling point… if the iPads work.

You may or may not have read the last entry, but I had a number of problems getting this working. The big one for me was that it worked two weeks ago but doesn’t now and I have no idea why. I’m still guessing DHCP issues somewhere along the line, but that doesn’t matter much. I did find a solution.

The Solution:

Intranet software on an iPad

I’m not really an Apple person. I admit, they have some great designs and ideas, but I’ve always used Windows. I’m comfortable with it, I’ve rarely had any issues (and those I have had are either my fault or a dll problem) and it just is easier for me than learning a new OS. I’ve had enough trouble trying to learn linux (it’s not bad but it keeps breaking on me and, since I don’t know it, it harder for me to fix) without diving into OSX.

My boss’s son is a Mac Guy, so my boss has a couple iPads. He gave me the task of figuring out how to make our web-based software work on them, since despite being a software development company, I’m the one with the most understanding of technology. I understand it, but it still strikes me as funny.

Anyway, the software stays on the local network, and my boss has a (Windows) laptop that he bought for demoing the software (and for navigating his 25-year-old yacht, but it’s his company so he can do whatever he wants) which will be running the ColdFusion server and have the software on it. Since ColdFusion wasn’t on the laptop, I used mine.

Now, the details here are hazy, but since the laptop was on wired and the iPad was on wireless, I couldn’t see the software on the web browser. I think I tried putting them both on the same wireless network, but even if that worked, I didn’t feel like I should assume open wireless networks wherever we need to demonstrate the software. Our customers are the kinds of people stuck in the 70s, and for the most part, that’s fine. Their business doesn’t require staying completely up to date on everything, but our software can help them save a lot of money (and give a bunch of it to us!).

My original solution was simple and seemed to work until we ran into a “ColdFusion Developer Edition only allows 2 outside IPs to access it and you accidentally ended up using 3!” error. This is what I wrote down for my future-self and colleagues to work with:

  • Create/connect ad-hoc network on the laptop
  • Connect to ad-hoc network on iPad
  • Open Safari
  • Connect to the application using the computer name and then the name of the location of the software
  • it should work. Log in and go

Of course, since we got my boss’s laptop running our software with an actual ColdFusion licence, I’m back on the project. The first thing I did was test to be sure the software worked on his machine, and then I set out connected the same way I did weeks ago.

It didn’t work.

I honestly shouldn’t be surprised, but I am. It worked perfectly before and now I can’t get it to connect. I can connect via ad-hoc network from my machine to my boss’s machine and see the software in my browser, but not the iPad. Personally, I feel that the fact that I could do that means that answers like these are bullshit. Unfortunately, I still have no answer. Well, okay this answer is pretty nice, but I’m running Windows 7 with IIS, so I have no idea where to even begin with that.

Anyway, I did end up getting something that worked. I overlooked this originally, even though I feel it’s a poor solution considering the circumstances I discussed above.

If the laptop is connected to the same wireless network as the iPad, you can access the laptop’s website by using the IP address. Not the computer name, sadly. I would prefer that, but safari on’t stop tacking on “http://www.” and “.com” around it, even when I put the software location on the URL. I can’t help but think there’s a solution for that, but I’m happy something works for the time being, for testing, but this is not what my boss wants.

I did find this guy who wants to do what I’m trying to do, but no answer there, either. It was also suggested that windows firewall was the problem, but that site seems to be talking about something slightly different than I’m looking for.

So far, no answer.

Polymer Clay Failure

I like polymer clay. I haven’t gotten anywhere near good at sculpting, but it’s fun. I’ve made a few decent things so far. Recently I made some cakes to practice the texturing, a couple cookies and a couple cats. The cats ended up being my father’s day present to my dad, since he seemed to like them.

Now, I recently got an old toaster oven. My grandfather didn’t want it, so I got it. I decided to try doing another cane. I tried making an orange cane the first time, but instead of looking like orange slices, they looked like carrot slices. This time, I went with limes.

The first issue with canes is that I start them out too thick. I was following this tutorial and I simply am not talented enough to use the same proportions that this person does. The cane got all sunken in at the middle, since the outer edges get squished out first. It also got twisted from a lack of care when I was rolling it out. I think I know what to try next time to see if I do any better.

That’s not the main issue, though. I cooled and cut the cane, (which was also a mistake. Bake first, then cut!) put it onto the tinfoil-covered sheet, popped it into the oven and set my phone for the proper amount of time based on their size.

Now, before I go on, I want to add that the past few times I’ve baked clay it’s “smelled” more than I remember it smelling before. I think it might have to do with my nose being less clogged than usual and the fact that I was using oven bags, so the scent stayed in one location instead of leaking out of the tin foil.

My aunt walks in and says “smells like something is burning.”

This should have been my second hint, but I just pointed to the oven and said I was baking clay. “It always smells!” said nieve me.

“If my rug is burnt I’ll be upset.”

“It won’t be.”

My timer went off at about 8 minutes, which in retrospect was also at least 2 minutes too long based on the thickness and if the oven had been the right temperature anyway. I turn it off, and open the door and the only person surprised that my canes were burnt is the me that saw them that exact second.

Next time, I’ll keep an eye on them.

Password Management

I have a few post drafts that need finishing, but I want to talk about passwords.

I’ve been unhappy with my passwords for a while. I had a very small set of commonly used passwords depending on what kind of site it is. The best password is for my bank account, obviously. That one doesn’t get used anywhere else. Then other important stuff: sites where you buy things, email, heavily personal information and similar had the same password. All my bloggy-type sites had the same password, and pretty much anything else had my most common password.

Four passwords? Heck, it’s practically only two when it comes to the vast majority of sites that want me to log in. This upsets me.

I wrote up a scheme, originally, to help me manage my passwords. If I can remember 4 passwords and my own phone number without a problem, then theoretically I should be able to remember 8 or 10 passwords. Then I can break down sites: bank, e-mail, social network, e-commerce, picture hosting, music sites, bloggy stuff, roleplay and writing…. Then again, shouldn’t e-mail all have different passwords? I don’t want someone to easily access all my e-mails. That’s pretty much taking everything from me.

It’s obviously a big job. Besides, my current password system involves a small sheet of paper that’s about 8 years old tucked away in a wallet.

I could really only make things worse for myself if my passwords were all “abc123” or “password.”

At first, I looked into some password management software. I liked the idea of having everything on a USB drive. Then i remembered: I have an android phone. Welp, that idea was out. I scrapped it and started on my quest of changing passwords. I made a list of websites I used to fit with my type list, and a “minimum security” style for each. For e-mails, I really wanted to use long passphrases with at least one number and symbol, if not more. Less important sites don’t even support passphrases so they would have to have at least x numbers and symbols, and of at least y length, each depending on how much I care if someone breaks in or not. I wrote this all down and developed passwords for each.

Still unsatisfied, I look into things I CAN use with my droid. Apparently dropbox can be used with many password software packages and quite a few of them have apps for Android phones. That’s perfect!

So I downloaded keypass and installed it on dropbox, downloaded the keepass app onto my droid, downlaoded ChromeIPass for my browser, and tried it out with a few unimportant sites.

The good:

  • They work well with little extra effort past the initial setup
  • There is an option to generate passwords, including what kinds of characters to use, what length, and even a pattern you might want.
  • You can also just type in whatever password you’ve made yourself

The bad:

  • I have yet to figure out what to do in the case of using someone else’s computer
  • You can’t generate a password using a real word, so there’s a low chance that you won’t remember any generated passwords
  • You have to trust the software with your passwords
  • Where do you put the key files? Normally the idea is for them to be on a USB drive so nobody can log in, even if they know your password to keepass. However, with an Android….

Some of the issues are obviously solved with extra work (or, really, work I’ve already done) on my part. I’ll probably be moving everything to keepass slowly, in the same way I rolled out my passwords earlier: one “group” at a time.

I clearly still have a lot of work ahead of me, and I’m pretty sure that I don’t have a truly good answer yet, but I wanted to put this out there. Passwords are a hassle, but the security is worth it.

First Lesson: My New USB Headset

I bought a USB headset over the weekend, and it came in the mail yesterday. I tested it out over Steam with a friend of mine, and hey! It worked! I can hear him and he can hear me. Sadly, nobody with non-satellite Internet was around for my to play video games with, so I set it aside.

Of course, later, I wanted to listen to a song, but the computer is in the living room and I didn’t want to interrupt the TV-watching, so I put on the headset. No sound came through. I pressed the volume buttons on the headset, and the volume went up and down. Huh.

I clicked the little sound icon, and it showed my speakers and the headset. I clicked on the mixer for the headset and… what? It just showed “all” and “steam.” No browser volume, no Windows Media Center volume. Nothing! So I searched the Internet for answers. “How do I used a USB headset as headphones?” The first result was this Yahoo! answers question. One person saying I needed a USB to 3.5mm converter to use the headset to listen to music and two more saying “Lololol just play music stupid!”

After more searching and no answers, I made a frustrated comment to the friend I tested the headset with. He told me his USB headset works as headphones. Surprised, I asked how. This is the answer (for windows 7 and Vista, anyway):

  • Right-click on the sound icon.
  • Choose “playback devices.”
  • Click the headset in the list that appears.
  • Click the button that says “Set Default.”
  • It works!

It’s irritatingly simple, and I hate that I didn’t figure it out myself, but what can you do? The kicker is that I bought the same headset that my coworker uses to listen to his music (but his was bought by the company. Lucky bastard.) and he had no trouble listening to music on it. I had to help the man use his laptop screen as a second monitor. (Control-P. Choose extend. There! Dual monitors!)

All in all, though, it’s still better than the Login Incident.