From 991e73683fc5877cd80cfeb4952a7c85d1ec58ad Mon Sep 17 00:00:00 2001 From: smack0007 Date: Sat, 31 Aug 2024 20:58:35 +0000 Subject: [PATCH] Add "install-debian-m715q.md" --- blog/2024/install-debian-m715q.html | 4 ++ blog/page10.html | 6 +-- blog/page11.html | 14 ++---- blog/page12.html | 13 +++-- blog/page13.html | 8 +-- blog/page14.html | 6 +-- blog/page15.html | 77 ++--------------------------- blog/page16.html | 77 +++++++++++++++++++++++++++-- blog/page17.html | 26 ++-------- blog/page18.html | 45 +++++++++-------- blog/page19.html | 23 ++++++++- blog/page2.html | 11 +++-- blog/page20.html | 2 +- blog/page3.html | 6 ++- blog/page4.html | 5 +- blog/page5.html | 6 +-- blog/page6.html | 6 +-- blog/page7.html | 7 ++- blog/page8.html | 9 ++-- blog/page9.html | 8 +-- feed.rss | 22 +++++---- index.html | 14 ++---- sitemap.xml | 3 ++ tags/debian/index.html | 5 +- tags/index.html | 2 +- tags/lenovo/index.html | 4 ++ tags/linux/index.html | 5 +- 27 files changed, 218 insertions(+), 196 deletions(-) create mode 100644 blog/2024/install-debian-m715q.html create mode 100644 tags/lenovo/index.html diff --git a/blog/2024/install-debian-m715q.html b/blog/2024/install-debian-m715q.html new file mode 100644 index 0000000..6efab45 --- /dev/null +++ b/blog/2024/install-debian-m715q.html @@ -0,0 +1,4 @@ +Installing debian on a Lenovo ThinkCentre M715q

Installing debian on a Lenovo ThinkCentre M715q

August 31, 2024linuxdebianlenovo

I recently purchased a Lenovo ThinkCentre M715q and wanted to install debian on it but after starting the installer the screen +was completely corrupted. This forum post provided the solution. I +had to press tab and add vga=normal fb=false to the boot string. After that the installer was displayed normally.

+
\ No newline at end of file diff --git a/blog/page10.html b/blog/page10.html index e40f146..c570c73 100644 --- a/blog/page10.html +++ b/blog/page10.html @@ -1,4 +1,5 @@ -The Blog of Zachary Snow

Snowball V2.0

February 23, 2018.netsnowballc#

I haven't written anything new here in a very long time and a lot has happened since then. I started a new job at +The Blog of Zachary Snow

Poor Man's Template Engine in C# Part 1

Groundwork

If you're looking for a poor man's solution to a templating engine for .net and don't really need +the overhead a complete template engine brings with it, I've come up with the following solution.

Continue reading "Poor Man's Template Engine in C# Part 1"

Snowball V2.0

February 23, 2018.netsnowballc#

I haven't written anything new here in a very long time and a lot has happened since then. I started a new job at BeumerGroup this year and now work mostly in TypeScript writing an html5 spa app.

In my spare time I've decided to working on version 2.0 of my Snowball, my 2D game framework. I've been playing around with the idea for a while now. This version will be developed directly @@ -10,5 +11,4 @@ batch files though.

Continue reading "Using batch files as the task runner in Visual Studio Code"

LINQ calls IEqualityComparer<T>.GetHashCode() before Equals()

November 24, 2014.netlinq

This is a problem that has bitten me more than a few times so I thought it was about time to write a blog post about it. It's one of those problems that makes you scratch your head for a bit and then the light bulb goes on and you remember you've solved this one before. It occurs whenever you use a LINQ extension method which takes an instance of IEqualityComaparer.

Continue reading "LINQ calls IEqualityComparer<T>.GetHashCode() before Equals()"

My Experience with OpenGL vs Direct3D

November 18, 2014graphicsopengldirect3D

I've struggled a lot with myself over whether I should use OpenGL or Direct3D. There is no blanket answer to this question that anyone can tell you. -Both APIs have a very different feel and which one you prefer can only be decided on your own.

Continue reading "My Experience with OpenGL vs Direct3D"

Code from when I was young and stupid and needed the money

June 18, 2014old-codec++

We have had 2 interns at work for the past few weeks and one of the tasks we gave them was to implement Quicksort. -This got me to thinking about my youth and some of the code I wrote back then. I've decided to post it.

Continue reading "Code from when I was young and stupid and needed the money"
\ No newline at end of file +Both APIs have a very different feel and which one you prefer can only be decided on your own.

Continue reading "My Experience with OpenGL vs Direct3D"
\ No newline at end of file diff --git a/blog/page11.html b/blog/page11.html index e181154..314bbff 100644 --- a/blog/page11.html +++ b/blog/page11.html @@ -1,4 +1,5 @@ -The Blog of Zachary Snow

Adding assembly references in Roslyn

April 15, 2014.netc#roslyn

In the Roslyn preview that was released at Build 2014 the way references to global assmeblies are added was changed. Before the preview I could use code like this:

+The Blog of Zachary Snow

Code from when I was young and stupid and needed the money

June 18, 2014old-codec++

We have had 2 interns at work for the past few weeks and one of the tasks we gave them was to implement Quicksort. +This got me to thinking about my youth and some of the code I wrote back then. I've decided to post it.

Continue reading "Code from when I was young and stupid and needed the money"

Adding assembly references in Roslyn

April 15, 2014.netc#roslyn

In the Roslyn preview that was released at Build 2014 the way references to global assmeblies are added was changed. Before the preview I could use code like this:

var compilation = Compilation.Create(assemblyName, new CompilationOptions(OutputKind.DynamicallyLinkedLibrary))
     .AddReferences(MetadataReference.CreateAssemblyReference("mscorlib"))
     .AddReferences(MetadataReference.CreateAssemblyReference("System"))
@@ -35,13 +36,4 @@
 
 

or you can get the source from GitHub. The documentation is definitely sparse I know but I recommend taking a look at the unit tests to get a feel for what you can do with Component Glue.

Credit for the NuGet CSS here.

-

GLDotNet Version 0.6.0

February 19, 2013c#opengl.net

I just released GLDotNet Version 0.6.0.

-

Changelog:

-
    -
  • **GLDotNet.Toolkit**: Assembly containing simple app framework.
  • -
  • **GLDotNet.Objects**: Assembly containing higher level objects such as Texture2D and VertexBuffer.
  • -
  • More overloads added to GLContext class.
  • -
  • byte and sbyte are now mapped correctly in generated code.
  • -
  • Fixed the naming of some functions so as not to include type notation, i.e. Color4u.
  • -
  • Decreased the number of enum values output.
  • -
\ No newline at end of file +
\ No newline at end of file diff --git a/blog/page12.html b/blog/page12.html index ac5b246..37d1409 100644 --- a/blog/page12.html +++ b/blog/page12.html @@ -1,4 +1,13 @@ -The Blog of Zachary Snow

Introducing GLDotNet

