Protected: David & Warren

This post is password protected. To view it please enter your password below:


Enter your password to view comments.

Adventures in networking

So recently decided to change ISPs. My old ISP insisted that i pay for email addresses (~@isps-domain.com) which I don’t want, never wanted and will never ever use. I didn’t see why I should pay a monthly fee for something I’m not using. Long story short they wouldn’t budge. So I did the only thing I can, switch ISPs.

Then the fun begins. First having gone through ISP  changes, I never cancel the old one until the new one is up and running.

My bandwidth went from about 12 megabits/s to 25 megabits/s. Sadly I noticed no improvement in speed. :(

I had an old Linksys router between the internet and my firewall. Sure enough, 10 mega bit ports :( First order of business it had to go. So away it went. Now the internet was plugged into one nic of the ISA 2004 firewall. 100 mbps. Should have more than enough capacity. Well there was no change in internet speed :(

To be continued…

Posted in Geek | Leave a comment

lol

Posted in Photos | Tagged | Leave a comment

Magento 1.6.0 stable

my host runs su<something or other> so I had a bunch of permission problems. What needs doing

*************** SETTING PERMISSIONS ***************
Setting all folder permissions to 755
Setting all file permissions to 644
Setting pear permissions to 550

 

The link that set me straight.

http://www.magentocommerce.com/wiki/groups/227/resetting_file_permissions

Posted in Geek | Tagged | Leave a comment

unable to allocate from the system nonpaged pool aka Source: srv Event ID: 2017

General
The server was unable to allocate from the system nonpaged pool because the server reached the configured limit for nonpaged pool allocations.

The fix
Set the following registry key to ’1′:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache

and set the following registry key to ’3′:
HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size

courtesy of alan.lamielle

Leave a comment

Pex thing

the Pex puzzle

a solution of sorts. You have to write code to mimic a mystery method.

Posted in Geek | Leave a comment

T-SQL paging

–snippet for paging on server. Is there a simpler way?

DECLARE @PageNum AS INT;
DECLARE @PageSize AS INT;
SET @PageNum = 1;
SET @PageSize = 10;

WITH TablePage AS
(
SELECT ROW_NUMBER() OVER(ORDER BY theDate, someId) AS RowNum, otherFields
FROM someTable
)

SELECT *
FROM TablePage
WHERE RowNum BETWEEN (@PageNum – 1) * @PageSize + 1
AND @PageNum * @PageSize
ORDER BY theDate, someId;

Posted in Code | 1 Comment

Amazon customer service = Amazing

Just had the nicest customer service experience from amazon. My daughter received a Kindle as a gift for xmas. Yesterday she found that it wouldn’t turn on. We tried resetting it, charging it, resetting it. Charging it overnite, resetting it. Finally called Amazon. I was asked to try to reset it. I explained what we had done, the rep said it sounded like it was dead. So we started the replacement process. Because I didn’t buy, and it was a gift, we had no receipt. Not a problem. I expected Amazon to bill me for the replacement and then credit me when I returned the defective Kindle. I was told no need to return it, I should just recycle it. The new Kindle was sent by courier and I should have it within a few days.

Wow, amazing customer service. Thanks Amazon. Hey Rogers, Bell, take some lessons.

Leave a comment

C# system.tray icon animation how to

http://blogs.msdn.com/b/abhinaba/archive/2005/09/12/animation-and-text-in-system-tray-using-c.aspx

The only thing I would add is

DllImport(“user32.dll”, EntryPoint = “DestroyIcon”)]static extern bool DestroyIcon(IntPtr hIcon);

and then

DestroyIcon(hIcon);

Read somewhere that  bitmap.GetHicon(); leaks. Haven’t verified it.

Posted in Code | Leave a comment

I just too much time figuring this out…so this is for next time

Problem: need to change a checkbox state from within its own even handler(legacy stuff), but don’t want the event handler to fire again. (ie someone unchecks it, we checkit back and disable it)

Public Sub ChangeCheckedWithoutEvent(ByRef chkBox As System.Windows.Forms.CheckBox,
ByVal state As Boolean, ByRefeventHandler
As System.EventHandler)
‘ Unsubscribe from the event handler
RemoveHandlerchkBox.CheckedChanged, eventHandler
‘ change the state
chkBox.Checked = state
‘ Resubscribe to the event handler
AddHandler chkBox.CheckedChanged, eventHandler
‘ net affect, we changed the checkbox without firing the event
End Sub

Now to call it
CheckedChangeWithNoEvent(Me.theCheckbox, True, AddressOf Me.theCheckbox_CheckedChanged)

 

vb.net, delegate, eventhandler, AddressOf

Leave a comment