MacBook, defective by design banner

title:
Put the knife down and take a green herb, dude.


descrip:

One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com

Using 89% of the same design the blog had in 2001.

FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white.

As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green.

x

MarkUpDown is the best Markdown editor for professionals on Windows 10.

It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support.

Features you won't find anywhere else include...

You've wasted more than $15 of your time looking for a great Markdown editor.

Stop looking. MarkUpDown is the app you're looking for.

Learn more or head over to the 'Store now!

Monday, June 22, 2020

Are you kidding me?


new ios home page with custom sizes for widgets


windows phone homescreen

Labels: , ,


posted by Jalindrine at 6/22/2020 02:02:00 PM
Monday, February 29, 2016

No, no, I'm not nearly ready for app review. Instead, I'm relaying (via Michael Tsai) a fairly interesting post from (buried lede...) an indie development newsletter. (Aside: Have you noticed that email newsletters are picking back up some steam?)

Lots of rejections followed by acceptance

After building the app in just 3 months, I had to enjoy 3 more months of App Rejections before finally releasing it to the Apple Store.

It's an almost humorous self-prep case-study so that you know once you're done with an app, you're not done.

Unless you're on the Windows App Store, or at least the old Windows Phone 8 app store, which almost immediately approved my app when it had a show-stopping bug on launch once deployed on any device but mine, which was fun.

Which is to say, the Windows Phone app store reviewer didn't even open my app before approving it. Wow. Or maybe immediately crashing looked like a feature? ;^)

Labels: , , ,


posted by ruffin at 2/29/2016 02:13:00 PM
Sunday, November 09, 2014

EDIT: I missed a big difference that I'll hopefully update in a bit -- The microphone has moved as well! So you have to drill a hole for the mic in the bottom of the case or folks will think you're talking from behind a wall. Oops.



The HTC 8XT is essentially an HTC 8X (AT&T, Verizon, T-Mobile) changed just enough to work on Sprint's network (and, in my case, Ting's).

So I figured I'd grab a Speck case for the 8X, apparently the much more popular model, while they were on sale to use on my 8XT.

Whoa. Not so fast, my friend.

It turns out there are three distinct ways that the 8XT is physically different from the 8X, and two of those are pretty important when trying to use an 8XT with the 8X case.
  1. The USB port has moved from the bottom center on the 8X to the bottom side on the 8XT.
  2. The camera flash has moved from the side of the camera lense on the 8X to under the camera lens on the 8XT.
  3. The 8X's rear-facing speaker grill is gone (I'm assuming that's what it is).
I annotated this picture from Engadget's comparison of the two HTC 8s.



The Speck case for the 8X fits perfectly on the 8XT otherwise.[1] The power, camera, and volume buttons align exactly. But the charging port is inaccessible, which is, obviously, an absolute dealbreaker -- especially for me, as I managed to crack my phone's face in the Great Desk Drop of 2014, and it shatters a little more with each insertion/extraction from the case. I'm not, and I can't see anyone, removing and replacing this into the case with each charge.

It was easy enough to "fix" the USB port issue with a Dremel, though the modification is perhaps not as clean looking as some might prefer for their case. He's what my amateur Dremeling got me:



Note, however, that I've left the flash obstructed. I guess I could Dremel that (poorly) as well, but I rarely use flash photography; too stark a look, and I'm often in places that don't allow flashes when I'm using it. I don't think the hole for the speaker is a big deal; it just looks a little funny.

[1] Okay, not quite perfectly. I'm getting some pull-away on the top corner of mine. I'm finding it hard to believe that the 8XT is dimensionally different, though, and wonder if this would've happened if I was on an 8X too.


Labels: ,


posted by ruffin at 11/09/2014 01:56:00 PM
Wednesday, August 06, 2014


I know it doesn't look like much, but there's surprising "proof" that SqlDbSharp runs on Windows Phone 8.  I just merged the master branch back into the Windows Phone 8 branch to catch it back up -- it'd been languishing since February 4th.  And after an hour or so of tweaking, there's a simplest case proof of concept up and running using the SqlDb# sample code in the Windows Phone emulator.

I know there's really no market on Windows Phone 8+, relatively speaking, and even after reading Sinclair's thoughts on making a living as an app maker in general, I've got to say that Windows Phone is pulling me back in, and it's solely about the tools.  Xamarin just went to an optional subscription model, and $25 for a month of Android porting puts that platform back on the table, but I still couldn't get Xamarin.Android up and running in the Android emulator, even using the Android Designer Walkthrough.  Apparently the emulators that Xamarin Studio installed for me by default weren't recent enough to work with the designer, and then when I created a Nexus 5 emulator to nuke that issue, the simplest case app never opened.

Xamarin's neat, but it's still very rough around some edges.  I'll use it on OS X for iOS, but the Android side drives me crazy.

Visual Studio Express 2012 for Windows Phone seems much nicer than Xamarin.Studio on Windows 8.  My biggest pain is that the version of .NET for Windows Phone is a painful subset of .NET for desktop -- or even for other mobile platforms via Xamarin, an irony I've lamented before.  But the emulator and IDE interaction is, so far, top notch.