Today I released a project I've been playing around with for a year or so on Codeplex. It's called GLDotNet. From the project description:

+The Blog of Zachary Snow

GLDotNet Version 0.6.0

February 19, 2013c#opengl.net

I just released GLDotNet Version 0.6.0.

+

Changelog:

+
    +
  • **GLDotNet.Toolkit**: Assembly containing simple app framework.
  • +
  • **GLDotNet.Objects**: Assembly containing higher level objects such as Texture2D and VertexBuffer.
  • +
  • More overloads added to GLContext class.
  • +
  • byte and sbyte are now mapped correctly in generated code.
  • +
  • Fixed the naming of some functions so as not to include type notation, i.e. Color4u.
  • +
  • Decreased the number of enum values output.
  • +

Introducing GLDotNet

Today I released a project I've been playing around with for a year or so on Codeplex. It's called GLDotNet. From the project description:

C# wrapper for OpenGL. Partially generated from the OpenGL spec and partially written by hand, the aim is to have a flexible and native feeling C# binding.

I have generated functions from the OpenGL spec excluding 1 or 2 but unfortunately of the generated code is untested. There is a demo project included in the source code. The Github repository is located here: https://github.com/smack0007/GLDotNet

HTTP Status Codes as Telephone Calls

December 18, 2012http

I had a funny idea to describe HTTP Status Codes as telephone conversations so I thought I'd write it in a blog post.

@@ -41,6 +50,4 @@

Source

-

ID3DXEffect::OnLostDevice()

I fixed a bug yesterday in Snowball related to a lost graphics device. I noticed that when I would use CTRL + ALT + DELETE, my apps were crashing. Turned out it was due to not recovering properly from a lost device.

-

The root of the problem was that I needed to call the ID3DXEffect::OnLostDevice() method when the device was being lost. This allows the effect to recover from the lost device. I've made the Effect class in Snowball now do this automatically.

\ No newline at end of file diff --git a/blog/page13.html b/blog/page13.html index e0c3b07..8912398 100644 --- a/blog/page13.html +++ b/blog/page13.html @@ -1,4 +1,6 @@ -The Blog of Zachary Snow

Snowball - Now based on shaders

I've now merged the "Shaders" branch back into the "master" branch. All rendering is now based on shaders and no longer on the fixed function pipeline.

+The Blog of Zachary Snow

ID3DXEffect::OnLostDevice()

I fixed a bug yesterday in Snowball related to a lost graphics device. I noticed that when I would use CTRL + ALT + DELETE, my apps were crashing. Turned out it was due to not recovering properly from a lost device.

+

The root of the problem was that I needed to call the ID3DXEffect::OnLostDevice() method when the device was being lost. This allows the effect to recover from the lost device. I've made the Effect class in Snowball now do this automatically.

+

Snowball - Now based on shaders

I've now merged the "Shaders" branch back into the "master" branch. All rendering is now based on shaders and no longer on the fixed function pipeline.

The function of the Renderer class was essentially been reduced to pushing data to the GPU and therefore I decided to rename the class to GraphicsBatch. The Begin() overload which would allow you to specify RendererSettings has been removed and been replaced with an overload which allows you to specify an Effect file to use. Also, the DrawLine() method has been removed, although vertical and horizontal lines can still be drawn using the DrawFilledRectangle() method. Better line drawing should be possible through shaders and I hope to eventually make a sample which provides an example.

I've added a sample (pictured above) which demonstrates using a custom shader. By default, GraphicsBatch uses a BasicEffect class which is basically the old way of rendering implemented in a shader.

In order for shaders to work properly when using GraphicsBatch, the GraphicsBatch class must pass a few parameters to the shader. At the moment, this only includes a transform matrix but may include more parameters in the future. The GraphicsBatchEffectWrapper can be used to wrap custom effects which you write in order to work with GraphicsBatch correctly. GraphicsBatchEffectWrapper will pass the parameters to your shader by following a standard naming convention. For example, the transform matrix is passed to your shader through a parameter named "TransformMatrix". You can also write you own class which implements IGraphicsBatchEffect. See the sample for an example of using the wrapper class.

@@ -9,6 +11,4 @@

I plan to set a road map soon for what I want to include the first release of Snowball. Music and Pixel Shaders are high the list. I've experimented with implementing a UI library but I think I want to push that back for a later release.

Getting Started with Snowball

My game framework Snowball is far enough along that small games can be developed with it by now. The basic overall design is now laid out and not too much is likely to change as I'm now developing my own small games with it.

In order to create some kind of documentation on how to use Snowball, I created a Samples folder in the source. In the Samples folder is a WalkingWizard sample. I'm posting this source code here but it can also be viewed on GitHub here.

-

WinQuakeCon

I've always wanted a program that would allow me have a command line that I could slide in and out of view as needed like the console from Quake. I never could find one and so I finally got decided to write a tool myself. A picture is below and the source code is on GitHub.

-

I'm not putting a download here as I don't consider this finished just yet.

-
\ No newline at end of file +
\ No newline at end of file diff --git a/blog/page14.html b/blog/page14.html index e780e9e..3569190 100644 --- a/blog/page14.html +++ b/blog/page14.html @@ -1,4 +1,6 @@ -The Blog of Zachary Snow

What is Snowball and what do I want to do with it?

I originally got the idea for Snowball after working with the Xna Framework. The Xna Framework is a good piece of software for what it is but there are some things about which I just do not agree with:

+The Blog of Zachary Snow

WinQuakeCon

I've always wanted a program that would allow me have a command line that I could slide in and out of view as needed like the console from Quake. I never could find one and so I finally got decided to write a tool myself. A picture is below and the source code is on GitHub.

+

I'm not putting a download here as I don't consider this finished just yet.

+

What is Snowball and what do I want to do with it?

I originally got the idea for Snowball after working with the Xna Framework. The Xna Framework is a good piece of software for what it is but there are some things about which I just do not agree with:

  • The content pipeline only works with content in the serialized .xnb format.
  • There are certain content types which can only be loaded via the content pipeline.
  • @@ -19,6 +21,4 @@
    sourceVoice.Stop();
     sourceVoice.FlushSourceBuffers();
     
    -

Switching from Git to Mercurial

June 3, 2011gitmercurial

I've decided to make the switch from using git to Mercurial. Git's syntax to me is much more complicated than it needs to be and Mercurial seems to be more my style. I find it's much easier to find out how to do things with Mercurial and to be honest, I use about 10% of the functionality in either git or Mercurial.

-

This also means I'll be transitioning Snowball to Codeplex I think. I'll be moving it away from GitHub for sure just not 100% sure where.

\ No newline at end of file diff --git a/blog/page15.html b/blog/page15.html index 10f7669..a7fc5b7 100644 --- a/blog/page15.html +++ b/blog/page15.html @@ -1,4 +1,6 @@ -The Blog of Zachary Snow

Marker Interfaces

May 24, 2011design-patterns

