Friday links 149

  1. What are mistakes which software engineers make in the first 1-2 years of their career? – Quora
  2. ASP.NET 5 Updates and other improvements for Web Developers in Visual Studio 2015 CTP 6 – .NET Web Development and Tools Blog – Site Home – MSDN Blogs
  3. Dos and don’ts of managing remote developers | Toptal
  4. Handling BIG DATA – Cassandra + Presto
  5. What is blue and how do we see color? – Business Insider
  6. JavaScript Mistakes To Avoid With A Static Code Analyzer
  7. RaiMan/SikuliX2
  8. appium/appium
  9. WintellectNOW: Instructors | Learn from the best experts in the industry
  10. Gamasutra – Programmer, Interrupted
  11. ASP.NET Forums | The ASP.NET Forums
No Comments

5 Minutes .NET–Memory Cache

 

At https://youtu.be/BL5yo_p7x-E you can find the new video about caching in .NET with Memory Cache.

The code is:

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Caching;
using System.Text;
using System.Threading.Tasks;

namespace MemoryCacheNet
{
    public static class GlobalData
    {
        static object lockMe = new object();

        public static List<string> CountryList()
        {
            string key = "countries";
            var data = MemoryCache.Default.Get(key) as List<string>;
            if(data == null)
            {
                lock (lockMe)
                {
                    data = MemoryCache.Default.Get(key) as List<string>;
                    if(data != null)
                    {
                        return data ;
                    }
                    data = CountryListFromDatabase();
                    var duration = DateTimeOffset.UtcNow.AddSeconds(5);
                    MemoryCache.Default.AddOrGetExisting(key,data,duration);
                   

                }
            }
            return data;
        }
        static List<string> CountryListFromDatabase()
        {
            Console.WriteLine("obtaining data from database");
            return new List<string>()
            {
                "Romania",
                "India",
                "USA"
                // add your country ;-) 
            };
        }
    }
}

and using from Console:

using MemoryCacheNet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace MemoryCacheDOS
{
    class Program
    {
        static void Main(string[] args)
        {
            var data = GlobalData.CountryList();
            Console.WriteLine(data.Count);

            Console.WriteLine("waiting 1 sec");
            Thread.Sleep(1000);
            data = GlobalData.CountryList();
            Console.WriteLine(data.Count);

            Console.WriteLine("waiting 5 sec");
            Thread.Sleep(5000);
            data = GlobalData.CountryList();
            Console.WriteLine(data.Count);

        }
    }
}

 

Other tutorials are:

5MinThrowVsThrowEx
5Min Usefull Attributes
5MinIValidatableObject
5MinAsyncException
5MinAsync
5Min iMacrosAHK
5min Zip
5MinPSR
5MinParseWebPage
5MinFileHelpers
5Min Logging
5min Send emails and SMTP4Dev
5Min Memory Profiler ( User Object and/or memory leaks)
5min SFHB
5min – .TT files in Visual Studio

The full list is at https://www.youtube.com/playlist?list=PL4aSKgR4yk4OnmJW6PlBuDOXdYk6zTGps  .

No Comments

Friday links 148

  1. Using Request Ids – JSNLog
  2. 6 Mind Expanding Movies That Will Make You Question Reality And Life | TruthTheory
  3. Sidekick by HubSpot – The Ultimate Email Advantage
  4. Basic Help on NxBRE (Rule Engine) – CodeProject
  5. kashifimran/math-editor
  6. www.freevbcode.com/ShowCode.asp?ID=2988
  7. 17 Free Tools for Visual Studio — Visual Studio Magazine
  8. Merrion Computing Ltd – Seven Secrets of Successful Programmers
  9. https://www.linkedin.com/pulse/googles-very-rough-transition-nicholas
  10. Final Root Cause Analysis and Improvement Areas: Nov 18 Azure Storage Service Interruption | Microsoft Azure Blog
  11. ADO.NET Blog – Site Home – MSDN Blogs
No Comments

Exporter–added RSS and IDataReader

 

