teleren/devto huggingface dataset:
Why is your PowerShell Scheduled Task not running?
Tags: windows, powershell, script
Published: 2019-03-14 21:58:00

---
title: Why is your PowerShell Scheduled Task not running?
published: true
description: A checklist for when your Windows Scheduled Task that's supposed to run a PowerShell script just isn't.
tags: windows, powershell, script
---


This is one of the most-referenced entries I've made in my department's shared notes, so it seemed like a good choice for my first post to a wider audience!


## Signature required

* Does your task server require scripts to be signed?
  * If so, [do you have a valid code signing certificate](https://devblogs.microsoft.com/scripting/hey-scripting-guy-how-can-i-sign-windows-powershell-scripts-with-an-enterprise-windows-pki-part-1-of-2/) and [is your script signed](https://devblogs.microsoft.com/scripting/hey-scripting-guy-how-can-i-sign-windows-powershell-scripts-with-an-enterprise-windows-pki-part-2-of-2/)?
* If your script is signed, is the signature still valid? Here's how to check: `Get-AuthenticodeSignature -FilePath your-script.ps1`
  * If it's not valid, sign it again (I have a shortcut to do this in [my PowerShell profile](https://gist.github.com/chustedde/95e619c86a804258bd536bc5dd080cbb#file-microsoft-powershell_profile-ps1-L31))

## Who's running things?

* Is the task set to run whether or not the user is logged on?
* Do you have a specific account that runs scheduled tasks?
  * Did you save the correct password when setting up the task?
  * Just try the password one more time... I won't tell anyone you tried typing it instead of copying and pasting :sweat_smile:
* Does the user/script-running account have the correct permissions to do everything you need it to?
  * Folder permissions are a common issue

## Trust issues

* Does the account running the script trust your signature?
  * You may need to trust/re-trust your signature, especially if you were recently issued a new code signing cert
* If possible, on the machine running the task, open up a command prompt (or PowerShell!) and try launching PowerShell as the user running the task: `runas /user:example.edu\taskrunner powershell.exe`
  * Try running your script in the new PowerShell window that just popped up
  * When it asks you to trust your script, you say ~~yes~~ `[A]lways`!

I hope this saves at least a few people from a few moments of frustration. There are [weirder issues](https://stackoverflow.com/a/46367395/2547475) out there for sure, but this checklist should help you solve the most common ones!
Best Practices for Regular Expressions in Python 
Tags: python, beginners, coding, programmers
Published: 2019-03-14 21:43:35

---
title: Best Practices for Regular Expressions in Python 
published: true
description: Python's built-in interface to regex allows string manipulation and matching based on syntactically defined patterns.
tags: python, beginners, coding, programmers 
---

[This guide] (https://owlskip.com/s/regex) to regular expressions in Python has some tips and tricks to add to your programming toolkit </>
Extend 'pairing' to read docs and watch talks
Tags: todayilearned, productivity
Published: 2019-03-14 20:59:59


Disclaimer : I am not a good story teller, so feel free to jump to the **The Idea** direclty.

### Story
@ron4ex and I frequently reach to each other offline or via call, if we stuck somewhere or need another perceptive in our tasks. In which, the other guy doesn't necessarily have gone through the same scenario but helps the seeking one with one's view and knowledge base.

Currently we both got to work on React + Firebase stack. Two days before, we discussed that each of our project needs a service to keep common firebase query related tasks in it. So we roughly decided the API of the same. And yesterday both of us worked to add that service in our respective project. 

Today we had a call to discuss the service. I found the discussion little different than usual. As we were working on same problem, during discussion we were able to share many cases/ideas/issues to make the service much better, which eventually may be a separate library. 

From the story above, I was thinking,

### The Idea

Let say to read a blog post like https://overreacted.io/a-complete-guide-to-useeffect/ , if two guys sit an decide to read and understand individually. Then meet on a call to  discuss on it. What an amazing level of knowledge and understanding they both will get out of it.

The same is applicable to do side projects in same tech-stack or to watch the conference talks.

I am having below blog posts in my to do list to read and understand. Please let me know if anyone want to *pair* with me for the same.
- https://overreacted.io/a-complete-guide-to-useeffect/
- https://reactjs.org/docs/hooks-overview.html
- https://www.robinwieruch.de/react-hooks-fetch-data/
- https://github.com/sw-yx/react-typescript-cheatsheet
ASP .net vs Laravel
Tags: asp, php, laravel
Published: 2019-03-14 20:59:55

---
title: ASP .net vs Laravel
published: true
description: 
tags: #asp #php #laravel
---

Can anyone please explain to me the functional diffences between ASP .net and Laravel. Which projects are well suited for either? Thanks :) #laravel #asp.net #php #csharp #vb.net
Why C# is (one of) my favorite language?
Tags: csharp
Published: 2019-03-14 20:32:31

---
title: Why C# is (one of) my favorite language?
published: true
description: 
tags: csharp
canonical_url: https://giovanni.codes/why-c-sharp-is-one-of-my-favorite-language/
---

My first approach with C# was when I was studying my career; a guy from Microsoft came to my school to do a chat about C# technologies and one of them was Windows Phone. So I started to learn C# and create Windows Phone apps (I won a Nokia for that :) ). 

After one year, I started to create C# videos on YouTube and was a popular channel in its time, now is abandoned, but I received very good comments about that course in YouTube, even of teachers that send their students to watch that videos.

For some reasons, when I started my life as a professional developer I left C# and started to write apps for iOS, Python, Elixir, etc. But sometimes I had to write C# code for fixing some apps or for a job but just for 1 or 2 months. Whenever I got back to C# I feel very comfortable with the language, is like to return home. Now, that I'm doing a [tutorial of MonoGame](https://dev.to/giovanni_cortes/getting-started-with-monogame-4534) I am using C# again and I am enjoying it. 

Today, I want to write why C# is one of my favorite languages and why I think that is a great language to work with

## Is easy to learn

Despite Python is the option to learn as the first language, I think that C# is better to understand the "low level" programming without the complexity of C or C++.

Learn C# is not as complicated as other thinks, and because is very influenced by C and C++, once that you learned, you can change to another language very easy (I am able to read C++ code without even touched).

## It is in a line between the old and the modern

When you write C#, you have to deal with "old" for style or creating arrays with a fixed length. But you can create lambdas expressions, you have access to `foreach` to go through a list, the string manipulation is very powerful etc.

With C# you have the option to be traditional or write code with the more advanced features.

## Is very versatile

In recent years, C# has become in an all-terrain language. You can write Windows Apps, iOS apps, Android, IoT, web sites, run in Arduino, even run in Linux.

You can write games with Unity, MonoGame, Xenco and use it with Machine Learning.

Thanks to its open source we can expect a lot of implementations, and if you learn C# you can use almost as you only language (I do not recommend this but is possible)


## Microsoft Documentation

I think that there is no better documentation than Microsoft Developer Site. Other pages like Apple Developer or Django are close but I feel that is not as extensive or comprehensive as Microsoft Docs.

I learned a lot (and I still doing) only reading the Microsoft site and I found that my problem was resolved without touch StackOverflow.

## It is not Java

Ok, this is not a valid reason(?)

Well, that is a list of why C# is a language that I think deserve more love of the community. 

Do you like or dislike C#?
Hackathon Ideas for Students
Tags: students, learning, hackathon
Published: 2019-03-14 20:29:05

---
title: Hackathon Ideas for Students
published: true
description: 
tags: students, learning, hackathon
---

Hi! I'm attending a hackathon in a couple weeks for high school aged kids in the US (specifically, Ohio). I'll be there to do some mentoring, judge, and to act as an ambassador for my employer, who is sponsoring the event.

I'd like to come prepared with some suggestions for teams that might not have any ideas for something to work on, and was wondering if any of you folks have any interesting suggestions I could "borrow". They're probably not coming in with a whole ton of experience, and they have about 8 hours of working time to put fingers to keyboards and crank something out.

I've got a few ideas in mind already, but would love to know what you people think. If all else fails, I'll just fall back on the [Wolfram Alpha Hackathon project Generator](https://www.wolframcloud.com/objects/microsites/ProjectGenerator/idea?n=85) 😁.
WinFontRender - my new library
Tags: fonts, graphics, rendering
Published: 2019-03-14 19:52:14

---
title: WinFontRender - my new library
published: true
tags: fonts,graphics,rendering
canonical_url: http://asawicki.info/news_1706_winfontrender_-_my_new_library.html
---

Displaying text is a common problem in graphics applications where all you can do is to render textured quads. I've implemented my solution already back in 2007, as part of my old engine [The Final Quest 7](http://asawicki.info/productions/gry/TFQ_Source.php5), which was my master thesis. I've recently come back to this code and improved it because I needed it for the personal project I now work on. Then I thought: Maybe it's a good idea to extract this code into a library? So here it is:

[**WinFontRender - small single-header C++ library that renders Windows fonts in graphics applications**](https://github.com/sawickiap/WinFontRender)

It does two things:

1. It renders characters of the font to a texture, tightly packed.

![](http://asawicki.info/files/WinFontRender/FontTexture.png)

2. It calculates vertices needed to render given text.

![](http://asawicki.info/files/WinFontRender/QuadsRender.png)

Here are more details about the library:

- License based on MIT, so it's free to use even in a proprietary, closed-source software.
- Standalone, single file, easy to integrate with your project.
- Written in C++. Depends only on STL and WinAPI.
- Agnostic to graphics API. Returns data for your texture and vertices. It is your task to display them using Direct3D, OpenGL, Vulkan or whatever you prefer. Sample application is provided for Direct3D 11.
- Works on Windows only. Tested using Visual Studio 2017, 64-bit configuration.
- Renders fonts installed in the system. Doesn't load custom textures or fonts from files.
- Works with Unicode strings `const wchar_t*`/`std::wstring`.
- Supports multiline text and automatic line break, also on whole word boundary.
- Supports horizontal and vertical alignment to left/center/right and top/middle/bottom.
- Supports flexible vertex formats. You can specify separate position and texture coordinate streams and custom vertex strides.
- Supports various primitive topologies. You can request triangle list, triangle strip with primitive restart index, or triangle strip with degenerate triangles, with or without index buffer.
- Supports kerning.
- Fonts are antialiased and can be rendered pixel-perfect.
- Underline and strikeout can be added.
- Hit testing functions are available that find the character at a given point.
React SSR with PHP and WordPress
Tags: help, discuss, requestforpost, react
Published: 2019-03-14 19:32:59

I am looking for a solution that use React for the font-end and WordPress for the backend with the following requirements:

- No static rendering at build time:
  - Was actually thinking Gatsby or React Static at first, but it requires not to re-build every time the content updates
- No node.js middleware:
  - Cannot add a middleware to call the WordPress api and then render React
- No classic SPA:
  - For SEO and performance considerations, we want not just a blank page coming back from the response

A potential solution we're looking at is to use Gatsby or React Static to build and then use PHP to update the generated HTML and JSON with the latest content, which isn't really an ideal solution in my opinion; so reaching out to see if there's any other solutions.

Thanks a lot!
Wrapping Node.js Azure Table Storage API to enable async/await
Tags: azure, node, storage
Published: 2019-03-19 14:34:40

---
title: Wrapping Node.js Azure Table Storage API to enable async/await
published: true
tags: azure,nodejs,storage
canonical_url: https://blog.maximerouiller.com/post/wrapping-nodejs-azure-table-storage-api-to-enable-async-await/
---

I love the latest and greatest. Writing code by using the new language syntax is fantastic.

What happens when your favorite library doesn't? You are stuck trying to find a workaround. We all hate workarounds, but they are the glue that keeps our code together at the end of the day.

Between the runtime, the frameworks, the libraries, and everything else... we need everyone on the same page.

Recently, I had to use [Azure Node.js Table Storage API](http://azure.github.io/azure-storage-node/#toc6__anchor).

First, let me say *I know*. Yes, there is a v10 that exist, and this is the v2. No, [v10 doesn't support Table Storage yet](https://github.com/Azure/azure-storage-js#azure-storage-sdk-v10-for-javascript). So, let's move on.

Here's the code I wanted to see:

```javascript
let storage = require('azure-storage');
// ...

async function getAllFromTable() {
  let tableService = storage.createTableService(connectionString);
  let query = new storage.TableQuery()
    .where('PartitionKey eq ?', defaultPartitionKey);
  return await queryEntities(tableService, 'TableName', query, null);
}
```

Here's the code that I had:

```javascript
async function getAllFromTable() {
  return new Promise((resolve, reject) => {
    let tableService = storage.createTableService(connectionString);
    let query = new storage.TableQuery()
      .where('PartitionKey eq ?', defaultPartitionKey);

    tableService.queryEntities('TableName', query, null, function (err, result) {
      if (err) {
        reject(err);
      } else {
        resolve(result);
      }
    });
  });
}
```

The sight of function callbacks gave me flashbacks to a time where code indentation warranted wider monitors.

## The workaround

Here's the temporary workaround that I have for now. It allows me to wrap highly used functions into something more straightforward.

```javascript
async function queryEntities(tableService, ...args) {
    return new Promise((resolve, reject) => {
        let promiseHandling = (err, result) => {
            if (err) {
                reject(err);
            } else {
                resolve(result);
            }
        };
        args.push(promiseHandling);
        tableService.queryEntities.apply(tableService, args);
    });
};
```

### Overview of the workaround

1. We're using async everywhere
2. Using Rest parameters `args` allow us to trap all parameters from that API
3. We're wrapping the proper promise and inserting it into the arguments
4. We're calling the relevant API with the proper argument.

## Conclusion

That's it. While the Node.js Storage v10 is having table storage implemented, I recommend wrapping table storage code into a similar structure.

This will allow you to use the new language syntax while they update the library.
App-ideas Github Repository
Tags: coding, projects, beginners, opensource
Published: 2019-03-14 18:55:12

---
title: App-ideas Github Repository
published: true
description: A collection of application and project ideas
tags: coding, projects, beginners, open-source
cover_image: https://github.com/florinpop17/app-ideas/raw/master/app-ideas.png
series: App-ideas repository
---

Have you ever wanted to build something but you had no idea what to build? Just as authors sometimes have "writers block" it's also true for developers. Together with my good friend [Jim](https://dev.to/jdmedlock) we create a Github repository where you can find a collection of applications and projects ideas which are:

- great to improve your coding skills 💪;
- great to experiment with new technologies 🆕;
- great to be added in your portfolio to impress your next employer/client 📁;
- great to be used as examples in tutorials (articles or videos) 📃;
- easy to complete and also easily extendable with new features 👌;

This is intended not only to be a simple list of projects, but a list that describes each project in enough detail so you can develop it from the ground up!

Each project has the following features:

1. A clear and descriptive objective;
2. A list of User Stories which should be implemented; (these stories act more as a - guideline than a forced list of To-Do's. Fell free to add your own features if you want);
3. A list of bonus features that can improve the base project;
4. A Trello Board that can be cloned and used to track your progress;

The project is still in the initial phase so any feedback and contribution is welcomed!

Also, if you like the project, make sure you give it a star :star:! 

You can check out the project repository below:

 {% github florinpop17/app-ideas %}
video game ep3 Unreal Level Editors (windows)
Tags: thetealpickle, beginners, gamedev, unreal
Published: 2019-03-14 18:52:06

---
title: video game ep3 Unreal Level Editors (windows) 
published: true
description: 
tags: #thetealpickle #beginners #gamedev #unreal
---

You know that feeling when you open up Unreal and just sit there like 
<br><b>W T F.</b> 
Ye, I felt that.

Never fret, fear and confusion are destroyed with familiarity!

We are tackling Unreal by first understanding what we're looking at, the windows.
Or as Unreal likes to call them, Level Editors.
JSCD: Turns Out, I Didn't Know Shi... I mean, Git!
Tags: career, webdev, rails, beginners
Published: 2019-03-14 18:51:50

---
title: JSCD: Turns Out, I Didn't Know Shi... I mean, Git!
published: true
cover_image: https://thepracticaldev.s3.amazonaws.com/i/kstf6jvj821lxvfehaci.jpg
tags: career, webdev, rails, beginner
series: Journal Of A Second-Career Dev
---

You know, while I was in coding bootcamp, I welcomed the opportunity to get into Git during my capstone group project. I became familiar with `git pull`, `git push`, `git add`, `git commit` and `git clone`; I coded and Git-ed away like a well-oiled Tonka Truck 🚒

Well, enter my first dev job. Now it's `git checkout -b` (or is it `git checkout` *without* the "b"?), `git fetch`, `git merge`, `git reset`, `git rm`, `git log`, `git diff` ... and what is this `upstream`?? Upstream relative to where?? And I ain't even touching `git rebase` until I'm super-clear on what it does 😆 

My point is: **I wonder if I could have learned as much Git as I have these last 2 weeks in a personal-project or bootcamp setting**. Honestly, I highly doubt it. The pressure of working on production code is pulling skills and abilities out of me that I didn't know I had. So for those of us still on the hunt for our first dev job, I think that the closest we can come to a similarly-pressured environment is to join a robust, well-maintained and ACTIVE open-source project (like [Dev.To](https://github.com/thepracticaldev/dev.to)!).

Before I started working, I attempted to join several opensource Rails projects, and **Dev.To** was the ONLY one that was a [breeze to configure and fire up](https://dev.to/msarit/my-first-frustration-free-opensource-pull-request--3ni4) on my local environment. What's more, their GitHub community is very responsive and supportive. Grab one of their `[good-first-issue]` issues, or be bold and ask to pair with someone working on a more complex issue. Get in there, my fellow devs, and build some real Git muscles! You'll thank me! 😉 🧡
The Ultimate Web Framework Deathmatch!
Tags: web, benchmark
Published: 2019-03-14 18:34:13

---
title: The Ultimate Web Framework Deathmatch!
published: true
description: A benchmarking project for multiple frameworks
cover_image: https://thepracticaldev.s3.amazonaws.com/i/fqodzjuv4kwarh46i2kn.PNG
tags: web, benchmark,
---

Are those benchmarking blog post bothering you? Tired of listening to people boast about how good framework X is? Undecided wether to use framework X or framework Y in your new startup?. Fear not!!! You can now (easily) launch your own edition of: **The Ultimate Web Framework Deathmatch**  using [TechEmpower's Web Framework benchmarks suite](https://www.techempower.com/benchmarks/).

The project has a [Github repo](https://github.com/TechEmpower/FrameworkBenchmarks) with all the things you need to run your own tests. As this post is beeing written there's a fierce competition going between an [aio-libs based python app](https://github.com/aio-libs/) and [net/http](https://godoc.org/net/http) with [SQLx](http://jmoiron.github.io/sqlx/), both using PostgreSQL, so just read the [instructions](https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Benchmarking-Getting-Started) and let the games begin! You can add your results to the project via a PR or just post your benchmarking as a comment here.

**Disclaimer**

In case someone is wondering, I have no idea of who the good folks at TechEmpower are, neither I work for them or receive any compensation from them. I just thought the whole Deathmatch thing sounded like a way to have some productive fun.