In Snowball I was debating adding an empty interface to identify certain classes in my framework as components. I wasn't sure if this was code smell or not so I did some searching on Stackoverflow and found out this concept is actually called "Marker Interfaces". Learn something new every day.

+The Blog of Zachary Snow

Switching from Git to Mercurial

June 3, 2011gitmercurial

I've decided to make the switch from using git to Mercurial. Git's syntax to me is much more complicated than it needs to be and Mercurial seems to be more my style. I find it's much easier to find out how to do things with Mercurial and to be honest, I use about 10% of the functionality in either git or Mercurial.

+

This also means I'll be transitioning Snowball to Codeplex I think. I'll be moving it away from GitHub for sure just not 100% sure where.

+

Marker Interfaces

May 24, 2011design-patterns

In Snowball I was debating adding an empty interface to identify certain classes in my framework as components. I wasn't sure if this was code smell or not so I did some searching on Stackoverflow and found out this concept is actually called "Marker Interfaces". Learn something new every day.

ComponentGlue on GitHub

I moved the ComponentGlue repository to GitHub. I updated the example slightly and cleaned up some of the source code a little. Need to build a full blown app with it eventually.

Snowball and GitHub

April 12, 2011.netgithubsnowball

I started writing a 2D Game Engine on GitHub. I call it Snowball because I'm original like that.

Using git-gui with Cygwin on Windows 7

April 7, 2011cygwingitwindows-7

I've started using git via cygwin and was running into trouble trying to pin it to my taskbar in Windows 7.

@@ -20,77 +22,4 @@ EXIT

After that your icon should be there as you want.

-

Getting started with SlimDX

March 31, 2011.netdirectx

*Update 2013-09-29: At this point SlimDX is quite out of date and I would recommend starting with SharpDX.

-

Since I tried OpenTK, I decided to give SlimDX a try as well. So, here's a simple getting started app:

-
using System;
-using System.Drawing;
-using System.Windows.Forms;
-using SlimDX;
-using SlimDX.Direct3D9;
-using SlimDX.Windows;
-
-namespace SlimDXApp1
-{
-    public partial class SlimDXApp1Form : RenderForm
-    {
-        struct Vertex
-        {
-            public Vector4 Position;
-            public int Color;
-        }
-
-        Device device;
-        VertexDeclaration vertexDeclaration;
-        
-        public SlimDXApp1Form()
-            : base("SlimDXApp1")
-        {
-            this.ClientSize = new Size(800, 600);
-
-            this.device = new Device(new Direct3D(), 0, DeviceType.Hardware, this.Handle, CreateFlags.HardwareVertexProcessing, new PresentParameters()
-            {
-                BackBufferWidth = this.ClientSize.Width,
-                BackBufferHeight = this.ClientSize.Height
-            });
-
-            this.vertexDeclaration = new VertexDeclaration(this.device, new[] {
-                new VertexElement(0, 0, DeclarationType.Float4, DeclarationMethod.Default, DeclarationUsage.PositionTransformed, 0),
-                new VertexElement(0, 16, DeclarationType.Color, DeclarationMethod.Default, DeclarationUsage.Color, 0),
-                VertexElement.VertexDeclarationEnd
-            });
-        }
-
-        public void Run()
-        {
-            MessagePump.Run(this, () =>
-            {
-                this.device.Clear(ClearFlags.Target | ClearFlags.ZBuffer, Color.Black, 1.0f, 0);
-                this.device.BeginScene();
-
-                this.device.VertexDeclaration = this.vertexDeclaration;
-
-                this.device.DrawUserPrimitives<Vertex>(PrimitiveType.TriangleList, 1, new[] {
-                    new Vertex() { Color = Color.Red.ToArgb(), Position = new Vector4(400.0f, 100.0f, 0.5f, 1.0f) },
-                    new Vertex() { Color = Color.Blue.ToArgb(), Position = new Vector4(650.0f, 500.0f, 0.5f, 1.0f) },
-                    new Vertex() { Color = Color.Green.ToArgb(), Position = new Vector4(150.0f, 500.0f, 0.5f, 1.0f) }
-                });
-                
-                this.device.EndScene();
-                this.device.Present();
-            });
-        }
-
-        [STAThread]
-        static void Main()
-        {
-            SlimDXApp1Form form = new SlimDXApp1Form();
-            form.Run();
-
-            // Cleans up COM handles
-            foreach(var item in ObjectTable.Objects)
-                item.Dispose();
-        }
-    }
-}
-
\ No newline at end of file diff --git a/blog/page16.html b/blog/page16.html index 4cde6a7..1920726 100644 --- a/blog/page16.html +++ b/blog/page16.html @@ -1,4 +1,77 @@ -The Blog of Zachary Snow

OpenTK - Simple Movable Sprite

March 29, 2011.netopengl

I wrote my second OpenTK app. This time I'm drawing a sprite which you can move around the screen using the keyboard. I've included the source code after the jump or you can download it.

Continue reading "OpenTK - Simple Movable Sprite"

Getting started with OpenTK

March 29, 2011.netopengl

I started experimenting with OpenTK and I had to look in a few places to put this code together, so I'm posting it here for anyone who might be looking for an easy getting started lesson.

+The Blog of Zachary Snow

Getting started with SlimDX

March 31, 2011.netdirectx

*Update 2013-09-29: At this point SlimDX is quite out of date and I would recommend starting with SharpDX.

+

Since I tried OpenTK, I decided to give SlimDX a try as well. So, here's a simple getting started app:

+
using System;
+using System.Drawing;
+using System.Windows.Forms;
+using SlimDX;
+using SlimDX.Direct3D9;
+using SlimDX.Windows;
+
+namespace SlimDXApp1
+{
+    public partial class SlimDXApp1Form : RenderForm
+    {
+        struct Vertex
+        {
+            public Vector4 Position;
+            public int Color;
+        }
+
+        Device device;
+        VertexDeclaration vertexDeclaration;
+        
+        public SlimDXApp1Form()
+            : base("SlimDXApp1")
+        {
+            this.ClientSize = new Size(800, 600);
+
+            this.device = new Device(new Direct3D(), 0, DeviceType.Hardware, this.Handle, CreateFlags.HardwareVertexProcessing, new PresentParameters()
+            {
+                BackBufferWidth = this.ClientSize.Width,
+                BackBufferHeight = this.ClientSize.Height
+            });
+
+            this.vertexDeclaration = new VertexDeclaration(this.device, new[] {
+                new VertexElement(0, 0, DeclarationType.Float4, DeclarationMethod.Default, DeclarationUsage.PositionTransformed, 0),
+                new VertexElement(0, 16, DeclarationType.Color, DeclarationMethod.Default, DeclarationUsage.Color, 0),
+                VertexElement.VertexDeclarationEnd
+            });
+        }
+
+        public void Run()
+        {
+            MessagePump.Run(this, () =>
+            {
+                this.device.Clear(ClearFlags.Target | ClearFlags.ZBuffer, Color.Black, 1.0f, 0);
+                this.device.BeginScene();
+
+                this.device.VertexDeclaration = this.vertexDeclaration;
+
+                this.device.DrawUserPrimitives<Vertex>(PrimitiveType.TriangleList, 1, new[] {
+                    new Vertex() { Color = Color.Red.ToArgb(), Position = new Vector4(400.0f, 100.0f, 0.5f, 1.0f) },
+                    new Vertex() { Color = Color.Blue.ToArgb(), Position = new Vector4(650.0f, 500.0f, 0.5f, 1.0f) },
+                    new Vertex() { Color = Color.Green.ToArgb(), Position = new Vector4(150.0f, 500.0f, 0.5f, 1.0f) }
+                });
+                
+                this.device.EndScene();
+                this.device.Present();
+            });
+        }
+
+        [STAThread]
+        static void Main()
+        {
+            SlimDXApp1Form form = new SlimDXApp1Form();
+            form.Run();
+
+            // Cleans up COM handles
+            foreach(var item in ObjectTable.Objects)
+                item.Dispose();
+        }
+    }
+}
+
+

