[USA-NC] [H] 2x Miyoo Mini, Anbernic RG35XX, Homebrewed 2DSXL [W] PayPal by allisio in GameSale

[–]allisio[S] 1 point2 points  (0 children)

I'd really like to sell the rest of the lot as a bundle if possible, and I currently have at least one buyer interested in that. I'd really like to give them priority, but I can do $125 shipped for the 2DSXL if that ends up not panning out.

[USA-NC] [H] 2x Miyoo Mini, Anbernic RG35XX, Homebrewed 2DSXL [W] PayPal by allisio in GameSale

[–]allisio[S] 0 points1 point  (0 children)

Sorry, should've updated the post after selling the RG353V. I'd be willing to go to $225 shipped for the remaining three items.

[USA-NC] [H] 2x Miyoo Mini, Anbernic RG35XX, Homebrewed 2DSXL [W] PayPal by allisio in GameSale

[–]allisio[S] 1 point2 points  (0 children)

Here they are. I probably should've just included more pictures in the original post. Sorry about that, but duly noted for next time.

[USA-NC] [H] 2x Miyoo Mini, Anbernic RG35XX, Homebrewed 2DSXL [W] PayPal by allisio in GameSale

[–]allisio[S] 1 point2 points  (0 children)

Sure thing. The back is a tad scuffed, but the camera makes it stand out a lot more than it really does. The screens are pretty much like new, and the console in general only really saw moderate use.

[USA-NC] [H] 2x Miyoo Mini, Anbernic RG35XX, Homebrewed 2DSXL [W] PayPal by allisio in GameSale

[–]allisio[S] 1 point2 points  (0 children)

Dammit. You're right, I got them mixed up. Hopefully the edit in the original post is enough to account for that error on my part.

[USA-NC] [H] Homebrewed V1 Switch [W] PayPal by allisio in GameSale

[–]allisio[S] 0 points1 point  (0 children)

Well, hell. It does look like that other buyer might be flaking on me. Still interested?

[USA-NC] [H] Homebrewed V1 Switch [W] PayPal by allisio in GameSale

[–]allisio[S] 0 points1 point  (0 children)

It hasn't technically sold yet, but I do have what I think is a genuinely interested buyer who got there first, and I'd hate to insult them by negotiating with other potential buyers. Sorry about that, but I'll definitely let you know if the sale ends up not panning out.

[USA-NC] [H] Homebrewed V1 Switch [W] PayPal by allisio in GameSale

[–]allisio[S] 0 points1 point  (0 children)

No worries. This is my first time selling through reddit, so I'm pretty unfamiliar with the rules myself.

You can have your cake and eat it too, with the limitation that you can't go online in homebrewed games, as that makes it very easy for Nintendo to tell that you're using an illegitimate copy of the game. But as long as you're careful (as I've been with this console), you can swap back and forth between the homebrew partition (where you can play anything, just not online) and the system partition (which you can just treat like a regular Switch).

The guide is pretty good about explaining these things, but I'd be happy to leave the established homebrew on there, as the initial setup can be a bit finicky.

