Skip to main content

Posts

Showing posts from August, 2018

Interesting bugs - MSB3246: Resolved file has a bad image, no metadata, or is otherwise inaccessible. Image is too small.

I got a very strange warning recently when building a .NET Core app with "dotnet build." MSB3246: Resolved file has a bad image, no metadata, or is otherwise inaccessible. Image is too small. Eek! It's clear, in that something is "too small" but what? A file I guess? Maybe it's the wrong size? The error code is MSB3246 which is nice and googleable/searchable but it was confusing because I couldn't figure our what file specifically. It just felt vague. BUT! I had recently been overclocking my machine (overly aggressively, gulp, about 40%) and had a very nasty hard reboot. As a result I had a few dozen files get orphaned - specifically the files were zero'ed out! Zero is small, right? Turns out you can pass parameters over to MSBuild from "dotnet build" and see what MSBuild is doing internally. For example, you could /fileLoggerParameters:verbosity=diagnostic but that's long. So how about: dotnet build /flp:v=diag Cool. Wha...

How Content Management Systems Dominate an Industry (And Why We Love Them)

Web-based businesses and entrepreneurs rely on many products and services to help them generate leads, close sales, and handle customer service. One of these crucial, modern business investments is a content management system . Content management systems help control content creation, distribution, and maintenance. Without a CMS, vested parties will spend hundreds of hours curating published content each year. How impactful are content management systems? Which platforms are entrepreneurs and businesses using? Why bother with them? These questions answered in this post. Popular CMS for Personal, Business, and Enterprise There are a dozen+ content management systems available for free and at-cost. They range from big, market-dominating projects to micro platforms providing an alternative to what many call “bloat”. Then, you have a myriad of enterprise-level offerings ideal for large workforces and heightened business needs. WordPress (Standard) WordPress provides your standard fa...

Introduction to Django

Hello everyone, from today we’re going to start a new tutorial series on Django framework. In this tutorial we will cover basic introduction of Django. Before start to learn, lets have a look on some most frequently asked questions about Django. These questions will help you to understand that what actually Django is. What is Django? Why use Django? How does Django work? Is Django stable? What are the requirements to learn Django? So let’s answer these questions one by one. Image Source Introduction to Django What is Django? Django is open-source and free web framework. It is written in Python language. It was created about 13 years ago (21 july 2005) and the latest and stable release Django 2.1 is out this year (1 august 2018) with a whole new set of features and capabilities. It is maintained by the Django Software Foundation, an independent organization established as a 501 non-profit. Django is a framework for web developers, it provides amazing infrastructure required...

Difference between Linear and Non Linear Data Structure

Here you will learn about difference between linear and non linear data structure. Data structures are basically a way of storing and logically implementing the data elements. These elements need to be stored in a way which makes them orderly and organized. Apart from the primitive data structures which include the int, char, float, double etc., the non primitive data structures are also important and definitely play a crucial role for storing and retrieving the data structures. The non primitive data structures can broadly be classified into two types: Linear Data Structure Non-Linear Data Structure Although, both are non-primitive data types, yet they hold a majority of differences between them, these differences can better be understood by reading the following points. Image Source Difference between Linear and Non Linear Data Structure Linear Data Structure Non Linear Data Structure The elements are inserted adjacent to each other and can also be retrieved similarl...

What is Web Hosting? And Why Do I Need it?

Some of the newbies think that buying a domain name is enough to get a website live. But  domain is just a name by which people will recognize your website! What makes a website active on the internet though is a website hosting. A trustworthy web hosting partner is crucial to building a good website. No matter what’s your reason to enter into the World Wide Web, web hosting service is an important step in how your site is going to be viewed by your audience. Web hosting is a service that lets you store your website’s data in web servers (high-powered computers). And these web servers store all the important information available on your website and serve them to your audience whenever your users type your domain name into their browsers. It would not be wrong to say that web hosting offers you all the technologies required by your site to be seen on the internet. We hope now you have a basic idea of what web hosting is. However, as you know one size doesn’t fit all, there are ...

SkySilk – A Managed Cloud Services Provider

Managing data in a cloud is an important aspect to any developers journey through building their projects. With an advent in storage and managing solutions, it is becoming even more difficult for us to select the perfect provider for our cloud services; Including many aspects like security and integrity-which are also among the most crucial ones-need to be taken care of. SkySilk is setting benchmarks in this respect by providing a simplified solution to VPS hosting with a focus on developers. SkySilk maintains everything on the back-end which is desired out of a cloud service and offers a multitude of 1-click VPS hosting options to kickstart any production or testing environment. The various awe-inspiring features of this service are. Simplified VPS Hosting Platform The company encapsulates a range of well defined hardware and software resources to make your work easy, portable, and scalable. Users will be able to deploy machines from a list of over 40 Linux distros, apps & too...

Understanding the Core Principles of Lean Development

The quest for perfection in the business world is a never-ending journey. While it might be impossible to achieve perfection in your workflow, it is possible to get closer to it every day with a well-structured system in place. This is what lean development has to offer companies that would love to perfect their craft. An efficient business process not only means reduced losses but also increased customer satisfaction rates. To best reduce flaws, you ought to concentrate on eliminating waste while refining the intricate details that make your business tick. Having a firm grasp of how lean development works can easily make this possible. Here’s how to use the core principles of lean development to your advantage. Understand Value To what level does your customer value your product or services? Understanding your product’s value from the customer’s perspective is the initial step to determining how much they are willing to pay for your best products. You can then focus on eliminatin...

How do you even know this crap?

