TGViewer
Channel Public Channel
Programming & AI Tips πŸ’‘

Programming & AI Tips πŸ’‘

@programmingtip

Programming & AI:
Tips πŸ’‘
Articles πŸ“•
AI & LLMs πŸ‘Ύ
Design, Architecture, Principles βœ…

πŸ‡³πŸ‡± Contact: @MoienTajik
Subscribers
46.3K
Photos
67
Videos
11
Links
375

Showing posts older than #333 Β· Back to latest

Older Posts 20 shown
Post #332 1.79K
ASafaWeb 🐞

The purpose of ASafaWeb is to make scanning for common configuration vulnerabilities in live ASP.NET websites dead easy. ☠️

To that effect, you don't need anything more than a URL to get started and ASafaWeb will head off and report on anything it can find which is remotely detectable. πŸ›‚

https://t.me/pgimg/47

[ Website ] : https://asafaweb.com/

γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #Security
@ProgrammingTip
Telegram Programming Tips Resources
Post #330 1.81K
Proto.io - Prototypes that feel real πŸ’Ž

Create fully-interactive high-fidelity prototypes that look and work exactly like your app should. No coding required. πŸ‘Œ

#FrontEnd
@ProgrammingTip
Post #329 2.08K
Server.MapPath Equivalent in ASP.NET Core πŸ’πŸ»β€β™‚οΈ

Web Developers who use Microsoft technologies have always relied on the Server.MapPath method to resolve file paths.

In classic ASP and ASP.NET Web Forms and MVC versions up to and including 5. πŸ•’

This method has not been included in ASP.NET Core, so what do you use instead❓

[ Webiste ] : http://bit.do/svpath

https://t.me/pgimg/45

γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #Core #IO
@ProgrammingTip
Telegram Programming Tips Resources
Post #328 1.74K
SnippetsLab πŸ”¬

SnippetsLab makes it simple to manage all of your valuable code snippets in one place with nested folders, tags, and Smart Groups support. πŸ—‚

You can sort your snippets by date, title, and more. πŸ“…

Features πŸ’Ž :

β€’ Notes and Fragment
β€’ Syntax Highlighting
β€’ Gist Integration
β€’ Sync & Backup

Available for MacOS πŸ’»

https://t.me/pgimg/44

[ Website ] : https://www.renfei.org/snippets-lab

[ AppStore ] : http://bit.do/snplab

γ€°γ€°γ€°γ€°γ€°γ€°
#Tools #MacOS #Snippets
@ProgrammingTip
Telegram Programming Tips Resources
Post #327 1.85K
UnCSS ✨

UnCSS is a tool that removes unused CSS from your stylesheets. βœ…

It works across multiple files and supports Javascript-injected CSS. πŸ—‚


Howβ“πŸ€”

1️⃣ The HTML files are loaded by jsdom and JavaScript is executed.

2️⃣ All the stylesheets are parsed by PostCSS.

3️⃣ document.querySelector filters out selectors that are not found in the HTML files.

4️⃣ The remaining rules are converted back to CSS.

https://t.me/pgimg/43

[ Website ] : https://uncss-online.com/

[ Github ] : https://github.com/giakki/uncss

γ€°γ€°γ€°γ€°γ€°γ€°
#FrontEnd #Css #Tools
@ProgrammingTip
Telegram Programming Tips Resources
Post #325 1.72K
Visual Studio Shortcut Keys πŸ’¨

Here is a handy reference that can make your .NET lifestyle a bit easier and more productive. πŸ”₯😎

[ Website ] : http://bit.do/vsht

γ€°γ€°γ€°γ€°γ€°γ€°
#VS #Shortcut
@ProgrammingTip
Post #323 1.84K
Free SSL Certificates On IIS With LetsEncrypt ⛔️

LetsEncrypt is operated by the Internet Security Research Group (ISRG), and is a Linux Foundation Collaborative Project, which is also responsible for the Linux operating system and Nodejs among other projects. πŸ›ƒ

LetsEncrypt is supported by a range of organisations including Mozilla, Chrome, Akamai and Facebook. πŸ€™πŸ»

The certificates that LetsEncrypt issues are recognised by all major browsers, which results in the familiar padlock symbol being displayed on properly secured sites. πŸ”

This tutorial shows how to use LetsEncrypt with IIS. 🌐

https://t.me/pgimg/42

[ Tutorial ] : http://bit.do/lenc

γ€°γ€°γ€°γ€°γ€°γ€°
#LetsEncrypt #SSL
@ProgrammingTip
Telegram Programming Tips Resources
Post #322 1.94K
Open Graph Protocol 🌐

The Open Graph protocol enables any web page to become a rich object in a social graph. πŸ’Ž

For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook.

Also, Telegram uses this protocol to preview web pages like a rich object in messages and you can update your links preview using : @WebPageBot βœ…

To turn your web pages into graph objects, you need to add basic metadata to your page ✍🏻 :

og:title
og:type
og:image
og:url


πŸ”ΉπŸ”ΈπŸ”ΉπŸ”Έ

As an example, the following is the Open Graph protocol markup for The Rock on IMDB πŸŽ₯ :

<head>
<title>The Rock (1996)</title>

<meta property="og:title" content="The Rock" />

<meta property="og:type" content="video.movie" />

<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />

<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />

</head>


https://t.me/pgimg/41

[ Website ] : http://ogp.me/