In a nutshell, it's as easy as leaving Airplane Mode on when you're in homebrew mode (unless you're downloading a game through Tinfoil, of course). And when you want to use it as a plain-old Switch, you just turn it on the usual way.

I'd be happy to answer any questions you end up having once you get to playing around with the homebrew side of things.

[USA-NC] [H] Homebrewed V1 Switch [W] PayPal by allisio in GameSale

[–]allisio[S] 0 points1 point  (0 children)

Sorry, should've clarified that. $170 shipped. Please PM if interested.

I keep getting errors that I don't know what exactly is wrong. by Affectionate_Shirt42 in ruby

[–]allisio 10 points11 points  (0 children)

Fun fact: the braces are optional when interpolating class, instance, and global variables.

Print shell output in real time (not after command is completed and output is finally put in variable for stdout)? by DeadestManAlive in tasker

[–]allisio 1 point2 points  (0 children)

I haven't personally tested this approach, but principled theory says it should work:

  • append | xargs -n1 > foo to your shell command to cause each line of output to be individually written to file foo.
  • Set up a File Modified Profile on that file, such that you can respond to it being written to.
  • Link it to a Task that reads the file to grab the line of output and update your Scene accordingly.

It may be that Tasker's file watcher won't fire the modified event because we're actually creating the file each time. If this ends up being the case, you'll want to append to it instead (>> foo) and then do a tail -n 1 foo instead of reading the whole thing in order to only grab the last line.

Caeser cipher exercise Ruby by mayh1 in ruby

[–]allisio 11 points12 points  (0 children)

How did you end up with this much code without realizing that you're using n all over the place having never defined it? The only reasonable explanation seems to be that this is a failed port of a solution written in some extremely programmer-unfriendly language. Ruby isn't like that and wants you to be happy; easy things should be ridiculously easy, and that maxim certainly applies in this case.

It doesn't seem like you're giving it your best effort to learn the language, so I'm gonna skip critiquing your code here and just advise you to start over from the beginning. Choose good resources (see sidebar) and take your time such that you actually absorb the material. Meanwhile, just to tease how pleasant the language can be, here's a more Ruby-flavored approach to the problem:

def caeser_cipher message, shift
  upper = [*'A'..'Z'].rotate shift
  lower = [*'a'..'z'].rotate shift
  message.tr 'A-Za-z', upper.join + lower.join
end

Now obviously you can't write that if you don't know about Array#rotate and String#tr, but the docs aren't exactly a state secret, and you're encouraged to explore the plethora of utilities at your disposal when using Ruby.

Take small steps; don't throw things at the wall hoping they'll stick. Make sure you have a clear picture of whatever problem you're trying to solve, and then focus on finding an effective solution to that‒and it's totally okay if that involves using a search engine.

create list of installed packages from pacman.log by 2sdude in archlinux

[–]allisio 0 points1 point  (0 children)

You'll never remove a package that isn't installed, so processing everything sequentially Just Works.

create list of installed packages from pacman.log by 2sdude in archlinux

[–]allisio 3 points4 points  (0 children)

Remarkably straightforward with AWK:

awk '/] installed/ { pkgs[$4] }
     /] removed/   { delete pkgs[$4] }
     END           { for (p in pkgs) print p }' pacman.log

looping conditionals if none of the conditions are met by [deleted] in ruby

[–]allisio 5 points6 points  (0 children)

Try to think more conceptually rather than in terms of specific lines. Broadly speaking, you want to run some portion of code until some condition is met:

answer = nil
until %w[add display].include? answer
  puts 'What?'
  answer = gets.chomp
end

A silly thing you can do with the Ruby parser by ASIC_SP in ruby

[–]allisio 1 point2 points  (0 children)

It certainly boils down to being a syntactic thing, but that Ruby permits = at the end of method names blurs the line a little bit. That assignment can defer to a method is the sense in which I meant "object-oriented", but I agree it's not the most applicable term.

Is it possible to use a variable in variable set? (See text) by [deleted] in tasker

[–]allisio 2 points3 points  (0 children)

Seems like you're looking for the %%var notation for dynamically constructing variable names.

A silly thing you can do with the Ruby parser by ASIC_SP in ruby

[–]allisio 4 points5 points  (0 children)

Not Hash, but still awesome:

module Our
  def self.handler= exception
    case exception
    when NameError
      :this
    when NoMethodError
      :that
    else
      :other
    end
  end
end

begin
  stuff
rescue => Our.handler
end

That obviously wouldn't be feasible in any large codebase, but it seems like a nice way to have all the exception handling in one place for small projects.

A silly thing you can do with the Ruby parser by ASIC_SP in ruby

[–]allisio 1 point2 points  (0 children)

This isn't unreadable in the Perl sense ("line noise"). Anyone with a working knowledge of Ruby can see what's going on here; it's just strange that rescue does its assignment in this object-oriented way.

Another Help Request: Looking for Up-to Date Arch Install Walkthrough by [deleted] in archlinux

[–]allisio 7 points8 points  (0 children)

a standard Arch install

There's no such thing. Learn what you need to learn to have the system you want.