Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Marc Scholten
@mpscholten
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
sm
@simonmic:matrix.org
[m]
g'day all.. just randomly came across https://thin.dev , sounds pretty cool
Postgres only, I guess ? Not eg sqlite ?
I'm building a small app, and this sounds super pleasant but probably way too much technology for this little project
sm
@simonmic:matrix.org
[m]
still would love to try it on the side, even so
I imagine it's possible, but much more hassle, to host it entirely myself ?
^ this "Act on your behalf" thing seems to be a FAQ, I think the above effectively means Thin can see my identify and email and permissions and nothing more ? all read only ?
Marc Scholten
@mpscholten
just saw your messages, my gitter client seem to have crashed
@simonmic:matrix.org yep it’s postgres only (no sqlite) :) you can even connect to the postgres yourself
I’ll check out what it says with the github permissions. Basically we only need your email address and the github user id
self hosting is also coming soon :)
let me know if you got to try it out and have some feedback
Marc Scholten
@mpscholten
i just checked the github permissions and we already have the minimum set of permissions (we have everything unchecked). We only access github user id, github name, github primary email and we don’t save the github access token (so we can only access this information when you click on the login button)