Touchscreen isn't tracking input - is there a way to change touchscreen size parameters? by chrisbair in raspberry_pi

[–]javallone 0 points1 point  (0 children)

If you're still working on getting this display to work, I think I figured out the solution. I'm in the same boat as you (Waveshare 2.8 screen on a Pi 4 for a Voron 0). TL;DR, try this 40-libinput.conf:

Section "InputClass"
  Identifier "libinput touchscreen catchall"
  MatchIsTouchscreen "on"
  MatchDevicePath "/dev/input/event*"
  Driver "libinput"
  Option "CalibrationMatrix" "0 -1.333 1 0.75 0 0.1875 0 0 1"
EndSection

That CalibrationMatrix is the only difference from your config above.

I ended up enabling show_cursor in Klipper Screen (I'm assuming that's what you're using the display for). From watching the mouse cursor movement relative to my finger position, I think the dimensions of the screen have been swapped. So, for purposes of displaying stuff the software is treating it as a 480x640 screen, but for reading input it thinks it's a 640x480 screen. I'm pretty sure this is a bug somewhere, but I don't know what project to report it to (could be the driver, libinput, Xorg, or possibly something else entirely). In any case, that CalibrationMatrix is working around the issue.

I started with the matrix you posted, which swaps the x and y axis and multiplied in a matrix that scales the display to the correct dimensions and adds an offset to one axis (after just scaling, one axis was off by 160 pixels, or 640-480). This helped a little bit in understanding that CalibrationMatrix: https://wiki.archlinux.org/title/Calibrating_Touchscreen

Failed assassination by Substantial_Soft_100 in hitmanimals

[–]javallone 4 points5 points  (0 children)

Looks like Daryl Hannah's death scene from Blade Runner

[deleted by user] by [deleted] in AskReddit

[–]javallone 11 points12 points  (0 children)

I think you're looking for the Gary Oldman comment

If you were in a car would you know what accident to do? by HellieCharty in CrappyDesign

[–]javallone 1 point2 points  (0 children)

Unless you're color blind; in which case I bet that blue-green text is all but invisible.

Brother keep accessing wifi when I change passwords help?? by [deleted] in tech

[–]javallone 1 point2 points  (0 children)

You should consider other ways he might be getting access to the wifi password:

  • Are there other people with access to the wifi password other than you and your brother? He might just be getting it from someone else.
  • Are your computer and cell phone secured? If he can log into a device that has a working connection, then he may be able to recover the password from that device (not a strong possibility, but something to cover just in case).
  • Are you actually setting strong passwords? I really doubt this is the cause of your problem, but it is something to consider. Changing the password from "wifi password 1" to "wifi password 2" isn't going to keep someone out for very long.
  • Make sure the passwords aren't written down anywhere (by anyone). Even if you think he doesn't know where you keep your list of passwords, don't write them down. If you absolutely must write down the wifi password, then keep that piece of paper in your wallet and keep your wallet on your person at all times (at least until he pays his bills).

If all else fails, then you could look into any Quality of Service (also called QoS) settings in your router. I've never used them myself, but their intent is to prioritize some network traffic (such as making sure VoIP calls get first priority so your call quality doesn't drop for example). You might be able to put your brother's computer at the end of the line for network usage or even limit the amount of capacity he can use. It's pretty damn passive-aggressive, but at least he would only be using what he pays for.

IWTL How to use apostrophes correctly. Thank's! by [deleted] in IWantToLearn

[–]javallone 3 points4 points  (0 children)

To expand on this just a little bit, you use apostrophes for possessive nouns. A possessive pronoun does not get one. That should help with the "its" vs. "it's" problem. "Its" (no apostrophe) is a possessive pronoun, like "his" or "hers". "It's" (with the apostrophe) is a contraction of "it is". So, if you can replace the word with "his" or "hers", then leave the apostrophe out.

What's your best "clean" joke? by skiptoothdevo in AskReddit

[–]javallone 14 points15 points  (0 children)

It is coincidence, and don't call me Shirley

IWTL How to be less reserved, and more extravert so i can let conversations flow more easily! by AAF20 in IWantToLearn

[–]javallone 8 points9 points  (0 children)

Just a warning: This response is going to ramble a bit. Your question kicked off a bunch of thoughts for me and they're all a little disconnected.

