Skip to content

X Posts

Reset Ubuntu password in Windows 10

I forgot my password to the Ubuntu app in Windows. Here is the way I reset it.

  • close the app if you have it open
  • open a command prompt as administrator, open ubuntu has root
    • ubuntu config –default-user root
  • you’ll be logged in as root, now change the password for your user name
    • passwd username
  • exit ubuntu
  • reset ubuntu back to your username
    • ubuntu config –default-user username
  • exit ubuntu
  • re-launch ubuntu

Got the steps here: https://askubuntu.com/questions/772050/reset-the-password-in-linux-bash-in-windows

Hits: 371

IIS and X-Forwarded-For Header

Good article on configuring IIS logs to track the IP address of the client rather than the load balancer IP address.

 

https://www.loadbalancer.org/blog/iis-and-x-forwarded-for-header/

Hits: 681

Sharepoint – Application Server Role, Web Server (IIS) Role – Configuration Error

When installing Sharepoint 2013 on a virtual machine running Windows Server 2012 R2 I keep getting a configuration error for the Application Server Role. After reading a bunch of material and trying to install Windows updates I’ve found that the only thing necessary is to make a copy of C:\Windows\System32\ServerManager.exe and rename the copy to C:\Windows\System32\ServerManagerCMD.exe. This seems to fix my installation problems.

Make sure to close the server manager window as well if you have it open. It seems to make the installation hang if its open.

Hits: 392

Recover lost space on a USB drive

While doing some software installations for linux I had to shrink my flash drive to a partition of 32GB. The next time I stuck in my laptop I forgot I had done that and needed to use the entire 64GB that was available. Disk management wouldn’t allow me to delete the 32GB partition so I had do the following steps.

  • Insert your USB drive
  • Open a command prompt
  • Type in “diskpart”
  • Another window will open up, type “LIST DISK”. Not which disk is your USB drive.
  • Type in “SELECT DISK 1” or whatever disk was your USB drive.
  • Assuming you only had 1 partition on that drive, type in “SELECT PARTITION 1”.
  • Then type in “DELETE PARTITION”
  • That should be it, go back to Disk Management to complete the process of creating your partitions or formatting.

Hits: 254

Restoring a DB to a different directory

http://www.codeproject.com/Articles/708720/Solution-The-WITH-MOVE-clause-can-be-used-to-reloc

 

Hits: 289

Twidere (Android) – Setting up Tabs from Twitter Lists

It wasn’t straightforward doing adding a list from my twitter account to a tab in Twidere. So here you go…

From Tabs click the + sign, press List Timeline. Press where it says “Select user list” and search for yourself. Select your account. You should now be displayed your private lists. Just press one and finish the process of adding it.

There you go.

Hits: 226

My first PowerShell command – Rename Files

This is my first power shell command. I wanted to remove all spaces from the file names in my current directory.

Here is more information on the Rename-Item command.

http://technet.microsoft.com/en-us/library/hh849763.aspx

Hits: 145

Find all tables containing column with a certain name

 

Hits: 170

Cisco SPA303 – Dial Plan

I’m new to the SPA303 phone. I had trouble figuring out how to set it up so I don’t have to dial the area code for a phone number within the same area code. Below is an example I found.

 

Hits: 264

Access Modifiers (C# Programming Guide)

All types and type members have an accessibility level, which controls whether they can be used from other code in your assembly or other assemblies. You can use the following access modifiers to specify the accessibility of a type or member when you declare it:

public

The type or member can be accessed by any other code in the same assembly or another assembly that references it.

private

The type or member can be accessed only by code in the same class or struct.

protected

The type or member can be accessed only by code in the same class or struct, or in a class that is derived from that class.

internal

The type or member can be accessed by any code in the same assembly, but not from another assembly.

protected internal

The type or member can be accessed by any code in the assembly in which it is declared, or from within a derived class in another assembly. Access from another assembly must take place within a class declaration that derives from the class in which the protected internal element is declared, and it must take place through an instance of the derived class type.

http://msdn.microsoft.com/en-us/library/ms173121.aspx

Hits: 207

SQL – This will search any procedure, view, or function for a string.

 

Hits: 156

SQL Changing Schema Name

Changing it one by one use the following.

Changing all stored procedures.

 

Hits: 180

Change HTMLEncode In An Autogenerated Gridview

The only way I found to change the HtmlEncode property on a bound column when auto-generating the grid-view.

 

Hits: 132

Simple Linq to SQL Insert and Update

 

Hits: 261

WordPress – Time To First Byte Slow – IIS

I had a problem with a WordPress website that I recently moved to a new server running PHP 5.4 and IIS. I found that the fix to my problem was in the wp-config.php file. I had to change the hostname of the MySQL db from localhost to 127.0.0.1. Maybe this is an issue with IPv6 being enabled on the server. I’ll try and look at that later.

From…

To…

 

Hits: 379

CentOS 6 – Change System Language

I recently bought a server whose language was set to something other than English. Here is the way to change the language.

Run the following commands

and replace with the following

Log out and log back in. You should see the change.

Hits: 334