So I've cleaned up SqlDb# a bit and thankfully fairly painlessly got it at least running on WP8 again.

Ah, the only big "find" for Windows Phone 8 here is the path to the "home folder", so to speak.  Here's the code, straight for MSDN, though it took some Googling to find it.

Windows.ApplicationModel.Package package = Windows.ApplicationModel.Package.Current;
Windows.Storage.StorageFolder installedLocation = package.InstalledLocation;

String output = String.Format("Installed Location: {0}", installedLocation.Path);

Finally, right?

Labels: ,


posted by ruffin at 8/06/2014 12:23:00 AM
Saturday, February 08, 2014

TL;DR -- Download a YesSQL database for Windows Phone 8 from here, then use it at your own risk.

Not too long ago, I finished up a "fun" project for myself that involved writing a chicken wire and duct tape dbms from scratch. It actually works fairly well, though I occasionally find additional stupid oversights (like splitting commands on "AND" without checking to see if it's part of a string literal) every so often while using it.

Actually, from my point of view, it works great. It's always insanely surprising when I try something fairly complicated in SQL and SqlDbSharp just works.  That's fun.

Anyhow, since my best laptop's still a Windows 8, I've been spending some time playing with Windows Phone 8.  I ebulliently detailed coming across some great tutorials a couple of weeks ago. And then, about a half-hour later, I completely 180-ed, whining that WP8 doesn't support pretty much any of the key stuff from System.Data, which bothered me enough to write more about the ORM mentality everything's taking on to the point that it arguably drove the choice of Microsoft's next CEO.

That's a topic for another post.


Windows Phone 8 Port

For today, I'll just say I've thrown away hours of free time, of and on and off again, porting my crazy database to Windows Phone 8. The biggest thing missing was, of course, System.Data, but I didn't really use enough of that namespace to make shimming up a DataTable too difficult.  Jon Skeet's DictionaryBackedSet example helped a ton, and made shimming up my DataColumn usage easy.

The only other strange thing was figuring out the origin of lots of PlatformNotSupportedException errors that were masked by TypeInitializationException errors for me. As it turns out, Windows Phone 8 doesn't support calls to GetFolderPath like...

System.Environment.GetFolderPath (System.Environment.SpecialFolder.Personal)

... that I was using to initialize directories, and the PlatformNotSupportedException painfully meant that though it compiled, WP8 wasn't going to honor the call.  Compiling code that'll later throw PlatformNotSupportedExceptions is, in my limited playing around, apparently pretty common.  Makes some sense, as that allows you to reuse a ton of C#'s tools very quickly, but it's a real pain in the rear at run time.

Since I had the codebase's "base" directory defined in a static readonly variable that used that GetFolderPath call, I got the TypeInitializationException whenever I tried to access any static variable on that file -- the file where I have all my psuedo-global, readonly settings.  So the errors popped up only at the time I tried to read a static variable or method on that class, even legitimate ones that didn't depend on GetFolderPath, as the code seemed to be sort of lazy-initialized, which red herringed the crud out of me.

Turns out, instead of the SpecialFolder setup, I needed to use some variation on...

ApplicationData.Current.LocalFolder.Path

... to make WP8 happy.  Which means I really needed to abstract how I set my base directory with one more level of abstraction that checks platform.

But the bottom line is that, yes, there's now an alternative to the now unsupported (?) C#-SQLite that lets you use SQL on Windows Phone 8 (link to dll in the readme displayed on that page).  Sorta.  ;^D  File bugs, and I'll start fixing them, though the code's simple enough I think any mid-level C# coder should be able to understand what's going on pretty quickly.

Labels: ,


posted by ruffin at 2/08/2014 08:53:00 PM
Saturday, January 25, 2014

Windows Phone Mango Local Database(SQL CE): Introduction | GeekChamp:
LINQ is used to query data, T-SQL queries are not supported

I've already complained about the lack of DataTables on Windows Phone 8.  That still boggles my mind.  Why not make code supra easy to port over to Windows Phone?  When it's easier to reuse my C# code on iOS and Android ($300 a piece and I'm ready to go) than on Windows' own native platforms, something's wrong.

And then I see alternatives like the one above.  Admittedly, that article is pretty old, and mentions WP 7.1, but the use of LINQ exclusively instead of supporting SQL I don't quite understand.

I mean, I know ORMs are the [conventional] way to do things now.  But even they, at least on your standard server-side or desktop stacks, usually end up translating object relations to SQL.  I haven't seen a huge practical advantage for ORMs on the systems I've worked on.  I keep hearing that it makes swapping database engines easier, but I'll keep ignoring that until someone actually replaces SQL Server with PostgreSQL -- and it's painless enough to make up for carrying, eg, NHibernate around for years.

It's really not that all difficult to custom hydrate objects with SQL results, and when it is, you often run into similar trouble trying to shoehorn your data into your ORM via AutoMapper or something similar anyhow.  And in most of those complex cases, it would be much easier for those who know how to do just a little bit more than spell "SQL" to have scripted up a sproc to do what the ORM is doing -- and to have that logic processed on the database server, where it's supposed to be happening anyhow.  I'm almost speechless at this point.  I mean, you're paying how much to have software (the rdbms, to be clear) that's designed to handle complex relationships quickly and efficiently?  Quickly processing complex relationships in your data is your database server's job.  Why do we push that to middleware?

Sorry.  I'll try not to step so close to that soapbox again, as it's horribly difficult not to step up off of Britannia and start spewing.

Anyhow, this convention of object-ing your way to data rather than SQLing your way has gone from convention to serious technical block with Windows Phone.  I don't see how Xamarin abstracts twice -- once from whatever XCode is pushing out to Objective-C or Eclipse to a Java VM, and then again to C# -- on a platform that dips as low, performance-wise, as Android can, and still gives a more fully fledged development platform than Windows Phone.  I mean, heck, VB.NET was a non-trivial attempt to pull VB6 programmers onto the web and OO programming with the least amount of head rethreading possible, and it happened because having Microsoft stack developers on .NET was crucial to that platform's success.  Why the huge investment during the move to .NET but not Windows Phone and "Metro"/Windows App Store?  One platform has been adopted very quickly.  I realize the WP numbers are low, but don't you think some developer love would push adoption in business pretty danged quickly too?  It's all about the barriers to entry, stupid.

Guess this stayed a pretty ranty post.  Sorry.

Anyhow, so my answer so far, since my mobile apps are just for fun, is to create a DataTable shim for Windows Phone, DataTableWP8, that shims just enough to let me use my buggy SQL database, now called SqlDbSharp (because naming is difficult ;^D), on WP8 without rewriting anything.  So far, it's still fun to do, and I've been playing with Visual Studio on my Lenovo laptop as much or more as Xamarin Studio on my new iMac in my free time this week.

Labels: , , , , ,


posted by ruffin at 1/25/2014 02:37:00 PM
Sunday, January 19, 2014

I'm not sure where I was last year when the tutorial, below, was released, but it's wonderful.  Making Windows Phone 8 apps is now pretty much as easy for me as Windows Forms.  In part, this is, I think, b/c there's so little extra to do with a Windows Phone app to make a UI.  If you're shooting for a small screen, there's only so much to do.

I'm finally moving from the headless side of my Mono app, and was, since my best laptop is Windows-only, debating whether I should hack around on an Android app via Xamarin Studio when I was mobile or try to pick up Windows Phone again.  I'd like to concentrate on iOS, since everyone makes it sound like all the money for an app-sales driven company is on that platform, but then pick another to play around with and experiment with questionable features.  (I'd also like to make a good PC app with the same codebase, but that's another story entirely, I think.)

Looks like I'm going to save the $300 Xamarin requires to play on Android and stick to Windows for now.

Anyhow, here it is -- an excellent, free to access video (and text) tutorial series to get you from the cradle to the Windows Store.

Windows Phone 8 Development for Absolute Beginners | Channel 9:

Bob Tabor (LearnVisualStudio.NET) and Clint Rutkas (Microsoft/Channel9) team up to deliver this 11 hour Windows Phone 8 Development for Absolute Beginners series! Not only will you learn the absolute basics of installing and working with Visual Studio Express 2012 for Windows Phone and the Emulator, but you'll also learn XAML layout and events, how to utilize many of the Phone's built in features and additional open-source libraries.

In other news, it's been lots of fun making a quick and dirty console client on top of the codebase.  I've always enjoyed doing some WriteLines and ReadLines to test out code, but this is the first time I've delved into Console's SetCursorPosition, SetWindowSize, and ReadKey.  It's pretty old school stuff, and you figure out why elm and pine made you use other text editors to compose your email pretty quickly, but as far as the time invested for the amount of issues in your code, or issues in your app's flow, that it exposes are insanely useful.  It's hard not to encourage folks to make one before getting too far down "real" UI design as a matter of standard practice.

Labels: , , ,


posted by ruffin at 1/19/2014 01:15:00 PM

<< Older | Newer >>


Support freedom
All posts can be accessed here:


Just the last year o' posts:

URLs I want to remember:
* Atari 2600 programming on your Mac
* joel on software (tip pt)
* Professional links: resume, github, paltry StackOverflow * Regular Expression Introduction (copy)
* The hex editor whose name I forget
* JSONLint to pretty-ify JSON
* Using CommonDialog in VB 6 * Free zip utils
* git repo mapped drive setup * Regex Tester
* Read the bits about the zone * Find column in sql server db by name
* Giant ASCII Textifier in Stick Figures (in Ivrit) * Quick intro to Javascript
* Don't [over-]sweat "micro-optimization" * Parsing str's in VB6
* .ToString("yyyy-MM-dd HH:mm:ss.fff", CultureInfo.InvariantCulture); (src) * Break on a Lenovo T430: Fn+Alt+B
email if ya gotta, RSS if ya wanna RSS, (?_?), ยข, & ? if you're keypadless


Powered by Blogger etree.org Curmudgeon Gamer badge
The postings on this site are [usually] my own and do not necessarily reflect the views of any employer, past or present, or other entity.