OpenTK - Simple Movable Sprite

March 29, 2011.netopengl

I wrote my second OpenTK app. This time I'm drawing a sprite which you can move around the screen using the keyboard. I've included the source code after the jump or you can download it.

Continue reading "OpenTK - Simple Movable Sprite"

Getting started with OpenTK

March 29, 2011.netopengl

I started experimenting with OpenTK and I had to look in a few places to put this code together, so I'm posting it here for anyone who might be looking for an easy getting started lesson.

I've set up a window similar to what I've been used to in Xna (CornflowerBlue 4 life). I've also set up a 2D projection matrix and drawn a triangle in a 2D fashion. You'll need to add a reference to the OpenTK assembly for your project in Visual Studio.

using System;
 using System.Drawing;
@@ -108,6 +181,4 @@
 Car familyCar = new Car(Color.Black, new V4Engine());
 

Now we can compose many car types, with any combination of colors and engines and we've only defined one class.

-

Component Glue

The other day I started an open source project for an IoC Container I call Component Glue. It's in a toy / learning tool status right now and I don't know how far I actually want to take the project. More to come though.

-

Component Glue on Codeplex

\ No newline at end of file diff --git a/blog/page17.html b/blog/page17.html index d65d3ec..381fabe 100644 --- a/blog/page17.html +++ b/blog/page17.html @@ -1,4 +1,6 @@ -The Blog of Zachary Snow

Visual Studio - Move referenced DLL to different directory after Build

July 20, 2010.netmsbuild

If you need to move a referenced DLL to a different directory after build, add these commands to the "Post Build event command line" box in the "Build Events" tab of the project properties:

+The Blog of Zachary Snow

Component Glue

The other day I started an open source project for an IoC Container I call Component Glue. It's in a toy / learning tool status right now and I don't know how far I actually want to take the project. More to come though.

+

Component Glue on Codeplex

+

Visual Studio - Move referenced DLL to different directory after Build

July 20, 2010.netmsbuild

If you need to move a referenced DLL to a different directory after build, add these commands to the "Post Build event command line" box in the "Build Events" tab of the project properties:

mkdir $(TargetDir)dir
 move $(TargetDir)myDLL.dll $(TargetDir)dir\myDLL.dll
 
@@ -12,26 +14,4 @@

Implementing basic Dependency Injection using a Service Container

By extending your Service Container class, a very basic version of dependency injection can be implemented. We'll implement two forms of dependency injection: constructor and property injection.

Continue reading "Implementing basic Dependency Injection using a Service Container"

500 Downloads of the Same Game

My little Xna game that I wrote nearly 2 years ago reached the 500 downloads mark (binaries and source) the other day. With that said, I'd like to say that I'm working on version 2.0.

In version 2.0 I'm going to make the code more event driven. The old code uses the Xna Game class and in the new version I'll be making it WinForms based. Almost a complete rewrite.

My work so far is available through SVN on the project's Codeplex page.

-

Progress Bar in Windows 7 Taskbars

June 1, 2010.netc#windows-7

I decided to add progress bar to the Windows 7 Taskbar in my Timer app.

-

I started by downloading and compiling the Windows API Code Pack in Release mode. I then added a reference to the Microsoft.WindowsAPICodePack.dll and Microsoft.WindowsAPICodePack.Shell.dll files to the project. After that add the lines:

-
using Microsoft.WindowsAPICodePack.Taskbar;
-
-

to your using statements. When the clock starts running I create the progress bar in the taskbar with:

-
// Initialize progress bar
-if(TaskbarManager.IsPlatformSupported)
-{
-    TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.Normal);
-    TaskbarManager.Instance.SetProgressValue(0, (int)this.totalTime.TotalSeconds, this.Handle);
-}
-
-

to stop the progress bar:

-
// Stop progress bar
-if(TaskbarManager.IsPlatformSupported)
-    TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress);
-
-

and finally to update the progress bar on each tick:

-
// Update progress bar
-if(TaskbarManager.IsPlatformSupported)
-    TaskbarManager.Instance.SetProgressValue((int)this.totalTime.TotalSeconds - (int)this.time.TotalSeconds, (int)this.totalTime.TotalSeconds, this.Handle);
-
\ No newline at end of file diff --git a/blog/page18.html b/blog/page18.html index 649088d..eeb4bcd 100644 --- a/blog/page18.html +++ b/blog/page18.html @@ -1,4 +1,26 @@ -The Blog of Zachary Snow

WinForms and MVC

May 26, 2010.netmvcwinforms

I recently became interested in doing MVC inside of a Windows Forms app. I found a few MVC frameworks which work with WinForms (see here) but they didn't really interest me. Too heavy I felt for what I was looking to do. I ended up with a solution looking something like this:

+The Blog of Zachary Snow

Progress Bar in Windows 7 Taskbars

June 1, 2010.netc#windows-7

I decided to add progress bar to the Windows 7 Taskbar in my Timer app.

+

I started by downloading and compiling the Windows API Code Pack in Release mode. I then added a reference to the Microsoft.WindowsAPICodePack.dll and Microsoft.WindowsAPICodePack.Shell.dll files to the project. After that add the lines:

+
using Microsoft.WindowsAPICodePack.Taskbar;
+
+

to your using statements. When the clock starts running I create the progress bar in the taskbar with:

+
// Initialize progress bar
+if(TaskbarManager.IsPlatformSupported)
+{
+    TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.Normal);
+    TaskbarManager.Instance.SetProgressValue(0, (int)this.totalTime.TotalSeconds, this.Handle);
+}
+
+

to stop the progress bar:

+
// Stop progress bar
+if(TaskbarManager.IsPlatformSupported)
+    TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress);
+
+

and finally to update the progress bar on each tick:

+
// Update progress bar
+if(TaskbarManager.IsPlatformSupported)
+    TaskbarManager.Instance.SetProgressValue((int)this.totalTime.TotalSeconds - (int)this.time.TotalSeconds, (int)this.totalTime.TotalSeconds, this.Handle);
+
+

WinForms and MVC

May 26, 2010.netmvcwinforms

I recently became interested in doing MVC inside of a Windows Forms app. I found a few MVC frameworks which work with WinForms (see here) but they didn't really interest me. Too heavy I felt for what I was looking to do. I ended up with a solution looking something like this:

There is really only one controller and that is the "Application" class. It contains all the methods your app can call to manipulate your models, which are in the "Data" folder / namespace. The "WinFormsApplication" class inherits from the "Application" class and just sets the view to an instance of "WinFormsView". The "Application" class communicates with the view through the "IView" interface. The "WinFormsView" class is a Windows Forms implementation of that view. The "Application" class and your models are not coupled in any way to your Windows Forms implementation of the view.

If you want you view to be as dumb as possible, your view can communicate with the "Application" class only through events. In my case though, I choose to go with a smart view and have the view call back to methods in the "Application" class. The "Application" class tells the view when models are loaded and unloaded. The view subscribes to events on the models and reacts to the events.

All of my forms and controls communicate with each other through the "WinFormsView" class. One control might change the value of a property in the "WinFormsView" class and another control might subscribe to a change event and update as necessary. This keeps the controls and forms slightly less coupled.

@@ -60,23 +82,4 @@

Creating and consuming services in your XNA Game

February 18, 2010.net

The GameServiceContainer implements the IServiceProvider interface and the MSDN documentation says about the IServiceProvider interface:

Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.
-

This article will "attempt" to describe how can you use the GameServiceContainer in your XNA game, in both your GameComponent(s) and your game's entity objects.

Continue reading "Creating and consuming services in your XNA Game"

Changing the PlatformTarget in Visual C# Express

January 18, 2010.netmsbuild

Some project types in Visual C# Express (Empty Project) will not allow you to change the PlatformTarget from the UI. You can still change the target platform though by editing the .csproj file in a text editor. Close the project and open it up in your favorite text editor (I use Notpad++). The .csproj file is really just a XML file. You should see somewhere in the file something like:

-
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-        ....
-    </PropertyGroup>
-    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-        ....
-    </PropertyGroup>
-
-

Inside the PropertyGroup elements, add the PlatformTarget element:

-
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-        ....
-        <PlatformTarget>x86</PlatformTarget>
-    </PropertyGroup>
-    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-        ....
-        <PlatformTarget>x86</PlatformTarget>
-    </PropertyGroup>
-
-

Save the file and open your project back up. Your project's output should now target only x86.

-
\ No newline at end of file +

This article will "attempt" to describe how can you use the GameServiceContainer in your XNA game, in both your GameComponent(s) and your game's entity objects.

Continue reading "Creating and consuming services in your XNA Game"
\ No newline at end of file diff --git a/blog/page19.html b/blog/page19.html index c8b5927..ec6558f 100644 --- a/blog/page19.html +++ b/blog/page19.html @@ -1,4 +1,23 @@ -The Blog of Zachary Snow

Calculating an angle from a Vector2

February 28, 2009.netvectorsxna

When you need to calculate an angle from a Vector2 structure, you can use this piece of code:

+The Blog of Zachary Snow

Changing the PlatformTarget in Visual C# Express

January 18, 2010.netmsbuild

Some project types in Visual C# Express (Empty Project) will not allow you to change the PlatformTarget from the UI. You can still change the target platform though by editing the .csproj file in a text editor. Close the project and open it up in your favorite text editor (I use Notpad++). The .csproj file is really just a XML file. You should see somewhere in the file something like:

+
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+        ....
+    </PropertyGroup>
+    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+        ....
+    </PropertyGroup>
+
+

Inside the PropertyGroup elements, add the PlatformTarget element:

+
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+        ....
+        <PlatformTarget>x86</PlatformTarget>
+    </PropertyGroup>
+    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+        ....
+        <PlatformTarget>x86</PlatformTarget>
+    </PropertyGroup>
+
+

Save the file and open your project back up. Your project's output should now target only x86.

+

Calculating an angle from a Vector2

February 28, 2009.netvectorsxna

When you need to calculate an angle from a Vector2 structure, you can use this piece of code:

public static class Vector2Helper
 {
     public static float CalculateAngle(Vector2 v)
@@ -230,4 +249,4 @@
 

Which loads a spritesheet with sprites of size 64x64. It then draws the first Sprite in the SpriteSheet. You of course wouldn't want to load the spritesheet every frame as well.

Feel free to use this code without restriction.

Edit: I copied and pasted the second piece of code from somewhere else so I fixed two typos.

-

Colors and Hex

December 21, 2008.netxna

I recently needed to write out Color(s) as an xml attribute. I wrote 2 methods to read and write the Color(s) as Hex strings. Here ya go:

Continue reading "Colors and Hex"
\ No newline at end of file +
\ No newline at end of file diff --git a/blog/page2.html b/blog/page2.html index ab8367a..7e3f16e 100644 --- a/blog/page2.html +++ b/blog/page2.html @@ -1,4 +1,11 @@ -The Blog of Zachary Snow

Now powered by deno

December 23, 2022deno

I finally sat down and got my blog compiling with deno. Now that there +The Blog of Zachary Snow

Enums considered harmful

January 24, 2023typescriptenum

It seems that torwards the end of 2022 the collective hivemind of the TypeScript +programming world decided that enums +are terrible. While I mostly agree +with the premise that TypeScript enums are not good the solutions that are +presented often only deal with String enums. +For my work on SDL_ts +I really need a solution for Numeric enums +as SDL is full of them.

Continue reading "Enums considered harmful"

Now powered by deno

December 23, 2022deno

I finally sat down and got my blog compiling with deno. Now that there is official npm support I didn't need to completely rewrite the compiler which was what was stopping me before.

Continue reading "Now powered by deno"

deno: Get the path of the current script in

In deno obtaining the path of the current script is done via the import.meta.url api:

@@ -32,6 +39,4 @@
# time git pull
 00:00:01.0804938
 
-

Practical WebAssembly

December 17, 2021javascriptwasmconciso

I wrote an article for my company conciso that attempts to show a practical -usage of WebAssembly: https://conciso.de/practical-webassembly/.

\ No newline at end of file diff --git a/blog/page20.html b/blog/page20.html index 8191adc..98f5d2a 100644 --- a/blog/page20.html +++ b/blog/page20.html @@ -1,2 +1,2 @@ -The Blog of Zachary Snow

Zend_Db_Table as a Model

June 20, 2008php

In the Zend Framework, using Zend_Db_Table as your model class is not well advised. This practice can force you to put business logic in other places besides your model class. This may not be a big deal if your logic is simple but imagine the logic is fairly complicated. Now also imagine that the logic changes at some point. This can be a problem if you have this logic written in many different places.

+The Blog of Zachary Snow

Colors and Hex

December 21, 2008.netxna

I recently needed to write out Color(s) as an xml attribute. I wrote 2 methods to read and write the Color(s) as Hex strings. Here ya go:

Continue reading "Colors and Hex"

Zend_Db_Table as a Model

June 20, 2008php

In the Zend Framework, using Zend_Db_Table as your model class is not well advised. This practice can force you to put business logic in other places besides your model class. This may not be a big deal if your logic is simple but imagine the logic is fairly complicated. Now also imagine that the logic changes at some point. This can be a problem if you have this logic written in many different places.

There's a solution to this problem though. You could write a Model class that uses Zend_Db_Table as a storage medium. Or, you can extend Zend_Db_Table to add your logic to the class. There is a way to simplify this process and that's what this blog post is about.

Continue reading "Zend_Db_Table as a Model"
\ No newline at end of file diff --git a/blog/page3.html b/blog/page3.html index 7a006c4..15666e7 100644 --- a/blog/page3.html +++ b/blog/page3.html @@ -1,4 +1,6 @@ -The Blog of Zachary Snow

Use bash.exe to run bash scripts in Windows

September 1, 2021windowswslbash

If you have the Windows Subsystem for Linux (WSL) installed then you can use wsl.exe to start +The Blog of Zachary Snow

Practical WebAssembly

December 17, 2021javascriptwasmconciso

I wrote an article for my company conciso that attempts to show a practical +usage of WebAssembly: https://conciso.de/practical-webassembly/.

+

Use bash.exe to run bash scripts in Windows

September 1, 2021windowswslbash

If you have the Windows Subsystem for Linux (WSL) installed then you can use wsl.exe to start any linux distribution you have installed from the command prompt. What I recently learned about though is that there is a bash.exe as well which can be used to execute a bash script directly.

Continue reading "Use bash.exe to run bash scripts in Windows"

Powered by TypeScript

June 4, 2021typescript

Over the past couple of years my career has moved more and more torwards me becoming a frontend developer. Since 2018 I've basically been a TypeScript programmer professionally @@ -12,4 +14,4 @@

function fork { wt -w 0 -d "$(Get-Location)" }
 

Convert TypeScript AST to JSON

January 13, 2021nodetypescript

I needed to convert a TypeScript AST (Abstract Syntax Tree) to json so that I can consume it in -a C# application so I wrote a tiny node script to convert the AST to json.

Continue reading "Convert TypeScript AST to JSON"

Starting Redis and the Redis CLI with Docker

January 8, 2021dockerredis

If you'd like to get a Redis instance up and running to play with it's fairly easy via Docker.

Continue reading "Starting Redis and the Redis CLI with Docker"
\ No newline at end of file +a C# application so I wrote a tiny node script to convert the AST to json.

Continue reading "Convert TypeScript AST to JSON"
\ No newline at end of file diff --git a/blog/page4.html b/blog/page4.html index fbbc61b..251f2f4 100644 --- a/blog/page4.html +++ b/blog/page4.html @@ -1,9 +1,8 @@ -The Blog of Zachary Snow

NativeLibraryLoader for Assembly with ModuleInitializer

December 18, 2020c#c#9

In C# 9 the ModuleInitializer +The Blog of Zachary Snow

Starting Redis and the Redis CLI with Docker

January 8, 2021dockerredis

If you'd like to get a Redis instance up and running to play with it's fairly easy via Docker.

Continue reading "Starting Redis and the Redis CLI with Docker"

NativeLibraryLoader for Assembly with ModuleInitializer

December 18, 2020c#c#9

In C# 9 the ModuleInitializer atrribute was introduced which makes it easy to implement loading of native assemblies in your library.

Continue reading "NativeLibraryLoader for Assembly with ModuleInitializer"

GitHub Actions

December 6, 2020github

My blog is now being generated via GitHub actions in ubuntu-latest. This allows me to rebuild my blog everytime there is a pushed commit.

Continue reading "GitHub Actions"

Use nginx in docker to serve static files

December 1, 2020dockernginx

Not sure how practical this really is but I thought it was neat. Run nginx and tell it to serve some static content on your system.

Continue reading "Use nginx in docker to serve static files"

Add the current time to your command prompt

November 26, 2020cmd

I am someone who never made the jump to Powershell and to this day still use my cmd shell with pride. My cmd is very personalized at this point and is available on GitHub though I'm not sure how useful it is for anyone but me. I use git and GitHub to synchronize my cmd between my different -machines.

Continue reading "Add the current time to your command prompt"

Execute different commands in MSBuild depending on platform

November 20, 2020msbuild

Another quick snippet that shows how to change what command will be executed in MSBuild -based on the OS the script is running on.

Continue reading "Execute different commands in MSBuild depending on platform"
\ No newline at end of file +machines.

Continue reading "Add the current time to your command prompt"
\ No newline at end of file diff --git a/blog/page5.html b/blog/page5.html index c0a9ea9..092aa14 100644 --- a/blog/page5.html +++ b/blog/page5.html @@ -1,4 +1,5 @@ -The Blog of Zachary Snow

Filter ItemGroup by extension in MSBuild

November 4, 2020msbuild

Just a quick snippet that shows how to filter an exiting ItemGroup by an extension.

Continue reading "Filter ItemGroup by extension in MSBuild"

Use Newtonsoft.Json in .NET Core 3 Web Api

October 22, 2020.net.netcoreasp.net

This post is mostly just distilling information I got from +The Blog of Zachary Snow

Execute different commands in MSBuild depending on platform

November 20, 2020msbuild

Another quick snippet that shows how to change what command will be executed in MSBuild +based on the OS the script is running on.

Continue reading "Execute different commands in MSBuild depending on platform"

Filter ItemGroup by extension in MSBuild

November 4, 2020msbuild

Just a quick snippet that shows how to filter an exiting ItemGroup by an extension.

Continue reading "Filter ItemGroup by extension in MSBuild"

Use Newtonsoft.Json in .NET Core 3 Web Api

October 22, 2020.net.netcoreasp.net

This post is mostly just distilling information I got from .NET Core Tutorials to revert back to Newtonsoft.Json in asp.net core WebApi.

Continue reading "Use Newtonsoft.Json in .NET Core 3 Web Api"

Node script for syntax highlighting

I decided to switch my blog to use highlightjs instead of the mixture of my own library and ColorCode. I still wanted everything to rendered statically @@ -6,5 +7,4 @@ library from node.

Continue reading "Node script for syntax highlighting"

Angular in Visual Studio

October 8, 2020angularvs

Now that the Angular Language Service is available for Visual Studio working on Angular projects from inside Visual Studio is a viable option. The linked blog post mentions a couple of ways of adding the Angular project to Visual Studio but I felt the suggestions left something -to be desired here is what I came up with.

Continue reading "Angular in Visual Studio"

Creating a asp.net web app with an Angular frontend

WebShell

We're going to create a what I call a "WebShell" application with asp.net core on the backend and Angular on the -frontend.

Continue reading "Creating a asp.net web app with an Angular frontend"
\ No newline at end of file +to be desired here is what I came up with.

Continue reading "Angular in Visual Studio"
\ No newline at end of file diff --git a/blog/page6.html b/blog/page6.html index be31d17..4b29ad1 100644 --- a/blog/page6.html +++ b/blog/page6.html @@ -1,4 +1,5 @@ -The Blog of Zachary Snow

Predictable Random Number Generation in TypeScript

Lehmer

August 25, 2020typescriptrng

I got the idea for using this type of RNG from the javidx9 video +The Blog of Zachary Snow

Creating a asp.net web app with an Angular frontend

WebShell

We're going to create a what I call a "WebShell" application with asp.net core on the backend and Angular on the +frontend.

Continue reading "Creating a asp.net web app with an Angular frontend"

Predictable Random Number Generation in TypeScript

Lehmer

August 25, 2020typescriptrng

I got the idea for using this type of RNG from the javidx9 video Procedural Generation: Programming The Universe. It's a really good video as are most of the videos he produces so I recommend you give it a watch. The algorithm he talks about in @@ -29,5 +30,4 @@ :EXIT POPD -

Enum Extension Methods

Did you know you can create extension methods for enums?

Continue reading "Enum Extension Methods"

Disable C# null checks for a field or property

January 2, 2020.netc#nrtnullable

The new nullable reference types in C# are great but sometimes you might need to disable it for a -single field or property. You can do that by assigning the value to null and using the ! operator.

Continue reading "Disable C# null checks for a field or property"
\ No newline at end of file +

Enum Extension Methods

Did you know you can create extension methods for enums?

Continue reading "Enum Extension Methods"
\ No newline at end of file diff --git a/blog/page7.html b/blog/page7.html index 5c6ccd5..95ce835 100644 --- a/blog/page7.html +++ b/blog/page7.html @@ -1,4 +1,5 @@ -The Blog of Zachary Snow

Use nameof() to set a string variable to its name

December 17, 2019.netc#

This is one of those things that should have just been obvious to me +The Blog of Zachary Snow

Disable C# null checks for a field or property

January 2, 2020.netc#nrtnullable

The new nullable reference types in C# are great but sometimes you might need to disable it for a +single field or property. You can do that by assigning the value to null and using the ! operator.

Continue reading "Disable C# null checks for a field or property"

Use nameof() to set a string variable to its name

December 17, 2019.netc#

This is one of those things that should have just been obvious to me but once I saw it I wondered why I had never thought to use it myself. nameof() can be used when declaring a variable to set the value of the variable to the name of the variable:

@@ -33,6 +34,4 @@ be used quite nicely for other use cases as well. Let's create a class we can use to collect some actions to be "deferred" until a later time.

Continue reading "Abusing IDisposable"

Generating string permutations for unit testing

February 11, 2019.netc#nunit

I needed to parse a string containing 6 characters. Each character should only be one of 3 possibilities: '?' for null, '0' for false or '1' for true. The problem -sounded easy enough to generate a whole bunch of unit tests for.

Continue reading "Generating string permutations for unit testing"

Functional Card Deck in C#

October 11, 2018c#fp

I've been inspired lately by Mark Seemann's series of posts about Applicative Functors. One of the latest posts is an example about -creating a full deck of cards. Most of posts up to this -point have contained a C# example but for some reason this one didn't. This inspired me to take a shot at it.

Continue reading "Functional Card Deck in C#"
\ No newline at end of file +sounded easy enough to generate a whole bunch of unit tests for.

Continue reading "Generating string permutations for unit testing"
\ No newline at end of file diff --git a/blog/page8.html b/blog/page8.html index fbe18df..153cc71 100644 --- a/blog/page8.html +++ b/blog/page8.html @@ -1,4 +1,6 @@ -The Blog of Zachary Snow

Enabling the latest version of C#

June 21, 2018c#msbuild

As of this writing when creating a new console project via dotnet new console the version of C# used in the project +The Blog of Zachary Snow

Functional Card Deck in C#

October 11, 2018c#fp

I've been inspired lately by Mark Seemann's series of posts about Applicative Functors. One of the latest posts is an example about +creating a full deck of cards. Most of posts up to this +point have contained a C# example but for some reason this one didn't. This inspired me to take a shot at it.

Continue reading "Functional Card Deck in C#"

Enabling the latest version of C#

June 21, 2018c#msbuild

As of this writing when creating a new console project via dotnet new console the version of C# used in the project is version 7.0. This means you're missing out cool features like Default Literal Expressions. The language version can be changed via Visual Studio though I prefer to enable it via MSBuild. This can be done in the csproj file or globally via a Build.Directory.props file. Changing the C# language version is done via a property known as LangVersion.

@@ -51,7 +53,4 @@ }

