Recent Updates Toggle Comment Threads | Keyboard Shortcuts

  • shees

    shees 12:02 on November 5, 2015 Permalink | Reply
    Tags: 3d, 3d models, 3d printing,   

    A colleague told me about a greate site with 3D models: http://www.thingiverse.com/

     
  • shees

    shees 12:00 on November 5, 2015 Permalink | Reply
    Tags: iot, , tessel,   

    A colleague told me about a nice IoT board: https://tessel.io/

     
  • shees

    shees 00:14 on October 26, 2015 Permalink | Reply
    Tags: , , ,   

    Dynamic Webservice Core 

    I have countless number of times worked with technology wanted to be able to run on the web in a simple way. The boring part of the job has always been to write code that takes to see the end result. Therefore, I have begun to develop a new project I call “Dynamic Webservice Core”. It is basically a web server where you can plug in modules called webapps. The service includes mechanisms to determine the appropriate registered webapps then let them handle output to the client.

    I have chosen to publish the results on my github useraccount: https://github.com/imshz/dynamic-webservice

    I havent had the time to write proper documentation or develop samples yet but I will provide more information about the project and webapps soon.

    Cheers!

     
  • shees

    shees 21:20 on August 16, 2015 Permalink | Reply
    Tags: , security, vpn, windows 10   

    VPN TCP/IPv4 issue on Windows 10 

    I use vpn connections alot, and the company I currently am a consultat at blocks the internett connection when you connect to their network. They do not want there network to be used while not connected to a physical computer in that network. After upgrading to Windows 10 and creating a vpn connection i found out that the TCP/IPv4 connection properties are not available. The button does not respond when you click on it, really annoying! After googling for a solution I got to know that this a common bug and Microsoft are aware of it, but its not important enough to fix.
    More googling resulted in finding a workaround, or actually editing the auto mectric property without a UI trough Powershell.

    In short words, run Powershell and type:
    Set-VpnConnection -Name “VPN CONNECTION NAME” -SplitTunneling $True

    Replace the “VPN CONNECTION NAME” with the name of your vpn connection.

    Referance to the article I found: http://goo.gl/wK3R3V

     
  • shees

    shees 00:01 on August 15, 2015 Permalink | Reply
    Tags: , hyper-v, test, virtualization, windows   

    Virtualization technology to use? 

    Starting to upgrade my OS today i realized that a have been using Vmware Workstation for a while. Since the version I am using i quite old I decided to look for alternatives before buying a new license. I have been through Virtual PC, Virtual Box and other older Vmware Products. On my Mac Book Pro i use Vmware Fusion whom work quite well.
    Long story short, today I found out that windows 8+ and 10 was Hyper-V builtin feature and you only need to enable this feature.
    In my company we are currently host all our servers virtually with Hyper-V, so I got good experience with it. Once enabled its quite easy to manage virtual machines, and through Hyper-V these machines get the most out of the computer.

    The way to enable Hyper-V is through “Turn Windows features on or off” inside the Control Panel:

    controlpane

    After you select this option, the Hyper-V feature:

    features

    When the installation procedure is completed, the Hyper-V Manager will be available in the startmeny. You can browse to it or use the search option to find it quickly.

    startmenu

    Thats it, you can now create and run virtual machines. I have several windows and linux machines that are working great.
    Remember to create a virtal switch to share your network connection to the virtual machines.

    server

    Ubuntu running on Hyper-V:

    server_os

    Happy virtualizing!!

     
  • shees

    shees 02:24 on December 9, 2014 Permalink | Reply
    Tags: , geo, , ,   

    My latest opensource contribution, Simplify-net 

    Finally, my port of the high performance polyline simplification library Simplify-js by Vladimir Agafonkin is now complete and syncronized with github.
    Polyline simplification dramatically reduces the number of points in a polyline while retaining its shape, giving a huge performance boost when processing it and also reducing visual noise.
    A live demo can be seen here…

    My port can be found at https://github.com/imshz/simplify-net. I used a lot of time on tuning performance to reduse calculation time. And will soon blog about some of the performance pros/cons I did encounter.

     
  • shees

    shees 22:55 on December 1, 2014 Permalink | Reply
    Tags: , database, memory, , sqlite   

    In memory database or a object structure? 

    I work a lot with cached data loaded to the memory. These memory structures gives a lot better performance, but are quite difficult to debug or filter on. I have worked with the Sqlite.net database before and know about its ability to run inside memory without any other attachments. I wanted to check this out and wrote some minor stuff to get started. Here is my research, its not a lot. I will probably test it out more and compare to other in memory database/no-sql memory structures. For my need I want a in-app solution and sqlite supported that.

    I created a test with a dictionary where I used linq to count/find values that have words starting with “57”, run the same test for sqlite with Full Text Search, and regular sqlite table. I know that this test is not any kind of proof on anything, but just to see the simplicity to setup and insert data to sqlite on query/search for it later on is great!

    Here are my results:

    Dictionary<int, string>

    • Create Dictionary: 0ms
    • 1000000 add method executed: 407ms
    • Starts with search found <11111> elements, time: 180ms
    Sqlite Full Text Search
    • Create in-memory db connection: 33ms
    • Create a virtual full text searchable table: 7ms
    • 1000000 insert statement executed: 64493ms
    • Starts with search found <11111> elements, time: 27ms
    Sqlite (regular table)
    • Create in-memory db connection: 0ms
    • Create a standard sqlite table: 0ms
    • 1000000 insert statement executed: 21904ms
    • Starts with search found <11111> elements, time: 215ms

    And my testcode:

    My conclusion is that sqlite full text search has great search performance and its quite easy to use. The write performance is nothing to brag about tough!

     
  • shees

    shees 21:54 on December 1, 2014 Permalink | Reply
    Tags: , , , ,   

    Web Benchmark Tools v1.2 Released 

    benchmarktool

    Released a new version of my benchmark tool a few days ago. Just did not have any time to post about it before now 😉
    Added some cool new features as selection of a user-agent to access the website from, and some more, see the full list here. The next move on this project will be to add a WPF user interface for better usability, ill see when I get the time to do that. Currently working on a lot of projects.

     
  • shees

    shees 02:32 on November 21, 2014 Permalink | Reply
    Tags: , , ,   

    Web server performance tester uploaded to codeplex and renamed Web Benchmark Tools 

    benchmark

    I have rewritten some of the code on the web server performance tester i blogged about for a while ago. And since it was a simple and small project I did really want it to take it so far. But today I started to testing on a node.js webserver and wanted to fix some performance issues on the tester app. This made me think that it would have been nice to have repository for the code, so I went on and created a codeplex project for it.
    I edited the code to be more userfriendly so that one can input site to test against, and some parameters to rerun it if you want a new benchmark. I am also thinking about rewriting the user interface to WPF and drop the console, and will do it when I get the time.

    You can now review or download it from http://webbenchmark.codeplex.com

    Other changes that I made was to move the semaphore out of the first “for”-clause a semphore does cost a lot to create. Second, a colleague of mine tipped me on the SemaphoreSlim class, that was way better performance than the Semaphore. I will also be looking into the Prallell.ForEach.

    Hope it can be useful for you too!

     
  • shees

    shees 02:14 on November 21, 2014 Permalink | Reply
    Tags: ,   

    Does Console.WriteLine block? 

    Working on my performance tester app I realized that I have some things i can do better to get closer to the web request code. We know that the

    call does block the thread and there are several guides/blogposts on how you can run it as a task or background thread to get it to run more efficient. But I if you are using the the .net framework 4.5 you can do i in a more elegant way.

    If you use the TextWriter as described for the standard output you can runs the operation asynchronously as a task, built in. And since this is a task you can await it like any other async operation in .net 4.5+

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel