Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "input"
-
CS teacher tip of the day:
server side input checks and sanitization are always useless. because nowdays all browsers have javascript enabled by default and nobody disables it. so client-side checks are safe.
me: ***WTF!?!***11 -
My Toddler son playing cars on the keyboard, simultaneously simulating dumb user input on a website.5
-
"Can we make all users computer freeze and allow only input on our website?"
"We" can shove a knife up your ass you fucking dipshit.8 -
If you're going to bother to detect that my input is without hyphens, then you can certainly insert them for me too.8
-
Receiving a bug report from the manual tester “numeric input does not work”.
He accidentally disabled Num Lock on his keyboard.16 -
Art director said: "Please make everything smaller?"
Developer: "Everything?"
Art Director: "Yes everything. Font size, panel height, panel width, input height and width, photos, headers, paragraphs, everything"
Developer: "ctrl + '-' will that work?"10 -
My boss just designed this and asked me to implement it, without asking for any input.
I was a UX designer at my previous job. This makes me want to cry.19 -
Pessimist: a O(2^n) algorithm's performance decreases exponentially as input increases.
Optimist: a O(2^n) algorithm's performance increases exponentially as input decreases.2 -
alias gcc='echo "gcc: fatal error: Input file not found: "
Now have fun watching your victim struggle.7 -
Client: Extend string size for that URL field. I have to input a really large URL in there.
Me: Please show me the URL first.
Client: Here it is //randomurl.com/random-route/15363783?i=jfjfjfjjfjfjhf&shit=jfjfjkfkfkgjfjjhh74747jdjh&you=kfjfjbhgg779hdhhd¬=jfjhdh63737#fuckingKiddingMe
Me: You can leave the whole part after the question mark. Insert it like //randomurl.com/random-route/15363783
Client: Ok, great. Thanks.
#####
Me later checking the data inserted:
//randomurl.com/random-route
I hate humans.10 -
Boss:(pastes a bunch of Python code in Slack)
Boss: Need to convert a long list of ints to a comma separated string. Can you finish it for me? Need it now, I'm in a hurry!!
Me : (Delete all boss's code)
Me : input=[1,2,3,4,5,6,....] output=",".join(str(e) for e in input)
Boss: Damn you! Thanks. Brunch on me today.5 -
I inserted a unicode 'reverse text' character into the registration form of our energy provider and see what we got today 😁🤣9
-
Our html:
<input type="number"/>
Accepts only numbers, so far so good. Until QA files a bug:
"Numeric input accepts the letter 'e' "
Apparently 'e' is a valid because you can input something like '1e3' which fucking means '1000' !
Our team tried to argue with the QA that 'e' is valid because it simply means exponent but they argue a normal user would not know what an exponent means because they are not "mathematically inclined"
Part of me agrees with what the QA argues but then I think an average user who could use a fucking laptop or mobile will most certainly know what an exponent is.10 -
Due to the coronavirus we are currently required to develop all our web services with SOAP and sanitise all our input for at least 20 seconds.2
-
Security question setup:
Question: Your father's second name
Input: Carl
Error: Please provide at least 5 characters
You failed me, father.3 -
After Bought Minecraft, I'm planning to create a Programmable 4-bit Computer.
Just Finished Building ALU, So Here's my Progress Screenshots :
1. Op-Codes and Input A Sides28 -
To anyone that isn't sanitizing the input on their websites: I know where you live. You told me, remember?2
-
Me: I have an input stream!
Library: I want a file.
Me: I can see your code, you will convert it to an input stream! Don't any of your constructors take an input stream?
Library: No. I want a file. Okay, you can also include an encoding.
Me: I don't care about encoding.
Library: Fine, just give me the file then.
Me: You mean I have to somehow convert my input stream into an actual file so I can give it to you?
Library: You're gradually catching on, yes.
Me: Can I add a new constructor myself that takes an input stream?
Library: Sure! Good luck in getting it approved by the maintainers and the new jar distributed everywhere, including Maven Central before your deadline.
Me: Fine, I'll just rearchitect everything so I can give you an actual file.
Library: And then everything will be fine.
Me:3 -
Why on Earth would an API require me to provide input like this?
{"this": "{\"is\": \"not\"}", "how": "{\"json\": \"works\"}"}
😡7 -
Interviewer: "Using this 2D array and calculate.."
Me: "This input isn't a 2D array though. Do you want me to parse or construct a 2D array then.."
"It is a 2D array."
"Uh.. ok..and if it's not what if we.."
"Look my notes say you must use this input, and treat it as a 2D Array"
"What if I wrote a function for a 2D array similar to this input, but actually a 2D array"
"You must use only the input provided"
Me: does rain dance code for 20 minutes.
Interviewer: "hmm, maybe it wasn't a 2D Array. I like your efforts but that's all the time we have today."
I promise I can code, sometimes. It does help to have correct questions to give correct answers.1 -
I just LOVE posting questions in online forums and getting some amazingly helpful human being answering; "No idea, sorry."
WELL THANK YOU VERY MUCH FOR YOUR AMAZING INPUT!!!2 -
I wish people would stop claiming their product is an AI when it isn’t.
Guy on product hunt today says his name generator is an AI. This is how he describes the process:
- first it passes your input keywords through fasttext
- we get a random sampling of the top 100 or so words most related to your input keywords
- the top words are used as the dictionary input to a markov chain word generator, which generates 10~15000 random words
- the results are passed again through fasttext, we take the cosine distance of the resulting word to your input keywords (by using the out-of-vocab feature of fasttext)
- the top 100 most relevant results are returned6 -
Security tips guys :
use iptables -A INPUT -j DROP to secure your servers.
NO ONE can access your servers now... NO ONE...18 -
- How can we make sure the age input is an integer?
- Let's add some incremental buttons for edit it.
- Nice, sounds pretty safe and convenient6 -
The perks of learning iptables through practice:
Suddenly losing Internet connection on le entire computer and then realizing that you added a DROP EVERYTHING on the input chain through a referenced chain 😅3 -
Today I fell down the rabbit hole.
I've been writing some automated tests which found an asymmetry in our algorithm which I think is caused by an off by 1 in even input dimensions.
Change input to odd dimensions, crash due to out of bounds exception.
Switch to debug mode to try to work out why we crash, failing asserts for default function arguments with no obvious reason beyond a helpful message saying they're unsupported.2 -
Let's see the coder in you.
If I give input: 1 output: 2
If I give input: 2 output:1
Only these two test cases needed.
You should not use control structures such as if,else,for,while,switch etc. (The answer is simple) (Don't cheat)
int number;
cin>>number; //get number
cout<<??????; //Your code53 -
So, apparently when you're POSTing to PHP with Content-Type: application/json the $_POST variable will not get populated because PHP is not ready to support JSON as input. Because 1999.9
-
me: "aye im a cool functional programmer, monads are useful, whats up loop using plebs'
also me: *passes input argument as terminating condition*1 -
my Input: want from A -> B
The algorithm of my Public transport App result:
Walk from A to B, then take the tram from B to A. From there you walk to B.
Ooooookay.2 -
Oh my fucking god I deserve to be shot for my stupidity.
I spent an hour in absolute fear trying to figure out what was wrong with my PC - it would boot but the monitor wouldn't show anything.
I'd forgotten that I'd changed to monitor to show HDMI input - but I was using a HDMI-to-VGA converter so the monitor should have been set to VGA input :/4 -
input = readPin(x);
if (input == 1)writePin(y, 1);
if (input == 0)writePin(y, 0);
(When I saw this I wanted to pull off my eyes)3 -
If($password = $password2) {
//login
}
Keep in mind that password is the salted and hashed input and password2 is the Salter and hashed pw in the database...
Who needs passwords am I right?8 -
'Yay!! My program runs and is giving expected output.'
** Professor gives large input file **
Segmentation fault (core dumped)
'FML'
(My story in every algorithms lab)5 -
Mother fucking SQL, fuck mathematicians, fuck every thing!
So let's supose we'd only need the first char of a string. Every, and I mean fucking every (php, java, javascript, ruby, python, haskell) fucking language, uses something like `substring(input, 0, 1)` as it knows the input is nothing more than a fucking array of chars, otherwise known as motherfucking String. Logically the offset for the first char is 0.
Enter SQL, there you need to put `SUBSTRING(input, 1, 1)` because fuck every one! Fucking math guys who developed relational algebra on which (most) databases are based on (I love you for it, but come on you fuckers!), Decided that the first character should be at position 1...
Fuckers6 -
My manager wonders why I don't respond to people in a timely fashion.
I'm watching 83 Slack channels and private messages, I get 45 emails an hour, I'm on-call, and I have 125 servers to monitor.
Number of Jira tickets I received in the last 3 days? One single fucking ticket.
Open a damn ticket and I'll shove you to the bottom of the backlog, just like everybody else... I mean, I'll be able to track your request and not loose it.7 -
DatePickers should be a W3C standard handled by the browser. We shouldn't rely on JavaScript plugins to do this basic input stuff8
-
I sometimes put "[Object object]" in input forms, in hopes of making the devs debugging it lose their freaking minds.8
-
Our team is developing a online e-commerce application. Since the owner uses Last Pass and doesn't like the extension icon in input fields, he asks the developer team to install the extension and ensure Last Pass was disabled for all input fields, password and usernames included, across the site. It was unacceptable to ask him to disable it though the extension menu.6
-
We (as new hires) had to add a fallback logic for input validation on every input element using only JSP and Spring controllers just because the client still uses IE6 and fucking disables Javascript!!5
-
- I was typing a huge rant on devrant finished my story 2000+ characters.
- filled in tags..
- And clicked on the dark part outside of the input field!
Whole story gone! FML!8 -
I wanted my colleague Mathew to write a background process on running powershell scripts at random intervals, based on input files...Guess we will call it Matt Daemon1
-
I don't understand all the buzz around chat bots, they are literally just command lines with voice input6
-
Windows: No internet connection.
Me: Runs troubleshooter.
Windows: Problem found and resolved: Default Gateway Server is not available
Me: Wait.. since when can windows fix user input?!
Windows: Still no internet connection4 -
Cross platform terminal library is just about complete!
Here's the same program running in both Windows and "Ubuntu" (WSL, but it's using the ncurses back-end nonetheless)
What my library does:
- Double-buffers the console for drawing (like curses does)
- Translates input into a standard structure (Linux and Windows have different input systems, obviously)
- Does the same thing for output
- Even supports color!2 -
Updating code for big client.
Find that they are not encrypting passwords in the database and are not sanitizing user input from forms.
Do not trust the user!2 -
Our UX guy today presented a prototype of a new UI where users can declare an order.
Under the categorie "measuring unit" used to give the specification of mass or volume. He gave the following options
- kg
- litres
- m^3
- m^2
- others (which would allow the user to input anything)
Wtf why do you give the user the option to input anything. So we had to explain to him what SI units are...17 -
I’m writing funky code. I hope no one notices.
For instance, I needed to add a function which returns whatever is input to it.16 -
Let's talk about input forms.
Please don't do that!
Setting time with the arrow buttons in the UI.
Each time change causes the page to re-fetch all the records. This is fetching, parsing, rendering tens of thousands of entries on every single click. And I want to set a very specific time, so there's gonna be a lot of gigs of traffic wasted for /dev/null.
Do I hear you say "just type the date manually you dumbass!"? I would indeed be a dumbass if I didn't try that. You know what? Typing the date in manually does nothing. Apparently, the handler is not triggered if I type it in manually/remove the focus/hit enter/try to jump on 1 leg/draw a blue triangle in my notebook/pray3 -
Dear React Component,
Everyone else is fine.
Why is it when someone decides to enter some input in you, you freak out?
-N00bPancakes
Dear N00bPancakes,6 -
I was shocked when one of my university teachers said there was no difference between strcmp(input, exit); and strcmp(input, "exit");1
-
Gotta love going to a support forum and going through three pages of literally nothing but "I'm having this issue too" with 0 input on fixing said issue.
Fucking lovely5 -
That moment when you're doing regex to parse regex expression stored in a file whose name you found using a regex on input. Regex-ception1
-
Here's an example of what happens when you don't sanitize your input.
The software in question runs in the user's browser and is used to display text from a Twitch chat.
https://youtu.be/2GtbY1XWGlQ2 -
My very first staggering steps with programming were made with Basic, and commands like INPUT that allowed me to create simple text adventures. As silly as it might sound, my biggest hurdle was to figure out how to make realtime action games, reading input from any sort of user device (using GET and JOY) without waiting for input, and designing game cycles in such way that they gave the impression of multitasking (keep in mind there was no such thing as threads). These machines and the Basic interpretor were extremely slow so making anything move a little...er...smoothly, let alone creating a game, was a challenge in itself.24
-
Install a little tool on all machines that randomly discards every ~200th keyboard input.
Watch them suffer.5 -
Lost half the tip of my thumb to a motorbike chain. Can't code for a month. :(
The boredom is killing me.
Why isn't there a swipe keyboard/decent voice input for programming?8 -
"Isn't the search feature I want just an input field and a button? Does it take so long to implement?"
-from a boss to my colleague. I told him to quit.3 -
!!psa
Terminator's broadcast feature was sending duplicate input to all non-focused terminals yesterday, and it was pissing me off.
After some digging and research, it turns out the ibus daemon was the cause. If you're having this happen, track ibus down and kill it.2 -
This.
Not the worst but almost all of us (including me) handle strings like fucking morons.
If the input doesn't need to be an exact match we use a explicit comparison operator, when the input should explicitly match we do a loose comparison operator.
I'll format the crap out of a number, convert it, validate decimal places, check for float rounding hell, give it a absolute value and return it correctly formatted for the users locale but half the time I forget to trim their input. 🤦♂
Like I said - just a tad fucking moronic isn't it?3 -
Why can't we program from thought instead of keyboards... It's fucking 2016.
Maybe keep mechanical keywords though :)9 -
Just right now:
Management: How's the feature going?
Me: The backend is done. Here's how the front end looks so far...
Management: What?! No! Where will they input the units? What about the input#2? and the graphs?! You were just not going to put that?
Me: ... this is how it's lookin so far. The deadline isn't until next week. I'm actually pretty ahead of schedule.
Management: But what about button #2 and #3? And input #4?
Me: Yes, it's all planned. It's not done yet. You asked me how I'm doing so far. Of course I haven't finished.6 -
I can troll all day by opening Devtools on a browser and change <input type=“password“> to <input type=“text“> they think i hacked google, facebook and their email acoount
-
You know that USB joke... well you see this cable fits both ways... Sort of except one doesn't work and will if you force it I guess u could break the input15
-
Haven't used it since and hopefully never will again, but understanding recursion and keyboard input in Assembly (uni project)
After a long (4 days) sleepover with my friends, with 14 hours a day of slamming our heads against abstract registers, we could finally program the factorial and take floating numbers as input and output them on the screen. It was nothing but pain, but the moment we got it, the sky had opened before us :D
Never again3 -
UX quiz:
a) trim whitespace characters from credit card or bank account input
b) refuse transaction, show error message: "no spaces are allowed in the card number"13 -
I just created a free Spotify account using the email spotify@spotify.com. The leisurely breeze that is the input validation team's work at Spotify.2
-
Refusing to escape user input in shell commands because "it's the responsibility of the user to insert safe input".
-
that awesome feeling when you run
iptables -F
and ssh just freezes.. And then you notice that last iptables -S printed: -P INPUT DROP
And it's someone else's server you have borrowed :D1 -
Who makes monitors which can only change the input if there is a signal on the currently selected input?
Monitor on -> VGA -> No signal -> Going to sleep
Like, let me change it to something which has a signal instead of directly going to sleep again?9 -
"How would you reverse a string?"
One of the best Java interview questions I ever had! (no kidding)8 -
GOD DAMN THE STUPID IPTABLES, aaaaah!
Today I learned that
iptables -I INPUT -i !lo -j DROP
and
iptables -I INPUT ! -i lo -j DROP
are two completely different rules, the first of which doesn't work (in ~99.9% of cases)
yet both pass and get added to the firewall. And both rules show exactly the same in the state listing (iptables -L -n -v).
And I was wondering why the hell the firewall wasn't working...8 -
Tester raises major "bug" about fundamental part of the system 1 week before sign-off....
What was it you ask?
"This field is validating my input and is showing an error"...
Me: "But sir, you have pasted text into a number input!"5 -
"Got a new soundcard yay, lemme Install it!"
*5 mins later*
"why won't it give me sound ffs, the input works just fine"
*5 mins later*
"Great, sound output works"
*taps mic*
"oh ffs..."
*5 mins later*
"yay, input now works"
*puts on some music*
"ARE YOU FUCKING KIDDING ME WHINEDOWS!?"5 -
One day I want to replace all "ERROR" logs with "FUCK":
09-31-26: FUCK: Database not initialized.
09-31-26: FUCK: Unable to parse input.2 -
androidx.activity 1.0.0-alpha01 release notes:
"Pending input events (such as clicks) are now canceled in onStop()."
Welcome in 2018! It just took 10 years to fix this ... better late than never 👍1 -
!rant
That feeling when the company you only started working for a month ago appreciates your input!2 -
FML, I am the most senior member of my department, everyone have a questions for me, everyone need input from me, everyone cannot exist for an hour without my input. Including my manager who picks my brain on the things that he tries to research. Send help..9
-
my frontend colleagues always keep amazing me with their create way of writing code:
```
const input = "a";
const result = {
"a": () => console.warn("A was selected"),
"b": undefined,
"c": () => console.log("hello")
}[input || "c"]?.();
```
Poor man's switch construct ... (facepalm)16 -
Recently had to implement some microbenchmarks for a project. First time I ran them, I thought they had gone stuck. It turned out they weren't, but the processing took forever.
Some smaller benchmarks revealed that runtime was not scaling linearly with the input size as one would expect for the problem. It turned out that code was iterating over the input to find corresponding entries in the output.
We changed the processing so that it creates the output in the same order as the input and just compare entries at the same position. With that we were able to cut runtime from a few hours to a few seconds. -
Wondering what the hell is Windows doing when there is no processes yet still lags on keyboard input.2
-
Just found out the crazy bug I've been hunting the past two days was because I simply had the wrong filepath to the input and wasn't checking that.
So how's your guy's day?1 -
Manager:
Hey this client sent us a list with all of their employees in this format... we would tell them to input it themselves but they're a pretty big client, so could you do it?
Me: Sure
*3 hours later*
... why am I taking so long...?
I look back at my code, and see that I've done a whole framework to input data into our system, which accepts not only the client's format but it's actually pretty abstract and extensible for any format you'd like, all with a thorough documentation.
*FACEPALM*
Why can I do this with menial jobs and not for our main code?3 -
When a client asks you to make a form.... With 6 input fields and about 9 output fields.
Cheers buddy, I'll just make the rest up shall I?!?
FFS!2 -
function isBool(input) {
return (mixed_var === true || mixed_var === false);
}
at least this crap wasn't used anywhere in the code base
#gemoftheday #wtf -
Turns out
if(double.TryParse(input, out double value)
{
//Do something with value
}
can't be used in compilers using C# versions prior to 7.0. Reason: → out double value ←
...k den7 -
Fuck me why do my unit tests pass with garbage input.
I can't go into a long weekend with this shit in my head rent free.3 -
If Skype 4 Business could stop changing the control names for their input fields, randomly, that'd be great.5
-
Can't someone just write some sort of Programm that gets project adjectives as input and outputs some nice project names. That would be super awesome. How do you create your project names?5
-
// Task: add one to the input number
// Sane people:
// print(int(input())+1)
// Me:
n = [*(reversed(bin(int(input()))[2:]))]
tmp = ""
for i in range(len(n)):
tmp = n[i]
tmp = "1" if tmp == "0" else "0"
n[i] = tmp
if tmp == "1":break
if tmp == "0":n+=["1"]
n = "".join(reversed(n))
n = int(n,2)
print(n)7 -
Checking for a hardcoded password and submitting User and password in a hidden Input each time.
Didn't know about Sessions back then -
Not adding input validation to that one page that time.
I knew my users were bad. I knew they'd fuck up. But I trusted the spec I trusted them.
Never again. -
So I wrote an algo in python3 for a challenge in codechef.com but it raised this exception !
If I put the input() built-in method in a try/catch , how do i know what the input was in order to pass the test case?3 -
IPMI...
2010....
Java Web...
Oracle JDK needed....
Oracle JDK Download requires Oracle Account..... To circumvent as I don't want a motherfugging shitty oracle account tons of googling and loading shit from not so trustful pages.
TLS 1.0 and WebJDK require Internet Explorer.....
And an even older version of Oracle JDK 8....
Broken keyboard input....
As on Laptop for Windows / Internet Explorer additionally struggling with keyboard...
Mounting SMB Share requires password change, as my password contains invalid characters....
Finally getting shit to load GParted...
Taking fucking ages to load.
Broken keyboard input, no pasting.....
Chrooting / input becomes a 15 min exercise.
Actual input necessary on chroot: 1 command.
Actual time needed to get there : 2 1/2 h.
*sigh*
When that one old machine dies noone was aware of. And this one old machine is only accessible via an IPMI... As noone even knows where that machine is.
Weekend dead. Weekend is so fucking dead and overrated.2 -
Hi devRant, meet the unresettable computer. When you try to reset it, it asks you for a keyboard layout...BUT YOU HAVE NO INPUT DEVICE TO ANSWER! Fucking great...3
-
Question: Have you ever worked for a toxic company? If so, did do you do something about it? Any tips?
By toxic I mean the abusive kind, where racism and sexism are "just jokes" and where clients are essentially scammed into buying software that doesn't do what they think it does.8 -
Debugging a previously employed intern code for hours (poorly written JavaScript). Found out they were comparing the exact string value of the input boxes. #smh5
-
That facepalm moment when you input shutdown now in your own terminal instead of the one in the ssh session.😑3
-
What the hell is wrong with the browser on iOS....
For Christ sakes almost no input attributes work. I have a Sign Up feature that validates passwords with a pattern attribute; doesn't work, required attribute; doesn't work, input type number; doesn't work.
What the fuck is wrong with this thing. Even Internet Explorer knows what those attributes means. Absolute joke now i need to implement it manually. Fuck off apple.11 -
Someone figured out how to make LLMs obey context free grammars, so that opens up the possibility of really fine-grained control of generation and the structure of outputs.
And I was thinking, what if we did the same for something that consumed and validated tokens?
The thinking is that the option to backtrack already exists, so if an input is invalid, the system can backtrack and regenerate - mostly this is implemented through something called 'temperature', or 'top-k', where the system generates multiple next tokens, and then typically selects from a subsample of them, usually the highest scoring one.
But it occurs to me that a process could be run in front of that, that asks conditions the input based on a grammar, and takes as input the output of the base process. The instruction prompt to it would be a simple binary filter:
"If the next token conforms to the provided grammar, output it to stream, otherwise trigger backtracking in the LLM that gave you the input."
This is very much a compliance thing, but could be used for finer-grained control over how a machine examines its own output, rather than the current system where you simply feed-in as input its own output like we do now for systems able to continuously produce new output (such as the planners some people have built)
link here:
https://news.ycombinator.com/item/...5 -
What happens when you feed an LSTM the Godfather movies as input?
It will give you an offer you can't refuse.
Credit: Twitter1 -
I made a script that performs some analysis on data from a trading card game tournament and I would appreciate your input7
-
Working on a big project with lots of legacy code and terrible code. Full of jewels like this:
$('.form-item-to input').parent().removeClass('isOpen');
Man... .form-item-to IS the immediate, direct and only parent of the only input child!!! -
http://a/b[]”s escaped with URI.escape aren’t necessarily valid input for URI.parse
URI.parse(URI.escape(“http://a/b[]”))
=> URI:InvalidURIError3 -
When I accidentally move a folder inside another in Windows File Explorer when all I wanted was to open the folder.2
-
OpenCV is like an USB port: You never have the right input format and it only works after converting the damn thing multiple times!
-
Anyone tell me...
what is wrong?
https://gist.github.com/cozyplanes/...
<!DOCTYPE html>
<html>
<body>
<input type="text" id="username" />
<input type="text" id="subtext"/>
<br>
<button type="button" id="create">Create</button>
</body>
</html>
<script type="text/javascript">
var username = document.getElementById("username").value;
var subtext = document.getElementById("subtext").value;
var url = "https://devbanner.center/generate/...;
document.getElementById("create").onclick = function () {
location.href = url;
};
</script>28 -
First time today trying a sensory deprivation chamber.
All I could think was
"error no input signal"4 -
Things I do when I'm coding in C
Laugh like a stupid 10 year old at STD in stdio.h (Sexually Transmitted Diseased input output)
Keep trying to type studio.h instead of stdio.h1 -
I tried this on mobile and the delay isn’t as noticeable as I’m a really slow mobile typer.
https://input-delay.glitch.me/5 -
i'm making my python prof wanna strangle me again, it's 100% the same as the example output, for those wondering why i do this to him it's because he said he "favors speed over readability" so i'm doing as he asks
code:
print("\nThe cost of the item is "+str((float(input("Enter the retail value: "))/(1+float(input("enter the markup percentage (e.g. 0.9): ")))))+"\n\nEnd of Report")17 -
Since Friday devRant posts where errors are introduced by very dumb things like commas have stood out to me.
Today's error fix. Line 1352. A string input defined in the spec file was set for 13 length. The body file had 12 dashes to represent this input.
Really, one dash, four days to solve.
Oh and Unix over Windows because my compiler on Windows didn't catch it but the Unix one sure did which is how I found it. -
Guys. Sanitize the Tags input length. Here on devrant. Call the devs, I don't know who they are...8
-
why the fuck no client underdtands that a native select input cant be styled to show fairies and angels. and the same goes with many other browser elements.1
-
/**
* @fixme Properly escape this input, but for now str_replace(); will do.
*/
Ah, the good permanent temporary solutions.
fyi. The file in question has been untouched for 3-4 years. -
by simply making the bias random on the second input for a two bit binary input during activation calculation, it's possible to train a neural net to calculate the XOR function in one layer.
I know for a fact. I just did it.16 -
One thing I hate about laptops is touchpads. Another thing I hate about laptops is the point stick and its buttons. Fortunately, these can both be disabled, but Dell's solution for this has some usability issues. What can't be disabled though is the third thing I hate about laptops: The keyboard. Sure, it is made small to give the laptop nifty and portable outer dimensions. Yet, there is like an inch border used for nothing on each side of the keyboard, and if you have to carry along an external keyboard how portable is that?10
-
TIL the CSS attr function copies the attribute's input to the pseudo-element's content, awesome! (thank you medium.com devs)1
-
I've just realised, after a couple years of node.js I still don't know how to get command line input.3
-
Friend comes over.
Friend: "Should I declare this as long or double?"
*Shows me code, requires user input for that particular part.
Me: That's VARIABLE
*dies laughing1 -
- First logon on the support website
- Input pregenerated password
- Password expired
- Input new password
- Password invalid
- Try different passwords
- I realize that the suggested length of the password (8 char) is also the max length
- Input eight character password
- Password invalid
- Input the pregenerated password
- Password changed1 -
When you need input from your seniors to run a script in prod and none of them are comming in to work that day :(2
-
If you write an editor or input field, and do not respect our Ctrl+Backspace expectations, I will turkey-slap yo ass, bitch.
-
I have working on a new website for a client that interfaces with their internal systems, meaning we must collect the data fields required by the client. A look over the designs reveals such huge inconsistencies in the data input that we may as well not have bothered designing it.1
-
my manager pings me to get info on stuff he's coordinating with others.
such as, it this possible to do? what's the estimate? what's the flow?
and then he pawns it off as his own input.
and when the information flows back to me, I hear folks saying that he came with this idea/estimate.
maybe it's a typical manager thing to use engineer's input as their own grasp/knowledge of the project. at least they should extend the courtesy of acknowledgement.7 -
Decided to enter a programming context. Couldn't read the input for the first problem. Tried different language and reading the input looked even harder. Decided to go to sleep.1
-
Getting a file input to work in an Android webview was an unnecessarily complicated process.
Cheers Google...2 -
I really should start using a password manager but I have no idea what one to choose, anyone have any input?
I'm thinking 1Password at the moment12 -
I hate naming variables.
DEVICE_INPUT
Is it input of external device or input of my device? Should I read from it or write to it? Help... -
Do NOT try to re-implement input type="number" but with nicer formatting. Do not even think about it. DO FUCKING NOT. It's a trap.9
-
!Rant
I stumbled upon this github repo , thought anyone working on a web app could get some tips from it :
https://github.com/FallibleInc/...
Hope this helps.3 -
Does gradient descent in artificial neural networks apply the most changes closest to the input layer?6
-
Out of everything in this assignment, I just know I'll lose more marks for shitty variable naming than any missing features.
Commenting? Perfectly acceptable. Use of functions and classes? Perfectly acceptable.
Variable names? perfectAcceptableMaybeFileOneButAsAString
I don't get how I'm so shitty at it! I currently have shit like file input, file input as string, file input as vector, I didn't know that would be the hardest part!1 -
I'm less familiar with JavaScript, and by extension, I'm less familiar with JS Frameworks. So I needed to add inputs from three <input/> and show addition in fourth <input/>
So ripped off a SO answer, didn't work, though his JSFiddle is working perfectly.
Ripped off another SO answer, but this time jQuery, but that didn't work too.
the cycle continues till I find that I do not have a id="" in my code and I'm trying to use getElementById.1 -
"hey, write us a simple interface for this shell script.."
script:
- input must be a file, does not accept loading through stdin/redirect
- accepts relative path input from one specific directory only
- fails if provided absolute path
- even though it fails, it still returns return code 0
and every time we've tried to open up a topic of programming practices we got slammed with "we're ops. you should be glad they're doing at least some scripting"5 -
JavaScript engine trolling: input field in html defined as a number but JavaScript insisted it was a string! But only that one field. That is same as the rest.2
-
I hate touchscreens!
Far too often, nothing at all happens when "pressing" a "button", and when something happens, it's not at all what you wanted, it's like touchscreen devices have a will of their own.
Maybe touchscreens will evolve and actually become useful in the future, with a technique for reading input that works for everybody and not just for the majority, and with tactility, i.e. through 3D morphing of buttons, switches and wheels, controls that you can grab, feel and hold on to.
Till then, I'll dismiss touchscreens as the toys they are, no good for anything serious.5 -
That moment when you settle for Consolas, after trying 13 diff mono fonts, because you need ClearType so that Office apps don't suck...bye bye Operator Mono...Incosolata...Input... *snif* *snif*10
-
Hey. Need to beef up my portfolio as well as gain more experience.
If anyone needs some design/styling help or input please hit me up!!
Doesn't have to be paid actually.7 -
Finding this in the documentation - //skipping index that are multiples of 10 (multiples of 10 create problems as the input IDs) if ( $input_id % 10 == 0 ) { $input_id++; }
-
Currently debugging why some clients text boxes are lagging severely on input. Fingers crossed it's not my JavaScript I pushed last week..4
-
Lesson of the day... Always validate your input parameters, every last attribute of your parameters.2
-
Windows 11 kinda defeated me (although probably by my own fault of installing it on unsupported hardware).
I’ve been having horrible input lag whenever my system has been doing something CPU intensive - gaming, even copying files, to the point where I would have 2 second delay between key input and key being registered by the system.
I reverted back to Windows 10.3 -
I wrote a stored procedure and declared the input as varchar instead of varchar(100). everything seemed to be working. later on we noticed that the procedure only saved the first character of the input (a user form). unfortunately we found out first when the monthly form reports where issued. a whole month of incomplete forms from our users. the client wasn't happy.2
-
That moment that quite a few people want a CLI tool for devRant but very few actually have input :p
I love my job/hobbies.
About to start (or resume) development on the CLI tool, if you want to provide last-minute input you can do there here: https://github.com/ChappIO/devrant/...
or here: https://gitter.im/ChappIO/devrant5 -
Hey everyone 🙂
I’m looking for a little input on a project I’ve had in my head for a while.
I want to make a schedule app that would cater to personal, work and school schedules alike, and give points or rewards for completing tasks on time. Like a reward kind of system.
What features would you most look for in a schedular / reminder app?6 -
It reaaaally annoys me when my business logic is sound but the data is corrupted.
For example, find duplicates in a HashMap<String>.. but I didn't take into account the input could contain a space either before or after.. so I end up wondering: if a HashMap only contains unique keys, how come the count of items in the map is the same as the count of the input keys?! Well.. spaces were the culprit.
"12345" != "12345 ".. and therefore the Map sees it as two distinct keys..
What an annoying bug.
Lesson learned: 1) Sanitize input first and never trust it. 2) Never make assumptions16 -
Poll time/input requested. Multiple assignments in one statement: yay or nay? For a (painfully) simple example:
a = b = true;
vs.
a = true;
b = true;7 -
My project will persist anything.
Anything I input in a form.
Anything
but email addresses. And when I load something with email already registered, it erases it.
How do you boomerang a PC ? -
First post on devRant... Aaaaand it's university hw... I can't wrap my head around this...
So, the problem is: I have to implement writing and printing 64 bit decimal integers (negative and positive with 2s complement) in NASM Assembly. There are no input parameters, and the result should be in EDX:EAX. The use of 64 bit registers is prohibited.
There is a library which I can use: mio.inc
It has these functions:
- mio_writechar (writes the character which corresponds to the ASCII code stored in AL to console)
- mio_readchar (reads an ASCII character from console to AL)
It also has to manage overflow and backspace. An input can be considered valid or invalid only after the user hits Enter... It's actually a lot of work, and it's just the first exercise out of 10... 😭
The problem is actually just the input - printing should be easy, once I have valid data...
Please help me!3 -
When creating a new indie game with no budget start really really small. Because it will grow faster than you can say 'input mapping'.
-
!rant
This is what I do every time I feel like garbage.
class Main:
def feelsgood():
x = input("Type your name")
print(x + " is awesome!")
Main.feelsgood() -
Trying to encode human readable XML text in a HTML doc.
Sometimes you just give up, wrap the whole thing with a string, and set the value of an disabled input to the string. -
New feature request that could be unecessary by client just sticking to one of 4 different very similar input formats instead of many off the cuff formats, that conflict and i cant guess let alone a computer. But i present an outline idea of the solution with his specs
I didnt complain just told him what needs to change and what our constraints will be how the info is interpretted etc
Client says "dont spend time on code for that feature.. stick to other original work for now" ! omg hes getting it! Sweet. I only wasted an hour this time, and if he does want the feature, we have an agreed spec for it. We can get back to handling the customer level shit and maybe he can make some more money finally.
Scope creep plus 0, me plus one. Scope creep still in thr lead by a lot. Oh well. Still, this guy is getting more tolerable -
Do you know of innovative ways to
1) control a float with a keyboard
2) monitor a large number of variables and control others?
I want to emulate the functionality of a cockpit with all the various displays, knobs and switches, but with a keyboard and mouse.1 -
stop using arrow function everywhere!!!!!!!
what that is mean ?
fns.reduce( (prev, fn) => fn(prev), input)
Are this is `fns.reduce` with two parameters
Or arrow function that return `input` variable.
take your time to visual parsing this crap4 -
Why is the new input system in Unity disabled by default? Just spent a good hour not understanding why it didn't catch any input only to find I should've called inputManager.Enable() on it.1
-
Please share any links on AI creating code based on text input. Let's see how many years we have left as developers.15
-
if reverse_engineering > coding_from_scratch:
more_fun()
else:
also_fun_but_not_so_l33t()
resp = input('anybody feels the same?')
# hopefully pep8 compliant1 -
Rant.
Why so many people complain about this lack of a 3.5mm jack? It's 2016 and we still have that fossil of a tech from the early 20th century. A digital device with an analog input... I mean, come on! It's for the future.10 -
A random idea that I have a while ago but don't know how to make it: a ML app that can detect if the input image is porn or not.12
-
Why don't people use Ctype.h in C for verifying whether the input is alphanumeric or not? Why bother with the long ass if, when you can just have the result with a simple function?3
-
I started working with Luigi, the workflow manager for a data-science project. Any input on how to test the Tasks or how does it compare to Airflow?
-
Thanks god bash scripting exists.
Saved my time from running manually a C program with input files to check the output that would take me at least 1H. -
My instructor:
start
Declarations
num test1
num test2
num test2
num average
output "Enter score for test 1
input test1
output "Enter score for test 2 "
input test2
output "Enter score for test 3 "
input test3
average = test1 + test2 + test3 / 3
output "Average is ", answer
end
Me:
print("Average is "+str((int(raw_input("Enter score for Test 1\nInt> "))+int(raw_input("Enter score for Test 2\nInt> "))+int(raw_input("Enter score for Test 3\nInt> ")))/3))5 -
So here I am debugging a factory in an algorithm I didn't write in a library I didn't write all so I can jam an exception throw into the code to handle input validation.
I am being forced to use exception handling. To handle input validation.
What is my life? It wasn't supposed to be this way. I was supposed to work with smart people who do smart things. Why? -
I'm writing a Python script to manipulate Excel files, I'm using the openpyxl module, does anybody know how can I check if a user input is in a column, I've done this:
newItem = input("What is the new item?")
for itemChecker in inventory["A"]:
>>>>if itemChecker == newItem:
>>>>>>>>item_on = True
>>>>if itemChecker != itemNuevo:
>>>>>>>>item_on = False
if the user input (newItem) is in the "A" column of the variable assigned to an Excel file called "inventory", the variable "item_on" is set equal to True, if the user input isn't in the "A" column, "item_on" is set equal to False
what am I doing wrong, I'm not getting any errors but it always says that the user input isn't at the "A" column (sets "item_on" equal to False) even when I know it is1 -
Anyone know why a button appears on Firefox and not other browsers?
More details:
I'm currently improving a software made by another developer and can't seem to figure out why these two buttons appear in an input form for Mozilla Firefox and not other browsers. I can't seem to find the code that causes this anywhere in the source code.
The buttons are up and down, and allow users to increment or decrement the value in the form.3 -
I was trying to test the ability of the Arduino Leonardo pro micro to emulate a keyboard. Loaded a example and modified it. But I made a dumb mistake and now the Arduino types as soon as you plug it in the same string over and over. So it can't be reprogrammed because the keyboard input of the Arduino is overwriting the mouse input (which is needed to select the port)...
😡 😭
Does somebody know how to fix this?4 -
Can somebody please explain to me how in the fuck does :
{
"src" : "./template.html",
"format" : "plain",
"input" : {
"noun" : "World"
},
"replace" : "templateExampleSkeleton"
}
Result in:
format: "plain"
input: "[object Object]"
replace: "templateExampleSkeleton"
src: "./template.html"
When put through JSON.parse()???12 -
At once upon a (7 years old) time when I need to input code to cheat on AR/GameShark for playstation.
That moment just calls my nature..
To hack stuffs. lol. 😂😂 -
I like to teach sites that don't escape HTML/js in input fields a lesson, and put in a redirect. Where would you redirect them?
I tend to go SFW, like redirecting to a competitor or the NSA. -
Please help me!
I was trying to fix my fat32 partition with fsck because it had an input / output error.
It's fixed but now all files and folders are read only6 -
How to code a translator:
public string Translate(string input, string lang)
{
if (lang is string)
return input;
else throw new NotFoundException();
} -
So I had to deal with this a while ago...
/ 86972915 On focus and write new text into dropdown when is saved /
change_field_to_update : function (name){
var context=this;
setTimeout(function(){
/*Protection */
try{
var field_path=context.state.editAttribute.field_path;
context.on_field_blur.bind(context, context.state.editAttribute);
/*Improve this */
$("#info_"+field_path).parent().find(".dx-texteditor-input").focus();$("#info_"+field_path).parent().find(".dx-texteditor-input").on("blur");
for(i=0; i<=1;i++){ $("#info_"+field_path).parent().find(".dx-texteditor-input").focus();$("#info_"+field_path).parent().find(".dx-texteditor-input").focusout();}
$("#info_"+field_path).parent().find(".dx-texteditor-input").focus();$("#info_"+field_path).parent().find(".dx-texteditor-input").focusout();$("#info_"+field_path).parent().find(".dx-texteditor-input").focusout();
}catch(err){
}
},2000); -
What is Python good for? (I had to use it for the first time today and used it to process some audio input but i don't know what else to do with it)
-
Having to keep track of my paid work time in different platforms through manual input, all of which serve the same intent and purpose.
-
DailyCodingProblem: #1
Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original array except the one at i.
For example, if our input was [1, 2, 3, 4, 5], the expected output would be [120, 60, 40, 30, 24]. If our input was [3, 2, 1], the expected output would be [2, 3, 6].
this is my quickly solution in php:
$input_array = [1, 2, 3, 4, 5];
echo('INPUT ARRAY:');
print_r($input_array);
echo("<br/>");
foreach($input_array as $key => $value){
$works_input_array = $input_array;
unset($works_input_array[$key]);
$result[] = array_product($works_input_array);
}
echo('OUTPUT ARRAY:');
print_r($result);
outpout:
INPUT ARRAY:Array ( [0] => 3 [1] => 2 [2] => 1 )
OUTPUT ARRAY:Array ( [0] => 2 [1] => 3 [2] => 6 )5 -
Why the fuck we still can't remove or restyle the ugly [browse] button in <input type="file"> in a clean way ?1
-
Choosing between Mern stack and Mean Stack for a project. Maybe you guys can give me some input? Thx 😃1
-
I consistently get help tickets that don’t involve program errors. It’s just “This data that was input is incorrect. Fix it.” And I’m still wondering why my company doesn’t properly train the actual help desk people to deal with this... why am I fixing data input issues. I went to school for this goddammit.. 😂😂🤬🤬2
-
The more i use chatgpt the more i begin to understand: (speaking within dev context only) this thing can most likely answer and resolve anything IF you know What to input and How to ask it. If you ever happened to fail getting an answer you were looking for, that's probably because you haven't wrote the correct input parameters4
-
Where why opinions and thoughts are considered and not just dismissed. Truly sucks not being able to have any input on what your working on
-
Does anyone use split keyboards when working? I’m thinking of picking one up and want input from people who use them? Pro, cons??3
-
Team member takes names inputted and coverts them to slugs, works perfectly and functions extremely well.
Adds function to allow slug modifications but doesn't use regex or anything else to verify input is a real slug, application goes down over weekend and know one notices till this morning...
Always verify input both client and server side!!! -
I just fixed some weird bug in legacy code which was caused by UI that contained text input fields embedded inside of text input fields.
How can anyone even think of this as a good idea?!
Needless to say, the UI was just broken. Maybe not a few iOS versions earlier. But definitely on the current iOS.2 -
Upgraded my project from .NET 6 to .NET 7.
Looks like some kid who writes shit in JavaScript and pats themselves on the back has had some input on System.Text.Json
JsonDerivedTypeAttribute8 -
Out input web services are called webservice_out (and vice versa) so that the calling code can build a proxy client and call webservice_out.method(xyz).
And we can't change it now. Idiots. -
!rant
My xbox controller broke today. The left thumb stick is stuck at forward input even if I drag it back.
😞8 -
I cannot figure out for the life of me why my predecessors decided to make our api take xml and only xml as an input2
-
Heard at the doctors office:
Shall I just input the same data again??
... Now we just have to make sure it doesn't disappear! -
I present the nuclear option to update Node project dependencies:
https://gist.github.com/lbfalvy/....7 -
!Rant
If I'm validating a user input form should I use a hash or a encrypted string. I hope to include the user IP, header requested time plus a random number for the string.3 -
Fuck <input type="time"> and it's automatic local system input presentation, there seems to be no way to force a format(without JS) discarding the local language preferences.
I'm going to split the time input in two <select>. Peace.
PS: AM/PM system, please die. -
Need to analyse the sentiment of any given text input in C# for assignment.
Can't find a library for it but i might not be searching the right thing.
Any ideas?1 -
Every time I want to quit or leave a chat app or some kind of app that uses a text box for input, I try to type 'exit'.
-
Today I've learned: the change event doesn't fire if the content of an input has not been changed. If you have "5", select it and in its place input "5", the cursor will be moved but the event will not be fired.3
-
Why is the prettus repository package shit at handling mass inserts. The documentation says:
$this->repository->create(Input::all())
WTF does that even mean.3 -
"Stop. I’m not going to take any more input until I’ve made something with what I got. " - Merlin Mann1
-
Me : Hey Check Out This Pic SharingApp I Just Put Up
Friend : Hey It's Looking Good!
*Friend's First Text Input* : " Harambe Was Just A Gorr. . ."
*App Crashes* -
I have a longtime friend who is looking for input about the broken candidate process and how to fix.5
-
I hate when i change working code just to make it replace an input field on the page with a loading spinner effectively nullifying the value of the input and take 2 days to notice smh2
-
How do you check if your input string does not have numbers it? If not then say enter a number? JavaScript please22
-
Considering Full Sail University next month for Software Engineering.. any suggestions and/or advice?2
-
Hey there!
If some of you could maybe answer me a question about iptables, that would be great. Link to the full question below.
To summarize it, I have a sub-chain which matches packets using hashlimit and if this traffic is below 100 pps from that IP, it returns back to the INPUT chain, else the packet is dropped.
There is only one thing I don't get, the rule in the INPUT chain which jumps to my sub-chain matches a lot more packets then all my sub-chain rules together! Where do these packets go? It's like they don't match anything after that jump.
I asked this question on serverfault so here goes the link: https://serverfault.com/questions/...4 -
When your boss has you learn a new language but then doesn't listen to any of your input concern this language and acts like they know the language as well....which they don't
-
How Computer system works?
Code Input --> Result
How Human system works?
Coffee Input --> Code Output
Together we can
Coffee Input--> Code --> Result1 -
A controller action taking a string input and directly accessing the file system with it, returning the file.
-
num = float ("input a number:")
if num>0:
print ("it is a positive number")
else num=0:
print ("it is zero")
else:
print ("it is a negative number")1 -
Thoughts are not immune to the laws of physics. If your goal is to create some mental output, you need to expend some mental input.
-
Using input type time and the format is set by chrome language.
Is there any way to force 24h-format other than change locale if using a external library such as date picker isn't an option?
I have found out that South African is a locale in English with 24h-format time. -
Thinking of working on a airbnb type marketplace but for private yachts and boats! Any input and backend ninjas wanting to jump on board?4
-
Since Google is failing me...
Given a user input (string query) and a list of larger strings (like email bodies or something), what's the best way to search and rank the list of strings against the user input.
So far I have implemented levenshtein distance but it doesn't really seem to do extremely well. (Short strings rank very well against each other, whereas long strings **containing** exact matches will go lower in the list)
Should I be splitting the input and the list by word and then averaging the distances?
The only thing I have tried is removing complete non-matches from the list by not including them if the distance is equal to the length of the largest string17 -
What if we could write the problem statement and the AI would write the code for us, or give the program taking the outputs as input 🙄🙄🙄🙄4
-
I can't count likes form my database for an specific post. I made a function that will count all the like by "post.id". It shows the like on the web page when I clicked on like button and it disappears when I refresh the browser. but likes are still remaining in the database but it won't appear on the webpage.
Here are the flask code:
def like_count(post_id):
if request.form.get('like') != None:
if (Like.query.filter_by(post_id=post_id).all())==[]:
return 0
else:
return Like.query.filter_by(post_id=post_id).count()
else:
return 0
def dislike_count(post_id):
if request.form.get('dislike') != None:
if (Dislike.query.filter_by(post_id=post_id).all())==[]:
return 0
else:
return Dislike.query.filter_by(post_id=post_id).count()
else:
return 0
Here are the html code:
<!--dislike-->
<form method="POST" action="">
<input name="dislike" value="1" class="input-style" >
<input value="{{post.id}}" name="post_id" class="input-style">
<button class="fas fa-thumbs-down" class="like-button" >
<div class="like-count" >
{{dislike_count(post.id)}}
</div>
</button>
</form>
<!--like-->
<form method="POST" action="" >
<input name="like" value="1" class="input-style" >
<input name="post_id" value="{{post.id}}" class="input-style" >
<button class="fas fa-thumbs-up" class="like-button" >
<div class="like-count" >
{{like_count(post.id)}}
</div>
</button>
</form>8 -
I think the Franz platform has the weirdest bug I have ever seen on frontend. For the unknowings, Franz is basically a wrapper for chrome instances that lets you gather up all your teams, slacks, emails and the like into a single desktop application (and it eats your memory like the memory monster).
Anyways, when I type a message somewhere, the input will sometimes lose focus and focus on another input in another chrome instance. So for example, I type a message on slack, the input loses focus (which I don't immediately notice) and the rest of the message is typed out in teams instead.5 -
I hate it when devs use value attribute instead of place holder especially when you know that input text is definitely going to change.
-
Fucking no one appreciates my input or feature suggestions.
I'm supposed to do only what the higher management says and nothing else
I'm sick and tired of being a robot slave vomiting code... urrrggghh -
Hey, I'm new to java. I was just practicing and found that don't know how to use Date to get an input. Any easy way? Searched almost for an hour. Help!1
-
Which app can i use to run cp in Android??
In many apps i cant make the programs like enter a number for input and all☹5 -
So I was writing some text and from time to time it moves me to beginning of line, but I am dumb and miss keys sometimes. I was trying to write fast, click something wrong and bam - fucked my text.
But actually fucking not, there is some shitty bug on my Manjaro machine for sure and usually hard to reproduce (happens in Firefox at messenger, libreoffice at writer) and now on fucking godot after two seconds it moves me to start of line every fucking time.
I am not even sure if it is just Manjaro stuff, because I don't remember if it happens on Windows, too -
Help. Has Python changed in version 3.6.5, or is there something wrong with my code?!
The following doesn't work:
import os
def main():
console = input("...")
rom = input("...")
The following does work:
import os
console = input("...")
rom = input("...")
def main() :12 -
I am developing an app for industrial automation that requires frequent user input. I am exploring the idea of using voice input to input data. The problem is the application will never have access to the internet during use. This is due to being in the middle of nowhere and security requirements. So I am looking for voice control libraries/systems to control an app that can be installed on a Windows 7/10 machine.
Has anyone had any success with a completely self-hosted voice control system?1 -
Can anyone please help me to solve it......
Implement c program to input an augmented matrix. Find the first pivot matrix.9 -
Is there any JS framework by which i can make tree structure in frontend and where each node is input box, also addition of node(input box) should happen dynamically(with click)5
-
How the fuck do i save metabox input value in database.
This is my code:
add_action( 'add_meta_boxes', 'Wp_metabox' );
add_action('save_post', 'wp_custom_save');
function Wp_metabox()
{
add_meta_box(
'wp_custom__metabox',
'Custom Meta Box Title',
'wp_custom_metabox_callback',
'slider',
'advanced',
);
}
function WP_custom_metabox_callback($post)
{
<input id="text"
type="text" value="text" />
}
function wp_custom_save($post_id)
{
$text = sanitize_text_field($_POST['text']);
update_post_meta($post_id, '_text', $text);
}
How in the fuking world do i get the input value of the field and then save the value in database? There is no documentation for this shit.1 -
How do they parse and arrange the input and then generate the output with neural nets for talking bots?7