Tim Maxey .NET Technology Blog & Resources

Friday, September 12, 2014

domainsreserved scam warning

So I received an email that one of my .info website domains was available in .com fro $69.95! Includes first year. I was thinking cool!

but then looking around the Internet I found other people asking if this was a scam. IT IS! I went on my Godaddy and immediately purchased the domain for Godaddy's regular price of $12!! I actually got it for $2.99 if I paid the second year now...

So beware!!! Just check it out on Godaddy first before throwing out the money.


Monday, April 22, 2013

Firefox change search engine

ok, so my Norton anti virus updated and irritated me when it changed my default search. Regardless if it asked me or not, don't do that to users!

Anyway i found this website that's shows you hhow to change it. This the default search in the address bar NOT the small search bar...

http://www.wikihow.com/Change-Your-Browser%27s-Default-Search-Engine#Firefox


Friday, June 15, 2012

Adobe blur around photo

Need a blur around a photo and found these steps below:

Open a photo.

Convert the background to a layer by double clicking on it. (Give it a name if you wish.)

Select the Elliptical Marquee tool.

Drag a marquee selection around the area of the photo you want to keep.

Click the "Add layer mask" button at the bottom of the layers palette.

Click on the layer mask thumbnail in the layers palette.

Go to Filter > Blur > Gaussian Blur and make sure the Preview option is checked.

Adjust the radius until you are happy with the amount of fade and click OK.

Add a layer under the photo and fill it with the desired background.



Worked like a champ in Photoshop! Got it from here.


Thursday, March 1, 2012

DNN SEO URL Firendly URL Dashes in Tabname

So in DotNetNuke you want the SEO friendly URL like my-web-page-is-cool.aspx correct? Well unless you want to purchase the $120 deal and learn it, go ahead, but for me I just needed the dashes, that's all, didn't want to pay $120 for a thrid party module, ya know?

So I came across this post: http://rubicite.com/Tutorials/DotNetNukeFriendlyURLSeparators.aspx which I had to modify my DNN source with C# so get the code, open it up and go to the library/commons and globals and change this function:

 public static string GenerateTabPath(int ParentId, string TabName)

 To this:

 

public static string GenerateTabPath(int ParentId, string TabName)
        {
            string strTabPath = "";
            var objTabs = new TabController();

            if (!Null.IsNull(ParentId))
            {
                string strTabName;
                var objTab = objTabs.GetTab(ParentId, Null.NullInteger, false);
                while (objTab != null)
                {
                    //strTabName = HtmlUtils.StripNonWord(objTab.TabName, false);
                    string S = System.Text.RegularExpressions.Regex.Replace(objTab.TabName, "[\\s]+", "-");
                    S = System.Text.RegularExpressions.Regex.Replace(S, "[^\\w-]*", "");
                    strTabName = S;
                    strTabPath = "//" + strTabName + strTabPath;
                    if (Null.IsNull(objTab.ParentId))
                    {
                        objTab = null;
                    }
                    else
                    {
                        objTab = objTabs.GetTab(objTab.ParentId, objTab.PortalID, false);
                    }
                }
            }

            //strTabPath = strTabPath + "//" + HtmlUtils.StripNonWord(TabName, false);
            string S2 = System.Text.RegularExpressions.Regex.Replace(TabName, "[\\s]+", "-");
            S2 = System.Text.RegularExpressions.Regex.Replace(S2, "[^\\w-]*", "");
            strTabPath = strTabPath + "//" + S2;
            return strTabPath;
        }

 

Rebuild the "Library" upload new DotNetNuke dll and you are set, work like a champ, it's getting ready to be used on http://DTGDNN.noptm.com, then on their live site: Direct to Garment Printer

 

Hope this help someone else! Let me know if you want the dll, mine id 6.1.3.108, but for if you like shoot me an email and for $40 I will take current version of DNN amd update the dll for ya if you have a different version.!


Friday, September 30, 2011

Could not find stored procedure

I haven't had to use a direct call to a stored procedure in a long time, but came across the could not find stored procedure error. (And yes I had all security set fine). If I uncommented out the "commandType" it worked!

Dim conn As New SqlConnection(ConfigurationManager.ConnectionStrings("myconnection").ConnectionString)
        Dim cmd As New SqlCommand
        Dim execStr As String = "EXEC dbo.InsertActivity " & userid
        cmd.CommandText = execStr
        'cmd.CommandType = CommandType.StoredProcedure DOES NOT WORK WITH THIS UNCOMMENTED, WEIRD
        cmd.Connection = conn
        conn.Open()
        cmd.ExecuteNonQuery()
        conn.Close()
        cmd.Dispose()


Tuesday, July 5, 2011

Tethering on DROID X Verizon just fine

Click on the link below to start tethering with no problems on Verizon with Gingerbread! Thank you to the guys over at:

Geek Sailor

In fact, I am posting this blog post from the tethering software, installed quick and worked fast!


Wednesday, June 29, 2011

Reset forgot nopcommerce admin password

So you forgot and can no longer get into the nopCommerce administration? Easiest way to do it is this:

  • 1. Register a new user from the main website
  • 2. Open SQL server and update that user to "IsAdmin=1"
  • 3. logout and login with that same user
  • 4. Goto the administrator and customers and change whatever account your need etc..

Hope this helps!


Tuesday, June 28, 2011

Android SDK and AVD Manager not Installing Packages

I came across the problem of when I wanted to update my Android SDK, or add Google Maps api, or add the Google Checkout, Licensing packages, I'd get "nothing installed" and some crap about can't update the packages, check the path etc, etc..

Well come to find out, you got to go to the start menu, Android SDK Tools right click on the SDK Manager and run as Administrator...

I just happen to try that and it worked! Hope it helps someone else out there!