The specialization for IEnumerable<string> is just mirroring the implementation from string.Join.

-

Run a program directly after building in VS Code

Whenever I have a program that is just a generator of some kind I like to have that -program execute directly after having built the program successfully. I'm going to show -how to run the program via the dotnet cli but this trick can easily be applied to regular -.NET programs or any program which is built using MSBuild.

Continue reading "Run a program directly after building in VS Code"
\ No newline at end of file +
\ No newline at end of file diff --git a/blog/page9.html b/blog/page9.html index da67956..85548e5 100644 --- a/blog/page9.html +++ b/blog/page9.html @@ -1,4 +1,7 @@ -The Blog of Zachary Snow

Merging Build.Directory.props

April 4, 2018msbuild.net

MSBuild version 15 introduced the concept of "Directory.Build.props" files. From the docs:

+The Blog of Zachary Snow

Run a program directly after building in VS Code

Whenever I have a program that is just a generator of some kind I like to have that +program execute directly after having built the program successfully. I'm going to show +how to run the program via the dotnet cli but this trick can easily be applied to regular +.NET programs or any program which is built using MSBuild.

Continue reading "Run a program directly after building in VS Code"

Merging Build.Directory.props

April 4, 2018msbuild.net

MSBuild version 15 introduced the concept of "Directory.Build.props" files. From the docs:

  • Directory.Build.props is a user-defined file that provides customizations to projects under a directory. This file is automatically imported from Microsoft.Common.props unless the property ImportDirectoryBuildTargets is @@ -17,5 +20,4 @@

Git Quick Push

March 29, 2018gitbatch

Here's a quick one liner to quickly stage all your changes in the current git repo, commit them and then push the commit to origin master branch.

Continue reading "Git Quick Push"

Poor Man's Template Engine in C# Part 3

Include

In our last episode we implemeted the first two helper funcitons HtmlEncode and If. Today we want to implement Include.

Continue reading "Poor Man's Template Engine in C# Part 3"

Poor Man's Template Engine in C# Part 2

HtmlEncode and If

In our last episode we laid the groundwork for our -simple template engine. In this episode we'll introduce our first 2 helper functions.

Continue reading "Poor Man's Template Engine in C# Part 2"

Poor Man's Template Engine in C# Part 1

Groundwork

If you're looking for a poor man's solution to a templating engine for .net and don't really need -the overhead a complete template engine brings with it, I've come up with the following solution.

Continue reading "Poor Man's Template Engine in C# Part 1"
\ No newline at end of file +simple template engine. In this episode we'll introduce our first 2 helper functions.

