Archive for 'code'

Finding Network MAC Addresses with Advanced IP Scanner 2.0

Tek-Works was asked awhile back to review Advanced IP Scanner 2.0, not wanting to just review something with out actually needing it, would be useless for our readers, so I put it off till today. Today at work, my task was to add a wireless router to our network and to make it as secure [...]

Adding Content to Accordion Pane in Code Behind

Adding Content to Accordion Pane in code behind and Creating an Accordion Control in Code Behind Today I had to create an app the had a menu of countries and states but I only wanted countries or states that our company had businesses in. I’d pull them from the SQL server and have an accordion [...]

.NET Regular Expression in Code Behind

Most the time when we’re using regular expressions we’re doing it with in our aspx page checking against a text box or some other control. example When working with Query Strings you’ll need to compare the QueryString against a regular expression in the code behine, this is done by using the regex class from the [...]

SQL Case Sensitive Select Query

Today I ran into a problem where I needed to search for the term “PROfile” in my SQL database. the problem was, my queries kept also showing “profile” without the caps. From reading many sites, I guess that depending on how your SQL server was setup, you’ll either have case sensitive or insensitive searches. to [...]

Notepad++ Replace Something with Line Break

Quick how to.. To replace anything in Notepad++ with a Line break or Line Feed, the easiest way to do it is: In the lower left hand corner of the Replace box, you’ll see a section called “Search Mode”. Just select the “Extended (\n, \r, \t, \0, \x…)” choice and you can enter in \r [...]

WordPress & Eval(base64_decode

A good friend of mine sent me an email today asking me if a free theme he was looking into had a virus or some sort of spam code in it. The code he was referring to was a couple strings of code that started out with.. the code went on to show what seem to be [...]

links for 2010-05-14

Dipslaying Code In WordPress Posts | Theme Lab Adding Code to your wordpress site, I currently have a hack doing this, but would love to have line numbers. As long as it’s easy to also copy the code from the page. (tags: code wordpress plugins theme dipslaying) How to Quit Facebook Without Actually Quitting Facebook [...]

Compare Two SQL tables or Views

One of the things my company does on SQL that is kinda different from other companies and different than i’d do it is when someone isn’t a member of the website any longer, that member is deleted instead of set to inactive or suspended. This has worked for years and years, until now. We’ve started [...]

CVent and ID’s

Cvents system finds every user and event by their own id, before you can do anything with an event or a user, you must first do a search and find their/it’s id. Getting and Events id by it’s event name The same type of search works for finding a user. CVent looks at the “sourceID” [...]

Knee Deep in CVent API, Logging in

Image via CrunchBase I have to admit, I’ve never worked with an API before, ok I’ve pulled an image from flickr or the twitter feed on the side bar with API but someone else showed me how to do that. For work I had to write vb.net code to work with CVent’s API. So over [...]