veer66

joined 1 year ago
[–] veer66@lemmy.one 2 points 4 months ago

The question is more like where else would you put your backups?

No, it is not.

[–] veer66@lemmy.one 1 points 4 months ago

I installed Sparky Linux 7 on my backup laptop computer because I failed to install Debian.

[–] veer66@lemmy.one 2 points 5 months ago

Maybe Sparky Linux ...

Normally, I use Debian. However, Debian 12 installer didn't work on my Acer Extensa 💻. So I installed Sparky Linux, and it works.

[–] veer66@lemmy.one 7 points 5 months ago

People claiming Linux isn’t a viable alternative cause you can’t run it without using the command line.

Even in 2024, many people begin using GNU/Linux with Arch Linux or Ubuntu with apt-get, then later they complain that Linux is not for average users. Maybe the community needs more GUI only tutorials.

 

The video offers a practical example of using Ubuntu for web development, reminiscent of the Rails screencasts popular two decades ago. Back then, many software developers I met still believed the iBook G4 was primarily for desktop publishing, not software development.

[–] veer66@lemmy.one 1 points 5 months ago

Like Thinkpad, the main brand is Lenovo. Thinkbook keyboard is like Acer and other brands.

[–] veer66@lemmy.one 2 points 5 months ago (2 children)

I'm using Lenovo ThinkBook, which is cheaper than Thinkpad, and the keyboard layout is different. It supports upto 40GB of RAM.

 

dhh is the creator of Ruby on Rails. He has extensively used Mac for decades. A few months ago, as far as I remember, he mentioned something like switching to Windows and WSL.

[–] veer66@lemmy.one 5 points 7 months ago

RK3588 is used in many Linux devices, but I'm not sure if Rockchip is in the BDS list. I don't know which factory was RK3588 from.

[–] veer66@lemmy.one 1 points 7 months ago

I heard that Linux gets new patches for Loongson, but I didn't try it yet.

[–] veer66@lemmy.one 4 points 8 months ago

Yes, it is stable.

[–] veer66@lemmy.one 2 points 8 months ago
  #[allow(unused_assignments)]

Thank you. This works!

[–] veer66@lemmy.one 1 points 8 months ago (2 children)

It doesn't work, at least, on rustc 1.75.

[–] veer66@lemmy.one 2 points 8 months ago (4 children)

Clippy didn't tell anything about the macro.

warning: dereferencing a tuple pattern where every element takes a reference
  --> src/lib.rs:13:9
   |
13 |         &Some(ref cons_rc) => {
   |         ^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
   = note: `#[warn(clippy::needless_borrowed_reference)]` on by default
help: try removing the `&` and `ref` parts
   |
13 -         &Some(ref cons_rc) => {
13 +         Some(cons_rc) => {
   |

To put #[allow(this_linting_rule)] like this:

    [ $x:expr, $( $y:expr ),* ] => {
	#[allow(unused_assignments)]
	{

I got error[E0658]: attributes on expressions are experimental.

To put it like this:

#[macro_export]
#[allow(unused_assignments)]
macro_rules! list {
    () => {
	None

It doesn't work.

 

Removing last will break my library.

#[macro_export]
macro_rules! list {
    () => {
	None
    };
    [ $x:expr, $( $y:expr ),* ] => {
	{
	    let mut first = cons($x, &None);
	    let mut last = &mut first;
	    $(
		let yet_another = cons($y, &None);
		if let Some(ref mut last_inner) = last {
		    let last_mut = Rc::get_mut(last_inner).unwrap();
		    last_mut.cdr = yet_another;
		    last = &mut last_mut.cdr;
		}
	    )*
	    first
	}
    }
}

This macro works as I expected because it can pass these tests.

    #[test]
    fn dolist() {
        let mut v = vec![];
        dolist!((i &cons(10, &list![20, 30, 40])) {
            v.push(i.car);
        });
        assert_eq!(v, vec![10, 20, 30, 40]);
    }

    #[test]
    fn turn_list_to_vec() {
        assert_eq!(list_to_vec(&list![1, 2, 3]), vec![1, 2, 3]);
    }

    #[test]
    fn count_elements() {
        assert_eq!(list_len(&list![10, 20, 30]), 3);
    }

However I got the warning "value assigned to last is never read."

How can I avoid this warning?

P.S. Full code

 

Will they keep patching old version of PHP?

view more: next ›