Continue reading "Poor Man's Template Engine in C# Part 2"
\ No newline at end of file diff --git a/feed.rss b/feed.rss index f261747..a51feee 100644 --- a/feed.rss +++ b/feed.rss @@ -5,9 +5,19 @@ The Blog of Zachary Snow The Blog of Zachary Snow https://smack0007.github.io/ - Fri, 23 Aug 2024 00:00:00 GMT - Fri, 23 Aug 2024 00:00:00 GMT + Sat, 31 Aug 2024 00:00:00 GMT + Sat, 31 Aug 2024 00:00:00 GMT 1800 + + <![CDATA[Installing debian on a Lenovo ThinkCentre M715q]]> + I recently purchased a Lenovo ThinkCentre M715q and wanted to install debian on it but after starting the installer the screen +was completely corrupted. This forum post provided the solution. I +had to press tab and add vga=normal fb=false to the boot string. After that the installer was displayed normally.

+]]>
+ https://smack0007.github.io/blog/2024/install-debian-m715q.html + https://smack0007.github.io/blog/2024/install-debian-m715q.html + Sat, 31 Aug 2024 00:00:00 GMT +
<![CDATA[Install Linux Mint Cinnamon Themes on Debian]]> As a long time Windows user it probably is no surprise that I enjoy using the Cinnamon Desktop @@ -254,14 +264,6 @@ machines.

]]>
https://smack0007.github.io/blog/2020/add-the-current-time-to-your-command-prompt.html Thu, 26 Nov 2020 00:00:00 GMT
- - <![CDATA[Execute different commands in MSBuild depending on platform]]> - Another quick snippet that shows how to change what command will be executed in MSBuild -based on the OS the script is running on.

]]>
- https://smack0007.github.io/blog/2020/execute-different-commands-in-msbuild-depending-on-platform.html - https://smack0007.github.io/blog/2020/execute-different-commands-in-msbuild-depending-on-platform.html - Fri, 20 Nov 2020 00:00:00 GMT -
diff --git a/index.html b/index.html index 4505b95..bc729d8 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,7 @@ -The Blog of Zachary Snow

Install Linux Mint Cinnamon Themes on Debian

As a long time Windows user it probably is no surprise that I enjoy using the Cinnamon Desktop +The Blog of Zachary Snow

Installing debian on a Lenovo ThinkCentre M715q

August 31, 2024linuxdebianlenovo

I recently purchased a Lenovo ThinkCentre M715q and wanted to install debian on it but after starting the installer the screen +was completely corrupted. This forum post provided the solution. I +had to press tab and add vga=normal fb=false to the boot string. After that the installer was displayed normally.

+

Install Linux Mint Cinnamon Themes on Debian

As a long time Windows user it probably is no surprise that I enjoy using the Cinnamon Desktop Environment. Although I have used and enjoyed using Linux Mint one goal I had when I started replacing Windows throughout my house was to be the same distribution on differnt machines. So I settled on installing Debian everywhere and customizing it to each systems individual needs.

@@ -47,11 +50,4 @@
let setTimeoutSpy: jest.SpyInstance<ReturnType<typeof setTimeout>, Parameters<typeof setTimeout>>;
 

We use the built in ReturnType and Parameters utility types to perform the voodoo needed in order to make eslint happy.

-

Enums considered harmful

January 24, 2023typescriptenum

It seems that torwards the end of 2022 the collective hivemind of the TypeScript -programming world decided that enums -are terrible. While I mostly agree -with the premise that TypeScript enums are not good the solutions that are -presented often only deal with String enums. -For my work on SDL_ts -I really need a solution for Numeric enums -as SDL is full of them.

Continue reading "Enums considered harmful"
\ No newline at end of file +
\ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index b6f675d..eff36e1 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -255,6 +255,9 @@ https://smack0007.github.io/blog/2024/linux-mint-cinnamon-theme-on-debian.html + + https://smack0007.github.io/blog/2024/install-debian-m715q.html + https://smack0007.github.io/blog/2024/goodbye-windows.html diff --git a/tags/debian/index.html b/tags/debian/index.html index e3333da..714e89b 100644 --- a/tags/debian/index.html +++ b/tags/debian/index.html @@ -1,4 +1,7 @@ -debian

Install Linux Mint Cinnamon Themes on Debian

As a long time Windows user it probably is no surprise that I enjoy using the Cinnamon Desktop +debian

Installing debian on a Lenovo ThinkCentre M715q

August 31, 2024linuxdebianlenovo

I recently purchased a Lenovo ThinkCentre M715q and wanted to install debian on it but after starting the installer the screen +was completely corrupted. This forum post provided the solution. I +had to press tab and add vga=normal fb=false to the boot string. After that the installer was displayed normally.

+

Install Linux Mint Cinnamon Themes on Debian

As a long time Windows user it probably is no surprise that I enjoy using the Cinnamon Desktop Environment. Although I have used and enjoyed using Linux Mint one goal I had when I started replacing Windows throughout my house was to be the same distribution on differnt machines. So I settled on installing Debian everywhere and customizing it to each systems individual needs.

diff --git a/tags/index.html b/tags/index.html index 2643950..01593ae 100644 --- a/tags/index.html +++ b/tags/index.html @@ -1 +1 @@ -The Blog of Zachary Snow \ No newline at end of file +The Blog of Zachary Snow \ No newline at end of file diff --git a/tags/lenovo/index.html b/tags/lenovo/index.html new file mode 100644 index 0000000..8e16047 --- /dev/null +++ b/tags/lenovo/index.html @@ -0,0 +1,4 @@ +lenovo

Installing debian on a Lenovo ThinkCentre M715q

August 31, 2024linuxdebianlenovo

I recently purchased a Lenovo ThinkCentre M715q and wanted to install debian on it but after starting the installer the screen +was completely corrupted. This forum post provided the solution. I +had to press tab and add vga=normal fb=false to the boot string. After that the installer was displayed normally.

+
\ No newline at end of file diff --git a/tags/linux/index.html b/tags/linux/index.html index 46cf75f..36cb5bd 100644 --- a/tags/linux/index.html +++ b/tags/linux/index.html @@ -1,4 +1,7 @@ -linux

Install Linux Mint Cinnamon Themes on Debian

As a long time Windows user it probably is no surprise that I enjoy using the Cinnamon Desktop +linux

Installing debian on a Lenovo ThinkCentre M715q

August 31, 2024linuxdebianlenovo

I recently purchased a Lenovo ThinkCentre M715q and wanted to install debian on it but after starting the installer the screen +was completely corrupted. This forum post provided the solution. I +had to press tab and add vga=normal fb=false to the boot string. After that the installer was displayed normally.

+

Install Linux Mint Cinnamon Themes on Debian

As a long time Windows user it probably is no surprise that I enjoy using the Cinnamon Desktop Environment. Although I have used and enjoyed using Linux Mint one goal I had when I started replacing Windows throughout my house was to be the same distribution on differnt machines. So I settled on installing Debian everywhere and customizing it to each systems individual needs.