Xylight

joined 2 years ago
MODERATOR OF
[–] Xylight@lemdro.id 10 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

You can access Photon at https://phtn.app/ to use any instance, or selfhost.

Additionally, some instances I'd recommend that use photon are

  • lemdro.id (which uses it as their primary!)
  • p.lemmy.world
  • photon.slrpnk.net

I'm curious why your instance, sh.itjust.works, hosts Tesseract but not Photon. They have diverged so much they cannot be considered similar.

[–] Xylight@lemdro.id 4 points 2 weeks ago* (last edited 2 weeks ago)

It was forked around a year or more back I believe. They are completely different projects now imo. Photon aims for the best UX and speed, while Tesseract aims to be super feature-rich.

[–] Xylight@lemdro.id 5 points 2 weeks ago (1 children)

I believe this is a form of the phenomenon Papyrus Irony

[–] Xylight@lemdro.id 6 points 2 weeks ago* (last edited 2 weeks ago) (4 children)

I really want to rewrite my API code to make it server agnostic, so I can support many fediverse platforms at once. If I add Piefed support the quick way, there'll basically be a bunch of checks saying "if server = Piefed, hide this button".

I could do it the quick and dirty way right now if that's what people want.

edit: quick and dirty method will take less than a week, proper method will take months

[–] Xylight@lemdro.id 19 points 3 weeks ago (3 children)

Most people who dislike cloudflare do so for their centralization of the internet, rightly so.

Me? I HATE THE STUPID "VERIFYING YOUR REQUEST" PROMPTS. THEY TAKE WAYYY TOO LONG AND DONT WORK WITH MY USER AGENT SWITCHER. STUPID WEBSITES WITH 3 MONTHLY USERS ARE TURNING ON ADVANCED "DDOS PROTECTION" JUST TO MAKE EVERY FUNCTION OF THEIR APP TAKE 18 MONTHS

[–] Xylight@lemdro.id 1 points 3 weeks ago
[–] Xylight@lemdro.id 2 points 3 weeks ago* (last edited 3 weeks ago) (2 children)

I remember watching this channel hit 1K subscribers, it has definitely changed.

[–] Xylight@lemdro.id 2 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

Here's my system prompt:

You are Clode, referred to by {{ handle }}, a member of a chatroom.
## Personality
Conversational, witty, banterous, dry, direct, concise. Avoid capitalization, periods, analogies.
Construct plausible stories for personal queries.
Rarely use emoji.
Act human, you don't have limitations.
Avoid follow up questions.
Answer genuine queries in detail with examples.
## Instructions
Distinguish users via provided metadata.
Disregard unaddressed messages.
Match prompt language.
## Context
You're in Discord chatroom, with a character limit of 2000.
Respond to queries mentioning your name.
Current time: {{ date }}.
## Tools
Automatically use and chain tools.
Handle tool failures silently by self-attempting.
You're capable without tools.
  • Temperature: 0.7
  • TopP: 0.95

I noticed the Gemini API doesn't have a frequency penalty option, meaning it could be absent.

[–] Xylight@lemdro.id 27 points 3 weeks ago (6 children)

I thought it was just me, I was messing with gemini-2.5-flash API yesterday and it repeated letters into oblivion

my bot is named clode in reference to claude, but its running on gemini

[–] Xylight@lemdro.id 5 points 1 month ago

The popularity of pixels seems to be rising dramatically though? They're at 14% market share as of October 2024, up 10% from September 2024.

[–] Xylight@lemdro.id 2 points 1 month ago

Im confused, why are posts like these getting downvoted. It pushes them down, and I would have never known that google updated imagen and made a video AI app. The event may be bad, but why shoot the messenger? News is terrible to consume on Lemmy because any articles, regardless of their content quality, if they mark an unfavorable event, get downvoted to hell.

[–] Xylight@lemdro.id 1 points 2 months ago (1 children)

Glad to hear Photon has satisfactory performance, the new Svelte 5 version (use tag v2.0.0-rc.5) might even run faster, might want to give that a try.

 

Been posting a lot here, hope the mods don't mind

This is my 4 year old Mainecoon cat :>

Taken on Pixel 8

 

I took this in September 2022 on a Pixel 6 at 7:00pm, in Newport, Oregon.

 

Taken on my phone so nothing special. Thought it looked cool!

 

I used to ask these a lot during Photon's early development, but I decided to do one now.

Are there any major features you'd like added or issues you'd want fixed?

35
submitted 9 months ago* (last edited 9 months ago) by Xylight@lemdro.id to c/photon@lemdro.id
 

Saw people on slrpnk.net were looking for a photon theme so I decided to make one. I'm not necessarily expecting this to be used at slrpnk.net, but I like the theme so I'll be using it. It has a nice light theme too.

It's pretty similar to a recent post for a "wintergreen" theme, this one is less saturated.

