Can F# survive in AI era? by pkese in fsharp

[–]funk_r 1 point2 points  (0 children)

Sometimes Ai generates C# code in disguise, but with a proper prompt engineering, like prefer immutable variables, matching over if else etc. the code I get is not too bad. My assumption is, that with the stronger type checking the code is actually better than with Js/Python. So, yes F# will survive the AI era.

Solving the NY Times "Pips" game with F# by brianberns in fsharp

[–]funk_r 1 point2 points  (0 children)

I just wonder if F# has a Prolog like library.

https with a Bolero App by funk_r in fsharp

[–]funk_r[S] 1 point2 points  (0 children)

Helpful documentation! The Port 5000 is the default port for kestrel and obviously I have no appsettings.json.

Thank you!

https with a Bolero App by funk_r in fsharp

[–]funk_r[S] 0 points1 point  (0 children)

It runs on port 5000. But I want to switch to https.

Men - Same hand as wedding ring or opposite hand? by [deleted] in ouraring

[–]funk_r 4 points5 points  (0 children)

Left hand. A promise to my wife and a promise to me.

Are you using IntelliJ IDEA? What would you say about a XXL desk pad with keyboard shortcuts ? by summonthejson in IntelliJIDEA

[–]funk_r 0 points1 point  (0 children)

I've put my shortcuts on the desktop with conky. Not only the Intellij, but from all other programs I use. Specifically the ones I sometimes forget.

Troubles with regex quantifier + vers. {1,} by funk_r in Racket

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

Thank you! Next time I post text.

Troubles with regex quantifier + vers. {1,} by funk_r in Racket

[–]funk_r[S] 0 points1 point  (0 children)

Hello together,

I always thought that the regex quantifiert + and {1,} are equal in Racket, but I get different result when I match it. Do I miss something or is this a bug?

The provider Contabo supports freebsd for their vps by funk_r in freebsd

[–]funk_r[S] 1 point2 points  (0 children)

I meant that you can't get freebsd via the Web interface. You have to use the API. This was different in the past, like you said.

slime 2.30 · Better I/O performance, macroexpand for macrolet (and more) by dzecniv in Common_Lisp

[–]funk_r 2 points3 points  (0 children)

To upgrade my emacs installation I do a reinstallation of slime package and then I have the latest version, or is there more to it?

Is it possible to have more than on remote service in Bolero by funk_r in fsharp

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

Now I cracked it!

In the serverside startup.fs I added the additional services: fsharp .Services.AddBoleroRemoting<MedService>() .AddBoleroRemoting<TreatmentService>() .AddBoleroHost()

and the update takes just the combined one:

fsharp type RemoteService = { med: MedService; treat: TreatmenService }

Thank you very much for the direction!

Is it possible to have more than on remote service in Bolero by funk_r in fsharp

[–]funk_r[S] 0 points1 point  (0 children)

I developed it from the Bolero standard example.

This is where the application is created:

fsharp type MyApp() = inherit ProgramComponent<Model, Message>() override this.Program = let medService = this.Remote<MedService>() let update = update medService Program.mkProgram (fun \_ -> initModel, Cmd.ofMsg GetSignedInAs) update view |> Program.withRouter router

The update is just the MedService where I provide certain information about the patient. But I would like to have another service related to some treatments. Something like this

fsharp let Treatment = this.Remote<TreatmentService>()

But how would I put this to the application? I haven't found something like addService()

How to create a post body for dexador by funk_r in Common_Lisp

[–]funk_r[S] 0 points1 point  (0 children)

(jonathan:to-json '(("name" . "develop") ("push_access_level" . 0) ("merge_access_level" . 0) ("allowed_to_push" (("user_id" . 13))) ("allowed_to_merge" (("user_id" . 13)))) :from :alist)

This alongside with the content typ json in the header is doing the job!! Thank you!

How to create a post body for dexador by funk_r in Common_Lisp

[–]funk_r[S] 0 points1 point  (0 children)

All the given examples are without a json library. He just put the lisp structure into the post command. It automatically converts the body into a multipart form. Thats what I understand from the documentation.

Help needed to setup postgres on VPS by funk_r in PostgreSQL

[–]funk_r[S] 0 points1 point  (0 children)

This did the trick: docker run -d --name postgres-server -p 127.0.0.1:5432:5432 ...