Made this to help me extract Chat GPT logs, for future reference.
Chat GPT did help in helping me write this :)
- Go to Chat GPT
- Type some questions
/* | |
MIT License | |
Copyright © Joel Whitaker | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
#!/bin/bash | |
# Check if script is running as root | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
# your personal machine running jacktrip | |
REMOTE_JACK_SERVER=nat.local |
private static String getHtmlContentByUrl(String url) { | |
String content = null; | |
URLConnection connection; | |
try { | |
connection = new URL(url).openConnection(); | |
Scanner scanner = new Scanner(connection.getInputStream()); | |
scanner.useDelimiter("\\Z"); | |
content = scanner.next(); | |
} catch (Exception ex) { | |
ex.printStackTrace(); |
"use client" | |
import { forwardRef, useState } from "react" | |
import { EyeIcon, EyeOffIcon } from "lucide-react" | |
import { Button } from "@/components/ui/button" | |
import { Input, InputProps } from "@/components/ui/input" | |
import { cn } from "@/lib/utils" | |
const PasswordInput = forwardRef<HTMLInputElement, InputProps>( | |
({ className, ...props }, ref) => { |
When a user interacts with a UI element the various listeners are called in a top down order. (For example: OnTouch -> OnFocusChange -> OnClick.) If a listener has been defined (with setOn...Listener) and it consumes this event: the lower priority listeners will not be called. By its nature the first time you touch an EditText it receives focus with OnFocusChangeListener so that the user can type. The action is consumed here therefor OnClick is not called. Each successive touch doesn't change the focus so the event trickles down to the OnClickListener. | |
Basically, you have three choices: | |
Set the focusable attribute to false in your XML: | |
android:focusable="false" | |
Now the OnClickListener will fire every time it is clicked. But this makes the EditText useless since the user can no longer enter any text... | |
Implement an OnFocusChangeListener along with the OnClickListener: |
easyweb-italia | |
4764fbb159e067e22458285444e844c313f26d6d |
To setup debugging for Odin programs on Windows with VsCode follow these steps:
.vscode
folder at the root of your Odin projectlaunch.json
and tasks.json
into it#!/usr/bin/env ruby | |
# What is this for? | |
# This script fixes an issue appeared for some Xcode users where it would show long identifiers | |
# in the list of simulators instead of usual short names. This is caused by duplicate simulators | |
# being sometimes created after switching between Xcode versions, with the same | |
# device type + runtime pair occurring more than once in your list of available simulators. | |
# Instead of showing the same simulator name twice, Xcode defaults to simulator identifiers. | |
# | |
# What it does? |