I have added to the Exporter

 

  1. Export RSS into Word/Excel/PDF  – see https://github.com/ignatandrei/Exporter/wiki/Export-RSS and video at https://youtu.be/AJWIJRAs_Xc 
  2. Export IDataRerader(SqlDataReader ) -  see https://github.com/ignatandrei/Exporter/wiki/Export-IDataReader and video at https://youtu.be/kDfNjY1Lfkg

 

Also , the RSS could be tested at http://exporter.azurewebsites.net/Home/ExportData 

The code source is free and all on https://github.com/ignatandrei/Exporter

No Comments

Friday links 147

  1. Avoid async void methods – You’ve Been Haacked
  2. Git – Book
  3. Container Usage Guidelines | Jimmy Bogard’s Blog
  4. Framework Design Guidelines
  5. SacrificialArchitecture
  6. Manifesto for Agile Software Development
  7. Azure Backup – Announcing Support for Windows Client Operating System | Microsoft Azure Blog
  8. SystemWrapper – Home
  9. ‘Chalk and talk’ teaching might be the best way after all
  10. Want to influence the world? Map reveals the best languages to speak | Science/AAAS | News
No Comments

Export to Excel,Word , Pdf, Html,CSV–work in progress

In my previous post I have announced the application / package that exports data ( classes/datatable/csv/json) to Word/Excel/PDF.

I have made also videos for show some features – the playlist is at https://www.youtube.com/playlist?list=PL4aSKgR4yk4MqsH5M-f1f5YLVG-nwr4FG&jct=8gXZuQaCYGLOsL6t5dNN9rEx5r_8vQ

The playlist contains:

Export Json To Excel Word PDF from javascript

 

Export List Objects To ExcelWordPDF

Export CSV To Excel Word PDF


Export DataTable to Excel Word PDF

 

Also, the documentation shows how add data that not belong to the Model ( that is, an array/list of objects / json) – here: https://github.com/ignatandrei/Exporter/wiki/Export-other-data-that-does-not-belong-to-the-model 

( also added a test for this)

Enjoy!

No Comments

Friday Links 146

  1. What a Prototype Is (and Is Not) | UX Magazine
  2. C# 6 in action | Jon Skeet’s coding blog
  3. Free Dev Tools – Visual Studio Community 2013
  4. Ten rules for writing fiction | Books | The Guardian
  5. Ten rules for writing fiction(part two) | Books | The Guardian
  6. Top 10 C# 6.0 Language Features – Developer.com
  7. 2 Futures Can Explain Time’s Mysterious Past – Scientific American
  8. Getting started with Office 365 development – Part 1 – Setting up your environment – Tobias Zimmergren’s thoughts on technology and business
  9. readwrite.com/2013/05/01/10-technology-skills-no-longer-in-demand
  10. 5 Bad Study Habits You’ve Probably Been Following
No Comments

Export to Excel,Word , Pdf, Html,CSV

I have made an application / package that exports data ( classes/datatable/csv/json) to Word/Excel/PDF.

I have made several tries in the past , however now is the definitive source for .NET 4.x It is FULL code source, with tests and tutorials..

 

The code is at https://github.com/ignatandrei/Exporter 

The NuGet package is at https://www.nuget.org/packages/ExporterWordExcelPDF

The demo online is at http://exporter.azurewebsites.net/ 

The documentation is at https://github.com/ignatandrei/Exporter/wiki 

You can help with the project – please read https://github.com/ignatandrei/Exporter/wiki/Help-the-project 

So if you need Excel / Word / PDF to export, please consider this open source project.

No Comments

Friday links 145

  1. 20 New Productivity Apps from 2014 that You Need to Try
  2. Forest
  3. import.io Magic | Web Data Platform & Free Web Scraping Tool
  4. Project Naptha
  5. www.math.tau.ac.il/~turkel/imagepapers/text_detection.pdf
  6. antimatter15/ocrad.js
  7. The Principle of Least Power
  8. What, When and who? Auditing 101 – SQLServerCentral
  9. Command Pattern | Object Oriented Design
  10. VisualStudioExtensionSync/ExtensionSync/ExtensionSync at master · latish/VisualStudioExtensionSync
  11. New Tab
  12. Scott Hanselman
  13. Products and Extensions for Visual Studio
No Comments

Happy new year 2016

May 2016 to give you what you need and what you want

Happy new year

No Comments