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 - "print"
-
windows update code
function update(){
print("10%");
print("30%");
print("50%");
print("99%");
_doActualUpdate();
_mineBitcoin();
print("100%");
return;
}15 -
!Rant
So the interns tried to 3d print a rubberduck and it got stuck mid way.
Guess i have a coding duck now
I call her "Detached HEAD state"18 -
Hoorah! My code finally works! Now gotta remove those 1000 print statements I used to identify the bugs 😥11
-
Sure I've said this before, but I was once asked to embed a video in a pdf so people could print it...9
-
"We need you to build a feature on our website to stop people taking screenshots. I can use the print screen key and then easily print out our website design. You need to make the site design harder to copy".
This is an extract from a recent client email I received. To say I'm in shock is an understatement.26 -
Back in the days when I started to learn c I had an assignment to print all the prime numbers between 1 to 100 but didn't know how (with if/for/while)
So I searched Google for "prime numbers from 1 to 100" and used printf to print them on the screen
I got an A+7 -
Client has asked me to sign an NDA. They've emailed me the NDA and asked that I print two copies of it, one which I must sign and return to them, and the other to keep for myself. Because I'm to print it twice, they've attached two copies of the NDA in PDF form. They're identical, I've checked.4
-
Bug emerges
Print a bunch of stuff
Breakpoints
Crisis of confidence
Research obscure fundamentals of the language
See typo
Fuck.5 -
*spends 40 minutes modifying and remodifying algorithm*
*gets the same output*
....
*checks print statement*
print localVariable
*throws keyboard out the window*4 -
My boss has never programmed before. Recently, he decided that I should print out all the code for an admittedly rather small project (10k lines of Java code, 200 pages printed out), and then have me explain every line to him.
Luckily, he didn't get past 'public static void main', especially since I hadn't even bothered to print out more than that!13 -
Print 'Hello World' in ReactJS.
# Time - dies
# Memory - cries in silence
# C - gives an evil laugh7 -
print("Hello DevRant!")
I'm new to the community but I really dig everyone's posts and attitude. This app is great!8 -
After 2 weeks of node, I go back to my buddy python. Write some code. Get tons of errors.
This is what I did at at least 10 places. 😔😑11 -
Submitting my homework in LaTex makes me want to print it out and hang it on the wall because it is so beautiful.11
-
(Not dev, not rant, although it might become one later on)
So as some of you may know, I am colorblind. I always avoid working with colors because of it. Yesterday I decided to do something I've always wanted, painting. And no I don't mean painting on a canvas but miniatures and other 3D models.
I love catan, I love 3D printing and I thought let's print a catan set and paint it myself, without depending on family to ask for colors.
I've got this German paint tubes and used the wikipedia color descriptions to decide what to paint which color.
The following is the result, its a wheat tile (and in the background a wood tile).
Feel free to give tips and suggestions. If I picked a wrong color please tell me so I can update my tactics.
Finally took this step. Yay25 -
I saw this the other day:
if x % 3 == 0:
print("Number is divisible by 6")
I wanted to, and want to, die.7 -
Sometimes I have such little idea what I'm to do or doing that I print code to 'analyze' it fully...6
-
Instead of using actual debugging tools, using print statements and forgetting to remove all of them.7
-
// I can't be the only one...
public static void p(String inpt) {
System.out.println(inpt);
}
...
p("That much typing is unjustified.");13 -
When you see a Java devotee using Python and they're doing something like this:
array = [1, 2, 3, 4]
for n in range(0,len(array)):
print(array[n])
At least I get to tell them "hey it doesn't have to be so hard just do it like this:"
array = [1, 2, 3, 4]
for n in array:
print(n)12 -
Yesterday I realized that with the improvement in 3D printing, soon we will probably be able to download more RAM.4
-
Did you know that
console.table(arr);
will let you print whole JavaScript arrays in table form in console?10 -
I tell him to submit a pull request, he just merges his code. I revert it and tell him to submit a pull request, he submits one then merges it himself immediately after...6
-
function checkBrowser() {
if(browser == "Internet Explorer") {
print("I'm sorry, you have reached the 404 error page. Please use a different browser. Have a nice day.");
}
else {
print("Thank you for not using Internet Explorer");
}
}6 -
WTF .... now there's a 3D coffee printer, and we can print our faces on it!!!!!
https://instagram.com/p/...
(pic related)5 -
try {
…..
} catch {
// this would never happen
}
and then it happened
fucking always print something when you catch exceptions15 -
Client sent the printing company I work for right now, a fax with an image and a message like "Please print this 4 by 2.54 meters", guy I talked to feels really tempted to scan it in and then just print it lol5
-
Is a code truly tested until it has print("Fuck this"), print("Fuck that"), print("Fuck you"), print("Fuck me") spread along every code path?8
-
Unwritten devRant law #1:
if ($day === 'Friday') {
// add important words
$rant .= 'deploy';
$rant .= 'not';
}
print $rant;15 -
Before I learned how to code and people said that you should print hello world I thought they really meant hook it up to a printer and print it on paper1
-
Python is a wonderful language.
But apparently the C syntax is still so deeply engrained in my mind that I get errors when using "printf()" instead of "print()" on a regular basis. m)6 -
if(stickersReceived()) {
coding.pause();
print("Finally! The Stickers are Here!! Thank You DevRant.")
setMood(Good);
coding.resume();
}11 -
How to make loading animation in terminal quick and dirty
Loop through these, print them, and replace them with the next one
\ | / --2 -
import datetime
age=19
while not dead:
today=datetime.datetime.today()
if today.day == 1 and today.month == 4:
age+=1
print("🎉")11 -
dev1: "I wish I could craft something physical, something I can hold."
dev2: "Just print off one of your websites."3 -
class devRant_member:
def __init__(self, name):
self.name = name
def say_hi(self):
print( "Hello world, I'm ", self.name)
p = devRant_member("Blacksteel")
p.say_hi()6 -
"xkcd.com is best viewed with Netscape Navigator 4.0 or below on a Pentium 3±1 emulated in Javascript on an Apple IIGS at a screen resolution of 1024x1. Please enable your ad blockers, disable high-heat drying, and remove your device from Airplane Mode and set it to Boat Mode. For security reasons, please leave caps lock on while browsing."
Best part of the site honestly1 -
001 REM Code review
010 PRINT "Nitpick nitpick nitpick nitpick nitpick"
011 GOSUB REFACTOR
020 PRINT "This function is too complicated, break it up"
021 GOSUB REFACTOR
030 PRINT "Why do you have three methods for this? Put all the logic in one method."
031 GOSUB REFACTOR
040 GOTO 020
041 REM ARGH
998 PRINT "Looks good."
999 STOP8 -
I just got asked to print out last weeks production data in the "pristine squiggly brackets format".
😐
WHAT DO YOU MEEEEAAAANNN!4 -
This snippet was found in Thanos’ bash history:
```
ps Sh | sort -R | awk 'NR % 2 {print $1}' | xargs sudo kill -9
```joke/meme shell script thanosdidnothingwrong avengers joke marvel scripting snaps that hurt in prod thanos bash -
Wanna have some fun at work.
Print out a beautiful sheet of voice commands for the printer.
Lean back and wait :)2 -
Our clients get links to a WebGL application which is rendering a modified 3D model and displaying some data in real time (domain irrelevant).
Today a client asked if there was a way to print that.
You know. Print "that". The 3D rendering of the model.
Printing a screenshot was not deemed sufficient, since it doesn't hold enough information. Also if you are thinking to just print a few key perspectives with the crucial information rendered in - they already get a PDF with exactly that.
What are they even looking for? A freaking hologram?..11 -
10 PRINT “Hallo”
20 GOTO 10
1983 : my very first program and also very first contact with a computer - a VC649 -
human : Merry Christmas :)
js : console.log("Merry Christmas")
python 2 : print "Merry Christmas"
python 3 : print ("Merry Christmas")
bash : echo "Merry Christmas"
c++ : printf("Merry Christmas")
java : System.out.println("Merry Christmas")
html : <div> Merry Christmas </div>
add in for your favorite languages...20 -
I'm doing my CV in Vue with Bulma and everything is all nice and neat. I have a nice and neat 'skills' section that you can see pictured, and it's nice and neat. However, what is not very nice and neat is Firefox (and chrome's) print to PDF thing which ignore the nice little semi meaningless dots that I have, which is so fucking asdfghjkl;27
-
why the fuck does my printer not work for linux. dammit! i tried everything and this piece of shit epson xp-400 dont want to print. im about to print a fucking sledge hammer to it real soon!6
-
Designer ranting about designer.
Most graphic designer in switzerland have no clue on how to build a proper InDesign document. The design looks astonishing but when they want their design printed, they get roasted everytime.
No I can't print this ultra vibrant rgb color. This image has only 72ppi I need 300ppi in order to print this! WTF? What is this color setting? Japanese ICC color profiles? Are you retarded? No this layer composition is horrendous and unusable. WTF? a 60 page business report and no paragraph format presets? How I'm supposed to typeset this shit next year? No I can't print this fucktard, how long have been a graphic designer? 15 years? And you've still produce this crap? .... Every single time.
Thank goodness I don't work in print anymore.1 -
Me in the Gym 😃😉😀
weights = [12.5, 15, 17.5, 22.5]
sets = 0
while (sets <2):
for i in weights:
print(i)
print("Rest")
sets = sets + 1
And people say keep your work at office.10 -
“I sent a document to print but it hasn't come out... I think the printer might be broken”
NO! The printer is not BROKEN just because you can’t print. You see that person over there at the printer? Yes, that one collecting their print job now? THE PRINTER IS NOT BROKEN! -
TL;DR: Printers suck. MS-Word sucks.
Yesterday I wanted to print a few participation certificates for my blender project students.
*Turns on printer, runs downstairs, gets paper, runs upstairs, puts paper in*
So I tried to print in word. Nothing happened. Printer was online. I checked queue: Nothing.
*a couple of tries later*
Okay, fuck it! I export it as a pdf and open it in edge (8 times. 8 documents. Edge is a neat pdf-viewer, fight me). I press print on one. It works. I print the others and check: They look shit. The images look like 25% resolution and 50% jpg compression. I check word.
It by default exports in low quality. Yea, thanks for asking me. I export pdfs again and check "high quality". Open them, print. Done.
These were like 30 wasted minutes and print color. And paper.
Btw they look fucking neat. I can't show them right now but gradient text headline, project name is a rendered and edited 3D object :D4 -
some people are just worst than the devil.
int main()
{for (int i=0;i<5;i++)
{for(int j=i;j<5;j--)
{printf("*");
}printf("\n");
}
}
(some dude from class wrote that)9 -
So today i got a call log from some users saying that they have "lost" the print page button when we made them switch from IE to Chrome, and I need to put the functionality back for chrome, after checking to see what print button they were talking about, because our system didint have the function to begin with, i realised they were talking about the print button on the IE toolbar that did not appear in chrome :/. The dev team had a good laugh afterwords.6
-
Time to time I do some Hard- and Software repairs for neighbors and get some little money for it.
My neighbor let's call this one "Bob".
Bob has a new printer and a old one which is over 15 years old.
First: Holy shit 15 years old printer works still. WTF? Is this thing Hulk or what?
He ask me why he can't print a 128 site Doc with pictures in it from the old printer. It always stop at around 50 pages.
I tell him that it has only 32 MB Ram/Flash and can't print more. Before the Doc's were much smaller and could print that, but today you got files with more than 10 MB and on a printer it need's atleast 128 MB Ram to process and print it.
Guess what? One week later he asks me the same questions.
Why don't you print it on your new shiny expensive printer and why do you need still that OFFICE WAR VETERAN OF PRINTER to print it???
Seriously just use the new and better one!! Bob please give that old one a burial. He deservs it!5 -
TIL that Python's "everything is an object" mentality allows you to do
def some_function():
some_function.variable = "abc"
print(some_function.variable)
> abc9 -
Want maximum efficiency in python?
def say(text):
print(text)
You save 2 keypresses everytime you print16 -
Today I wanted to buy a printer. I spend hours researching on inkjets, inktanks, laser, cost per print, print quality... and then I realise that I print like 10 sheets in a year.
Wtf am I doing? Guess I'm just going insane with all the work. Maybe I'll feel better when I get my printer.23 -
I needed to print out the documentation of Vue. Their guide, unfortunately, is not printer friendly. Used tempermonkey to inject a script which removes the navbar and sidebar so that I can print it.
I am a hacker2 -
Here is way to find the element with maximum frequency in a list in Python:
a = [1,2,3,4,1,2,3,4,1,2,3,1]
print(max(set(a), key = a.count))5 -
Good job person who is not educated enough to not print a screenshot but still somehow got to work at university
-
The reporting department had a freak out because they couldn’t print to PDFs. Whole reporting nightmare and on fire.
Turns out it was printer unplugged a thousand miles away where someone fifteen years ago put a check in to ensure that a specific printer was connected before allowing physical print jobs.3 -
Me: "why are you doing this with PowerPoint?"
colleague: "because i'm going to print it"
I left the room -
Been asked to do things out of my area, like print stuff, make videos, institutional document guides, etc etc etc1
-
An interesting python function I just made. Probably not the first to do so.
def printf(fmt, *args):
print(fmt, args, end="")9 -
Stopping a heavily used script in production, because management wanted a print statement to include a period at the end.
-
When I start a new project in Python after not doing Python for a while:
print("Hello, World.");
When I start in C:
printf("Hello, World.")
After errors: *facepalm* *facepalm* *facepalm* "RRRRGH semicolon."
Heh at least this time I remembered that Python uses print(), not printf()...1 -
Do you want to run the script? Yes, No, Print. Wait what?
What is the intention of 'print'? Will it print the question out for me? :D5 -
visual rant "Print Screen"
How to express anger with your office printer. Pissed myself at this.
https://youtu.be/zbpaXGXIOdo1 -
Unreal Engine adventures:
me: So ok, I need a map from int to String
Unreal: ya but it's called TMap, FCompactPoseBoneIndex and FName.
me: ..uhhh ok whatever
...
me: ok for debugging, please print this
Unreal: FName is not a string
me: k. Fname.toString().
Unreal: ya but it aint a TChar array now
...
IT'S A FKING STRING JUST PRINT IT. And the other guy is still an int with extra steps! Come the fuck on now....
I mean, honestly, a logging function that cannot print a fking FString? sigh...
Man, I miss python and blender...8 -
Here is the finished print!
BTW: this is not my design
(https://thingiverse.com/thing:17886...)
Rel: https://devrant.com/rants/941361/...3 -
WHY THE FUCK ISN'T THERE AN OPTION TO QUICKLY JUST FUCKING PRINT A TABLE IN PHP???!!!!
I DON'T WANT TO SIT AND WRITE 50 MORE LINES FOR YOU TO DO SUCH A SIMPLE TASK.
I WANT TO JUST "SELECT * FROM BLABAL" AND PRINT THAT FUCKER IS IT THAT HARD EH?26 -
[No spoilers, Mr. Robot, I hope] I saw this screen, and I'm truly curious about one thing:
What does line 21 and 22 do (double print statement)?
Is it an error or is it actually doing something that I don't understand?
I saw he is redirecting stdout to the file, but why the "print out" and "print(out)", does it make anything different that I'm not aware of??19 -
// 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 -
Its amazing how many people call themselves programmers yet cannot figure out the usefulness of print/log statements. 🤦♂️
-
I created a class Log with a method d(String tag, String text) to replicate Android's log method in Flutter.
class Log {
static void d(String tag, String text) { print(tag + ": " + text); }
}
I replaced all 'print' into 'Log.d' in my project and I wondered why emulator kept crashing for the past two days.
Now I know..4 -
Thank God it's Friday and my brain is toasted from this specific email to IT department which I had to call to get more details. Here are the parties involved.
1) Original sender (OS), 2) Sender to IT (SIT), 3) IT (Me)
SIT: Can someone from IT print this for OS? She's having issue printing.
Me: It's just an image file in the email. What issues is she having when trying to print?
SIT: Idk. She said she's having issues printing.
Me: Yeah, but what issue? She can't connect to printer, the file won't open or what? Can you ask her what the issue is?
SIT: *hold on...comes back... She just said that again..issue printing..
Me: Well, we need to know what issues it is so we can fix it. In that case she can print and not keep sending documents or files to someone else to print. Btw, did you try printing the image file?
SIT:Since she said she's having issue printing I figured to send to IT to fix the issue and print. I didn't print it.
Me: 😕😂🤔🤨😒..what? First of I still don't know whatever issue she is having. Second, you should try printing it and if you also have issues, let me know.
SIT: Ok how?
Me: *shows her how to get
SIT: Thanks it printed. Now I'm also wondering what issue she was having because this was easy to print..
Me: Can you transfer me to her phone?
Now pay attention here. She is SIT's boss.
Me: Hi OS, what issue are you having when trying to print the image file in your email? I'd like to fix it so you don't encounter that issue from now on..
OS: No issues. I was too busy to do it so I asked my secretary to do it.
Me: So you can print image files with no issues, correct?
OS: Yes.. actually I just printed my a picture my daughter sent me.
Me: Ok, have a nice..
*I call SIT back
Me: She's all set
SIT: Thank you so much fo fixing her issue.
Me: She didn't have any issue. She can print fine..
SIT: WTF!?!
Me: Have a good day, SIT..
😂😂😂😂 I was WOWED!!!6 -
I love pipes in R. Really wish more mainstream languages would adopt that *looking at you python, nodejs-tc39, rust, cpp*
Just something about doing
data %>% group_by(age) %>% summarize ( count= n() ) %>% print
As oppose to
print(summarize (group_by(data, age), count=n()) )18 -
> Mister BossDeveloper, I'm calling this method called "consoleLogger" and I'm not seeing anything in console, why is that happening?
> Mister IHateForALiving, it's redirected to some pm2.log file
The 180iq move: create a method, explicitly call it "PRINT TO CONSOLE" and make sure it doesn't print to console, ever.4 -
So, this has happened to me quite a few times
I write about 100 untested lines of code (I know, bad practice) and then go ahead to test it
As expected, the program crashes
Spend hours debugging, to no avail
And then I add a print statement to check where the code stopped, and hey presto! The code completes execution
I remove the print statement, the code gets stuck
Also, the codes don't use any low level functions that might be interfered by print statements anyhow
Till today, never understood how a print statement helps codes execute properly6 -
Is it okay for someone to printout their own devRant stickers which includes the devRant logo (this :/)?
I am unable to get the stickers on my own. We don't have international shipping/mailing. But I know a local sticker printing shop which can print one for me. And I really one one for me.9 -
Was writing a multithreaded program in Java with an infinite while loop (for waiting). The thread was never preempted. Added a print statement inside the while loop and everything started working :/
Now I need to print a stupid message just so the program works :P3 -
import antigravity, random
bugs = 99
while True:
print(bugs, "bugs in the code today,")
print(bugs, "bugs in the code.")
print("Git pull the file,")
print("Fix and compile.")
if random.randint(1, 7) == 7:
bugs += random.randint(1,16)
else:
bugs -= 1
print(bugs, "bugs in the code.\n")1 -
When you wonder why it doesn’t work put print statements all over the code, because you want to find the error, but no print Statement works even if it just should print test...
Fml4 -
Just got a request to print the new Tesla truck.
I think it wasn't that hard for the Designer to implement the low pol. Design for the 3d print :')4 -
$ python
Python 3.6.1 (default, Feb 2018, 42:06:66)
[GCC 4.8.2] on linux
>>> print(None)
None
>>> print("The ideas in my head are always better")
The ideas in my head are always better -
Tip: if you are doing a semi complex or complex query in Django and you have doubts print the SQL statement and analyze it. i.e print(queryset.query)
Just reduced a query to 1 join instead of two by just passing a list of int's instead of a list of objects. -
Oh Shit! Here we go again!
print(request_permissions)
>> [ ]
if request_permissions:
//some if shit
else:
raise 404
It was supposed to raise 404 for empty array, but continue to exit if.
Me: What the fuck?
**printing request POST data**
**empty, nothing wrong here**
**double checked print statement output**
** still printing [ ] **
**restart server and again checking print statement**
**still same**
Getting mad over myself, for failing to debug simple if else.
Wait....
print(type(request_permissions))
>> <class 'str'>
Me: What the actual fuck??
Fucker literally dumped empty array to JSON causing array to convert into string "[ ]" and still using if else based on array instead of string length.
Thanks to our Product Manager who approved our request to revamp this part of code and also revamping the whole shitty project developed by 3rd party in upcoming quarter.22 -
For the guys familiar with 3D printing.
Does your slicer also give you time estimates that are completely off? I'm printing something that would take 10 hours according my slicer. Started it at around 10 AM and its 1AM now and still printing. Halfway during the print I increased the printing speed to 150% because it was way to slow.
Is it just me or are the estimates completely off at each print and the longer the print takes the less useful the estimates are.
Any advice?4 -
Classic: you have to print your bachelor thesis and the printer runs out of toner. And all copyshops are allready closed. 🤷🏻♂️9
-
When you write print(string), which type of people are you:
A) 1. ( 2. string 3. )
B) 1. () 2. string
C) Autocomplete guys
D) hodor
*applies for echo, printf, println, etc.
** python2 and c++ are discriminated on purpose9 -
started with
printf("Hello World... It's 2010")
Journey to
cout
println
Document.write
echo
Stayed at
try:
print('hey there...')
except:
print('got issue.... Fu#k this bug')
pass -
Live coding interview to code tic tac toe console game and I couldn’t even print out the game board. FML.2
-
When i have to take an hard decision, this python script always helps.
import random
print(random.choice(hardDecisionOfLife))2 -
Found a bug in our print ordering system the other day because "vertical" was spelled wrong. Caused the vertical check on photo dimensions to not work correctly.
Bug has been there for almost two years and 2k print orders 😂 -
Day 3 as the Junior Dev.
Co worker fucks every time on defining functions in python
What my asshole teammate does is:
def someShitFunc():
print(shit)
And he was clearly instruct to return value not print the value what a jerk he is.
I have to fix his all problems and in meeting he brags how his code worked. What a sucker.4 -
!advert
To all indian ranters, print your pdf programming literature using printster.in or from there mobile app, prices are really cheap.9 -
Introduce lot of temporary variables and print statements while coding and won't remove it later...🤐
-
Just before deploying this to prod found this bug... discover this bug with bunch of print statements7
-
class test:
def __init__(self, x):
self.x=x
def printer (self):
print self.x
class new(test):
def __init__(self, y, z):
test.__init__(self, y)
self.y=z
def printer (self):
test.printer(self)
print self.x
super(new, self).printer()
print self.y
N1=new(1,2)
N1.printer()
Is this correct in all respects ??
If erroneous, where ??3 -
Thought I'd print a useful article on JS design patterns....
Looks like I'll be messing with the CSS for a while!1 -
Had a markdown text in gitlab and tried to print it. It did not work.
Pasted it into atom then ctrl shift m
for markdown view and find out atom can not print. tried firefox instead of chrome, also no luck. After 15 min Odyssee I mark the text im chrome and rightclick+print it, works1 -
I don't know why people love to point the finger at notebook's screen and left the finger print behind
-
System architect make feature to print password, when you create new client. It was architecture for backend server. Just why and how?!5
-
the colleagues discuss their juvenile motorbike memories and i am sitting aside like
10 print 'i tried to code'
20 goto 10 -
Printers are the most annoying thing. Why can't iPhone and iPad print to normal printers? WHY CANT WORD PRINT TO MY 3D PRINTER???
-
One of the most satisfying feelings...
> Finally fixing a pain in the ass bug
> Cmd-f "print"
> Delete all print statements -
New forum post! "Here are some useful links:"
- useful link
- semi-useful link
- link to some random URL, hosting a PDF of the print view of a Wikipedia article, from 2007(???)5 -
I guess you know its time to go when i your print statement writes:
System.out.println("LAST CHANCE 2:" + output); -
print(type(signal))
print(type(-signal))
print(type(-1*signal))
returns....
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.float64'>
ffs.2 -
This was in 2001 on a legacy AIX core ops server. I got tired of waiting hours for the last page of a print job to debug totals. So, I added a print menu option to print it to an HTML file on a share served up by a wab server and send me the email link. Took two years to catch on but when it did, we eliminated all nightly print jobs and took the paper budget down by 90%. All because I was too lazy to keep reloading my desk jet with paper to debug reports and I forgot to take it off the menu.
-
Thinking to reduce google foot print by replacing google map with here map... Any suggestion before I do?10
-
Not many people will get this joke/reference.
I got {for i=1,8 do print(i .. ",") end} M's in my bank account, yeah
{for 1,5 do print("In my bank account, yeah\n") end}1 -
Reading fine print FTW... Samsung Galaxy Watch features only work with Galaxy phone...
Yes uh.. no...1 -
Any source code or program to print
selected portion sections of a pdf file on a web page? For example you only wana print some part on a PDF file.... Any nerd out here to help?3 -
Comment your favorite line of any song, and use only print command of your suitable programming language. :)6
-
I've used Java for so long, I switched to Python and I keep doing this
for(i in alist):
print i;
}2 -
How on earth is there any "sane" software (eco-)system or will it always be so crazy because as pieter hintjens might have said all this soft- and hardware is created by this social animal called human, with all it's faults and aberrations...
So it was just, that I could not print - probably because of this bug: https://bugs.debian.org/cgi-bin/... - couldn't install a newer ghostscript. So I would scp my files inside an Ubuntu-VM from which I could print. Sometimes I could pdf2ps some files or transfer back the ps-file and print on my host machine, but mostly not... U n t i l today when I installed the fucking debug symbols package for ghostscript and I could just fucking print. Heisenbug, ghost error or what?1 -
if(
bathroomrenovation &&
startdate < now() - 4 weeks &&
!showerisfitted
){
do {
print ("Where the f**k is my f**king shower!");
} while (delay);
}10 -
Q: What will be left in your code if you remove all the bug causing statements?
A: print("Hello World!") -
He this is C++ and i am python.
Hello world in python = print("Hello world")
Hello world in C++ = i don't know 😅10 -
What is the Ubuntu equivalent of Snipping Tool? It's too tiresome to manually crop print screens.12
-
So I was asked to design a database physical model using an old CASE tool installed on one of my institution computers (which runs windows) and after three hours of work, when I pressed the "print" button, it crashed. Didn't print. Didn't save.
I'm too used to Atom's auto-save function.
I hate windows3 -
SpaceX fanboy here
I'd like tp print me a Starman mug
Anyone knows of services I could use in Belgium ? -
Gave a coding interview today on Coderbyte. The portal didn’t allow me to print anything (could only return from function). Had a hard time debugging code without using print statements 😤8
-
Just remembered about that one time when my former boss wanted to talk about the requests we received from a particular client and asked to have all the mail exchanges during the last 3 months or so.
I forwarded all those mails to him, to which he answered "nononono, I want them on paper for the meeting".
I shit you not, he had me print something like 30 pages of emails, signatures and all, no fucks given, just to toss them in the trash 30 minutes later.1 -
I don't know how to tell Visio to print my drawings in A3 format so I print them in A4, put the papers on the copy machine and copy them to A32
-
I always love when I pick C again just for fun. I'm really used to "print" something if I'm not sure about that in basically everything.
You wanna print something in C? Well unless you know what and where it is (no point of print-checking then), it'll just happily crash without any reported error. Not to mention if I wanna find a bug, I don't have to get a debugger! Printf alone is basically a breakpoint! Ah stupid me :D -
class Bio:
def __init__(self,likes,dislikes):
self.likes=likes
self.dislikes=dislikes
Sabyasachi=Bio('Python','!Python')
print ('Hello devRant Community. I'm new here')
print ('I don't know why I am writing like this')
while True:
Lets_Rant('😠')5 -
Unicorn Themed day at code club ^_^
``` """ unicorn finder """
from random import randint
class UnicornFinder:
""" UnicornFinder class finds uncorns """
def __init__(self):
pass
def find_unicorn(self):
""" find a unicorn """
unicorn = True
for i in range(0, 31):
if randint(0, 7) != 7:
unicorn = False
break
if unicorn:
print("u200 unicorn found")
else:
print("u404:: unicorn not found")
if __name__ == '__main__':
UnicornFinder().find_unicorn()
```1 -
I started a new role and get asked on multiple occasions to print documents for someone, they even went to the effort of opening the print dialogue and showing how to print with comments. WTF, print that shit yourself.
-
So here's my question. To print PDF's is better doing via Backend or Frontend? I've been testing and for me, both have some pros and cons, but I want to listen to u guys.2
-
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
-
I need help structuring a new TypeScript project built on a MERN stack. I used CRA for the client, so I opted to have separate tsconfig files -- one for client (auto-generated by CRA) and one for server (extends node12 tsconfig). However, I'm trying to setup eslint and prettier globally so that the lint/style rules are uniform across the codebase. CRA adds an eslint config that extends react-app, which is fine, but I'd like to still have my global rules. I have written my eslintrc.json file and am happy with it, so I placed it in the project root directory. I figured I would install eslint, prettier, etc. in the project root, then when I run eslint globally, it would lint the server code with the global rules and the client code with the global rules and the react-scripts rules.
However, react-scripts complains that I've installed a newer version of eslint in a parent directory. I can either ignore that rule or use the same version as react-scripts, but it seems like react-scripts is going to run eslint on its own when I run npm start, regardless of if I have a global config. What should I do? Is there a better way to structure the app?1 -
#!/usr/bin/environment perl
use strict;
use warnings;
for my $day (qw/Mon Tue Wed Thu Fri/)
{
print "$day coding\n";
} -
>>> a = ["print('a = ', a, '\\n', ''.join(a))"]
>>> print('a = ', a, '\n', ''.join(a))
a = ["print('a = ', a, '\\n', ''.join(a))"]
print('a = ', a, '\n', ''.join(a))
>>>
from qpython's mobile website -
My team's doing an internal hackathon this week focusing on improving developer productivity and happiness and I haven't been able to settle on an idea yet... Any help appreciated!4
-
It always seems that debugging tools are almost impossible to find for the language youre learning.
Here's an entire tutorial on Go - last chapter is how to use the debugger. GAHHHH -
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 -
usefull=accomplishmentsInLifeToday
thingsDoneToday=list()
minutesInDay=1440
minutesRemaining=countdown(minutes)
void endOfTheDay:
if len(thingsDoneToday) > 0:
print("What a productive day huh?!")
else:
print("You lazy caffeine maniac... Get up and code!")
while minutesRemaining != 0:
if usefull.done():
thingsDoneToday.append(usefull)
else: continue
endOfTheDay()
Prints: You lazy caffeine maniac... Get up and code!
Plot Twist: Doesn't even print because it's full of bugs. Fuuuuuuu! -
I was told that there was going to be sleep.
import time
print("Sleeping for 8 hours straight")
time.sleep(8*3600)
print("Waking up") -
int yourMum = 10;
for(int boner = 0; boner < yourMum; boner++)
{
print("Fucked her last night m8");
}
return CallOfDuty.Instance.CurrentGame.Disconnect(DisconnectOptions.PULL_THE_PLUG, new Salt(SaltOptions.MAX_VALUE)); -
Whenever I write a whole code to print words it does not work it says there is a error in #include<conio.h>6
-
n=input( )
k=list(n)
for j in range(len(k)):
if k[j]=="a":
k.pop(j)
print(k)
''' i want to print the list by removing a letter "a" but it is showing index error why ? help me out'''7