Lines of code Counter [C#]

Posted on

Lines of code Counter Version: 1.0 Requirements: Windows Limitations: No limitations As the title say. This is a small C# software that helps count the lines of code, comments, blank lines from a file or directory (recursive). It is possible to state which files to look into. For example: *.cs or *.java etc.. Better than […]

Mrtg snmpwalk and snmpget

Posted on

It is not always possible to know there the interesting data is on a router and this whould take up an example of how to gather the trafficflow thru the router, by using snmpwalk and snmpget. Preconditions: Router at IP: 192.168.0.1, we name it FVS338. We have access to it by using the community: “public”. […]

Mrtg cfgmaker

Posted on

How to make cfgmaker to make your configuration from making a snmp-walk over the router of any kind. Cfgmaker to make the configurations Example: I want to make a mrtg.router.cfg file based on the snmp the router at ip 192.168.0.1 have. /usr/bin/cfgmaker –output mrtg.router.cfg public@192.168.0.1 This will generate the output file mrtg.router.cfg that have the […]

GA AI Tetris [C#]

Posted on

  GA is a way to learn a population by generations, better understand a problem and working towards a goal. This by giving a small fragments of the both parents dna (information/mutation) into the childs “dna”. For each new generations, they will given more understanding of the problem and thereby make better actions towards the […]

Create DLL from WSDL in C#

Posted on

How to generate a DLL file from a WSDL in C# As this was hard to get out I type this down if any other search for this. I first of started to question how to turn a WSDL to a DLL, but then found out this must be done in 2 steps. Generate file.cs […]

Windows 7 msconfig boot in safeboot loop

Posted on

Just experience the problem when configure safeboot in msconfig for Windows 7. The problem already existed before that when trying to reboot in safemode, the computer hang and nothing was turning up on the screen. The problem was when I thought that the checkbox in msconfig (type msconfig in cmd) was actually be another way […]

Facebook spying on you when you browsing

Posted on

As you probably have seen in the news lately, Facebook track all webpages you are visiting (those that have like buttons and other FB related information). It is possible to block this if you are using Firefox and AdBlock Plus. By adding this filter no other pages can send data to FaceBook or collect any. […]

ksoap2 with timeout for HttpTransportSE

Posted on

KSoap2-Android have long be the library to use for soap request. But for our android development we also needed timeout when using soap requests. Currently Ksoap2 only support timeout for https, but we have modified version 2.5.2 to also support timout for http, that we needed. You will find the download below. Official KSoap2 project-page […]

Build Anti-Pattern

Posted on

  I have seen this anti pattern in some diffrent code bases both Java and dotNet. When selecting build artifact always go “all in”. If maven is the tool the it is maven poms that shall be under version control. The IDE resources like eclipse .project and .classpath is and shall be treated as generated […]