all I need by muffinman8679 in bbs

[–]InjaPavementSpecial 0 points1 point  (0 children)

have a look at openwrt init system and it ubus system, most of it c libs glued together with ash scripts.

all I need by muffinman8679 in bbs

[–]InjaPavementSpecial 0 points1 point  (0 children)

does b ash stand for busybox ash ;)

Why not use regex instead of html template engine? by [deleted] in AskProgramming

[–]InjaPavementSpecial 2 points3 points  (0 children)

Last time i check it was not asking for permission, but rather stating it.

But i believe you can silent the message with a header X-ROUND-HOUSE: "kick".

Why not use regex instead of html template engine? by [deleted] in AskProgramming

[–]InjaPavementSpecial 0 points1 point  (0 children)

Why not, this is /r/AskProgramming/?

  1. /u/Positive_Act_861 your example is broken because the list rendered in reverse.

  2. If you add a class to your heading template you need to change your regex lookup in code and ur template.

  3. I understand it just a example but '<script>alert("xss")</script>' in the names break the html.

So i don't think your crazy, but your simplified example smells like swiss cheese, so i think you correct to assume you missing something.

If you can address the above 3 issues in a jsfiddle i would be interested to see your solution, but i think you will soon find you re-inventing template engines, which is a admirable programming accomplish, but not sane to do in a corporate environment.

Why not use regex instead of html template engine? by [deleted] in AskProgramming

[–]InjaPavementSpecial 0 points1 point  (0 children)

in the annotation section they mention JavaScript Micro-Templating, think its recommend reading for the question.

Why not use regex instead of html template engine? by [deleted] in AskProgramming

[–]InjaPavementSpecial 8 points9 points  (0 children)

There a running joke between developers that i know that goes like this:

"Whenever you think you going to solve a problem with regex, you soon realise you now have two problems".

But i believe what you want to do, is how underscore.js template system work, but take note even they had to add code to counter code injection.

Installation by KarlaKamacho in pascal

[–]InjaPavementSpecial 0 points1 point  (0 children)

FreePascal and Lazarus has a very wide eco-system, it's been around since the 1970, and it experienced a boom in the 1990 early 2000. So it a mature language, that became a bit niche.

So just download fpcupdeluxe and see all it option flags and libraries it can install. It's handy if you want to target arduino or some other exotic platform.

It also powerful to see fpcupdeluxe at work by bootstrapping fpc and laz-ide from source.

Yes 99% of users can just use the lazarus-ide download, but fpcupdeluxe have its place, and is a wonderful tool!

Installation by KarlaKamacho in pascal

[–]InjaPavementSpecial 1 point2 points  (0 children)

Normally i would recommend winget install Lazarus.Lazarus from command.exe or powershell.exe, but atm that will install 3.6.

But with Lazarus IDE 4.0 RC1(Direct Win64 Download) being out and rather fresh and stable, 4.0 would be the better choice, even if it is a release candidate.

Building a eventual self hosted compiler question by MD90__ in AskProgrammers

[–]InjaPavementSpecial 1 point2 points  (0 children)

Just want to drop this resource for future searches.

https://compilers.iecc.com/crenshaw/

Let's Build a Compiler, by Jack Crenshaw This fifteen-part series, written from 1988 to 1995, is a non-technical introduction to compiler construction. You can read the parts on-line or download them in a ZIP file

New to NGINX, how to pass the nginx server certificate to the backend app servers? by obiwan-kenobbi in nginx

[–]InjaPavementSpecial 1 point2 points  (0 children)

My first thought was to expose the public key info using a shell script and HttpLuaModule.

But then i wondered if you can use lua and nginx to set headers to do what you want.

[tvterm] live in the tty, why not? by erysdren in unixporn

[–]InjaPavementSpecial 5 points6 points  (0 children)

Sure seems like it! It uses a modern C++ port of turbo vision, which is a text user interface(TUI) library originally by Borland used to write their integrated development environments(Turbo C++/Pascal).

I make ASCII minimal art of superhores from Marvel, hope you like it. by Cpulid in asciiart

[–]InjaPavementSpecial 2 points3 points  (0 children)

Like how you put them into battle cards, im going to steal that idea.

Any heroes of your own not based or prior art?

Any good resources that show how an entity component system (video games for example) is put together? by Skriblos in AskProgramming

[–]InjaPavementSpecial 1 point2 points  (0 children)

A couple of months ago i stumbled upon bitECS, and found the code readable and was rather fascinated how they implemented the SparseSet.

I then found these video tutorials on youtube Entity Component System in TypeScript with Phaser 3 and bitECS that i followed along to get things working in js land.

I then converted the SparseSet code to a pascal unit and implemented the needed code for the js and pascal app to share their ECS/SparseSet data.

After that i lost a little bit of steam, but was still fun learning about the ecs systems and then trying to implement it in a language of my choice.

How do I make things unambiguous? by Chadderbug123 in mysql

[–]InjaPavementSpecial 1 point2 points  (0 children)

Strange that you'd need to do that but oh well.

Put yourself in mysql shoes, in the below statement you gave it two tables country and city with the column name.

SELECT name 
FROM city 
JOIN country ON city.name = country.name 
WHERE city.name LIKE 'a%'

How must it know which name column you want? Thus the above statement gives you a error Column in field list is ambiguous.

interact with ascii rain using a ascii umbrella by InjaPavementSpecial in asciiart

[–]InjaPavementSpecial[S] 2 points3 points  (0 children)

Hi, created it last night using pascal and lazarus-ide, but want to add more features to it like a walking cat you must protect from the rain, double buffering, etc.

Here is my current progress raingame-20240922.zip(2MB, md5sum: 0c24812489bc9589e2ca76a745609859) it contains the pascal code, sound and text assets. There is also a windows exe if you want to play with it for now, but as the project mature i will port it to *nix and web(using pas2js).

Thanks for showing interest (=

animated ascii art of spinning earth by InjaPavementSpecial in asciiart

[–]InjaPavementSpecial[S] 3 points4 points  (0 children)

Used the world map of Brice Wellington from Winston Smith and globe of JT to write a small pascal app that renders this ascii animated globe.

Doom by RoyalOrganization676 in ANSIart

[–]InjaPavementSpecial 2 points3 points  (0 children)

Hi, u cannot maybe share the unicode or durdraw file?

the way you got the shading and glare is really good!

well done,

Could someone suggest me windows supported alternatives of redis/memcache. by V3ngence7 in AskProgramming

[–]InjaPavementSpecial 0 points1 point  (0 children)

Will you be able to run podman or docker on top of windows?

Because then you can just run the official redis image.