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 - "tab"
-
Piece of shit admin installed a chrome plugin which changed the new tab to no internet default image ... The whole office was pranked5
-
It happened.
I wrote "you're missing a tab in your python code" as an answer on StackOverflow.
I was downvoted AND told that I wasn't correct: it was missing 4 spaces and not a tab, according to the python guidelines.
Now, I haven't read them, but my Richard Hendrix fucking intensifies.
Fuck spaces. And if python guidelines talk about spaces, fuck python guidelines too!32 -
dfox: "Let me make life easier for them. Introducing tab bar!"
users: "tab bar is hard to reach on top. please move it to the bottom"
dfox: "But you never complained when the hamburger was at the top-left corner. nvm I'll do it"
users: "ugh, where is the material design. Move the tab bar to the top. Make it scrollable"
dfox: "sudo rm -rf /users"24 -
Friend: Hey! How do you uh... alt tab out of the game?
Me: *wtf* Uhhh... You press alt tab.
Friend: *after 10 seconds* Oh! That’s why it is called alt tab.
Me: *crying laugh emoji*5 -
You know those sassy ads that pretend to be interactive but open a new tab instead? Well that's how they named their divs4
-
My boss literally spends half an hour finger-fucking his phone on the mobile site to find "bugs", that I can't replicate. A combination like: swipe, pinch, landscape, portrait, back pinch, open new tab, close tab, ash cigarette on phone, dunk in toilet, dry, double tap... Aha I've found a bug, there's 0.5 pixel line of space between the bag header and the browser bar.14
-
*opens new tab*
*types 'google' into URL bar*
...is navigated to google home page...
*proceeds to enter desired query into the same URL bar*5 -
That moment when you rage-press TAB multiple times on a bash console but that path REALLY doesn't exist..6
-
Oh RLY? you want me to confirm my email address?
Shift+Tab - Ctl+a - Ctrl+c - Tab - Ctrl+v
Like a ninja...
could actually HEAR the knife swishing sounds there6 -
Just had a massive clear out of useless tabs i had open. its been so long since I've seen blank space in my tab bar :')9
-
Ctrl + W allows to select the word, then the sentence, around your cursor inside a JetBrains software.
Ctrl + W allows you to FUCKING close the current tab in any FUCKING web browser14 -
After a decade of coding as a hobby: Shift+Tab lets you move indentations in the code to the left.11
-
Apparently you make more money if you use spaces than if you use tabs
https://stackoverflow.blog/2017/06/...9 -
Dev of my team coding on Idea
Seeing him using space-bar to format copy pasted lines of code
Me: why don't you use ctrl+l shortcut?
Him: I don't use shortcuts while coding
Me: at least use the tab
him: nope.
He formatted 3000 lines of code with space-bar. He's not even using notepad. 😐
WHAT THE ACTUAL FUCK.9 -
...spent ~45 minutes on devrant
closes tab after gaining consciousness.
...
...
...
opens new tab
types "de"
back on devrant -
You motherfucking piece of shit application form...
I was filling a long form in a tab and I had another part of that form open in another tab.
They fucking logged me out of the 2nd tab and didn't notify or prevent me from filling up hundreds of fields in the 1st tab.
Now I have to fill them up again.
Fuck you and your stupid form. Die in hell you fucking stupid cunt. -
When you have 143 opened tabs and you feel like they are sucking the life out of you. Time to get some Oxygen !7
-
Left dev tools open while working then opened a new tab and went to Amazon. Noticed this in the HTML source.
Say hello to the Amazon Catduck.9 -
MFW someone compliments my coding ability but I secretly have a w3schools tab open in the background at all times9
-
Remembering a university lecture
Prof: "What are some other downsides of using polling instead of interrupts?"
Student: "The process has to wait until it gets polled."
Prof: "Exactly. When you click Ctrl+W, you want that tab to be closed immediately. You don't want the system to wait a few seconds for those keys to get polled and risk your mom looking at that tab."6 -
* Sets up some software
"Alright, and now to start the database"
* types "sudo systemctl start po-"
* hits tab -> poweroff.target
* Enter
...fuck me
little did I know, the database was already started...4 -
I've been coding in Visual Studio so much that when Google Chrome pops up suggested autofill options I just press tab and nothing happens.5
-
> writing important email
> switches to another tab to check something
> switches back
Safari: "This page was using significant memory, so we reloaded it."
*knife emote*12 -
>Barely ever written python before
>Gets added to a python group project
>Codes the part I'm associated with
>Runs fine after about 19 tries
>Puts it together with other people's code
>Syntax error
>Searches for the error for 2 and a half hours
>tfw other people use 4 spaces instead of a tab like I do and pythong can't handle it :(3 -
Ultimate answer to TABS over SPACES! Tab eats 4 times less battery. No global warming if we switch to TABS! Share this knowledge bomb brothers!6
-
Never ever have a tab open on production server database. Changed all users passwords by mistake. Thought was my test database.2
-
The Moment when you signend a contract at a new cool company... Good money... Cool projects... nice ppl... And then you see it... 4 spaces instead of 1 tab, what to do? Go back to my old boss and beg for my old job? Just keep using 1 tab as i did in the last 20 years of my life? Commit suicide?19
-
Have been coding all day and now writing the docs. I keep pressing ctrl+space and tab and expecting auto complete to work. So annoying5
-
Fuck our new project manager.
Literally all she does in her time is schedule meetings for others and send us emails stating that X needs to be done by date or why are we delayed with Y. Then she even manages to completely screw us with the meetings she schedules.
Today I woke up to seeing a beautiful gapless column of colorful rectangles in my dairy.... for today. And last time I saw this Monday it only had 2.5 hours of meetings!!
Now a lot of us from our team had the Friday afternoon off so it may be that she did this beautiful piece of artwork during that time, in which case she could somewhat rightfully say that we should have taken a look at it. But we actually have a convention to only schedule planning meetings for Mondays which these fucking aren't and even if she hadn't known this, who the fuck schedules a ton of meetings to Monday?! from a Friday afternoon?!?!
By the way the new pretty pink and orange meetings I have today are about actually important topics in between which I would normally appreciate to grab a tea or at least use the fucking restroom. Officially I only have a 45 minute lunch break all day.
Oh and naturally she sets up the meetings as organiser so that we can only suggest her new times and can't change it on our own.
But naturally PM lady never actually attends the meetings because she wouldn't understand shit. So when my fav female colleague, Sammy and I joined our 11am meeting, the first thing Sammy said - well after I greeted her by "wtf" - is to just leave the call on while we grab brunch.
So here I am sitting in the close by park with my brunch and thought I could use the now extended lunch break time efficiently by ranting my ass of and asking you guys why the fuck such people like our PM get paid.5 -
My tab key now requires a harder press than it used to earlier. STUPID MACBOOK. This minor inconvenience is a really major annoyance.10
-
I don't mean to fear monger or cause panic BUT
I know somebody who knows somebody that uses 4 spaces instead of tab..6 -
I managed to accidentally clear everybody's usernames and email addresses from an SQL table once. I only recovered it because a few seconds before, I'd opened a tab with all the user data displayed as an HTML table. I quickly copied it into Excel, then a text editor (saving multiple times!), then managed to write a set of queries to paste it all back in place. If I'd refreshed the tab it would have all gone!2
-
Maybe this is an actual bug. I filtered the rants bases on "top" and in the "All" tab. When I scrolled I found this4
-
Does anyone go on popular websites and inspect element and to the network tab to see what kind of server they using as a backend?6
-
Everytime a form on a website has suggestions I press tab to autocomplete it. I keep being surprised when I see it doesnt work.2
-
We might achieve world peace one day and still won't have agreed over indentation.
Indentation = TAB. Just 1 character (N spaces = N characters = more disk space, duh!). And then each dev can chose their own TAB width (in spaces) in their IDE of choice. Beautiful.11 -
I just pressed CTRL + W to close a rant, but I was reading on my phone so I closed a browser tab on my computer instead.4
-
WTF chrome/google?! Fuck you & your new designs & features!!
Anyone else got forced new grouping for tabs after the update?! Hey, you can group tabs in.. I know, I just don't want to!! It's fugly and annoying and counterproductive..
It used to work to change flags to not have that 'feature' but I can no longer force the old layout for tabs even with flags.. :/ It's driving me nuts..25 -
Full HD 27' monitor 😍😍😍 when you can divide your screen into two halves easily and there's no need to do Alt+tab3
-
Jst a suggestion...
If u devRant devs can, how about a tab in the app to jst chat with the people online? I guess that cud b nice?12 -
Q: What's a "muscle memory"?
A: It's when you open up devRant, skim through several posts, get bored, decide to visit some other website for more stimulation, close the tab with devRant, open a new tab and your hands type in devrant.com [ENTER] before you know it4 -
When you close your browser full of tabs, only to see you missed a sepered browser window, which basically nullifies your tab history. :/3
-
i noticed recently a post about putting a browser inside the IDE / Editor.
i was against it, it didn't make sense, but holy fuck is it beautiful and productive to have a tab with a browser inside of it.1 -
Oh look a new chrome update!
*Installs update*
I regret everything!!!!
Come on Google I love material design but fuck me is the new update ugly... Besides the new tab page.7 -
Had to look something up to reply to a rant, and devRant gets cleared from ram and I lose the rant... FUCK
Update: THANK YOU VIEWED TAB2 -
I'm fed up of this fight about tab and spaces.
Do you prefer single or double quotes for strings?14 -
Junior engineer asking managers on Slack about prioritisation..
Junior eng: Hey managers, I have these tasks A & B lined up and some other type of work... Is it ok if I finish A by Weds and B by the end of week or should it be done sooner? Also, is the order fine or should I prio B first?
*silence for hours*
Random dev feeling bad for junior getting no response chips in: Hey, you are doing great, that order makes sense to me and let me know if you need any guidance or have questions!
Junior dev: Thaanks and will do!
*another hour goes by*
Manager: Hi team. I have asked other engineer X to do task B tomorrow.
what the fuck. at least answer the fucking question and say it needs to be done sooner. felt bad for poor junior here. :/3 -
Wow. Can't access a news article in an incognito tab without logging in or subscribing. This happened in Firefox and Chrome in mobile and desktop views on Android.7
-
How to deter me from working remotely.
Make the Remote Desktop app now catch ALT+TAB...
Well at least it isn't winter...1 -
I see a lot of arguments out there over 2 space, 4 space and tab indents but I think the really problem are the people that double tab. Yes they exist and yes they are the real scum of the earth
-
4 spaces for indenting..not 2.
This has about a 75% chance to push a dev into a full on rampage mode.
JUST HIT THE FUCKING TAB KEY4 -
Have you guys tried the 'recent' rants tab?
It's like going back to the early days of devrant when it was unusual to see a rant over 100++ 😍6 -
It boils my blood how many times I pressed ctrl+w closing the current tab instead of saving it FUCK6
-
Weather Report: Thunderstorms and heavy downpour
Stuck at office wondering whether I really hate tab more than spaces that it wore out OR is it that I use it way too much.
PS: Currently fixing the tab button10 -
If there was one thing (and one thing only) that I wish was unanimous amongst programmers (and that we all agreed on) is that a tab is 4 spaces.4
-
Roommate's laptop.
Only 1 chrome tab open, why so many processes in Task Manager. Should I tell him to format it?13 -
Does this happen to anyone else? Load up the notifications tab, and after about a half a second there notifications all just disappear. I have to reload the tab to see them. This happens all the time. Android 8.
I'll open a report on the github page of others see this problem too.20 -
I've just found the worst website ever. After some seconds, they show a banner with the usual "agree to our use of cookies" stuff. Of course, I clicked on settings. So it opens another page in another tab. As I started to read that page, another banner was displayed. Ofc I clicked on settings. The same page was opened in yet a new tab. I think you can see we're this is going...2
-
Wtf! I was talking to my SO over the phone about House, the TV series, and now all of a sudden my Instagram explore tab contains photos from House!!6
-
Tried to open 'Recent App Crashes' tab in the Google Play Console app. Play Console crashed. Thanks Google.3
-
seeing all these real life computer setups and desktops makes me drool. @dfox and @trogus , mind if i suggest creating a tab or place to share this exquisite computer porn ?7
-
My wet dream is pressing tab when entering a path in cmd.exe and it suggests folders/files relative to the already entered path.
Like bash does it.12 -
Isn't this symbol says that when pressing the link it should open In new tab?
I kinda used to it in that meaning.7 -
Oh when did devRant start saying ++ instead of +1 in the system notifications? The notifs tab still says +1 though.6
-
Ok, I am actually losing my mind at this bad excuse of a work place.
This guy, that I had only briefly talked to in email twice before, never met or even had a video chat, opened a ticket like this:
"Hi Alt-Tab,
I hope you enjoyed the end of last week, the weekend, and the beginning of this one! All well here. I ventured to [random place in London] for the first time on Saturday – liked it."
Now. I already can't fucking stand when colleagues that are not at all close start emails with "how was your weekend?" shit because then I have to waste another minute addressing that. But this guy took it to such another level that I literally had to read his email 3 times to believe what I just witnessed.
And of course he then went on and described the issue as folows:
"Just a quick note about the issue I have - could you let me know why the calendars are not syncing?"
Maybe if you fucking spent half of the energy of you writing a polite bullshit "hello" and instead used that to actually describe the issue I could help.
Fuck off.22 -
With all of us complaining about white spaces and this weeks challenge being to write a block of code...shouldn't devRant have a "tab" key on mobile?2
-
If your website has a login wall, my visceral reaction is to close the tab. After that, my rational reaction is to close the closed tab. Because fuck you.
-
I just found out that I should be using 4 spaces and not a tab for indentation, MY WHOLE LIFE IS A LIE.14
-
TURTLEDICK
I need to know WHY THE FUCK one decides that the Esc button should TERMINATE APPLICATION WITHOUT ANY FUCKING WARNING...
Ive been playing Pokémon on a GameBoy Advance Emulator. Ive gotten used to saving every now and then, but out of habit i press Esc and not TAB to go back, and thats when I GET MANHANDLED WITHOUT CONSENT ITS NOT LEGAL FOR FUCK SAKE
Would there EVER be a case where this shit would be good to have?8 -
I was typing out a command and instinctively pressed tab to see a file list. The directory contains 15k+ files4
-
New client came asking for maintaining their Facebook tab with fb sign in, etc... they were still on the old api. We basically had to redevelop the whole thing
-
Anyone else have random channels popping up in the subscriptions tab on YouTube?
I feel like YouTube is subbing to random people for me…
Stop it.8 -
LinkedIn recruiter:
- messages me about a fantastic job opportunity
- waits exactly 3 days
- messages me asking about the cool company I work at and how I find the engineering department here
- again 3 days
- messages me saying that he has heard some amazing recent news (there were none) about the fast growing company I work at and asks how I feel about the changes caused by our headcount growth
- 3 more days go by
- today, I get a notification that this recruiter has given me random LinkedIn endorsements for some skills that I had put on my profile back in college and since then forgot about even the existence of the endorsements feature
My favorite part is that the job they had originally sent expects a few languages and other tech skills most of which I actually have listed on my profile, but naturally, he only endorsed me for skills not required for said job spec.
What kind of weird sorcery is this?2 -
PC: *37 tabs open in chrome and a gradle task running*
Me: *trying to close a tab*
PC: Bitch please2 -
There are a lot of things I don't understand in life, but the fact that I need to press tab three times in xcode to select the item in the popup tooltip is just ... I don't know fucked up?
I have a var called: isItemSelected, I need to press tab three times for it to use this option while in all other IDEs I used if it is highlighted then one FUCKING PRESS ON TAB BUTTON SELECTS THE HIGHLIGHTED SHIT !!
Fucking Apple shit -.-1 -
"...OK now if you just open a new tab, you can see the link appears there."
"What's a tab?"
It's going to be a long fucking day. -
So today Mozilla updated Firefox just to include an incomplete downloads tab? Dafuq are they thinking 😒2
-
to space, or to tab,
that is the question,
whether tis nobler to suffer
the slings and arrows
of outrageous space bar use
pressing four or eight times,
or to take arms against a sea of
manual spaces by using
the tab key, and by apposing
space bar's end them. -
I published my first ever thing! Sure it's only a chrome new tab page but I did it! Check out compTab2
-
Had a very productive day today:
1. Fixed a small bug
2. Ordered Tab S6
3. Watched the entire season of a Netflix show4 -
Et tu Chrome?
Closing a tab should kill it.
I writes code, my code somehow causes an endless loop, tab gets at 25% i7 CPU.
I tells Chrome: "end it", Chrome won't close.
I wants to see under the hood to diagnose, Chrome unresponsive, forget about DevTools.
I Ctrl + Alt + Dels it
Sad Windows user4 -
FUCK YOU AMAZON! Stop telling me my configuration yaml file contains a tab... THE FUCKING FILE DOES NOT EVEN EXIST!
-
Prequel to my previous post:
I received an offer from a startup that did not meet the originally advertised salary range. In every other aspect this place seemed like where I'd enjoy working the most and each previous interaction made a very good impression on me. So needless to say this was quite a shock.
They immediately apologised and explained the situation. They only now started to expand to and hire from my location (which can be verified) and I would be the very first person from this location (seems true too but I could only really verify this after joining). They explained the salary range I had seen was for their main hub location (accurate too) and said that the recruiter who posted the ad did not adjust it to mine. I asked why tf they didn't notify me of this earlier and they said they are super busy with everything, are new to location based salaries and normally don't check the recruiters posts as it should be her work.
Now, even if this is totally true, it was an awful sudden shock and felt a bit like a scam - totally contradicting my previous impressions.
Here are a couple of other points that I'll just sum to save time:
- before seeing the job ad I had a *reasonable* salary expectation even lower than their actual offering
- on the ad, the bottom end of their salary range far exceeded my reasonable exp.
- the relative level of my position would be even higher up the range that I have seen realised would be top 5%
- having had seen the ad, I started to have an *ideal* expectation being the bottom of the range
- in first interview I told them my exp. is the bottom end of their range +- a bit
- I told this to a dev guy who has no fucking idea about this stuff and I don't blame him but he noted this down to higher management
- generally I have not been very precise of my expectation as previously I only had lower class dev jobs, this would be the first decent.
- Hence I have seen an enormously high variation in salaries offered to me so this advertised range whilst high seemed possible
Now, with all this in mind I posted here a question about what some of you would do in my position.
I received the following group of responses:
- it's a scam, bad place, run
- it's an intentional (common) trick
- people make mistakes like this esp. startups so find out if this is intentional or not
- just decide if their current offering is reasonable for the position and location, ignore the rest
- just decide if the amount is enough
- location based salaries are retarded, don't work there (I kinda agree and also don't)
- if they can afford the higher pay in another place they should have no prob. meeting the range
- it's more important that you'd enjoy it there if the pay is sufficient for general needs
- company culture is generally more important these days
- fuck recruiters and hr people (amen to that btw)
Here is what I did:
Regardless of whether I believe them or not I hyperfocused on the potential scam/trick aspect.
I told them that every other interaction with them was positive and would love to join them but this was a really bad impression and feels like they are playing with me. I made up some bullshit previous examples of companies trying the same trick on me (which obv. never happened).
Then I said that I think to resolve this they should invite me to their main office for a day (all interviews had been online) and if after that they are still not ok to offer me at least the bottom of the adv. range then we can part ways. Otherwise this should ensure both of us that we are a good match, etc.
They seemed to love the idea and said that I should go there for x till y (3 days) and if we don't hate each other by the end I'll get the amount at the bottom of the range and they apologised again about it looking like a scam, etc.
So thanks a bunch again to those of you who provided valuable input. -
The navigation bar closes or opens a different tab when we move the mouse in any of the following positions. YES, OF COURSE IT WILL YOU FUCKING NUMPTY!1
-
I really don't understand why there's even a debate about tabs vs spaces. Why else would the spacebar be 4 times a wide as the tab key?!7
-
I wish all you frontend devs who use the keydown event to hack tab-order a very painful and very quick death.
Especially those who fail to ensure that TAB; Shift+TAB is always identity.2 -
A customer once wanted buttons that would close the mask in an interface where the only way to close the mask was to click a default "OK" button. 🤔
So in the end we implemented a script on the customer's buttons that would send a calculated number of multiple keypresses of tab, tab, tab and finally enter on the default button. 🤑
It is still running in production and I will never ever touch it again! 😁 -
I think I have little bit problem with tab management.
Please note tiny grey dots above some tabs on left side, those are tab groups...3 -
Dear @devRant, when a rant contains a link and I click it, it doesn't open in a new tab so when that happens, I have to click back on the browser which is not fun.
Can you please open the links in a blank tab.
Thank you :-*9 -
I quite like devRant's "discussion" tab. It's a shame it's hidden away in the overflow menu (at least on android).9
-
! War
I hate tabs to space, yep i hate it, nobody could ever give me a good reason to use spaces over tabs
(yes i want to have differend tab sizes on differend Plattforms/environments, my buddys all use 4 or even 6 as tab size, i only use 2. With tabs can everbody got his/her own size without reformating the whole code and driving diff crazy @all lines changed!!!111onehundredeleven)13 -
Do you too have 8 space tab character in Windows 10?
It's in notepad, cmd and other stuff.
It's fucking wide af.15 -
Why in the fuck is it so hard to see buttons when kb selecting with tab in a browser? It's like:
"Tab....Tab.....Tab Tab Tab... oops, went too far,
Shift + Tab, Shift + Tab.... fuck!, too far left.. wait, is that button actually highlighted, oh it is too, wtf."
It's 2019, why is this still a thing?8 -
From now on, I'll be using soft tabs. I didn't know editors can help me with this before. I thought all I see are hard tabs. Am I on the right path?4
-
Browser are so bloated. Why does it use so much memory?
*Closes 62 tab*
Seriously why?! Damn you modern software engineers for making everything so bloated.6 -
My Life in a nutshell
[ CMD + S ]
[ CMD + TAB ]
[ CMD + R ]
( Oh crap! not again 😤)
[ CMD + TAB ]
console.log( 'im here');
[ CMD + S ]
and on and on and on....3 -
Yesterday at my career progression chat my manager told me that to showcase more seniority I would need to "stop moving the needle by myself and become a multiplier".
So in order to progress I need to change from being a sewing machine to a mathematical operator??!!?!?
Thanks, that's very fucking helpful.17 -
Stupid stupid university custom exam IDE... first thing select a few lines hit tab oops replaces code with tab character... compile is alt+C and run is alt+R (never seen that before) and you have to go save -> compile -> run.. instead of just hitting run and last but not least it syncs your code with the server so every save file takes 3-5s at which time the editor freezes
ALSO NO DEBUGGER OR JAVA CONSOLE...6 -
What would be your answer to this question? My answer was closing the tab and promising myself to never apply there again.4
-
Can't believe that the debate between using space vs tab is still going on. Tab is the way to go people.12
-
Found a bug on dev iOS devRant app
It happens when you are switching between view controllers using the tab bar9 -
Fuck this new fad of forcing you to open a new tab when you click on a link. I already have 40+ tabs do you think I need another fucking tab just for your shitty homepage? If I wanted to do that I would just fucking use command (cntrl) click. Stop forcing me. And fuck google especially for making this a thing with google drive and switching between accounts. I mean why the fuck do I need a tab of just the idiotic sheets homescreen (the one that doesn't even include my sheets)? And if I want to switch accounts why do you open the new account in a new tab? I don't want to have my old account up I wanted to switch that's why it's called switch accounts7
-
*looks at job posting*
*more than half of the first sentence are tech buzz acronyms*
*closes tab immediately* -
Weekly summary: 1 of your workflows have failed
- shit
The below workflow had an unusual number of failures:
Workflow X
Failed 1 times
- oh so it is failing since yesterday?
*swaty click*
8 h ago - Succeeded
1 d ago - Succeeded
[...]
6 d ago - Succeeded
1 wk ago - Failed
- Oh. Great. Perfect time and way to notify me.8 -
Do you just click the mouse wheel to close a tab even though it's a pain on your finger? I don't know where I got this habit from. I'm too lazy to point the cursor to the X button.6
-
Dear advertise developers.
I will NOT play fucking elvanar crap game. No, bugging me with music and queations if i really want to close the Browser tab wont change my mind. -
Git push is now followed with a tab of GitHub.audio and waiting to see it show up and ping. I'm lonely.
-
When you keep on refreshing the tab to see if your pull request got merged but it still says
”Pull requests 1”3 -
Since we're all doing unpopular opinions lately: tabs and spaces are not only interchangeable, but is most readable when mixed on one line.
Instead of 4 spaces or one tab, try 2 spaces, 1 tab, and another space for good measure!3 -
StackOverflow locked my account. I'm hoping someone here might be kind enough to help me with a bash script I'm "bashing" my head with. Actually, it's zsh on MacOS if it makes any difference.
I have an input file. Four lines. No blank lines. Each of the four lines has two strings of text delimited by a tab. Each string on either side of the tab is either one word with no spaces or a bunch of words with spaces. Like this (using <tab> as a placeholder here on Devrant for where the tab actually is)
ABC<tab>DEF
GHI<tab>jkl mno pq
RST<tab>UV
wx<tab>Yz
I need to open and read the file, separate them into key-value pairs, and put them into an array for processing. I have this script to do that:
# Get input arguments
search_string_file="$1"
file_path="$2"
# Read search strings and corresponding names from the file and store in arrays
search_strings=()
search_names=()
# Read search strings and corresponding names from the file and store in arrays
while IFS= read -r line || [[ -n "$line" ]]; do
echo "Line: $line"
search_string=$(echo "$line" | awk -F'\t' '{print $1}')
name=$(echo "$line" | awk -F'\t' '{print $2}')
search_strings+=("$search_string")
search_names+=("$name")
done < "$search_string_file"
# Debug: Print the entire array of search strings
echo "Search strings array:"
for (( i=0; i<${#search_strings[@]}; i++ )); do
echo "[$i] ${search_strings[$i]} -- ${search_names[$i]}"
done
However, in the output, I get the following:
Line: ABC<tab>DEF
Line: GHI<tab>jkl mno pq
Line: RST<tab>UV
Line: wx<tab>Yz
Search strings array:
[0] --
[1] ABC -- DEF
[2] GHI -- jkl mno pq
[3] RST -- UV
That's it. I seem to be off by one because that last line...
Line: wx<tab>Yz
never gets added to the array. What I need it to be is:
[0] ABC -- DEF
[1] GHI -- jkl mno pq
[2] RST -- UV
[3] wx -- Yz
What am I doing wrong here?
Thanks.17 -
When debugging, why oh why do I forget that multiple browser consoles can be open and then get frustrated when refreshing the tab doesn't show my changes?!
-
On Facebook open day:
Graduate dev lady telling a story about how much responsibility they are given and how she broke the password reset button for hours when her task was to instruct old users with weak passwords to update them...
//my first post, so not sure if it's appropriate, but surely did this come as a shock7 -
Guysss!!
I have created a chrome extension to copy all tab links
And other window tab links as well. But when I was about to upload to chrome. It said, we don't give support to windows /mac / Linux . So the extension will be given support only for chrome os users.
I uploaded it.
So chrome users. Please take a look at it.
Extension name: JUST COPY.
please share the extension link with me!
Thanks in advance.4 -
Let's pick a datepicker for the project. Me: jquery-ui ? Supervisor: No something better.
Jquery-ui: any css selector, standard date format masks (dd/mm/yyyy or mm-dd-yyyy....), Opens if the field is access using Tab key
Something better: only Id selector, custom date format mask ( %d/%m/%Y ...), Tab does not work -
I don't know what side of the argument I'm on for tabs vs spaces. I use tab but set it to be 4 spaces.4
-
VS Code, WTF is wrong with your tab stops?
I set to 2 and you still use 4.
I say use spaces for tabs and you still put tabs in my document.
Tab settings by doc type? Not existing or working.
Damn you!
Just work5 -
Step 1: stackoverflow.com
Step 2: CTRL + C
Step 3: ALT + TAB
Step 4: CTRL + C
Step 5: FFFFFFFUUUUUUUUUUU3 -
Last night my office desktop received the Redstone update. I hate the new ALT+TAB functionality so much, it's borderline infuriating.2
-
Typescript is a PIECE OF SHIT that adds 3 problems for every 1 it solves! Messing with so much shit from its linter and builder just so some OOP fools can code JS like *TAB* *TAB* *TAB* again!12
-
A button on my keyboard is no longer responding: [Tab]
I only bought it 8 years ago for ~5$ but I have since lost the receipt.11 -
Code monkey like fritos,
Code monkey like Tab and Mountain Dew,
Code monkey very simple man,
With big brown fuzzy secret heart
Code monkey like you...1 -
Let's start a holy war:
Tab vs Enter vs both for autocomplete / suggestions.
Please justify your choice.13 -
Any good productivity ideas for Powershell profiles?
I currently have a couple of aliases for frequent commands, Posh-Git import and bash-like tab completion.6 -
Second Monday rant...
F%$@ YOU Visual Basic 6, your STOOOOOOOOPID SSTab control bullshit and the fact that I can't remove a tab by simply clicking a "Delete" button! -
The pain of having more than a few tabs open and not knowing exactly what number to press with CTRL(or CMD) to switch to the tab you want 😅1
-
Thinking of getting a cheap tablet for lounging and streaming around the house. Walmart has the galaxy tab A 8" for $150
-
doSeriousWork(){
var knowledge=new Tab("google.com");
var stuff=knowledge.find('seriousTopic');
if(stuff.contains('other unrelated more interesting topics'){
while(1){
DoMoreInterestingTopic();
}
}
} -
Am I the only madman writing C++ with 8 spaces per tab? (Converted to spaces, to be sure. What are we, savages?!)
-
Never saw any collab since the update where they removed the tab...
I thought collabs are there to find collaborators. How should one find collaborators when no one sees your collab?8 -
Every time I move the cursor in a file or press alt+tab I hear bed springs squeaking. It's getting annoying :/5
-
How many of you do this weird stuff of typing Google in browser's url tab and hitting enter key and then type the thing you are searching for?2
-
About the ongoing battle of tabs vs spaces, there is an option in most text editors to convert tabs to spaces ( if you press tab it insert a certain number of spaces ). Use that and you will be fine.
Also if you are contributing to other projects which could be using tabs, there are plugins that will detect if the indentation is spaces or tabs and when you press tab automatically inserts spaces or tabs accordingly1 -
Why use a standard tab width when we can all have our own unique preferences? Let's make it a surprise party every time we open a file. I just love adjusting my editor settings for every repo. Keeps me on my toes!2
-
Does anyone know any android browser or app to have similar functionality of network tab in chrome?
P.S. For Non Rooted Phone5 -
My teacher wants us to use double spaces instead of using TAB and withdraws some points if we use tab for indenting. What do you guys think about that? It's C though.4
-
Trying to make a new tab page for chrome, but can't even load external anything, so I can't do the main thing I wanted to do, ie have an rss feed. Anybody got any solutions? Pulling my hair out here. :/5
-
I just visited an article out of curiosity "10 hot programming languages for building web apps".
First one was html. Closed the tab in under 5 seconds and hurt my brain.2 -
Dear devRant, "Remember Me" means, keep me logged in for longer than the lifetime of this tab. Or is that checkbox decorative?
(Yes, I also use the app)2 -
It'd be nice if devRant app had an art gallery tab, showcasing devRant store items from various ranters, our workplace setup, workplace companions and other dev kits.
-
Apparently I got super frustrated when searching for an answer to my problem because I just found a Google search tab that said "Tessellator not doing it good"1
-
I swear the most annoying thing about zoom is the fact it keeps requesting the focus while connecting to a call…
“Git a”
*alt-tab*
“dd [a letter][tab]”
*alt-tab*
“[a letter][tab][enter, missed cause it tries to focus itself again]”
*alt-tab*
“[Enter]”1 -
Please. Go to
https://api.slack.com
What happens for you? The page Fucking freezes cant load and crashes my tab. ARE YOU FUCKING KIDDING ME13 -
Hey Java Devs, Snakeyaml is trolling us all. For their parser you must use spaces for indentation.
We say TAB, they say TOO BAD. #ForcedConvention1 -
I do hate Skype. But it's UX even more. Esp., when password field isn't autofocused nor accessible via tab key 😧2
-
I just found out, that when you rapidly scroll upwards in the tab view of chrome on android, the tabs do a flip :D4
-
!rant
whenever I hear my phone vibrate in the background I open a new tab with devRant and check the new notifs.2 -
Whatsapp is really great but a Groups tab to separate one to one and group chats would be great. I just want to be able to not see red notification icon. I want to see it only when I specifically switch to groups tab.14
-
VS2015 big cpp - project...
Scroll in file, decide where you wanna write code. Set caret (70s delay).
Ctrl+tab to check previous file for name of something (120s delay)
ctrl+tab to return to file (120s delay)
le me = Jsjsjdhdhxhxuxbfvfvefbd!!!!!
FU Microsoft :(2 -
Why should gnome fuck up the switching ux? Just to be different?? Why couldn't you switch in multiple instances of an with alt+tab?? Why?2
-
Hey, internet! Does chrome/FF have any plugins enabling any tab to become a monitoring dashboard? I have too many monitoring tools to keep an eye on at the same time... Opening multiple chrome windows and tiling them on the screen is one way, but tile 6 windows and the desktop gets cluttered by taskbars/arrdessbars/other stuff. Doing it all in one tab would save space.
Soo.. anyone knows the right tool for the job? TIA1 -
Two steps forward one back: Gets paid by client, phone gets stolen enroute. Now am just ranting from a tab
-
Dear devRant Devs,
Please save last tab the user was on and when starting the app please go back to this tab. Also possible by adding a new settings entry for this... -
i am starting to think that programmers are stupidest semi-intelligent mother fuckers on the planet... simple shit gets turned into spider web of over complicated nonsense ... which simply means if u cant make shit simple... U R ONE DUMB MOTHER FUCKER...
ps. i just tried changing tab from 4 to 3 in atom... those are some dump mother fuckers there...1 -
It pisses me that firefox tab randomly doesn't stop loading even after the page finished loading all it stuffs.1
-
How are Macs preferred for web dev? You can't even easily switch between chrome and the inspector tab.9
-
missing the lyrics tab of spotify. now how will I know wether it is your lost gold or you lost lust or you lost hope
-
This is practically impossible to goole due to the generic nature of the words:
I need a CSS selector to match all parts called "tab" with class "active" within a component. For some reason
my-component::part(tab).active
doesn't work, and I don't know if it's a bug or not.7 -
that moment when your coworker doesn't know about shift+tab and uses backspace to untab blocks of code :') priceless guess i won't show let him know.
-
I'm learning python and I feel more and more like it!
I either have too much space, or not enough. And this is screwing my chance to pick up tabs... -
That moment when you in Computer Security Management and the Professor shows you the different between
Alt+ Tab and Windows + Tab.
Professor: did you guys know about these shortcuts?
Me: of course how else do I code, write a post and check one on Stack Overflow, Google help on a code, check my work email for the boss response, and see how the codes runs on a browser? -
Why don't you devRant open a new tab when I click a link?
I don't want to right click to open in a new tab ):6 -
Fucking windows 8 sucks cock. Every single fucking time i open a fucking tab open it says "Close your tabs to save memory" Every fucking ten minutes. IT PISSES ME OFF.6
-
!android_code
Hey I am getting plb in tabbed activity application in android..
Let me know how to code separately for each and every tab within same activity?? -
Chrome vs Firefox ram usage. Chrome running 1 tab (moodle) and Firefox a blank startup tab. I was genuinely surprised to see Firefox using more than 50% more compared to chrome. Both browsers are 64 bit and chrome has perhaps 10 extensions while Firefox only 510
-
I want to merge select and delete/drop query together and make it as one in MySQL. For ex:
Select * from t where year = 2015 and drop table tab;
or
Select * from t where year = 2015 and delete from tab;
and ya you can't use ';' for merging4 -
One of those annoying moments: when you close the tab accidentally because you pressed ctrl+w in the current tab, but the active window was the other browser in your second monitor so instead you closed the wrong one... 😑... luckily there's "open last closed tab".. but still is annoying3
-
So, even Brave browser is not exempt from getting a new tab opened out of nowhere for downloading this shitty fuck thing called "MaxAI".
Modern software is really down the gutter.7 -
Bricked my old Galaxy Tab 10.1 after trying to install Marshmallow on it.
// Sticking with code from now on1 -
# rails manage.py runserver
Usage: ...
# python run server
/use/local/opt/python/bin/python2.7: can't find '__main__' module in 'run'
# npm server
Usage: npm <command> ...
# webpack s[TAB]
...
# [TAB]
...
# ./just_fckn_run_pls.sh
zsh: no such file or directory: ./just_fckn_run_pls.sh
# DO IT
zsh: correct DO to do [nyae]? n
zsh: command not found: DO
# exit
Thank you. Come again!
-- Dr. API Nahasapeemapetilon
============= Broken Pipe =============
10 GOTO PUB -
Jesus on a flaming dragon mobile.
Devrant has so many issues.
The one that was reported the other day where the app crashes on iOS. It crashed four times just now trying to just open it. I proceeded to keep opening and then managed to go to the notifications tab. Crashed again. Click on somethin in the tab. Crashed again. What’s happening here?
Today seems more severe than the odd crashes now and then.4 -
Serious question here: why the discourse about spaces vs tabs? Hitting the tab key /once/ is just much more efficient than hitting the space bar /four times/, isn't it?9
-
I guess, the daily tab would be a better start page instead of the weekly, because I check devRant multiple times a day
-
When I was a kid, I used to wonder why doesn't the video tab on Google search open a YouTube search...
._.3 -
Ayo, I just started using shell variables for git branches......
No more spamming tab after typing feat/bug/rele/etc.. 🙏1 -
What is the "Stories" section (second bottom tab) in devRant? It looks like regular rants but grouped differently? I don’t get it.3
-
The struggle when you use fscanf and once you used & many times and this one time you forgot & and the whole program gets Access Violation :(
&tab[i] instead of tab[i] -
The time I can get a while loop to not crash the tab/application when I'm testing it for the first time will be the happiest moment of my life.1
-
Why the fuck do websites open a new tab when you click the login button on the homepage? Like why? Seriously why?4
-
Found a minor bug:
- Sort by Top
- Open app, Top Week is default tab
- Switch to Day tab immediately before top week rants are loaded
Rants of Week tab are shown under Day tab -
So we're supposed to test even the most imporbable edge cases to make sure that our software is reliable. But there is a limit. We let a marketing intern go bug hunting. We use the same component in two tabs of our SPA, but we distinguish them through some parameters. The intern found that if you switch back and forth between those two tabs super fast a couple of times, the program for some reason confuses those two tabs and swaps them. Now management has listed it as a priority. When are the customers _ever_ going to do that?!4
-
i have had sleepless nights when i saw devs using default ctrl+tab in "sublime text". and nightmares when they said it sucks because of this.
-
When ALT+TAB suddenly stopped working, I realize how much I use/need it... And I guess just bring able to switch between Windows in most recently used order...
-
Javascript - VS code
Python - VS code (linters sometimes show weird errors)
Dart/Flutter - VS code
Debugging qa instance via eb ssh - Vim with vim cheat sheet opened in browser tab -
I feel like we should ressurect devops reactions on devrant, and put dedicated tab right beside stories and projects,1
-
Any devs here who are rad enough to get a magic trackpad?
How to close Chrome tab with three fingers tap and click with no funny business?2