Dweb - web publishing, RESTful web apps, versioned data and

First things first

What does rustc --version tell you?
Second thing
try running sudo apt install build-essential and then try the build again

1 Like

Try:

cargo install --locked dweb-cli 

And copy the output here, but put three backticks ``` on the line before and after.

You might also check the README and make sure you follow all those instructions.

1 Like

Thank you. Yes I should have checked the README first, I was missing librust-openssl-dev :flushed_face: Great work BTW.

3 Likes

dweb open b6da6740bc5394f9ac0e6a6fa5a42f7f587d3aeaa48fd23ae9a45bef95b571a32429b0353148aa9e04f17cd6da57d179

a simple public billboard powered by dweb :slight_smile:

  • if you feel like writing down your thoughts just do so and overwrite the least important other note :smiley: ..
  • if you feel annoyed offended by something written there please just delete it
9 Likes

spoilsport!!

3 Likes

you can ofc just exchange some words and turn it into something you think is funny too :smiley:

4 Likes

3 Likes

oh - and the billboard doesn’t have an auto refresh xD

when you are hoping to see changes coming from others you need to hit F5 :smiley:

5 Likes

Works for me!

4 Likes

dweb v0.8.1

A handful of changes but important ones so I recommend updating ASAP:

cargo install dweb-cli

Once you have this, why not try @riddim’s latest masterpiece ‘Billboard’ possibly NSFW (be nice people):

dweb open b6da6740bc5394f9ac0e6a6fa5a42f7f587d3aeaa48fd23ae9a45bef95b571a32429b0353148aa9e04f17cd6da57d179

Changes in v0.8.1

  • deterministic port allocation: the first contribution from another dev, thank you @riddim for that which ensures the same app will always open on the same port and so can use local storage for session related data. App developers should note that settings not be accessible between versions of their app. We chose to keep these isolated per version as discussed here.
  • archives include both History and version when using dweb publish so that upon opening, dweb will know both even when opening an Archive address that is part of a dweb published History.
  • other tweaks including some imrovements to the README

Codeberg rocks! :rofl:

I have also migrated dweb and the dweb demo apps from Github to Codeberg, an EU based non-profit. This was very easy and I’m much more comfortable having an EU based repository where members get a say than using a US corporate server where profit and arbitrary political directives have precedence. See:

I’ll be updating links all over the place for a while and migrating everything else over time.

14 Likes

Sorry to report that I am broken again with scratchchat in the latest release. I do notice that the port remains consistent when I restart, thank you for that. Other apps are working well. I am using the /dweb-open/v/scratchchat/ address.

dweb serve --port 8123
Dweb Autonomi client initialising...
DEBUG loaded wallet: 0x6ACd8B6A9Dc0B324190e3A31230e4Ac4c7E21E4f
DEBUG     tokens: 9999997650950423614
DEBUG     gas   : 693637408090000
-> public network evm-arbitrum-one
DEBUG Registered built-in DWEB-NAME: awesome -> 80ef65377028522309551ff549e015d82572
b7ae306e029fce702ebffde4167c0b67049ad062174055fbb2526f237cc7
DEBUG Registered built-in DWEB-NAME: friends -> b1d0f2c3c1dbbd1772a40d29f664104783cc
93333d3a922c5e2c17dbe07c329cee1fa4e3452329c8a5d3eeb93f9c7d80
DEBUG Registered built-in DWEB-NAME: scratchchat -> a27b3fdb495870ace8f91005223998dc675c8e1bceb50bac66c993bb720a013c9f83d7a46e6d0daecbb3530d5249e587
DEBUG Registered built-in DWEB-NAME: toast -> 95be239165b7016b7f6dada20134438e038d0456bff04ec37943e95742726854225aa03faeed4e7bbd96f5383a8f9448
dweb main server listening on 127.0.0.1:8123
DEBUG serve with ports HttpRequest : GET /dweb-open/v/scratchchat/
DEBUG /dweb-open/v/scratchchat/
DEBUG parse_versioned_path_params_with_as_name() v/scratchchat/
1:v 2: scratchchat r:
version:None as_name: anonymous, address_or_name: scratchchat remote_path:
DEBUG History::from_history_address(a27b3fdb495870ace8f91005223998dc675c8e1bceb50bac66c993bb720a013c9f83d7a46e6d0daecbb3530d5249e587)
>>TRYING pointer_get() unlimited times...
>>TRY 1 of unlimited

DEBUG pointer counter: 0, head address: a27b3fdb495870ace8f91005223998dc675c8e1bceb50bac66c993bb720a013c9f83d7a46e6d0daecbb3530d5249e587
>>OK
DEBUG INSPECT pointer_counter: 0
DEBUG INSPECT pointer_target : a27b3fdb495870ace8f91005223998dc675c8e1bceb50bac66c993bb720a013c9f83d7a46e6d0daecbb3530d5249e587
DEBUG History::update_from_graph_internal()
DEBUG get child of GraphEntry index 0 - child...
1 Like

Are you opening the old ScratchChat? I didn’t update it yet.

If the source contains 8080 you’re using the old version and need to open with the address I gave you until I update the History.

2 Likes

The awesome list of Autonomi dweb sites is growing:

dweb open awesome

10 Likes

Awesome. I’ll try and get more items for the games section up after the competition :game_die:

4 Likes

@Southside and others think dweb needs a different default port than 8080 and I agree, but what? :man_shrugging:

Unless someone who actually knows about port allocation tells me I should stick with 8080 I’ll change this soon and we’ll see how it goes but it should be fine afaik. 8080 is such a nice number though.

I’m still open to suggestions, but the guidance on Wikipedia seems to be pretty straightforward. I’d like to choose a number that is both memorable, cool :smiling_face_with_sunglasses: and unlikely to be in use. Unf. those don’t all go together.

A little research suggests:

  • stay away from <1024 (root required) and >49451 (dynamic/private)
  • search for any candidate to avoid commonly used ones
  • starting with 8 kindof maybe implies HTTP

Some tempting options:

  • 1618 (alluding to the Golden Ratio 1.618)
  • 4325 (x10^16 is the number of configurations for the Rubik’s cube)
  • 1974 (the year the Rubik’s cube was invented)
  • 9110 :thinking:
  • 5550 homage to the wonderful 555 Timer chips
  • 5537 first four digits of the DMS coordinates of Irvine, Ayrshire: 55°37’9.84" N -4°39’18.29" W
    I could go on but ten minutes if probably long enough!

I quite like 5537. It doesn’t show up in use anywhere is memorable and not an obvious number for someone to choose as far as I can see.

3 Likes

5554 is the N coord for the site of original office in Troon

Edit

Hmmmm
port search,find port by number, 21500 udp/tcp port numbers/descriptions,library

edit

however 5548 is free and marks the site of the short-lived posh “corporate offices” in Heathfield Ayr

2 Likes

I considered Ayr but quite liked getting Irvine and Ayreshire in association. :man_shrugging:

3 Likes

Thats in the IoM

5560 is free and is Irvine Harbour - resting place of the Garnock (In Rust we Trust) which may well be Davids long term project once he finishes footering in the robot Lab


I’ll try to find an image at high tide so you can see the boat better

1 Like

Launch date? I don’t remember is so a good reminder :smiley:

2 Likes
1 Like