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 - "line"
-
"I have no idea what this line of CSS is doing."
*Deletes line*
*Entire app falls apart*
"Better put that back..."
*ctrl z*5 -
So we were doing Computer Network revision.
our teacher asks,' what is another method except GUI to send mail?'
I know it is using terminal.
'Terminal' I replied.
'No, it was something else'
'Console'
'No, not that'
.
.
.
.
.
.
.
.
.
.
.
'Command line?'
'Yes, that's it. That's what I m talking about'
FML!10 -
Line numbers should be on by default on all editors for fucks sake. Why the hell it is the other way around??11
-
That mind fuck movement....
When your IDE reports you error on line 235.
And you find out line 235 is actually a comment. FUCK!!!!12 -
Participated in an IEEE Hackathon where we built a line following robot. We were the slowest, but we had the most accuracy.
The image is our first attempt at getting it to work, consequently, we were the first team to actually get a prototype finished and working. Other people were trying to cram as many sensors as possible. We stuck with one, and 47 lines of code to make it work. Everyone else had more than 2 sensors and I can only imagine how much code they had.19 -
sudo apt-get random-tool
Traceback (most recent call last):
Aborting because there's a fork in the spoon compartment on line 43 in main
Error this script only works on Python 2.7 and maybe 4.1 on line 59 in main
Missing symbols when trying to decipher Sumerian recipe for steamed vegetables on line 67 in main
Cannot open shared object: Your OS is a bully and is hiding my files on line 98 in main
Are you sure all directories matching ^(/)?([^/\0]+(/)?)+$ are in your $PATH on line 268 in main
Your computer is kind of vibrating in an annoying way on line 332 in main
Failing because I'm feeling insecure please hold me on line 587 in main
I'm feeling confused about my sentience when running TensorFlow models on line 682 in main
FUCK
HAS ANYONE EVER MANAGED TO JUST FUCKING INSTALL A PYTHON BASED APPLICATION WITHOUT DEBUGGING RANDOM COMPUTER STATE SHIT AND DEPENDENCIES FOR THREE HOURS?16 -
So apparently the Amazon S3 outage happened because of one setting being wrong in a looooong string of commands issued to shut down just a few servers.
Am I the only Linux user who totally gets how that could happen to just about anyone regardless of how awesomely competent they might be?4 -
What do you call 8 hobbits?
A hobbyte!
You've probably already heard this one but if not and your a LoTR fan, your welcome.
Note: 40% of the time this works all the time as a pickup line.6 -
My non coder friend thinks typing a 1000 line document and coding 1000 line software/app are perfectly equal things and deserves equal salary.20
-
Me in the digital circuits class: "Bro I just got a pick up line in mind!"
Friend: "Go on.."
Me: "Girl, are you a boolean signal 1? 'Cause you turn me on 😏"
Friend: "I can't believe I'm your friend."6 -
Ah, just followed a 35-line tutorial to create a window with a line in it using xlib.
Time to put "Professional Linux Graphical Developer" in the olde resume -
Large comment block at the top of the file, commenting explicit line numbers, as in: "line 365: copy to a new image".
Only everytime the comment block grew, the line numbers got more and more off. -_-4 -
Finally solved the mystery, why / and * are together on my keyboard so that there is no problem for me to use single line comment and multi-line comment.7
-
Windows fans,
============================
--------------Dont cross this line-----------
============================32 -
Entire fucking world:
Shift + Enter == New Line
Spreadsheets:
Alt + Enter == New Line
Spreadsheets are America of digital world.5 -
Developers
that
put
every
line
of
code
on
a
new
line
Why??????? Seriously this shit is not making it more readable you know12 -
The line numbers in error messages look like I’m time traveling.
.... line 1987
.... line 1883
.... line 1642
.... line 20072 -
Poll: How do you use git?
Command line?
GitHub Desktop?
3rd party app? (which one)
I use command line almost exclusively.43 -
* writes an entire library in vim *
Lemme save it real quick.
Ctrl + S
Fuck.
* opens sublime text *7 -
Me: *submits design document to manager, who sends it to client for review*
Client: "everything is good, except one line here mentions a function that has since been removed" *send email to manager*
Manager: Correct this one line *sends email to me*
Me: uh, ok *deletes line, sends updated document in new email*
Is there any reason in the world the client OR manager couldn't have corrected the line and moved on?
Did we need to get two more people involved and send 3 more emails?4 -
Quote from Docker site: "anyone with Docker and an editor installed can build and debug the app in minutes"
Really? I'm two days in and still can't get this damn thing to work. And no solution in sight. Command line tools... sheesh.7 -
1. talked to a dev and found out he never used git
2. saw a guy formatting the code in eclipse line by line, even when eclipse provides automatic formatting.2 -
I used to write HTML line by line.
and then someone showed me emmet.
life has never been the same since.4 -
Why the f*** was the computer industry not able to contract to common line endings? The trouble started many years ago when I was coding scripts on my Windows machine and they were not every time able to run on a Linux machine. Well I then somehow learned on the hard tour that this is due to wrong line endings. Thought that might be the last time I've seen such problems in my career...
And 10 years later I was going to migrate from CVS and SVN to git, and BAM: the f****** line endings appears to be causing much more problems than in all the ten years before. Why? I ask why is this still necessary in 2017 that a dev has to think about the line endings anymore?? This is so 1991!!!7 -
Knowing the Linux command line saved my bacon!
I was on a plane, unable to connect to wifi, and needed to take a note... while not having any note taking applications or text editing applications on my phone. but what I DID have was a terminal application.
So, I made a file in my documents folder and echoed my notes into the file! A bit longer and more complicated than it needed to be, but it worked when I needed it to!12 -
Dear web developers, whenever there is more than ONE LINE OF TEXT make sure the line-height is 1.4em.10
-
Hey Python, why in the ever loving readability universe I can't break the following command across multiple lines?
df.replace(...).apply(...).reset_index().drop(...)
Oh, but I hear you say "Hitko, why you can break it into multiple lines if you break within brackets!"
To which I ask you, does this shit look any more readable?
df.replace(...
).apply(...
).reset_index(
).drop(...)15 -
I was looking for an single line ascii hug to let a Paizo (publisher of Pathfinder) employee know that he is going above and beyond with the communication because of delayed orders (delayed by Amazon).
Then I found the site on the screenshot. Guess they focused so much on the single line ascii art that they forgot to check the header :D4 -
Hey girl, what's the address to your heart? Cuz I want to allocate some memories and point straight to it5
-
I've come up with my fair share of dev pickup lines over time. I'm particularly proud of this one.2
-
Junior devs PR -
line 98: Catches FileNotFoundException.
line 99: Immediately throws FileNotFoundException
--
CHANGE REQUESTED 🤦🏻♂️ -
Was hired as an intern, paid me the minimum wage, had to independently handle 3 large scale projects. Got to learn A LOT but was not paid enough.2
-
So I was out for Halloween last night, and there was a chick with a plain white Tee that said:
"Error 404: Costume not found."
Really wanted to talk to her about responses but I got the impression she didn't really know what 404 was, just that it was a meme7 -
Just me getting angry about the reaction after the Cambridge-scandal?
The news are spamming it every hour, and suddenly everyone is "well aware about my privacy" and deleting their Facebooks.
I mean, as if we didn't know this all along. O-fucking-course your data is stored and sold for adds, you accepted it when you wanted to "see which celebrity you are alike"!
I walk around and talk about privacy with people kinda a lot, and nobody seems to care. And then this happens, and people are going nuts. Waow, what a surprise!
Haha, have a nice evening DevRanters! ;) (20:55)@swe15 -
Freelancer/coworker: "Why don't you just use source tree instead of git in the command line?"... me: *face palm*3
-
Even this Google Survey knows the pecking order for voice assistants 🤣 Cortona gets a dedicated line while Bixby gets the "Other" line.7
-
`npm install -g somafm`
`somafm play defcon`
If you're on a Mac, `brew install mplayer` and do the above.
You're fucking welcome!
https://git.io/somafm if you wanna go fork yourself3 -
Found this in a third party library once. Only thing I can think is that this programmer was paid by the line. Because, seriously, this could have been one line.
-
VIM! ViM! vim! Vi Improved! Emacs (Wait ignore that one). What’s this mysterious VIM? Some believe mastering this beast will provide them with untold mastery over the forces of command line editing. Others would just like to know, how you exit the bloody thing. But in essence VIM is essentially a command line text editor at heart and it’s learning curve is so high it’s a circle.
There’s a lot of posts on the inter-webs detailing how to use that cruel mistress that is VIM. But rather then focus on how to be super productive in VIM (because honestly I’ve still not got a clue). This focus on my personal journey, my numerous attempts to use VIM in my day to day work. To eventually being able to call myself a novice.
My VIM journey started in 2010 around the same time I was transiting some of my hobby projects from SVN to GIT. It was around that time, that I attempted to run “git commit” in order to commit some files into one of my repositories.
Notice I didn’t specify the “-m” flag to provide a message. So what happened next. A wild command line editor opened in order for me to specify my message, foolish me assumed this command editor was just like similar editors such as Nano. So much CTRL + C’ing CTRL + Z’ing, CTRL + X’ing and a good measure of Google, I was finally able to exit the thing. Yeah…exit it. At this moment the measure of the complexity of this thing should be kicking in already, but it’s unfair to judge it based on today’s standards of user friendly-ness. It was born in a much simpler time. Before even the mouse graced the realms of the personal computing world.
But anyhow I’ll cut to the chase, for all of you who skipped most of the post to get to this point, it’s “:q!”. That’s the keyboard command to quit…well kinda this will quit the program. But…You know what just go here: The Manual. In-fact that’s probably not going to help either, I recommend reading on :p
My curiosity was peaked. So I went off in search of a way to understand this: VIM thing. It seemed to be pretty awesome, looking at some video’s on YouTube, I could do pretty much what Sublime text could but from the terminal. Imagine ssh’ing into a server and being able to make code edits, with full autocomplete et al. That was the dream, the practice…was something different. So I decided to make the commitment and use VIM for editing one of my existing projects.
So fired the program up and watched the world burn behind me. Ahhh…why can’t I type anything, no matter what I typed nothing seemed to appear on screen. Surely I must be missing something right? Right! After firing up the old Google machine, again it would appear there is this concept known as modes. When VIm starts up it defaults to a mode called “Normal” mode, hitting keys in this mode executes commands. But “Insert” entered by hitting the “i” key allows one to insert text.
Finally I thought I think I understand how this VIM thing works, I can just use “insert” mode to insert text and the arrow keys to move around. Then when I want to execute a command, I just press “Esc” and the command such as the one for saving the file. So there I was happily editing my code using “Insert” mode and the arrow keys, but little did I know that my happiness would be short lived, the arrow keys were soon to be a thorn in my VIM journey.
Join me for part two of this rant in which we learn the untold truth about arrow keys, touch typing and vimrc created from scratch. Until next time..
:q!4 -
I was making changes in JS and it did not get reflected into the browser, spent 3 hours on it. Later realised I was making changes in the wrong JS file. Have never felt this dumb in my life.4
-
Every language that doesn't have multi-line comments:
# Of course CodeLang supports multi-line comments!
# This is a multi-line comment!
# How dare you say otherwise!13 -
my line manager & my line managers line manager had a 10 minute heated argument earlier, right in front of me, about what work i should be doing
i still don't know what i should be working on5 -
Team meeting. We are getting religous. They just agreed after an hour argunent to keep curly braces on the same line not new line. Im gonna need a teraphy to follow that practice.9
-
Every time I forget a semicolon, my IDE just shows a red squiggly line over the whole line, so I spend a long time analyzing the whole line taking to figure out what I did wrong, then and only then do I realize that I forget the semicolon.2
-
What?
I don't get it?
That doesn't make any scene....
goto line 5980
😎 coding like a boss....
goto line 8764
🤡 I have no idea what I'm doing.... -
After coaching for Django Girls organization and GirlScript Summer of Code, it can be known I clearly have a thing for Django. So I decided to make a new Portfolio from scratch and this time, using Django (seemed a good idea as I wanted to migrate my blogs from Medium to the portfolio).
So, I made the project, got a domain name and hosted it on Heroku. Then it struck me to make my portfolio open source so everyone can use it to make their own! I am looking forward to add a lot new features and improve the existing ones. Here’s a link to it: https://github.com/hmangukia/...
Do create an issue if you feel something needs to be improved!
Projects, Blogs and Social Media handles can be added from the admin panel. If the user does not have coding background, the installation process might be tough. That is why, I am looking forward to add the Sign Up functionality so that the user does not have to go through all that hassle of installing and hosting the project.
If you are wishing to use this to make your Portfolio, please go through the installation steps in readme.md. I would be more than happy to help you install and host on Heroku if you get stuck :)5 -
I like to right justify my comments to save space and make it easy to see what's happening on a line by line basis13
-
Me: figuring out APT-69420 (hacker group) representative is a girl.
Also me: Woohoo! You go girl!
Also me: ... Wait, am I being sexist?
😐 idek anymore...
Anyways, them camera footages they released tho...17 -
A haiku, written in NodeJS:
This is the first line
This is the third line
This one is the second line8 -
I am officially no longer writing one line of HTML.
Or any line that has to do with anything fucking front-end.9 -
Any IDE that doesn't go to the end of line when you press the down arrow key on the last line of the file, should be burned with hell fire.2
-
Being a social media influencer i.e. having a couple thousand followers doesn’t make you entrepreneur. Period.2
-
So I was looking for a way to easily take android screenshots in a lossless image format, since my OEM only does jpeg.
Didn't want to install another adware and wound up with the adb shell screencap command since I need the pictures on my PC anyways.
But instead of a nice one-liner like
adb shell screencap -p > screenshot.png
I need 3 lines in a bash script.
Can we please just end the line ending wars?5 -
Fuck you windows and your bizarre line endings.
^M (CR) all over the place now, fuck this, going to make an automated tool now that converts all line endings to LF5 -
Was wondering why one 2px line looked waaaay thicker than another 2px line.
Then I remembered one was on a shitty 15" 1024x768 monitor.
*face palm* -
Oh man. When I look for a job after I'm done with school, I need to watch out for those "pay-per-line" bullshit contracts. More lines? Everyone can do that, but it will cause inefficiency just for the money. I could make a fucking Python Hello World program have 100 needed lines if I wanted to, but why would I? More lines = more typing ≠ more work.3
-
the best part about development is that all code looks the same to most people - including devs
so long work assignments and hello command-line digdug1 -
My fights with other devs always revolve around the position of curly braces:
Should they be on the same line or should they have a whole line just for themselves?
I mean, if they go on the same line you have less lines of code and you can fit more into the same view, but putting them on a new line makes it all a little less messy7 -
When moment when you hopelessly keep reading each line, in hope that you will find that special line that is causing the bug, for almost 4 days...
and you finally find it 😆 -
I am soooooooooo much bored to start coding again after a small vacation 🥲 Is it the same for all? If so show me a way out 🥲15
-
has anyone ever had this happen?
ide- syntax error: missing ";" on line 7 (1 error)
me- *adds the missing ; *
ide- syntax error: missing ";" on line 7 (57 errors)1 -
My team and I worked superrrrr hard for a client and help her build online presence, make graphic designs, motion graphics, Facebook posts, Instagram posts, digitalmarketing. After two weeks, she announced she is shutting her business down. All that hard work was for nothing.7
-
I'm trapped in a sea of one line work requests. How fucking difficult is it to actually write down your requirements. If you can't be arsed, even after I have asked for clarifications several times, don't act all upset when what I implement doesn't match your expectations.
-
Personal Opinion - I consider investing in stocks or anything related to that as Gambling. I hate it. Guess someone had a bad experience lol13
-
Things I have learned today after hours of research, testing, installing, and uninstalling:
windows command line won't reload 'Path' unless you close the terminal
And its not even like I haven't figured this out before!3 -
I found the best text editor for basic code fixing
For a couple of days, I was looking for a simple terminal-based text editor for taking simple code notes or basic code fixing kinds of stuff.
As an aspiring developer, I really like the concept of coding without touching the mouse.
So I downloaded the king of CLI text editors, Vim.
Now, guess what happened.
Yeah, you're right. I stuck inside vim and couldn't even quit from there.
Then, I started watching a bunch of tutorials and started reading vim's documentation.
But then I realized, I have to learn a lot of things only to operate vim and it's a pretty lengthy process.
At that time, I really needed a very simple text editor for doing basic stuff.
But, vim is not simple... you know :)
So, I had to come back to 'nano' & I was not happy enough to write codes by using 'nano'.
Suddenly, I discovered another really cool text editor called 'micro'.
It's really awesome.
It's not as advanced as vim but definitely a lot better than nano.
Micro is an open-source command-line text editor created by Zachary Yedidia.
Some basic key points of Micro:
1. It's really easy to operate.
2. It has different colours and highlights.
3. It supports syntaxes for over 70+ programming languages.
4. It has mouse support.
5. Plugins & colour schemes.
The best thing for me is colour schemes & screen split support.
Check out my full article on DEV - @souviktests.20 -
Today I saw a 200-line function named Apply and a 200-line function with different code, but does the same, named TryAgain...1
-
Please give us back the simple linefeed.
There is a huge difference between just starting the next sentence on a new line and having it seperated by an empty line.1 -
Freaking github markdown! I just want this directly under each other like i fucking wrote it:
[Client implementation](implementation_client.md)
[Server implementation](implementation_server.md)
But it's places it together on one line. Fine, i put a new line between it.
[Client implementation](implementation_client.md)
[Server implementation](implementation_server.md)
It fucking shows a blank line in between!
AAAARGH
I'm sure the github CTO was seen on Epstein's island4 -
So, in C#, are there any tips or guidelines as to how to write "clean" multiline strings? I mean, imo it doesn't look as neat when the code looks like:
static string kindOfLongVariableName = @"First line of string.
Second line of string...";
With the first line sort of hovering on the side. What I'm used to is with Python where you can just:
variable_name = """'\
First line.
Second line.
"""
And use the '\' to escape the newline, but that obviously doesn't work in C#. Can anyone point me in a direction to start looking? The docs are a bit confusing and not very beginner friendly. :/20 -
A few months back, I had this interview with this guy to work at his startup. It was wonderful and he told me that I am hired (during the interview itself!). The position was of an intern as I was to start my co-op. So, to complete all the process with the university, I need offer letter to submit. The guy did not send me one, instead he sent an NDA. I emailed him explaining that I need an offer letter to submit to the university first before I sign any agreement. He stopped replying to my emails.
I had no other option so I contacted my university's co-op committee and explained them the situation. They contacted that guy and after that I get an email saying "We would like to move forward with other candidates".
IF YOU DO NOT HAVE ENOUGH REVENUE TO PAY, DO NOT CONDUCT INTERVIEWS. AND WHY THE FUCK DID YOU SAY "YOU ARE HIRED IN THE FIRST PLACE?!" MORON1 -
Merging one git branch into another when it conflicts an added line or function.
Like really? You can't handle ONE LINE being added?6 -
Rant!
Shifted to new office few days back.
Just had to put up with the shitty intermittent internet connection.
SSH failing and coming out for every 50 secs.
Trying to take Mongo Dump and restore for the past 2 hours. Finally! ufff.
When the network is disconnected SSH gets disconnected. Fine. Acceptable. Again, when the network gets connected, it should start from the same place right ? Dumb Enough. But i wanted that today.2 -
Why did it take years before someone told me to add this to your bash script to see the line on which a command failed?
errorOnLine() { echo "Line $1 had an error" ; exit 1 ; }
trap 'errorOnLine $LINENO' ERR7 -
Where should starting brackets be positioned if/else and function definition in C? Same line or the next line. Have not seen pure cosmetic bullshit like this.10
-
Colleague: Why doesn't this line of code print something out?
Me: Are you sure this line of code has been executed? Try Adding a break point here.
(add break point and debug...)
Colleague: Oh. WTF?!3 -
for my job I need to know,
Programming, C#, Optimization, Multithreading and Async code, Working certain tools, Reading difficult written code, Understanding, Physics, Networking, Rendering, Codeloops, Memory management, Profiling tools, Being able to make Jira tickets and read Jira tickets. Understanding source control branching, merging, push and pull. bug fixing.
And I write almost 1 line of code a week on average..
I'm a programmer.2 -
When you start mashing the tab key to get to a specific file, then realize you put 'cd' in the beginning of the line.
Then proceed to question your intelligence or lack thereof. -
Being used to write curly braces on the same line but having to write em on a new line for a college lector.
*I can't read that shit*2 -
Cant believe I just figured out ctrl R in a linux terminal. I have hit the up arrow key way too many times.
-
Wrote a 217 line script to import/export email templates.
Slightly less painful than hand crafting the 37,000 line SQL query. -
If you change all tabs to four spaces, no one will see your actual trashy changes in the line by line diff.
-
Lambda style Linq statements should be no longer then 1 line in C#
Current task debug 10 line Linq statement. Fml -
So this is the scenario:
A Database Error Occurred: You must use the “set” method to update an entry
This is the code:
$this->db->where('id', $id);
return $this->db->update('contractors', ((array) $contractor));
And it gives me the error A Database Error Occurred: You must use the "set" method to update an entry.8 -
Does the computer push all dots up 1 line and create a new line, or just reset the current line once it reaches the end? *insert uglyfied thinking emoji*5
-
When react says "Module Not Found" then you realise that you have to add a period infront of the forward slash 😒
-
Have you ever gone through your code line by line and still can't figure out what the bug is...
That's when you know you have ghosts inside your computer4 -
Hi, everyone.
This is a post created for those of you who want to step up their terminal knowledge, learn new tricks, or just learn the basics.
I found these links that will help you on your path to master the command line on mac.
Links:
1. https://github.com/juanfrans/...
2. https://medium.com/@manujarvinen/...
3. https://computers.tutsplus.com/tuto...
4. https://lifehacker.com/a-command-li...
I hope you found these links useful and you learned one or two tricks!
I appreciate it if you leave a comment and Rant++ this post.3 -
When you're trying to figure it out what a code does and you find a line comment "A line off code to rule them all"
cheers Frodo! -
I use the Parrot OS linux distro and I think my built in python interpreter is broken, when I run a .py program from the command line, I get errors that I don't get when I run them in pycharm, why is this happening?8
-
My previous workplace was toxic whereas my friends and family were encouraging and always cheered me up
Now, it’s the other way around2 -
Alternate job if I weren’t a dev:
Painter (but won’t excel as much)
Bartender (would still like to try my hand on it) -
I had this amazing friend during my Bachelors and I think because of her I started to learn programming.
Long story short, IT(not just IT though) curriculum in India is shit. So you do not really get to learn during your college. It’s completely on you and how you self teach. This friend who I am talking about not just learnt all this and did research for herself, but she tried to teach and make others aware as well. She organised DjangoGirls workshop in our city where I participated. That’s when I really started learning stuff useful in real world. -
Navigating directories have never been easier with z, this post describes how to use it and how it works
https://monades.roperzh.com/weekly-... -
As my internship’s over, I cannot work before receiving my PGWP.
I am wanting to volunteer but its funny I’m not able to find active organisations who need volunteers. My skills are but not limited to web development.
Leads would be appreciated! -
Hey girl are you into PDA? Because I've constructed a Pushdown Automata that can generate binary palindromes.1
-
When you have a long line like this...
if ($obj->getStupidlyLongNamedThing() + $hard + $harder * $hard / $harder + $obj->getAlsoStupidLongThing([$sillyLongExpression, $thing]) > $obj->omgThisIsInsane());
If you're just going to be lazy and break it up however where where ever so it looks like crap...
if ($a->b()
____&& $a->c());
Then I urge you to do one of two things:
* Shut up your face and turn on word wrap in the IDE rather than manually doing it even worse.
* Break the long parts into variable assignments or something.
* (or get a wider screen)
Example:
$a = $obj->getStupidlyLongNamedThing();
$b = $hard + $harder * $hard / $harder;
$c = [$sillyLongExpression, $thing];
$d = $obj->getAlsoStupidLongThing($c);
$e = $obj->omgThisIsInsane();
if ($a + $b + $d > $d);
With sensible variable names.3 -
Removes an control statement or a loop statement in python code ......
Fucks up entire code below it due to indentation error..
Sit and remove the indentation line by line
PYTHON IS LIFE3 -
pair programming and debugging with your senior
referring to line number so we know specifically what we are referring to
line 69 comes up repeatedly in multiple files
what are the chances3 -
The man just asked how to make folders with the command line, what on earth is this 100-line nightmare json?
https://superuser.com/a/14187013 -
So I have to install chromium because line isn't available for linux...
Line is far east messaging/social app, and new customers use it.6 -
I know it doesn't really apply because we have widescreen monitors now, but regardless, I hate seeing code that runs the width of the screen, I'd much rather have more lines than more columns. Viva la vertical!5
-
Started messing around a bit with @LucaScorpion JavaRant API thinking I might make a command line app. Well I have about 50 lines of code later and it's working to get a random rant and all the comments. The trouble is now instead of working on it I'm just back to reading rants... No way I'll ever be able to work on this without getting distracted.2
-
When you have no time to learn by code snippet, you'd have to copy and paste it rather than writing it line by line.
-
What is everyone's preferred formatting for functions/if statements. Does the first curly brace go on the same line or a new line?
function 1() {
}
or
function 2()
{
}14 -
It works,
It works,
It works,
( Error on line(s) 34 45 83 100)
But I only have 98 lines of code,
Goes back, fixes code
(Error on line 23) -
When that guy hovers his sharp ballpen over your retina screen while explaining his nonsensical and boring requirements and your eyes follow the pen anxiously and you just want to shout "Take that F*cking ballpen away from my screen you m*ron!" and slap his hand. Or his face. But you just can't do that, partly because he's your line manager.
-
So funny when who people try and jump in IT related conversations saying “Ah yeah, ....xyz... I’m a programmer” do not know what Git is :)3
-
interesting conversation with the department head at my college (I'm a graduating senior): for incoming freshmen with no programming experience, do you think we should be teaching them to use a nice IDE, or start them with just a decent text editor and command line?
I was trying to convince the department head that we shouldn't show them an IDE until they've got the basics of command line down, and understand that a lot of what an IDE does is just abstraction of the command line.8 -
Has anyone ever had to choose either to write the remaining letters of a word in the NEXT line or just jot down below that same line?4
-
Kington's Law of Perforation:
If a straight line of holes is made in a piece of paper, such as a sheet of stamps or a check, that line becomes the strongest part of the paper. -
Another great website error code fail (dumped its full error output to the website):
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/api.py", line 436, in send_error
data, 'text/html')
File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 808, in render_template
template = self.load_template(filename, method=method)
File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 768, in load_template
self.templates = TemplateLoader(
File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 481, in get_all_templates_dirs
for provider in self.template_providers:
File "/usr/lib/python2.4/site-packages/trac/core.py", line 78, in extensions
return filter(None, [component.compmgr[cls] for cls in extensions])
File "/usr/lib/python2.4/site-packages/trac/core.py", line 213, in __getitem__
component = cls(self)
File "/usr/lib/python2.4/site-packages/trac/core.py", line 119, in maybe_init
init(self)
File "/usr/lib/python2.4/site-packages/authopenid/authopenid.py", line 157, in __init__
db = self.env.get_db_cnx()
File "/usr/lib/python2.4/site-packages/trac/env.py", line 335, in get_db_cnx
return get_read_db(self)
File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 90, in get_read_db
return _transaction_local.db or DatabaseManager(env).get_connection()
File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 152, in get_connection
return self._cnx_pool.get_cnx(self.timeout or None)
File "/usr/lib/python2.4/site-packages/trac/db/pool.py", line 172, in get_cnx
return _backend.get_cnx(self._connector, self._kwargs, timeout)
File "/usr/lib/python2.4/site-packages/trac/db/pool.py", line 105, in get_cnx
cnx = connector.get_connection(**kwargs)
File "/usr/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line 180, in get_connection
return SQLiteConnection(path, log, params)
File "/usr/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line 255, in __init__
user=getuser(), path=path))
TracError: The user apache requires read _and_ write permissions to the database file /home/trac/morituri/db/trac.db and the directory it is located in. -
I was talking with my friend on call who was grocery shopping and was confused which icecream to buy. I suggested him to get Chapman’s Frosty. I started seeing advertisements of Chapman’s all over Instagram after. Kinda scary.
-
Find an error on line 69... start to giggle....
In dutch a "line" as in "error on line .." can be translated to "regel"
And in dutch "regel" can have two meanings.
Line and Rule.
Error on line 34.
Reading out loud in Dutch: "Error op regel 34"
translated to:
Error on rule 34. Launching out loud and thinking of the possibility.
Will i ever mature...1 -
Linux users needing to run literally ANY script again:
⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️...4 -
Am I the only one around here who waits a second or two after a new line to see if I get a red scribbly line in the next line. (Usually a missing semicolon indicator)
Don't remember the last time I had a missing semicolon.
Anyone?2 -
Just discovered this in visual studio:
shift + alt + ; (select all instances)
shift + alt + . (select next instance)
Better multi-line editing, here we come!2 -
I've only recently started learning how to use the command line for more than changing directories. Is there an equivalent of MDN for shell scripting? Is there Idiot's Guide to Shell Scripting (also works for me)?
-
The more I explore npm, the more helpful knowing the CLI will be to me. Can you recommend any resources for learning how to use the command line better?
I have a couple but I'm curious what else is out there?6 -
Hey guys,
I'm trying to make use out of Cloc for my company. Cloc is a tool for counting code lines.
I want it to count only the lines in certain file tpyes (like .cs). How do i do this?
I tried --include-lang=[.cs,....] but it doesn't work. What am I missing?3 -
so I have been trying to make migrations on centos 7 for a while now on my virtual env i keep getting this error
## Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/srv/switch/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/srv/switch/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/srv/switch/env/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/srv/switch/env/lib/python2.7/site-packages/django/core/management/base.py", line 327, in execute
self.check()
File "/srv/switch/env/lib/python2.7/site-packages/django/core/management/base.py", line 359, in check
include_deployment_checks=include_deployment_checks,
File "/srv/switch/env/lib/python2.7/site-packages/django/core/management/base.py", line 346, in _run_checks
return checks.run_checks(**kwargs)
File "/srv/switch/env/lib/python2.7/site-packages/django/core/checks/registry.py", line 81, in run_checks
new_errors = check(app_configs=app_configs)
File "/srv/switch/env/lib/python2.7/site-packages/django/core/checks/urls.py", line 16, in check_url_config
return check_resolver(resolver)
File "/srv/switch/env/lib/python2.7/site-packages/django/core/checks/urls.py", line 26, in check_resolver
return check_method()
File "/srv/switch/env/lib/python2.7/site-packages/django/urls/resolvers.py", line 254, in check
for pattern in self.url_patterns:
File "/srv/switch/env/lib/python2.7/site-packages/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/srv/switch/env/lib/python2.7/site-packages/django/urls/resolvers.py", line 405, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/srv/switch/env/lib/python2.7/site-packages/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/srv/switch/env/lib/python2.7/site-packages/django/urls/resolvers.py", line 398, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/srv/switch/app/switch/urls.py", line 10, in <module>
url(r'^administration/', include('primary.core.administration.urls')),
File "/srv/switch/env/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 50, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/srv/switch/app/primary/core/administration/urls.py", line 2, in <module>
from primary.core.administration.views import *
File "/srv/switch/app/primary/core/administration/views.py", line 5, in <module>
from primary.core.api.views import *
File "/srv/switch/app/primary/core/api/views.py", line 8, in <module>
from primary.core.bridge.views import *
File "/srv/switch/app/primary/core/bridge/views.py", line 11, in <module>
from primary.core.bridge.backend.loggers import Loggers
File "/srv/switch/app/primary/core/bridge/backend/loggers.py", line 2, in <module>
from primary.core.bridge.backend.wrappers import Wrappers
File "/srv/switch/app/primary/core/bridge/backend/wrappers.py", line 6, in <module>
import pytz, time, json, pycurl
ImportError: pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (openssl)
even after uninstalling pycurl and exporting the pycurl variable to my environment can I get any help4 -
I mean, seriously, who needs sleep anyway? Oh, you missed a semi-colon at the end of that line? Boom! Code's broken, and I'm on a wild goose chase.
Thanks for the extra hours of debugging, Captain Forgetful!6 -
As a now obsolete practice in the age of widescreen monitors and resolutions many times greater, do you still enforce line lengths in your code?
If so, what length do you use and why?7 -
Having a build check line for line, item by item what my Javascript syntax has to follow is fucking driving me nuts. A goddammn in place Javascript syntax machine nazi.
-
Sigh. I don't like the methods of first line helpdeskers. Computer problem? Restart it, or.. re-image it. The hell..
I know these are standard practices but I don't like them at all. Just because there's a small issue with a device, you're going to throw everything away? No troubleshooting at all? I don't call that troubleshooting nor helping.
My friend works as first line helpdesk and I told him: "Hey, WhatsApp isn't giving me double checkmarks anymore for my messages to you since last night. It's odd." and his response is: "Restart your phone". My god.. how much more technically ignorant could he be? Everything network-related on my phone is working, including WhatsApp, but no.. "restart your phone". Anyway.4 -
When python's print statement makes a new line every time but you already get one from whatever you're working with, "I don't wanna put a new line at the end of the line that already has a new line at the end of it."3
-
Best part of being a dev: seeing my code grow, take shape and become robust, line after line, refactor after refactor.
-
An app for space: articles, games & quizes. Also a portal which acts as a bridge for space enthusiasts and space organisations.6
-
I cannot shout at my teammate who doesn’t know anything related to his work(at least pretends to not know anything). He asks me to do his tasks for me and when I deny saying I already have a lot of work to complete, he begs.
-
The suggestions from the new AI based IntelliSense in Visual Studio 2022 flip-flop from "haha that's an adorable suggestion" to "yikes that's exactly the line I wanted" on an almost line by line basis.
-
Looking for a Web/Software Development job in Canada. Okay to relocate. Let me know if anyone has any ideas or references. Have tried Indeed, LinkedIn but nothing works.question django python canada job hunting web development django job looking for a new job software development looking for work web python2
-
PUT method works in dev but not in prod for code ignitor. Stuck on this one from a week. Someone HELP 🥲
(Checked htaccess and PUT is enabled)12 -
That time when you first learn command line to remove a directory and end up deleting the entire corporate intranet.
Thankfully there were backups.
Only learned afterwards they had just started doing back ups the day before.
(face palm)1 -
I have a button using
localStorage.setItem(‘button’, getElementById(‘buttonId’))
And use it on page reload for clicking the button on page reload
localStorage.getItem(‘button’).click()
What’s wrong here?22 -
Working on a Django API where I have to send a request to a PHP file to upload a XML file. Here is what I wrote:
url = 'url.to.php.file'
files = {
name: ('filename', xml_file.xml)
}
response = requests.post(url, files=files)
I am getting Internal server error. Do not know what I did wrong. Am stuck on this for like 3 days and have tried EVERY alternative POSSIBLE. HELP ME
*cries in corner*2 -
What's the minimal feature set that can make a language as ornamented as JS into a comfortable REPL?
Should I write a full parser or should I try to patch my way around with regex?
It will have to interface a lot with JS so it has to be able to manage JS datastructures in some fashion, which means that I can't just make a whole new command line with its own programs.
My current plan:
Some delimiter (probably a semicolon) will take the output of a command and inject it in the next in case you decide halfway through a line to do some more processing, It also awaits promises and does some other nice stuff to make controlling such pipelines easy. I have an elaborate system in mind to decide where a value must be injected to make the line valid so in most cases you don't even have to indicate it. JS has beautifully simple syntax rules so I have a lot of technical balance to burn before I start building technical debt.
I have some ideas for automatic parentheses and commas in function calls. I realize while using a command line you do not want to tap shift often. My main idea here is that two names or values in js are always joined by an operator so the first missing operator is a call and following missing operators are commas until the end of line. This has lots of nasty edge cases though, like that no argument expression can begin with a unary operator or a bracket of any shape. You can always prepend a comma but it's cognitive load.
Anyway, do you have any suggestion or warning besides "js bad" which I know but it's the most popular sandboxable language and has a massive existing set of libraries which I kinda need.3 -
Does anyone have any recommendations for command line parsers for Python? I've looked at argparse click docopt so far. I am clearly bad at making informed decisions.
-
Does anybody knows a command line tool that convert C file (sample.c) to hex file (sample.hex).
I don't need any GUI tool only command line tool.9