#requires — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #requires, aggregated by home.social.
-
Windows users mostly dislike the command-line. This GUI utility is useful.
```
#Requires AutoHotkey v2.0#SingleInstance Force
MainGui := Gui("+AlwaysOnTop", "CSV to XLSX Converter")
MainGui.SetFont("s10", "Segoe UI")MainGui.Add("Text",, "Input CSV File:")
EditFile := MainGui.Add("Edit", "w400 ReadOnly", "No file selected...")
MainGui.Add("Button", "x+10 w80", "Browse").OnEvent("Click", SelectFile)MainGui.Add("Text", "xm", "Output Folder:")
EditDir := MainGui.Add("Edit", "w400 ReadOnly", "No folder selected...")
MainGui.Add("Button", "x+10 w80", "Browse").OnEvent("Click", SelectFolder)MainGui.Add("Text", "xm h10", "") ; Spacer
BtnConvert := MainGui.Add("Button", "xm w100 h40 Default", "Convert Now")
BtnConvert.OnEvent("Click", RunConversion)MainGui.Show()
SelectFile(*) {
Selected := FileSelect(3, , "Select your CSV file", "CSV Files (*.csv)")
if Selected
EditFile.Value := Selected
}SelectFolder(*) {
Selected := DirSelect(, 3, "Select the destination folder")
if Selected
EditDir.Value := Selected
}RunConversion(*) {
InputPath := EditFile.Value
OutputDir := EditDir.Valueif (InputPath = "No file selected..." || OutputDir = "No folder selected...") {
MsgBox("Please select both a file and a destination!", "Missing Info", "Icon!")
return
}FullCommand := 'csv2xlsx.exe -o="' . OutputDir . '\output.xlsx" ' . InputPath
try {
RunWait(FullCommand)
MsgBox("Success! The file has been converted.", "Done", "Iconi")
} catch {
MsgBox("Error.", "Execution Failed", "Iconx")
}
}
```
#autohotkey #gui #coding -
Dependabot umí i tohle? To je cool. https://github.com/honzajavorek/p3news/pull/17/files
-
New U.S. Visa Rule Requires Applicants to Set Social Media Account Privacy to Public – Source:thehackernews.com https://ciso2ciso.com/new-u-s-visa-rule-requires-applicants-to-set-social-media-account-privacy-to-public-sourcethehackernews-com/ #rssfeedpostgeneratorecho #CyberSecurityNews #TheHackerNews #Requires
-
I set up an #AutoHotKey macro to pause/resume #Audacity when recording audio. The pause/break key works wonderfully as a cough button.
```
#Requires AutoHotkey v2.0#r:: { ; Windows+R: Record
if WinExist("ahk_exe audacity.exe") {
hwnd := WinExist("ahk_exe audacity.exe") ; Get the Audacity window handle
if hwnd {
PostMessage(0x100, 0x52, 0, , hwnd) ; WM_KEYDOWN message for Space key
PostMessage(0x101, 0x52, 0, , hwnd) ; WM_KEYUP message for Space key
}
}
}#s:: { ; Windows+S: Stop/Play
if WinExist("ahk_exe audacity.exe") {
hwnd := WinExist("ahk_exe audacity.exe") ; Get the Audacity window handle
if hwnd {
PostMessage(0x100, 0x20, 0, , hwnd) ; WM_KEYDOWN message for Space key
PostMessage(0x101, 0x20, 0, , hwnd) ; WM_KEYUP message for Space key
}
}
}#p::PauseResume() ; Windows+P
Pause::PauseResume() ; Pause/Break keyPauseResume() {
if WinExist("ahk_exe audacity.exe") {
hwnd := WinExist("ahk_exe audacity.exe") ; Get the Audacity window handle
if hwnd {
PostMessage(0x100, 0x50, 0, , hwnd) ; WM_KEYDOWN message for Space key
PostMessage(0x101, 0x50, 0, , hwnd) ; WM_KEYUP message for Space key
}
}
}
``` -
Switzerland federal government #requires releasing its software as #open #source
The United States remains reluctant to work with open source, but European countries are bolderhttps://www.zdnet.com/article/switzerland-now-requires-all-government-software-to-be-open-source/
-
#Missouri now #requires #proof of #surgery or #courtorder for updates to #gender on #State #IDs.
Previously, the state required #doctor #approval, but not #surgery, to change the #gender listed on state-issued #identification.
#Women #Transgender #LGBTQ #LGBTQIA #Missouri #Conservatives #Extremism #Fascism #Religion #RepublicanParty #Hate #Bigotry #Violence #Genocide #Discrimination #Transphobia #ThePartyOfHate #EmptyThePews
-
#Minnesota #Governor #TimWalz made #tampons #free in #Minnesota #schools.
The #Minnesota #law #requires #schooldistricts to develop #plans to ensure all #studentswhomenstruate can access #free #tampons and #pads, eliminating the so-called #tampontax.
https://www.cbsnews.com/news/tampon-tim-walz-minnesota-law-schools-bathrooms-period-poverty/
-
#Iowa #LGBTQ #students file #lawsuit over new #state #law.
The #ACLU of Iowa joined two #lawfirms in filing a #lawsuit challenging #Iowa #SF496, which #prohibits the #instruction of #genderidentity and #sexualorientation through sixth grade, #prohibits #books with #descriptions of #sex #acts and #requires #parentalnotification when a K-12 student wants to be referred to by a different #pronoun or #name in school.
-
#IHSA #policy #update #requires #transgender #athletes to #ask for #permission to #play.
The #Highschool #Association
will seek to review #medical and #school #registration #records, among other supporting #documentation to determine #eligibility.#Women #Transgender #LGBTQ #LGBTQIA #Education #Sports #SexDiscrimination #Hate #Bigotry #Discrimination #Transphobia
-
@fireborn Pretty easy to do with #AutoHotkey. I've used {CapsLock} instead of {Win} to avoid conflicts with my own keyboard shortcuts:
#Requires AutoHotkey v2.0
#HotIf GetKeyState("CapsLock", "T")
w & g::Run("https://www.google.com/")
w & r::Run("https://www.reddit.com/")
a & w::Run("winword")(when CapsLock is "On", "a" and "w" at the same time will open MS Word)
Other ideas:
- Having the keys and what's opened in a JSON or CSV file
- Compiling the script
- Showing the "layers" with a GUI -
# Here’s what’s left for the Supreme Court’s final week of the term
* The #SupremeCourt (#SCOTUS) is expected to release several major #decisions in its final week of the term, including rulings on #AffirmativeAction, #StudentLoan #payments, #ElectionLaw, and #LGBTQrights.
* The affirmative action case, Fisher v. University of Texas, could have a significant impact on college admissions policies across the country.
* The student loan case, Biden v. California, could determine whether the Biden administration can cancel student loan debt.
* The election law case, Moore v. Harper, could weaken state and federal election laws.
* The #LGBTQ #rights case, Fulton v. City of Philadelphia, could determine whether #businesses can #refuse to #serve #LGBTQ people on #religious grounds.
* The Supreme Court is expected to release its decisions on these cases by the end of the week.
* The decisions could have a major impact on American society, and they are being closely watched by both sides of the political spectrum.
* The affirmative action case is a challenge to the University of Texas's affirmative action program, which considers race as one factor in admissions decisions.
* The student loan case is a challenge to the Biden administration's plan to cancel up to $10,000 in student loan debt for borrowers.
* The election law case is a challenge to a North Carolina law that makes it more difficult for people to vote by mail.
* The LGBTQ rights case is a #challenge to a #Philadelphia #law that #requires #businesses that contract with the city to serve LGBTQ people.
https://www.cnn.com/2023/06/26/politics/supreme-court-final-week-preview/index.html -
@rmdes @mitexleo @marketingleben Thanks for your answer, but for the #user your statement "Pixelfed is an attempt to get close to a neat photo experience." refers to the #client. The user doesn't mind what #server software the client connects to. My question was what #part of that photo experience (yes, "in the long run") #requires a server software that is #different from the Mastodon server software. In other words: What #Pixelfed feature can't be implemented in a photo focussed #Mastodon app?
-
@laage @codykonior The other thing you can do if this is a script is to use a #requires statement: #requires -module MicrosoftTeams