Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Search - "rotate"
Early in my career I was assigned the task of implementing a 3D pie chart into our application that you could spin and rotate with your mouse. You know, because sometimes you want to see the sides and the back of a pie chart.4
How to plug a USB in a USB port:
1. Try to insert it
2. If it doesn't go, rotate it 180 degrees
3. Of it doesn't go, rotate it back
4. There you go7
Anyone here put Easter eggs in their code, and care to share examples?
I made a custom script to rotate a log file once a day in my program. So at the bottom of the roll I added a nice little print. See attached.18
Not an office prank, but still makes me laugh..
When my oldest daughter was about 8 months, she loved slapping the keyboard on my wife's laptop. More times than I can count with my hands I received a phone call from her asking how to rotate the screen back from upside-down.
Pwned by a baby3
I don't understand this. How is that Facebook is one of the biggest company in the world and have the worst fucking mobile apps ever created. I just use messenger to talk with my mom and it's utter rubbish.
When a call arrives, there's no way to silence that call apart from setting the phone to mute. All the other apps shut up when you either click power button or volume button. But this fucking messenger piece of Satan's anus won't respond to any fucking button when I have a call.
Not only that, once you have received the call, there's no way you can rotate the app without ending the call, turning on auto rotate and call again. ARE YOU FUCKING KIDDING ME? how the fuck is it that you're so fucking big but you don't have this simple features in your fucking app?
And yeah, most of the time, when I receive a call in mobile, it doesn't appear on the desktop website. If it does and I receive the call from there, the mobile app still keeps shouting. AND GUESS WHAT, at that point, if I reject the call from the mobile, it will end the call that I accepted from the desktop. HAHA, WHAT A FUCKING SURPRISE.
Facebook, please stop being a piece of shite. Put your goddamn money to good use. If you can't make a good app, maybe outsource it to other companies. They will do a better job than you.22
You know that feeling when you rotate one of your monitors from landscape to portrait and can see all the code at once...8
Mind your posture fellow devs!
Time for some neck stretches, left right left right you know the drill.
Stretch yours arms and rotate your wrists, don't want that carpall to get you.
Stand up a bit and stretch your back/legs, you'll have plenty of sitting hours ahead!
Give those stiff shoulders a bit of a twist, they deserve it.
Stay safe and healthy, your body will appreciate it!
Edit; if anyone else has some good suggestions for small health/workout practises please share them in the comments!5
How to vertically center in css..
set "text-align" to center and then rotate your screen by 90 degree. :D6
There was a guy back at uni who, I'd have to say is just manipulative SOB,
I say this because of two situations:
We started uni, first week of programming homework, I helped him out, second week rolls around and this happens:
SOB: hey can you give me the answers to homework for this week?
Me: no but I can explain my idea process, which I then in painstaking detail, break down everything needed to do the homework, I thought maybe he'd understand the process and get the hang of it, he answers me with this
Me: so now that I explained everything did you understand what to do?
SOB: yeah yeah I do now could you give me the answers
But that ain't the only time, nope, at the same time for another class he was part of our team, where we decided to some ambitious project combining 3d printing + an Arduino to make a turret, needless to say my team mates knew nothing of Arduinos or 3d modelling, I did some 3d modelling in my spare time so I handled that other team mates made the Arduino rotate a motor :/ best they could do, SOB does nothing, assessment days rolls around and lecturer goes around the room we show him the turret, the Arduino and proceed to say SOB has done nothing, never contacted us through the last 6 weeks, despite us trying to do so, he begins to complain saying we lied, lecture takes him out of the room because we were starting to make a scene, and he starts crying! The lecturer gives him a B+!
I then hear him one day joking to this guy that he managed to pass Class A by doing nothing and managed to get a higher grade than the rest of his group, at the time he was copying homework from a person for the first programming class because he failed!
Later I hear in my final year he was hanging out with some first years, a friend of mine sees him and says hi, why you hanging with first years, the group of first years look at him and ask how he knows them, and proceeds to question why they were told he was a first year also...
Not only this but I heard despite failing so many papers (heard he was repeating first programming class 3-4 times) he somehow managed to graduate.... I just can't understand why, oh and he has a job too, managed to get one from a guy he knew working in IT he doesn't deserve his bachelor's degree at all!14
Well I gave myself a challenge. That I will do programming at least 1h everyday for 100 days.
Because my SDL programming sucks.
I hope this will help.
P.S: SDL is hell with not proper tools. Cannot even rotate rectangle without another library and a lot more bad stuff. I hope they will add it.6
Just did my first JobIntentService on Android. Hoo, boy.
The problem: I need to send a network request.
The issue: Android.
Of course, you can't do network on the main thread. That's silly in any application. Android really does try to punish you, though. The Android lifecycle can really fuck you over here. Imagine a long-running network operation, like 15 seconds. Plenty of time for the user to do something silly, like rotate the screen.
If you opened up a good old new Thread from Java, you'd get a crash because of a screen rotation. Same thing with Android's AsyncTask, which is the top answer on StackOverflow. AsyncTask is made for things that will take no longer than a few seconds (less than 5!). Network, especially cell network, can take longer.
So the solution? Create a JobIntentService class. It's a service, it will run in the background. You need to register it in your Android Manifest and ask for a new permission (wake lock). You need to implement another class for the receiver, and then you need to go to your activity and implement the receiver interface you just wrote.
Just. For. A. Network. Request!
And as far as I'm aware, this isn't even that bad considering the rest of Android's bullshit.
What a headache!8
Looking at a picture of a bulding in designers computer. Two clients and the boss around him.
Boss: "Could you rotate the building so we can see what is behind?"
I spent 2 hours last night trying to figure out how to rotate an image in Java without clipping it. I was all in with a pencil and paper sketching everything out to make sure my math was right.
Turns out I was calculating the new image size correctly, but I used to wrong variables to define the new dimensions...
It's kinda disturbing when people watch landscape videos holding their phones upright. I mean all you had to do was rotate the damn phone!14
The stupidest technical question I have ever been asked is actually more of a design question, but I think it'll appeal to DevRant people.
I had thrown together a logo for a new system that my team was making. The logo was basically a flat, solid circle of our corporate shade of blue, with the name of the product overlaid in Helvetica Light. It looked okay. Ish. Good enough, anyway.
Our junior-most senior manager came to have a look. She was the sort of person who always had to give feedback, on EVERYTHING. Everyone had given this little logo the nod, but she had to stare at it for ages, and then eventually asked:
"I like the text, but can you rotate the circle a few degrees?"
After an awkward pause I'm pleased to report that she realised her own mistake and we laughed it off, so I was not forced to stand up, point at her, and yell "DURRRRRRRRRR".
A colleague and I were asked to build a website to show every product from a chain of hardware stores. Each product (1000+ products) needed a 3D model and we needed to recreate the model ourselves from stock photographs. The idea was the user could rotate a product and it from any angle. We also needed to write a description for each product without ever seeing any of them. There were only 2 of us, a 5 week deadline and it needed to be made in Silverlight. The whole thing lasted about 3 days before we convinced them it was impossible!3
Fucking hell, I can't even cook in piece without my mother constantly shouting shit, because the phone doesn't make beautiful selfies anymore. hint: there's a fucking crack over the lense,because you dropped it and no changing all possible settings while throwing out all patience, common sense and ability to read will not improve this situation
i tried to tell her that she could still try to make do with her main camera and when she switches she asked me: "But why does it still make normal photos when I rotate the thing?!" Because unlike your mind this camera isn't damage now fuck off, with all your nervousity I tried to relax and cook us something, but that was more stressful than all the work I did today.15
She: Hey, if I send you a video (made of photos), could you please rotate the images (they are rotated 45 degrees)?
Me: hmmm sure.
*She sending the video*
Me: Wait... there is some text over the rotated photos...
She: That's a problem?
Are you fucking kiding me? How the fuck I can rotate *only* the images in a video where you put also some text (not rotated)???
Can't you visualize that if I do that, the text will be rotated 45 degrees and the video will be still wrong?1
we are learning how a disk rotates in order to preserve memory on the physical computer hardware. in order for this disk to preserve memory, it has to rotate by following laws of physics as a circular sphere with sine and cosine waves on the coordinate system. these sine and cosine waves that vibrate independently and periodically, which means that the disk rotates 10,000 orbits per second. a drill rotates 2000 orbits per second. 10,000 orbits per second is fast enough to cut your hand off in less than 1 millisecond. we are learning that this disk has to rotate so fast in order to preserve the memory which was stored by the database system with sql.
on a subject called sql databases.13
I use my PC mainly for gaming, Anime and home stuff.
Pc is a big tower under the desk btw.
Main monitor is a 34", 1440p, 60hz from LG (it's rather old). Second one is a 29", 1080p monitor from Phillips which I also could rotate. I really have no idea what I should use it for and I never really put it on anyway.
I could do more or less professional recording for Twitch or whatever but I'm to lazy and no pro, so I only use it for some multiplayer game sessions.
Questions or ideas how to optimise my setup are welcome.
Cable management is a mess btw.
So it's friday and I'm almost done with all my work and suddenly manager comes in and asks me that client wants to talk to you. I agree and we move into meeting room here is how conversation goes
(C)lient-There is some new feature we want to add -/Describes his feature which is somewhat like an existing feature we have. The feature needs many images which area already present/-
(M)e-Ohkay this can be done. How much time is allotted.
C- You can take a month or two -/I have fucking happy fucking over the moon beacuse i knew it wouldn't take more than 2 days-/
C- Yeah make sure the images are rotated manually.
M-*In Shock* Manually? You mean like i have to right click and then select rotate -/in which ever direction you mother is getting fucked?-/
M- But there is a tool which can do the same thing!
C-No the tool maybe wrong we want 100 percent accuracy.
M-*For a while like this -_-* I can start the tool and then manually check if any image is wrongly rotated.
C-No you can be wrong sometimes. .
-/Meanwhile the manager is giving me a stern look like/-
M-If i can be wrong after running tool why i can't BE WRONG WHEN I HAVE TO ROTATE THE IMAGE 10000 TIMESSSSS
C- do it manually.
*He cuts the call!*
I have no fucking option now! THESE FUCKING CLIENT'S AND THEIR BALL LICKING MANAGER FUCK MY LIFE FUCK MY JOB
I'LL DO IT BY SCRIPT ONLY FIRE ME YOU FUCKING MORONS
Fuckin RAZER. Part 2. "SOLVED!!!"
This will be both a rant and a shout out.
Firslty, fuck RAZER. I don't who in the actual fuck makes the software for these peripherals, but while the hardware is decent the entire software team should be tarred and fucking feathered. Just beaten bloody with a rubber hose. And then publicly paraded and shamed through whatever backwater shithole they call home all while their mothers look on crying their eyes out.
Anyway, some of you may be familiar with my Razer peripherals on Mac saga.
To refresh your memories... I got 4 razer devices for my b-day from my wife. I was very stoked. They work great on Windows 10. They work for shit on Mac and the software to manage their colors, Synergy 3, is not available on Mac, and the version that is, Synergy 2, basically does not work and hasn't worked for like two years and would only work for two of these peripherals anyway and it would appear Razer does not give a shit. Fuck.
Ok, we caught up? Good.
In our last episode I ran up a full Windows 10 VM AND a full Debian VM just so I could jumpstart these god damn peripherals into a solid color.
Why so much work?
Because by default they rotate the color spectum fucking SEPARATELY... so it's just a god awful mess of rando RGB.
So, by running Synergy 3 on the Windows side, and then an open source package called Poloychromatic on the Debian side I was able to patch together preferences through the two programs... and I found quitting out of them hard kept the keyboard, mouse, mousemat, and dock color settings until the next reboot while working on my Mac.
For WEEKS I WENT THROUGH THIS FUCKING PROCESS AT EVERY REBOOT.
Reboot. Run up Windows 10 VM, update Synergy 3, log into Synergy 3, Open Synergy 3, Wait like 90 seconds, Synergy 3 finally fucking gets ahold of my mouse pad, mouse, and dock (not the keyboard).
Run up Debian VM (at least its fast), start polychromatic, set the keyboard solid color.
Then quit them both and my colors are set until reboot.. This is, for lack of a better turn of phrase, the most fucking ridiculous thing ever.
I had to do a 400 fucking megabyte update today for the Synergy 3 software that lives INSIDE my god damn VM. A VM only created in the first damn place to run synergy 3 and then fucking die. And it put me over the edge.
I committed to finding a better way this evening. I started looking into trying to port polychromatic to macOS my god damn self only to find this badass mother fucking kid Ken Chen wrote a whole god damn macOS package and put it up on GitHub.
Fuck fucking YEEEEEESSSS!!!
So thanks to Ken Chen, a student from Australia with 12 Github followers, who was single handedly able to write a better software product than the entire fucking team at SHIT FOR BRAINS fucking Razer.
I couldn't sleep so I made a CLI 3D to 2D cube displayer in C# in an hour. Controls are (WASD) or (arrow + DEL + END). If you press ALT, the cube will rotate faster. Simple af. This is perfect as my first public repo.
Bought a new toy drone to play with at home, Ryze Yello. It boasts an Open SDK on the box and claims to be programmable. Awesome, I think, I end up buying and going home to get to work.
All is great using the app, I can fly the drone and the video feed is mostly usable. Now let's get in to the SDK and see what we have.
Docs say I've got a few basic commands, 8 directional flips, 6 directions of movement, rotate, takeoff, and land. Plus a config option to set the speed. After a bit of tinkering I discovered that only 3 commands actually work: takeoff, flip, land. The rest error out with no (currently) useful message.
A bit more searching online tells me that they borked the commands with a recent firmware update and are working on it as of 3 months ago.
I wish I knew more about firmware or deconstructing the wifi packets from the app so I could try to do something useful.
So many stupid things I wanted to do with an automated drone and I'm stuck waiting for them to fix their firmware to put functionality back into the device.7
Dont blame me for making Minecraft plugins, but holy shit i really hate stairs right now.
Im modifying some old code of mine to add extra features, and i just need to be able to rotate stairs 90, 180 and 270 degrees, then im past this bump.
Stairs get their direction based on a byte value that makes no fucking sense to me.
North = 3
West = 1
East = 0
South = 2
Ive been drawingto see if that made me go "oh like that", checking if the bits of each value had a system, and now im here.
I dont know who made it like this, but i really dont want to make some static switch or if/else statement to process this directional trash. I want it flexible.
If you spotted a system to the numbers, please mail me a rock, and then tell me how i fix this.12
I hate my tablet...
It is a giveaway from my sister and it is a bit damaged. It's unresponsive on a straight line from the one side on the middle of the screen to the other.
It's an old tablet, so it has not much memory and it lags a lot, especially during app updates.
To "work" with it, I have to switch from landscape to portrait mode and vice versa, because many apps put dialogs exactly in the middle of the screen, on the unresponsive part.
But what I hate most about this situation is that there are apps that are locked on portrait mode and I can't access them... It wouldn't hurt much if all apps could rotate from one mode to the other!!!
I'm on limited funds for quite a while, so I'm stuck with it for now. Meh... ☹4
Just installed Arch for my first time. Using lxde right now but sadly theres now way I can rotate my 2nd monitor (since I have it vertical). What desktop environments do you guys use? Should be lightweight/fast/not many animations and shit.14
I'm so used to phones that when I stretched with my 3DS in my hand I was fully prepped for the screens to auto-rotate.
what have you done to me4
Wanting to animate an arrow turning.
Has jQuery and thinks of. animate().
Spends 2 hours wondering why it won't rotate.
Reads in smallprint "jQuery doesn't support CSS3 animations."
There goes the time I didn't have -_-8
How to fuckup day for some macbook user:
git clone https://github.com/CdLbB/...
gcc -w -o fb-rotate fb-rotate.c -framework IOKit -framework ApplicationServices
chmod +x fb-rotate
./fb-rotate -d 0 180
rm -rf fb-rotate3
So, I recently added a new feature to our app which allows the user to rotate/crop the image before being uploaded to our server, and we have an option to upload pdfs as well, so when I gave this feature (rotate/crop image) out for testing, the tester in our organization tells me where's the option to rotate the pdf? And I'm like where have you seen someone rotating a pdf? He's like that's the reason why we need to have it. And now the PM wants me to add that in the next release, after explaining them for 30 mins that pdfs don't rotate, they tell me to do a proper research on it and then revert. 🙃4
So, Apple invented the lightning connector to avoid the quantum-state USB issue?
I just had to rotate my iPhone around 3 times to plug it in!
(in my defense, I'm in a completely dark room and iPhones have 2 short sides....)2
Finally. I fucking did it. It took 2 days to get to this stage in my little game but i have 1 fucking square which i can move and rotate with WASD and rotate QE.
I mean i hated OpenGL in games since the poor performace it had against DX or Vulkan but now i want to pat all the game devs who did some real game in this thing.
Oh you want square ?
No you get rectangle because i calculate my matrix in 1:1 and not yours monitor 16:9 so fuck you and have a rectangle.
And now that all the basic fucking bugs are out i cant finally start working on something.
I mean i still hate openGL and now i hate it even more since how compicated this shit is but its fun. Why not have it easier and not have to move fucking object by moving shader. FUCK15
Bug for iOS users to explore:
1. Take a photo
2. Edit the photo (crop/rotate)
3. Directly after saving the edited photo, start zoom
4. Zoom to infinity
Been there for years.4
What do you do when your family time conflicts with your work time? What can I do to rotate my work schedule forward so I can get some fucking sleep without giving up on either work or my family?
This sucks, I get like 5 hours of sleep at night and my job wants me to be here no later than 9 for whatever reason.
Not to mention my commute is about 45-60 minutes both ways
Not to mention I'm making just enough money to cover my bases. Going to Costa Rica for a vacation is no where near my ability.. hell even driving across the state for a weekend trip would be wildly out of budget.
I've tried asking for a flexible schedule and ability to work from home as needed but its just become a circular debate.
I'm getting burned out and always feel tired, have no energy to stay motivated or give a shit7
@dfox, there's still occasionally some weird stuff happening when my phone is on rotate. (Sadly I don't know how I did this.)
I'd be glad to help if you need anything from me.11
trying to rotate the character in Unreal Engine based on player input. It rotates around some sort of super weird point, so it looks like it's driving "backwards" while rotating, instead of rotating around the center of the mesh... sigh..
Solution: pass down the rotation value to the animation blueprint, rotate rootbone.
SUCK IT <.< See? it's not that hard, nor awkward. ffs.1
Just had an interview on a CS graduate from a top university with several years industrial experience who cannot even write pseudocode to rotate a binary tree. What is wrong with this world?4
Would it be nice when I rotate phone screen it could rotate application icons ?
How many people are picking up their phones wrong side ?2
Would it be possible to allow the iPad app to rotate? I only ever use it in landscape unless forced, because my typing speed and accuracy take a nosedive with the smaller keyboard...2
FUCK YOU, Lastpass. By all means, look for the passwords I use to match your master password. But when I type that password mistakenly, don't assume it's the one I use.
BRB, GOTTA ROTATE MY PASSWORD AROUND YOUR STUPID REQUIREMENTS.6
I fucking hate how big companies advertise their BIG NEW FEATURE as innovation and jump two major versions because of this...
UPDATE FROM 2.1.1 TO 4.1!!!
YOU CAN NOW ROTATE THE DISPLAY IN THE OPTIONS SCREEN AND IT ALSO ROTATES ITS VIEW.
Feature request: please allow the app to work in landscape and rotate. I can't get to the hamburger menu in bottom right due to broken screen3
I need your help guys...My company wants to save money on buying Photoshop licence and use Gimp instead. We only need some of the features, and most of them are achievable with Gimp so that's not a problem. The issue is that the tool that is mostly used is the Ruler with it's Straghten option. Doing it with Rotate tool in Gimp is a huge pain in the ass and it decreases productivity. Is there any way to get this Ruler>Straighten like combo in Gimp? Or any other tool?
Made my homework
"Write the method body of setHead!"
Ok now i have 3 different solutions...
A. Shift the List "head = newHead"
B. Rotate the list so head == newHead
C. Pick newHead out of List and place it infront of the other
Yea i love you stupid guy who made these homework2
It's all about asking the right question...
Original question that has had me stuck for years: "How do you load landscape images as landscape and not portrait? (some sort of default, always loads it with the longer dimension vertically).
A new insight that I got today while using one of these apps: "How can I rotate an image after it's loaded?"
Very easy apparently...
As long as you keep track of the current angle, just reload and set a Rotation property to (current + 90) % 360...1
I just finished my first commit of "3D Rendering Engine" <-- Best way I can call it I think.
If I have a list of nodes with x, y, z values that I am projecting to a 2D plane, how would I rotate the whole list around the top (y) axis?
I am using python
If you are interested, here's the GitHub Repo:
Image, resize, blur, rotate etc free with cloudlfare cache. Used recently and is quite fast and easy for all.
I guess it can qualify as API