|
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, October 24, 2016 | |
|
I'm close to releasing my second application to the Windows App Store, and have gotten just good enough at dealing with icons -- not a rocket scientist-level task by any stretch -- and thought I'd share. Buy an iconFirst, you need a square png (or other common format) of your icon that's at least 620x620 pixels. You can get a nice rounded image, but for the Windows Store, at least, a full square is better. In my experience, it's not too difficult to trade a couple weeks of waiting (in case you get a bad contractor) and $5-$15 to get a servicable icon from fiverr.com. I've used folks from Pakistan each time, strangely enough, and gotten very good results three times, most recently with foxsquare. You do need to be respectful to some degree, as their contract says, "We Do NOT Take Order related to Pork, Nudity, Alcohol & Gambling." So far, so good for me. Here's my latest, a design for a podcast feed creator. I wish the angles on the orange circles were perfectly symmetrical, and that the little "i" icon didn't reach the bottom of the image, but all things considered, this is a heck of a lot better than I could've done in several hours' work. It's a steal at $15 with .psd.
package.appmanifestTo insert the icon into your UWP app, open up your package.appmanifest file from Solution Explorer, and hit the Visual Assets tab.
Now you have a pretty simple interface to upload icon imagery. I recommend clicking on each of the lines from "Square 71x71 Logo" on down. Resizing your originalFor each one, you'll want to upload resized versions of your original icon. "But how do I get those resized images quickly?" you ask? That's easy if you download IrfanView, the handiest image viewer I've ever used. Can't recall how many years I've used IrfanView now, and I was impressed to learn that it has extensive command line support. First name the original square.png. Then run a bat file that resizes everything. Here's the bat file I'm running, though you may have to change to the path where you have IrfanView installed:
Boom. Done.
Now go into the appmanifest UI and click on every largest size available for each asset line, then add your image. NOTE: Some of these already have placeholder X images in your project. OVERWRITE THEM. You can overwrite in addition to the ones you're uploading to ensure you have decently high quality images.
Rectangle splash and wide logosThis will leave you with just two assets unfilled, both rectangular. One is the "Wide 310x150" and the other the "Splash Screen" logo. I kinda cop out here. I could probably get fiverr to make me some, but instead I open Ms. Paint. The size we need is 1240x600. I tell Paint to create a new image, then I hit "resize" (Ctrl-W, strangely enough), and get it to 1240x600.
Make sure "Maintain aspect ratio" isn't checked. Then I use the paint bucket to fill that all black. Finally, I paste in the 600x600 image IrfanView created and slowly move the middle pixel over until it's at 620 pixels into the image in Paint. Very high tech.
Save it and put into both of the assets you had left. Voila! The end. Cheap and quick. Labels: fiverr, howto, images, paint, uwp, windows, windows store posted by ruffin at 10/24/2016 12:12:00 PM |
|
| Thursday, October 20, 2016 | |
|
From microsoft.com (via StackOverflow):
[emphasis is mine] That's got to be a joke, right? So I can't use a "nested class" (which would include anything with a java-style like
Look, that's crazy-insane. I'd also had trouble with "namespaced" UserControls I'd created in the past, and lucked into figuring out they'd only work for me when I took them "out" of the non-local namespace, but figured I was doing something wrong. Maybe not. Wow. I've made a wrapper class in my local namespace as a shuttle. UWP unfortunately remains a hacky place. posted by ruffin at 10/20/2016 04:03:00 PM |
|
| Friday, September 09, 2016 | |
|
Oh, Pivots in UWP, you so crazy. You may have heard that I'm writing a Markdown editor, MarkUpDown. It can have several files open at once, of course, and I'm using a UWP Pivot control to handle navigation. As I got closer to releasing, it hit me that Ctrl-W, though common, isn't the most discoverable way to close those PivotItems. And now that I'm maintaining state between starts, so that whatever tabs you have open when you close the app are back on restart, closing each file "on purpose" is a lot more important than when they all closed on each restart. That is, it looks like I need a UI for closeable tabs. Not as easily said as done. You can customize the In that UserControl, I put a I replaced the
That's fun, isn't it?
That looks okay, but there are still two problems.
Okay, three problems -- I really should change the icon to a greyed-out version when the Accessing a property in custom XAML from CI found the answer to the first pretty easily: You have to use a Dependency Property, of course!
But wait! There's more!
I feel like the Knights of the Round Table after they've considered whether to go to Camelot. Okay, nevermind. 'Tis a silly place. I won't make these new headers XAML-friendly for "version mvp". We're going to set the Label somewhere outside of XAML. Moving on to #2... Removing a
|
|
| Saturday, March 05, 2016 | |
|
I'm testing
Here's the image that quick script puts into every img tag on the page.
This is from a service that produces any sized image of Taft you want, within reason. You just type in the dimensions you want (eg, It's like a gigantic hat. It's funny. Probably doesn't have to be Taft, but it's funny. Though not as funny as the one it'll give you if you grab a landscape...
I kind of like this one better, but I'm not sure of the copyright, unfortunately. ;^)
Again, funny. Not funny? That a suggested further search is "Kittens with guns". What's wrong with the internet? More about the Taft Test here. Labels: javascript, uwp posted by ruffin at 3/05/2016 07:18:00 PM |
|
| Saturday, February 27, 2016 | |
|
Well, that was fun. I went all the way around my elbow to get to my nose on UWP TextBox scrollbars. I figured out how to set it in XAML pretty quickly, but for some reason spaced on getting it working programmatically. In XAML, things looked like this:
So naturally I thought I should be able to do something like this in code... (To be clear, the following doesn't work, though, in my defense, it apparently used to in Silverlight)
Or, maybe, at worst, this:
Nope, no dice at all. Hey me, it turns out that's the wrong idiom, you idiot! After going all the way through putting the stupid TextBox into its own ScrollViewer, and then managing scrolling by coordinating TL;DR -- Here's the answer...
That's a weird idiom for me, though it's essentially the same thing you do when you set rows and columns for
I'd expect each And it's not like the start of the text on the MSDN page helped a ton... It starts by making you think you have to manage this all yourself. Maybe it changed later? Nah, I'm sure I missed the answer a half-inch below.
Oh well. Live and learn. Man, I made that tougher than it shoulda been. Labels: c#, howto, noteToSelf, uwp posted by ruffin at 2/27/2016 02:49:00 PM |
|
| Friday, January 15, 2016 | |
|
You can see them here. Or in a giant image here (click the image for full-size): Labels: noteToSelf, uwp, win10 posted by ruffin at 1/15/2016 10:40:00 AM |
|
|
| |
|
|
All posts can be accessed here: Just the last year o' posts: |
|||||||||||||||||||||
|
||||||||||||||||||||||
|
|
|
|