Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
rail4you
@rail4you
How can I connect postgresql database with tableplus?
I use wsl2 in windows, follow the steps and use all default setting. my app folder is /home/bbb/blog in a ubuntu wsl env.
rail4you
@rail4you
@mpscholten I have sent a email to get a student license, but there is no reply, could you check the mailbox to activate my pro account?
Marc Scholten
@mpscholten
I’ll check what went wrong there
Marc Scholten
@mpscholten
no email has been received. can you reach out to nils@digitallyinduced.com?
1 reply
glademillerrcp
@glademillerrcp
I'm trying to run IHP behind a proxy and am having issues with paths. It seems IHP when creating URLs in HTML is setting everything to be at /. I want that to be prefixed with /ui. I tried using IHP_BASEURL but that didn't seem to do anything related to what I am working on.
Is there a way to do what I am doing attempting?
glademillerrcp
@glademillerrcp
looking at the source code it would seem my best bet would be to put the code into a new application so I can control what the prefix is based on the module name... I would love to be proven wrong though.
1 reply
Sascha Gresk
@zmijunkie
I used it to create a customNotFoundResponse which also can be seen at https://ihp.digitallyinduced.com/Guide/recipes.html
1 reply
smichel17
@smichel17:matrix.org
[m]
Hi. I'm interested in transitioning a yesod project to IHP. Do you have any tips for handling the transition? In particular, the project hasn't really been updated in a while (still on Stackage 9.18)— would you recommend I try to bring it up to something more recent first, or let that happen as part of the migration?
Marc Scholten
@mpscholten
in generally i’d try to upgrade the libraries first. But if it’s a small project or you know there’s not that much breakage you can also do it in one step
smichel17
@smichel17:matrix.org
[m]
Thanks. The most work I'm expecting is around the database / migrations — using a patched version of postgresql-simple-migrations — but I'll probably be dropping that code anyway.
Marc Scholten
@mpscholten
then a direct upgrade actually sounds like a good solution
maybe give it a try
Christopher William Schankula
@CSchank
@mpscholten any ideas why I'm getting this on my prod server? Not in scope: type constructor or class 'PrimaryKeyCondition'
Christopher William Schankula
@CSchank
Figured it out.
Varun Rajput
@rvarun11

Best way to combine and sort data from two tables? I have:

Table: Posts
Columns: id, title, body, author_id, created_at

Table: Comments
Columns: id, post_id, body, author_id, created_at

I want to fetch all the posts and comments and order them by created_at into a single view.

Marc Scholten
@mpscholten
two ideas: 1) fetch both and sort at the haskell side 2) create a custom data type and then write a custom sql query to fetch it https://ihp.digitallyinduced.com/Guide/database.html#dealing-with-complex-query-results
4 replies
with stock IHP this will not work
Marc Scholten
@mpscholten
@CSchank @rvarun11 this commit https://github.com/digitallyinduced/ihp-boilerplate/commit/666481307bc8b78d1a9c319753d8997b95a5854c# should improve the make error we talked about this week. Instead of Makefile:7: /../lib/IHP/Makefile.dist: No such file or directory it will now say IHP not found! Run the following command to fix this: nix-shell --run 'make .envrc'
Christopher William Schankula
@CSchank
That's great! Thanks!
Varun Rajput
@rvarun11
Perfect. Thank you!
Varun Rajput
@rvarun11

In the latest IHP version, I'm getting ""Your system has run out of application memory" after adding AutoRefresh to my project. I'm running only Brave Browser & VSCode.

Also, IHP doesn't restart on save on views with AutoRefresh enabled, I instead get "Thread killed by Timeout Manager" when I save a file

Varun Rajput
@rvarun11

This is what I get:

GET /AutoRefreshWSApp
  Accept: 

Thread killed by timeout manager

After this the server stops working and I have to restart the server again manually.

Marc Scholten
@mpscholten
that’s strange
can you run it with DEBUG=1 ./start and share the output log? maybe best to open a github issue for this
1 reply
Varun Rajput
@rvarun11
@mpscholten Link for IHP Meetup?
Marc Scholten
@mpscholten
Varun Rajput
@rvarun11

After upgrading IHP to 0.17, I'm getting the following message in the Schema Designer:

Unmigrated Changes Your app database is not in sync with the Schema.sql

After migrating the changes, the message goes away but on restarting the server, it popups again with the same migrations.

Marc Scholten
@mpscholten
can you make a github issue for that?
Varun Rajput
@rvarun11
Yes, I'll do that.
manishrawat911
@manishrawat911

I'm trying to build a form in which all Posts will be display along side the checkbox to select each post

renderPost post = [hsx|
                    <tr>
                        <td><input name="posts" type="checkbox" value={get #id post}></td>
                        <td>{get #postDesc post}</td>
                    </tr>

                |]

For checkboxes, I want it's value attribute to be Id of the post, but it's not working. Error I get is below:

Couldn't match type Id' "question"' withText'

Can anyone help me understand the issue and alternative approach?

Christopher William Schankula
@CSchank
Can we sort things by something in a joined table?
sig
@sigrdrifa:matrix.org
[m]
Didnt know this room existed, is it bridged to the ihp slack somehow?
Marc Scholten
@mpscholten
nope, it’s independent of the slack
Christopher William Schankula
@CSchank
Has anyone set up IHP on GitHub Actions before? (Should I post this question on StackOveflow? I'm worried if my question isn't "detailed enough" I'll just get downvoted and deactivated by people who don't know anything about IHP....)
Zachary Wood
@zacwood9
Christopher William Schankula
@CSchank
Thank you!
sibnull
@sibnull:matrix.org
[m]
Sorry, I accidentally tapped the Google AI auto reply
sm
@simonmic:matrix.org
[m]
"With IHP all your application code is written in Haskell" paragraphs appear twice on the home page, FYI
Marc Scholten
@mpscholten
oh true, I’ll create a ticket for this
thanks for reporting
Varun Rajput
@rvarun11
When is IHP planning to upgrade Bootstrap version to 5?
Marc Scholten
@mpscholten
there’s a ticket for that already here digitallyinduced/ihp#1358
1 reply
we could do that with the next version
Joshua Obritsch
@joshua-obritsch
Does IHP compress HTML before it is sent to the client?
2 replies
Varun Rajput
@rvarun11
Does IHP plan to integrate something like Reflex FRP with HSX overtime?
2 replies
Marc Scholten
@mpscholten
We’ve just submitted Thin Backend (prev IHP Backend) to Hacker News. Appreciate any upvotes :)
image.png