γ€°γ€°γ€°γ€°γ€°γ€°
#OpenGraph #Protocol
@ProgrammingTip
Telegram Programming Tips Resources
Post #321 1.72K
Jade-Lang 🐰

Jade is a high performance template engine heavily influenced by Haml and implemented with JavaScript for node and browsers. πŸ’Ž

Syntax :

doctype html
html(lang="en")
head
title= pageTitle
script(type='text/javascript').
if (foo) bar(1 + 5)
body
h1 Jade - node template engine
#container.col
if youAreUsingJade
p You are amazing
else
p Get on it!



Becomes :

<!DOCTYPE html>
<html lang="en">
<head>
<title>Jade</title>
<script type="text/javascript">
if (foo) bar(1 + 5)
</script>
</head>
<body>
<h1>Jade - node template engine</h1>
<div id="container" class="col">
<p>You are amazing</p>
</div>
</body>
</html>



Options ✨ :

πŸ”Έ Compile Debug - If set to true, the function source will be included in the compiled template for better error messages.

πŸ”Ή Add pretty-indentation whitespace to output


https://t.me/pgimg/40

[ Website ] : http://jade-lang.com

[ Npm Package ] : https://www.npmjs.com/package/jade

γ€°γ€°γ€°γ€°γ€°γ€°
#Node #JavaScript #Jade
@ProgrammingTip
Telegram Programming Tips Resources
Post #320 1.6K
Hollywood Principle ✨

"Don't call us, we'll call you" ☎️ 


Relevant when you are writing a class/component that must fit into the constraints of an existing framework.

You implement the interfaces, you get registered. πŸ‘€

You get called when the time is right. πŸ“ž

πŸ”ΉπŸ”ΈπŸ”ΉπŸ”Έ

By way of an example, a typical ASP.NET Web Form might have in its codebehind page event handlers to respond to Page_Load and Button_Click events. ⚑️

An ASP.NET developer writes code to respond to these external framework events, instead of owning the execution of the web server and making all decisions and method calls accordingly. βœ…

[ Article ] : http://bit.do/holprin

https://t.me/pgimg/39

γ€°γ€°γ€°γ€°γ€°γ€°
#Principle
@ProgrammingTip
Telegram Programming Tips Resources
Post #319 1.6K
I β™₯️ Linux ✨

γ€°γ€°γ€°γ€°γ€°γ€°
#OS #Linux
@ProgrammingTip
Post #317 1.67K
Enjoy CSS 🍻

Online CSS3 Code Generator With a Simple Graphical Interface. 🀠

[ Website ] : http://enjoycss.com

γ€°γ€°γ€°γ€°γ€°γ€°
#FrontEnd #Css
@ProgrammingTip
Post #316 1.58K
WAVE ✨

WAVE is tool to help web developers make their web content more accessible. βœ…

WAVE cannot tell you if your web content is accessible. ❌

Only a human can determine true accessibility. πŸ‘₯

But, WAVE can help you evaluate the accessibility of your web content. πŸ‘€

https://t.me/pgimg/38

[ Website ] : http://wave.webaim.org

γ€°γ€°γ€°γ€°γ€°γ€°γ€°γ€°γ€°γ€°γ€°
#FrontEnd #Web #Tools
@ProgrammingTip
Telegram Programming Tips Resources
Post #315 1.51K
I β™₯️ Mac OS ✨

γ€°γ€°γ€°γ€°γ€°γ€°
#OS #MacOS
@ProgrammingTip
Post #313 1.62K
Deploy ASP.NET Core 2.0 Apps on Heroku ♓️

In this tutorial, we’ll be taking a look at how to deploy web apps built with asp.net core 2.0 to heroku.com, a cloud-hosting platform.

We’ll need a few things πŸ›  :
β€’ Docker (Windows, Mac)
β€’ Heroku CLI (NPM, Binaries)
β€’ ASP.NET Core 2.0 Runtime

https://t.me/pgimg/37

[ Tutorial ] : http://bit.do/aspheroku

γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #Core #Heroku
@ProgrammingTip
Telegram Programming Tips Resources
Post #312 1.54K
I β™₯️ Windows ✨

γ€°γ€°γ€°γ€°γ€°γ€°
#OS #Windows
@ProgrammingTip
Post #309 2.26K
Hashids πŸ‘Ύ

Hashids is a small open-source library that generates short, unique, non-sequential ids from numbers. πŸ’Ž

It converts numbers like 347 into strings like β€œyr8”, or array of numbers like [27, 986] into β€œ3kTMd”. πŸŒ€

You can also decode those ids back. πŸ”™

Available in πŸ”₯ :
β€’ JavaScript
β€’ .NET
β€’ Java
β€’ PHP
β€’ Ruby
β€’ Python
β€’ Swift
β€’ ...

πŸ”ΈπŸ”ΉπŸ”ΈπŸ”Ή

Usage example in JavaScript πŸ€™πŸ» :

var hashids = new Hashids("this is my salt", 8, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");

var id = hashids.encode(1, 2, 3);
// Output : GlaHquq0

var numbers = hashids.decode(id);
// Output : [1, 2, 3]



https://t.me/pgimg/36

[ Website ] : http://hashids.org/

γ€°γ€°γ€°γ€°γ€°γ€°
#Encode #Hash
@ProgrammingTip
Telegram Programming Tips Resources
Older posts β†’
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook β†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 β†’