This post won't be well organized so lower your expectations first. When Rob Conery first wrote " The Imposter's Handbook " I was LOVING IT. It's a fantastic book written for imposters by an imposter. Remember, I'm the original phony . Now he's working on The Imposter's Handbook: Season 2 and I'm helping. The book is currently in Presale and we're releasing PDFs every 2 to 3 weeks. Some of the ideas from the book will come from blog posts like or similar to this one. Since we are using Continuous Delivery and an Iterative Process to ship the book, some of the blog posts (like this one) won't be fully baked until they show up in the book (or not). See how I equivocated there? ;) The next "Season" of The Imposter's Handbook is all about the flow of information. Information flowing through encoding, encryption, and transmission over a network. I'm also interested in the flow of information through one's brain as they ...

C Program to Read File Line by Line

Here you will get C program to read file line by line. In below program we first open a demo file hello.txt with some text in read mode. Make sure the file is already present. Then we read the file character by character and display on screen. Program #include<stdio.h> #include<conio.h> #include<stdlib.h> int main() { FILE *fp; char ch; fp = fopen("hello.txt","r"); if(fp == NULL) { printf("File not found. \n"); } else { printf("File is opening..... \n\n"); while((ch = fgetc(fp)) != EOF ) { printf("%c", ch); } } fclose(fp); return 0; } Output The post C Program to Read File Line by Line appeared first on The Crazy Programmer . from The Crazy Programmer https://www.thecrazyprogrammer.com/2018/08/c-program-to-read-file-line-by-line.html

How to Attract More Clients to Your Design Business

Learning design principles and programs are easy enough for anyone dedicated. The Web has given us unlimited resources from detail tutorials to communities helping us improve as designers. This love for design sparks a business idea — a way to monetize our design skills. The problem: Getting clients. This low-barrier to entry is also one of the freelance design challenges. If everyone can learn design principles, then everyone becomes your competitor. How can you land clients when so many are willing to work for free or rock-bottom prices? Let’s explore that question and the ways you can attract (paying) clients. Image Source Laying the Foundation: Mastering Your Tools and Principles The end goal of this post is you having built a portfolio website , featuring design work you can be both proud of and that attracts clients. There are many tools that’ll get you there with no particular “best option.” What are the design tools you should consider? Adobe Suite : The full suite, b...

Upgrading an existing .NET project files to the lean new CSPROJ format from .NET Core

If you've looked at csproj (C# (csharp) projects) in the past in a text editor you probably looked away quickly. They are effectively MSBuild files that orchestrate the build process. Phrased differently, a csproj file is an instance of an MSBuild file. In Visual Studio 2017 and .NET Core 2 (and beyond) the csproj format is MUCH MUCH leaner . There's a lot of smart defaults, support for "globbing" like **/*.cs, etc and you don't need to state a bunch of obvious stuff. Truly you can take earlier msbuild/csproj files and get them down to a dozen lines of XML, plus package references. PackageReferences (references to NuGet packages) should be moved out of packages.config and into the csproj.  This lets you manage all project dependencies in one place and gives you and uncluttered view of top-level dependencies. However, upgrading isn't as simple as "open the old project file and have VS automatically migrate you." You have some options when migrati...

Understanding Event & Log Management Best Practices

Log management is considered one of the key elements when it comes to managing, maintaining and troubleshooting IT systems. However, the success that you can reap from log management will trickle down to the practices that you indulge in. Without setting the best practices in place, it can be quite easy for your staff to be overwhelmed with managing your logs, which could end up putting your business at risk of system or application issues. Image Source Here are some amazing practices to help you make the most of your log management efforts: Structure Your Data Your data should be easily readable and understood from a machine and human-readable perspective. Failing to understand specific logging formats will make it tough to come up with valuable insight from your log data. For instance, when using  log4net to study log data that is in a format that is hard to understand, troubleshoot any problems in your application will be a challenge. Common log structuring formats includ...

Building the Ultimate Developer PC 3.0 - The Parts List for my new computer, IronHeart

It's been 7 years since the last time I built " The Ultimate Developer PC 2.0 ," and over 11 since the original Ultimate Developer PC that Jeff Atwood built with for me. That last PC was $3000 and well, frankly, that's a heck of a lot of money. Now, I see a lot of you dropping $2k and $3k on MacBook Pros and Surfaces without apparently sweating it too much but I expect that much money to last a LONG TIME. Do note that while my job does give me a laptop for work purposes every 3 years, my desktop is my own, paid for with my own money and not subsidized by my employer in any way. This PC is mine. I wrote about money and The Programmer's Priorities in my post on Brain, Bytes, Back, and Buns. As Developer we spend a lot of time looking at monitors, sitting in chairs, using computers, and sleeping. It stands to reason we should should invest in good chairs, good monitors and PCs, and good beds. That also means good mice and keyboards, of course. Was that US$30...

11 essential characteristics for being a good technical advocate or interviewer

I was talking to my friend Rob Caron today. He produces Azure Friday with me - it's our weekly video podcast on Azure and the Cloud. We were talking about the magic for a successful episode, but then realized the ingredients that Rob came up with were generic enough that they were the essential for anyone who is teaching or advocating for a technology. Personally I don't believe in "evangelism" and I hate the word. Not only does it evoke The Crusades but it also implies that your religion technology is not only what's best someone, but that it's the only solution. That's nonsense, of course. I like the word "advocate" because you're (hopefully) advocating for the right solution regardless of technology. Here's the 11 herbs and spices that are needed for a great technical talk, a good episode of a podcast or show, or a decent career talking and teaching about tech. Empathy for the guest – When talking to another person, never let s...