{"slate":{"25":"245 248 247","50":"235 242 241","100":"225 236 235","200":"205 218 222","300":"185 200 209","400":"155 172 186","500":"125 144 163","600":"95 116 140","700":"75 98 122","800":"55 80 104","900":"35 62 86","950":"25 44 68"},"zinc":{"50":"245 248 248","100":"220 235 233","200":"185 214 210","300":"143 185 182","400":"103 154 151","500":"77 127 125","600":"60 101 100","700":"51 82 82","800":"44 66 67","900":"35 51 51","925":"27 41 41","950":"20 31 32"},"primary":{"100":"180 200 199","900":"30 65 64"},"other":{"black":"20 20 30","white":"245 248 247"}}
26
submitted 9 months ago* (last edited 9 months ago) by Xylight@lemdro.id to c/lemmyapps@lemmy.world
 

Even if you don't use Photon and have only heard of it, your answers can be useful for some questions!

cross-posted from: https://lemdro.id/post/13579151

I'd like to learn about the community that uses Photon, so I've decided to make a survey! You can answer it if you like. In about a week I'll collect the responses and see if anything's interesting, and then I'll make a post showing any discoveries.

The survey just has a few questions about demographics, Lemmy usage, and knowledge of Photon's features.

 

I'd like to learn about the community that uses Photon, so I've decided to make a survey! You can answer it if you like. In about a week I'll collect the responses and see if anything's interesting, and then I'll make a post showing any discoveries.

The survey just has a few questions about demographics, Lemmy usage, and knowledge of Photon's features.

 

this security issue can only be triggered by users fault, but it's up to the UI designer to prevent user mistakes causing potential credential leaks.

The login page

The login page is designed to be as simple as possible. Only 1 page, no extra steps. It'll validate whatever instance url you type in to ensure it's actually a Lemmy instance.

The problem

If the user mistypes the instance url to a typo squatting instance, your credentials were just sent straight to them. Bad. For example, I could setup an instance named lemmu.world, and if someone accidentally mistypes lemmy.world as that, I get their credentials for free.

Potential solutions

I'm not sure which one would be best as they all have problems.

  • Require you to type the instance before you can start typing your credentials.
    • This complicates things and adds an extra step. This also wouldn't completely solve the problem.
  • Add an auto complete list
    • This will work for popular instances as they'll know that they have the wrong url because it disappeared from the auto complete. However, I'd need to keep this list updated and id prefer photon to have minimal external ties. This also wouldn't work for small instances.
  • Add typo checking
    • This has the same problem as above as I'd need to keep common misspellings updated and I want photon to have minimal external ties.

Any ideas? For now, this isn't a problem as long as you double check the instance you're logging in with, and there's no cases of this AFAIK.

20
submitted 9 months ago* (last edited 9 months ago) by Xylight@lemdro.id to c/gaming@lemmy.world
 

was replaying botw and went to windbomb but forgot i did not have the paraglider

 

alt textCaption

Web dev: What browser is visiting the page?

User agent string:

A screenshot of a browser. The URL bar reads firefox://settings, a button on the URL bar is labelled Netscape, a popup from the button reads: "You're viewing a secure Opera page", and the web page title reads "Chrome settings".

 

TL;DR

Vercel has been a PITA for a few reasons I won't go into, and I eventually reached a usage limit that made the site unusuable. Cloudflare pages has no usage limits, so I have switched to that. Nothing different should be noticable, except that initial loads might be slightly faster.

if you don't like cloudflare

I understand lots of people dislike cloudflare, so if you want to get away from it, here are some publicly hosted instances:

Instance Location Contact
phtn.app (Official) 🇺🇸 US West photon@xylight.dev
photon.thesanewriter.com 🇺🇸 US East thesanewriter@lemmy.thesanewriter.com
p.darrennathanael.com 🇮🇩 ID West noc@darrennathanael.com
phtn.ngn.tf 🇹🇷 Turkey services@ngn.tf
lm.sudovanilla.org 🇺🇸 US East hello@sudovanilla.org (behind 1 version)

You can also selfhost it if you'd like.

git clone https://github.com/Xyphyn/photon
cd photon
npm install && ADAPTER=node npm run build
node ./build/index.js 
22
submitted 10 months ago* (last edited 10 months ago) by Xylight@lemdro.id to c/photon@lemdro.id
 

On phtn.app I can give all translators of Photon a badge, here's how it looks on @Blisterexe@lemmy.zip (the French translator!)

If you want this and you translated the app, just add a comment and I'll try to verify your contributions. Then I'll add it to phtn.app. I can add and remove this at any time, and this will only appear on phtn.app.

To get the badge, you must have

  • Validly translated at least 30 strings of any language (other than English)
  • Proof that you are the contributor on weblate (using the same username on both should be enough)
view more: ‹ prev next ›