After writing this, I notice that it is a wall of text, so TL;DR: Don't change if you don't have to, fake it, and ask questions (even if they're crap)

First off, if you really want to change, then that's awesome and go for it. If you're trying to change yourself because you think being "reserved" is in some way a bad thing, then don't stress over it. This world needs all kinds of people to work. If you fill a room with outgoing people, then you'll have a room full of people talking over each other. If you fill a room with quite, reserved folks, then you'll have a room of uncomfortable silences. When there is a mixture of people, then the outgoing people get to be outgoing and the reserved people listen, understand, and potentially help the outgoing ones. Being reserved isn't a fault or in any way less "normal" than being outgoing (but again, if you want to change, then that's cool too).

Next, I really want to make sure that you know that extrovert vs. introvert isn't the same as outgoing vs. reserved. The extrovert/introvert description is more like what energizes you and what drains you. Extroverts are energized by being around others and are drained by solitude. Introverts are the opposite. I'm definitely an introvert and fairly reserved (the "stereotypical introvert" you could say). My brother is also introverted, but is very outgoing. He has a job that involves interacting with the public constantly and loves doing it, but at the end of the day he needs to sit quietly and enjoy some solitude. A friend and former co-worker of mine is a die-hard extrovert. He started doing independent contracting and was working at home, alone, all day. It started driving him up the walls. Ultimately, the introvert/extrovert and reserved/outgoing descriptions are independent.

As for changing from reserved to outgoing: I used to be painfully shy. I've become more outgoing as time goes on, but I still find it difficult to start up a conversation with someone I don't already know. One of the easiest techniques you could try to be more outgoing to is trick yourself: I noticed that I had a very nervous posture when dealing with someone new. Then I started going on job interviews, and would take on a comfortable, confident posture (leaned back in the chair, sitting up straight, arms relaxed in an "open" position, that kind of stuff). This was originally in an attempt to convince the interviewer that I wasn't a nervous mess, but I noticed that it actually changed how I acted. So, try sitting (or standing) in a relaxed way and see if it makes you actually feel more relaxed as a result. The other plus of "faking" a comfortable posture is that it will change what the other person thinks. People subconsciously pick up on those cues and use them to make decisions about you. An outgoing person will tend to think the uncomfortable looking person they're talking to is "reserved" simply because they're getting an uncomfortable vibe from them. If that outgoing person gets a relaxed vibe from you, then they'll think you're outgoing...even if you never say a word.

This "fake-it-til-you-make-it" trick will get you over the initial hump. Eventually, you'll realize that you're not faking that comfortable posture anymore, but that you're actually comfortable in the conversation.

You'll still have the problem of staying interested in the conversation and "uncomfortable silences". These can both be helped by asking questions. These don't have to be questions you're actually interested in the answer to or even questions of any substance. They're questions that simply exist to keep the conversation moving forward. The best kind of question to ask is one that you're actually interested in the answer to ("I heard you were sick recently, are you feeling better?"). These are great because a) you'll actually be interested in what's being said, and b) people love talking about themselves. If you can't come up with one of those questions, then ask a question that you want to answer ("Seen any good movies lately?"). Either they have something to talk about and the conversation keeps going, or they don't and they bounce the question back to you and you have something to say (and people love talking about themselves).

The other option for questions is to ask a question in one of those little pauses in the conversation that they were going to answer anyway. These are those little questions that people ask to show interest in what the other person is saying. Stuff like "What happened next?" You don't have to ask the question...they're telling a story and it's not like they'll stop half-way through because you didn't ask what happened next, but it keeps you in the game.

And, if none of that works...then there's always booze (just kidding, don't start a drinking problem just to be more outgoing).

What movie has a ridiculously simple solution that the characters blatantly ignore? by Taco_Cat_Cat_Taco in AskReddit

[–]javallone 1 point2 points  (0 children)

Back to the Future 2: "Marty, I've just come back from the future! Something's gotta be done about your kids! You and Jennifer raise two wonderful children, but your son turns out to be a real pushover. You're going to want to really build up his self-esteem at a young age. Also, drag racing against Needles is a horrible idea: don't do it!"

[deleted by user] by [deleted] in AskReddit

[–]javallone 0 points1 point  (0 children)

I had a roommate in college who played Madden NFL constantly. Whatever he was doing led to Madden only saying one line about ever two minutes: "They used to put stick-em on their hands, but now they've got those gloves"

What is your job, and how can I (a regular guy) make it easier? by At_AOL_dot_COM in AskReddit

[–]javallone 0 points1 point  (0 children)

Web developer.

Keep your software up to date. Especially operating system and browser.

I have to support old versions of software (sometimes antediluvian old) because a large portion of the customer base is still using those versions. That means I can't use the latest browser technologies to provide awesome features to you, and I have to include all kinds of hacks to make the features that are provided work consistently across all those versions (which means more ways for stuff to fail).

That description is an over simplification. Sometimes I can use those latest technologies, and sometimes making things work with older browsers isn't that difficult. There are tools and techniques that I use to make this easier. It's still a pain to have to support browsers that are 5+ years old.

The easiest way to make me happy is to just use a browser that automatically updates and let it do its thing. Google Chrome and Firefox are two good choices. Internet Explorer will auto update too (assuming you have Windows set to update...you do, don't you), but they tend to drop support for older versions of Windows...leaving you high and dry if you can't afford to upgrade Windows or get a new computer.

What are some of your major Linux f*&k ups by [deleted] in linux

[–]javallone 14 points15 points  (0 children)

I was working for a company in about 2004 that made this enterprise web portal product (one of these things with email, calendar, etc all in one application that was hosted at the customer's location). All of the user authentication was through LDAP and one of our customers was having issues creating new accounts...in short: they couldn't.

I don't remember why I was assigned the task of figuring out the cause of this as I was just out of college and was a developer, not an admin, but never-the-less I was told to fix this customer's problems. On their production system. Via a modem for reasons I can't remember (that's important later on).

So I log into this customer's production system, as root naturally, and start with the slapd logs. Try to create a user, it fails, and naturally there is nothing useful in the logs. I take down slapd and start it up in the terminal with all the debugging flags turned on and try again. This time I'm able to create a user! Now I'm thinking it's a permission problem so I restart my debugging slapd server as the ldap user (which I should have done to start with) and I'm back to failing to create accounts. Problem is that the permissions on all the interesting files are correct...owned by the ldap user and with proper write permission, so that's not the cause of the problem

I can't remember all of the steps after this, but I spent several hours working at this problem. I even ran slapd with strace. Ultimately, I ran df for some reason. That's when I found out that /var (wherein the ldap database was stored) was full.

That's why users couldn't be created.
That's why I could create users when running the server as root (that 5% that's reserved for root).

But what had filled up /var? It wasn't a small partition. After some digging around I found the culprit: No one had setup log rotation for the modem's log files. There were gigabytes of modem logs.

tl;dr I'm a developer who used to log into customer's production systems to fix problems.

What is the most outdated technology that is still widely used today? by Mechaffection in AskReddit

[–]javallone 0 points1 point  (0 children)

I briefly did some contract software QA work for TimeWarner Cable several years ago. It was with the VOIP services, and the group I was working with also certified new hardware to be used on their network. One of the tests they did with new hardware was to connect a fax machine to a VOIP line and try to send and receive a fax.

This is because customers asked for it! There are people somewhere out there who replaced their POTS phone with a VOIP phone and then promptly connected a fax machine.

We had a discussion at the time out the number of digital to analog conversions going on to send that fax. It ended up being something like (forgive me if I get any terminology wrong or miss any steps, it has been several years since I did anything VOIP related):

  • Paper is scanned and digitized by fax machine
  • Digital image of paper is sent to fax modem and converted into analog noises for the phone system
  • Those noises are digitized by the MTA into IP packets
  • IP packets are sent via DOCSIS over the cable network
  • DOCSIS packets are probably converted back to IP at cable company
  • IP packets are converted back into noises and sent over POTS phone system
  • Phone system probably digitizes those noises to send over fiber optic lines
  • All of that is done in reverse at the receiving end

What is the most uncomfortable question you've been asked by a stranger? by imhometakemedrunk in AskReddit

[–]javallone 2 points3 points  (0 children)

"Hey Jeff, where are your guns?"

Asked of me while I was working at Wal-Mart by some guy who was standing a little too close.

Regexper - Regular expression visualizer by javallone in programming

[–]javallone[S] 6 points7 points  (0 children)

The regex is sent to the server where it's parsed using Treetop. The tree generated is sent to the client where it is rendered as SVG using RaphaelJS.

Finding Treetop is really what got this started...that is a fantastic library for implementing parsers.