I’d never used the program before, but in less than an hour I’ve got a great flowchart going to help me plan everything out. This thing is fantastic. I’d tried freemind, but it’s more of an outline tool, so you can’t link back to an earlier statement. There’s only one parent for any given possibility. Hooray for Visio!
Saturday, October 22, 2011
Friday, October 21, 2011
Mobile app developments
A victory! worked through the remaining bugs on the WP7 app in fairly short order. I have a program now! It’s lacking content, and is pretty ugly, but it works. Now to add functionality, content, and make it look nice. How hard can that be?
Wednesday, October 19, 2011
App writing, Getting started
I’ve downloaded the free tools from Microsoft and Google for their respective sdk’s and worked on getting both running. I’ve given windows phone the most soak time, so I’ll start with that one.
In all, the toolset provided by visual studio is pretty impressive. I’m used to writing code in notepad and compiling from a command line, so things like intellisense are pretty handy. Good coding practice is to give variable names things that make sense, like “PointertoHandleExceptionsDuringRuntime.” I never liked names like that because they took so long to type, so I settled for variable names that were much shorter to type, like “bob and “noon”. I’ve written a great deal of bob++ in my day. Intellisense makes it possible to start typing a variable name, and it guesses what you’re writing and helps you complete it, so I only have to type as many letters as bob, and get a more descriptive name like the one mentioned above. See? I don’t even want to copy paste it, it’s so long!
There’s also a pretty fantastic set of videos I found on www.learnvisualstudio.net by Bob Tabor called Windows Phone 7 for absolute beginners. It uses the free tools, and is intended for people who don’t know how to program. I used to know how to program, so it’s a bit slow for me, but each video shows a trick with the tool that is handy to know, and I’m learning some of the nuances of C# and XAML, the code used to write WP7 apps.
Laying out the program took less than a day (it’s a very simple program). The content will likely take me a couple of months to write, I’m hoping to be able to format it in such a way that I can reuse it. The code…. well…. the code is getting there.
I found some sample code that does something similar to what I’m trying to achieve to use as a baseline and hack into what I want to accomplish. The code was written with the beta version of the SDK, so there are some things done that don’t work. That’s disappointing, but I was able to quickly find and correct those issues, and the sample program runs fine. My real gripe comes from the fact that lines of code that I’m taking from that program are not working in the new program. Simple things that should work, like resource declarations.
At the beginning of a program, you declare what resources from the phone your program is going to need to run. One line, “using Microsoft.Xna.Framework;” works fine in the sample program, but not in mine! It boggles my mind that such a simple thing isn’t working. I suspect is has something to do with the original program template that I used, but it seems strange that you would be denied resources based solely on the template. All that being said, I think I can overcome these hurdles.
Whenever I want to feel better about my progress on the WP7 app, I switch over to Android development.
It sucks.
Out of the box, fresh from installation, I tried to create a VM, and it refuses to launch. The error that pops up tells me to type something in a command window that does not exist. Google, while being a great search engine to find content, does little to add to that content through their own documentation of how to use their tools.
I’m sure I’m missing some subtle detail, but the difference so far is that with the microsoft tools I was able to get into writing the program before I started hitting snags and errors. With Android, I can’t even get into the tool!
Monday, October 17, 2011
The Company Man, part 19
Jonah did not look his usual, kempt self. He wore a t-shirt, jeans, and the butt of a cigarette dangled from his lips. “When did you start smoking?” Henry asked, surprised that of all questions, he would ask that one. “Was it because you got laid off?”
Jonah cracked a smile. “I always did like you Henry,” he mumbled. “Come with me. We have some serious problems to resolve.”
Henry hesitated. “Jonathan told me to stay here,” he said. “I could lose my job if I don’t listen to him.”
Jonah stared at Henry with eyes he’d not seen before. “This goes beyond your job Henry,” Jonah explained. “I don’t know what Jonathan has told you, but people are dead.”
“I heard about that,” Henry said, protesting. “It was one of the clones! Jonathan moved me here to keep me safe.”
Jonah continued to stare with those strange eyes in silence for several moments. He then reached into his back pocket and pulled something out. It was a badge that read, FBI. “Henry,” Jonah commanded. “Get in the car.”
Henry did as he was told. It was a black charger. Henry recognized it as one of the unmarked police cars that often sat in speed traps. Jonah put out the cigarette before getting into the car, then sat down and began to drive.
“When did you get a job with the FBI?” Henry asked.
“About twelve years ago,” Jonah answered. He held up his hand to stop Henry’s line of questioning. “Let me explain. Henry, I’ve been working undercover for the past year at Privex. We’ve known for some time that they were up to something, and what you just told me was the final piece of the puzzle.”
Henry tried to think about what he’d said, then realized he’d mentioned the clones. “Oh no!” he moaned. “Now I know I’m going to lose my job.”
“That’s going to happen regardless,” Jonah observed tersely. Privex has broken enough laws that there is no way that company can hope to stay together. Henry you recall about six months ago the patents for Privex’s main money-makers ended?”
“Sure,” Henry answered soberly. He could not imagine having to find another job.
Jonah continued. “They have a few things in the pipeline, but nothing that’ll get approved by the FDA for another few years. Even if they do get approved, they won’t be the big money that the company enjoyed in the past. A lot of analysts had given them up for dead. The stock price has been devalued three times in the last quarter alone. That’s a pretty bad sign of a company going under. They needed something new, but even a magical breakthrough drug would require FDA approval, and there was no guarantee that the company would be able to remain liquid long enough for that happen. You follow me so far?”
Henry nodded, and this time he actually did. Numbers were the one thing he did understand.
Jonah continued. “So imagine our surprise when suddenly the company finds the money to build a whole new top secret research facility adjoining the existing building. Something like that does not come cheap, and they were not financing it through sale of stock, because the stock didn’t have the necessary value. Private investment is not unheard of, but the names disclosed were from agencies with known ties to triads and Columbian cartels. These groups have had some bitter rivalries in the past, so imagine our surprise that both were willing to put money into a failing drug company. We assumed that Privex was being hired to make the next marijuana or heroin. They sent me into accounting to try and figure out from the expenses what kind of drug they were working on, but the expenditures didn’t make sense. They were building dorms and buying full body CAT scan machines, as well as DNA sequencers. This is not the kind of stuff you use to develop a better meth.”
The car pulled onto the highway and Henry felt himself sink into the chair as Jonah accelerated. He did not drive fast and hard like Jonathan, but certainly had no problem going quickly. He flipped a switch and the flashing lights came on, but no siren. Jonah picked up a radio broadcaster and made an announcement. “This is Jonah,” he stated. “I have the suspect in custody, and we’re enroute back to the crime scene.”
“What?” Henry asked. “But, Jonah, you must know I didn’t do this thing.”
“I do,” Jonah replied. “And if you want to get out of this without much or any jail time, you’d better do exactly as I say.”
Friday, October 14, 2011
App writing, a journal of the experience
I’ve opted to try my hand at creating a simple app for mobile devices. The idea is to create a program that is free, but with content one pays for, and then produce a steady stream of content as a a revenue generator. I’d like to produce the app for the iPhone, Android, and Windows Phone 7. Given that I don’t have a mac, I’ll start by developing for the latter two initially. I’ve not written code in many years, so it’ll be a pretty steep learning curve, and will post thoughts and opinions about developing with the different tools as I go.
I may also just give up at some point, in which case you may never hear of this ever again.
Monday, October 10, 2011
The Company Man, part 18
As Henry walked toward the front entrance, he saw a car sidle up next to him. It was Jonathan.
“Get in,” he ordered softly.
“What’s going on?” Henry asked.
“Get in,” Jonathan ordered again.
Henry paused, then did as he was told. Jonathan did a tight u-turn and drove out of the parking lot. He said nothing until the got out onto the highway and the wind made it hard to hear.
“Someone killed Hassan and Osam from inventory last night,” Jonathan stated soberly.
Henry’s eyes widened and his jaw dropped. “Do they know who did it?” he asked.
“Yes,” Jonathan answered. “It was all caught on tape. They have a clear picture of the killer’s face.” Jonathan paused for a moment to take a turn sharply. “It was you,” added as they straightened out.
Henry was still in shock from the fact that two men had been killed. It did not fully register what else Jonathan had said, so Jonathan continued. “Obviously, one of the clones has lost his mind. The problem is that we don’t know which one. We don’t have a good way to tell them apart as it is. They could’ve traded cards easily. I suspected some have been doing it for a while. They’re trading identities as part of a small gambling ring one of them organized. It has something to do with the weathergirl. I don’t know much beyond that.”
“What are you going to do?” Henry asked, finally finding his voice again. The fear in his voice came through clearly, even with the wind howling past the car.
“Find the one responsible, and turn him over to the police. They’ll be arrested as you.” Jonathan turned to Henry. “Sorry, but it looks like you’ll have to stop being you.”
Henry blinked, unable to discern what that really meant. Jonathan continued to drive in silence. They left the city limits and drove into the suburbs. Periodically, Jonathan would take a turn sharply, and then watch the rearview mirror to see if anyone was following them. After nearly an hour, they approached a small, run down motel. “Wait here,” Jonathan instructed. He ran in, grabbed keys off the desk, and came back outside.
“Don’t you need to check in?” Henry inquired.
Jonathan rolled his eyes. “I’ve got an agreement with the owner. I give him a call. He puts a key out, goes to lunch, and can say that he never really knows who’s using that room around the corner.” Jonathan puled the car around to one of three rooms that could not be seen easily from the road. He did not shut off the engine. “Yours is the first. Get in there, don’t call anyone, and wait for me to come back and get you when this is done.” Henry dutifully obliged. Jonathan did not wait to see that he got in, but instead sped away as soon as Henry was clear of the car.
Henry felt nervous inside the motel room. It was clean enough. He’d imagined a bug infested hell-hole that stank of mold and rotten food, but it was well-lit, with a made bed and no signs of infestation. The TV worked, but the phone did not. Henry would not be making any calls anyway.
As he sat down he realized he had no change of clothes, no food, only about $20 in cash in his wallet, and a bunch of credit cards he could no longer use because he had to hide from the police until they caught clone that committed the murder.
Henry turned on the TV and changed it to the weather channel, but they had driven far enough to be a different region, and tall, heavyset man was forecasting rain. Henry flipped through a few different channels, then turned the TV off with a frown. He didn’t enjoy hiding, especially because he had no reason to hide!
There came a knock at the door. Henry assumed Jonathan had forgotten something, perhaps he’d brought him lunch. As he opened the door, he found himself face to face with Jonah.
Monday, October 3, 2011
The Company Man, part 17
Henry did not know who he was anymore. He still got up at the same time, watched the weather channel, ate his breakfast, and went to work. But that work changed from day to day. Jonathan rotated him through two dozen different positions. In some, he’d done quite well, such as janitorial duty. In others. like answering the phones at the front desk, he’d not done so well. They seemed to be testing him to see what things he could do. After a day or two, they’d move him somewhere else and replace him with a clone. A lot of employees had already been let go from Privex. He could tell based on how fewer cars were in the parking lot after just a month or so.
A phone message from Jonah at home revealed to him that the entire accounting department had been let go. Henry felt awful. He went to bed early but found he could not sleep, so he tossed and turned and imagined his coworkers out of a job, and Jonah standing by the side of the road with a cardboard sign reading, “Will work for food.”
He’d tried calling Jonah back, but the caller ID did not reveal the number, and it saddened Henry to realize that he could not remember Jonah’s last name to look him up in the phone book.
Every time Jonathan appeared, Henry now cringed, as it meant some new change.
The paychecks were still coming in strong, but Henry did not care much about the money anymore. When he finally did build up the courage to tell Jonathan that he did not want to do this anymore, Jonathan reminded him of a document he’d signed with Lenny the lawyer, committing himself to remain with the project. Otherwise, he’d have to give up the money he’d made since the project began, and likely face a lawsuit from the company for breach of contract. That made him so nervous, he threw up shortly thereafter. Fortunately, he was working as a janitor at the time, and so was able to quickly clean it up.
People in the company no longer looked at him. They knew that if they saw him coming, it meant he was coming to take their job. He was ostracized by everyone outside of the R&D lab, and those inside did not seem to care enough about him to show any compassion.
Not even his mother could cheer him up.
Henry tried different restaurants, even really expensive ones, but the food had gone bland. He’d had no idea how much he missed the few friends he had until they were gone. Jonathan did not care about him. Jonah did. When he’d been out sick months back, Jonah arranged for a card to be passed around the office, and took the time to mail it to him. He’d even invited him out to lunch a few times. Now Henry just wanted things to go back to the way they were, back when he worked in accounting, making his meager 4% merit raises, but it was far too late for that.
At three months, Henry found himself having a hard time getting out of bed. He thrived on consistency, but had none of that for quite some time. As such, he overslept and ended up coming to work late. When he arrived, there were several police cars at the front entrance.