KaKi87

joined 2 years ago
[–] [email protected] 2 points 2 years ago (1 children)

No, it freezes : clicking anywhere doesn't work, trying to go back doesn't work, the only possible action is opening recent apps and kill it.

[–] [email protected] 1 points 2 years ago* (last edited 2 years ago)

I set such delays so that I have time to watch things happening in devtools, that's all.

However, reducing delays still doesn't allow the next text to appear simultaneously with the previous text disappearing.

The solution is figuring out how to overlay the texts without requiring a background color.

 

Hello,

I'm able to make texts fade in and out sequentially, like the following :

F
Fi
Fir
Firs
First
 irst
  rst
   st
    t
S
Se
Sec
Seco
Secon
Second
 econd
  cond
   ond
    nd
     d
T
Th
Thi
Thir
Third

Demo : https://jsfiddle.net/KaKi87/t3jm8yhx/2/

But I'd like to to make these fade in and out simultaneously, like the following :

F
Fi
Fir
Firs
First
S rst
Se st
Sec t
Seco
Secon
Second
T cond
Th ond
Thi nd
Thir d
Third

How to do that ?

Thanks !

 

On Reddit, ^^ requires escaping, because of that character being used for superscript, but on Lemmy, it should be displayed normally, because of using standard Markdown.

Thanks

[–] [email protected] 1 points 2 years ago

Settings -> Sort Type :

[–] [email protected] 1 points 2 years ago (2 children)

I use Obtainium for the few apps I use that aren't available on any store (nor Google nor F-Droid nor third-party F-Droid).

But, I won't replace F-Droid (or, in my case, Neo Store as well) with it, because regardless of UI, it's bad UX : search results lack relevance and details, apps don't updates in background and some require choosing the APK every time despite always choosing the same one.

[–] [email protected] 1 points 2 years ago

sir or ma'am

You could just say : "That's kind of you, thanks".

 

Infinity's maintainer wouldn't try doing it. Would you ?

Thanks

[–] [email protected] 2 points 2 years ago

As I was saying, it loads fine in browser, so it can't have been removed :

[–] [email protected] 2 points 2 years ago (4 children)

After some testing, it seems that the issue only occurs with that image.

However, when using my browser instead of the app, I have no trouble opening the high res image.

[–] [email protected] 1 points 2 years ago (6 children)

Well, how to cache the high res version then ?

 
[–] [email protected] 1 points 2 years ago (1 children)

It's a nasty one because there's no "reject all" button, it requires manually unchecking all checkboxes instead.

[–] [email protected] 1 points 2 years ago* (last edited 2 years ago) (3 children)

That one uses a nasty cookie notice.

 
39
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

Hello,

In many places, community mentions are prefixed by an exclamation point.

But when pasting these mentions in the go to community dialog, an error will appear, requiring the user to manually remve that exclamation point before submitting.

It would be nice, instead, to handle it automatically without error.

Thanks

[–] [email protected] 3 points 2 years ago

Not stable indeed, but pre-releases still are releases (of type preview), which means these are documented with changelogs, which I care about. Thanks

8
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

Hi !

Given the following sample items :

| ID | First name | Age | | ---------- | ---------- |


| | xvZwiCpi | Naomi | 42 | | Nzd9UsGT | Naomi | 24 | | QiDXP2wA | Thea | 53 | | JpYeAY7H | Jeremy | 35 |

I can store these in an array :

const data = [
  { id: 'xvZwiCpi', firstName: 'Frederic', age: 42 },
  { id: 'Nzd9UsGT', firstName: 'Naomi', age: 24 },
  { id: 'QiDXP2wA', firstName: 'Thea', age: 53 },
  { id: 'JpYeAY7H', firstName: 'Mathew', age: 35 }
];

Thus access them the same way by ID :

console.log(data.find(item => item.id === 'xvZwiCpi'));

And by properties :

console.log(data.find(item => item.firstName === 'Frederic').id);

Or I can store these in an object :

const data = {
  'xvZwiCpi': { firstName: 'Frederic', age: 42 },
  'Nzd9UsGT': { firstName: 'Naomi', age: 24 },
  'QiDXP2wA': { firstName: 'Thea', age: 53 },
  'JpYeAY7H': { firstName: 'Mathew', age: 35 }
};

Thus more easily access properties by ID :

console.log(data['xvZwiCpi'].firstName);

But more hardly access ID by properties :

console.log(Object.entries(data).find(([id, item]) => item.firstName = 'Frederic')[0]);

I could duplicate IDs :

const data = {
  'xvZwiCpi': { id: 'xvZwiCpi', firstName: 'Frederic', age: 42 },
  'Nzd9UsGT': { id: 'Nzd9UsGT', firstName: 'Naomi', age: 24 },
  'QiDXP2wA': { id: 'QiDXP2wA', firstName: 'Thea', age: 53 },
  'JpYeAY7H': { id: 'JpYeAY7H', firstName: 'Mathew', age: 35 }
};

To slightly simplify that previous line :

console.log(Object.values(data).find(item => item.firstName = 'Frederic').id);

But what if a single variable type could allow doing both operations easily ?

console.log(data['xvZwiCpi'].firstName);
console.log(data.find(item => item.firstName === 'Frederic').id);

Does that exist ?

If not, I'm thinking about implementing it that way :

const data = new Proxy([
  { id: 'xvZwiCpi', firstName: 'Frederic', age: 42 },
  { id: 'Nzd9UsGT', firstName: 'Naomi', age: 24 },
  { id: 'QiDXP2wA', firstName: 'Thea', age: 53 },
  { id: 'JpYeAY7H', firstName: 'Mathew', age: 35 }
], {
    get: (array, property) =>
        array[property]
        ||
        array.find(item => item.id === property)
});

In which case I'd put it in a lib, but how would this be named ?

I'd also make a second implementation that would enforce ID uniqueness and use Map to map IDs with indexes instead of running find : while the first implementation would be fine for static data, the second one would be more suitable for dynamic data.

Would this make sense ?

Thanks

view more: next ›