Showing posts with label help. Show all posts
Showing posts with label help. Show all posts

2015-01-18

Level Up - Blogger: How to add formatted code to post (with highlighting)

In many of my posts, I like to add code snippets. Blogger doesn't have good native support for displaying code with syntax and line highlighting, so I found a way to add that feature using GitHub Gists and gist-embed project on GitHub.

The following steps can mostly be used with any blog.

Step 1: Include jQuery and gist-embed within your header tags.

<head>
  ...
  <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/gist-embed/2.0/gist-embed.min.js"></script>
</head>


Step 2: Add a code element to where you want your Gist code to appear.

<code data-gist-id=""></code>


Example:



Source:
<code data-gist-file="PrimeNumbers.cppdata-gist-hide-footer="true"
   data-gist-highlight-line="9,12,35-42" data-gist-id="5789439"></code>


Nice features also included, but not shown above:

  • Ability to show GitHub footer
  • Remove line numbers
  • Load multiple files from a Gist
  • Load a signal file from a Gist
  • Show only certain lines from a file


This article was mainly written for myself in the future, but I hope others can benefit from it, as well.

Links:



~ Danial Goodwin ~



2013-12-14

Construct 2: Exporting To Windows Phone Part 2

So, part 1 of issues isn't enough. The next issue happened when trying to create screenshots for the Windows Phone upload. A screenshot size of 768x1280 is required. Unfortunately, my Windows Phone 8 (Lumia Nokia 820) only takes screenshots at 480x800. Also, I'd rather not scale up the images that much, making them possibly pixelated and not as pleasant for viewers with devices of high fidelity. So, I learned that the default emulator also captures screenshots at 480x800.

Here's what I missed:
- I should have chosen the WXGA emulator, not the WVGA emulator. Just a slight difference there.

Now, everything's all good. I should have anymore hiccups as I publish this Windows Phone app made with Construct 2.

I found a use for the 480x800 screenshot I took. ;)

~ Danial Goodwin ~



2013-12-13

Level Up! Applying Textures to Graphics

Before today, I had no idea how to apply textures to a picture, nor how long it would take. I now know that it takes less than five minutes once you have the graphics. And, this was my first time doing it! And, I didn't even look up how to do this texturizing thing. I had a lucky guess that just worked. My choice of graphics program was Paint.NET.

 Here's some screenshots of the work: A before, an after, and my final app that I'm producing for kids. Big kids too if you like. ;]

First, I put the texture (candy cane) in one layer and put the object in a different layer .

2. Use the magic-wand-selector to select the text. 3. Change layers. 4. Copy. 5. Paste in a new project.


Here's how it looks in the app, Help Santa!


+1 Graphics skill level!

~ Danial Goodwin ~



2013-01-22

LTE Discovery Update Version 2.0

Huge update to LTE Discovery! We could have called it version 1.34, but these drastic changes made us call this version 2.0. We are not calling this beta anymore!
Recent Updates in version 2.0. 1. Now distinguishes Phantom LTE signals from usable LTE2. Added BSID, SID, NID, date, and time information to GPS list3. The present network is displayed whenever app is open4. Optimized background tasks. (App works in background)5. GPS Coordinates list vastly improved, better formatting6. Ability to store more GPS coordinates of detected LTE signals7. Ability to clear GPS list8. Added a help page9. Change to Dark Holo theme10. Other UX and UI and performance improvements11. Many other bug fixes. All known bugs fixed.
Only available on Google Play for Android users.
https://play.google.com/store/apps/details?id=net.simplyadvanced.ltediscovery

~ Simply Advanced ~