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 - "javascripts"
-
!!oracle
I'm trying to install a minecraft modpack to play with a friend, and I'm super psyced about it. According to the modpack instructions, the first step is to download the java8 jre. Not sure if I actually need it or not, but it can download while I'm doing everything else, so I dutifully go to the download page and find the appropriate version. The download link does point to the file, but redirects to a login page instead. Apparently I need an oracle account to download anything on their site. stupid.
So I make an account. It requires my life story, or at least full name and address and phone number. stupid. So my name is now "fuck off" and I live in Hell, Michigan. My email is also "gofuckyourself" because I'm feeling spiteful. Also, for some reason every character takes about 3/4ths of a second to type, so it's very slow going. Passwords also cannot contain spaces, which makes me think they're doing some stupid "security" shenanigans like custom reversible encryption with some 5th grade math. or they're just stupid. Whatever, I make the stupid account.
Afterwards, I try to log in, but apparently my browser-saved credentials are wrong? I try a few more times, try enabling all of the javascripts, etc. No beans. Okay, maybe I can't use it until I verify the email? That actually makes some sense. Fine, I go check the throwaway inbox. No verification email. It's been like five minutes, but it's oracle so they probably just failed at it like everything else, so I try to have them resend the email. I find the resend link, and try it. Every time I enter my email address, though, it either gives me a validation error or a server error. I try a few mores times, and give up. I try to log in again; no dice. Giving up, I go do something else for awhile.
On a whim later, I check for the verification email again. Apparently it just takes bloody forever, but it did show up. Except instead of the first name "Fuck" I entered, I'm now "Andrew", apparently. okay.... whatever. I click the verify button anyway, and to my surprise it actually works, and says that I'm now allowed to use my account. Yay!
So, I go back to the login page (from the download link) and enter my credentials. A new error appears! I cannot use redirects, apparently, and "must type in the page address I want to visit manually." huh? okay, i go to the page directly, and see the same bloody error because of course i do because oracle fucking sucks. So I close the page, go back to the download list, click the link, wait for the login page redirect (which is so totally not allowed, apparently, except it works and manual navigation does not. yay backwards!), and try to log in.
Instead of being presented with an error because of the redirect, it lets me (try to) log in. But despite using prefilled creds (and also copy/pasting), it tells me they're invalid. I open a new tab container, clear the cache (just to be thorough), and repeat the above steps. This time it redirects me to a single signon server page (their concept of oauth), and presents me with a system error telling me to contact "the Administrator." -.- Any second attempts, refreshes, etc. just display the same error.
Further attempts to log in from the download page fail with the same invalid credentials error as before.
Fucking oracle and their reverse Midas touch.10 -
So this happened when i was developing the iOS app for the company I work in. I was given half boiled code written by the previous employee to work on. The app was laid around a webview. Now in iOS, there are 2 kind of webviews, the UIWebView that works on all iOS versions, and the WKWebview that works only on iOS 8+.
The app was coded using UIWebview, I brouht that up with my boss, and he asked me to continue using it, even after I repeatedly informed him that the javascript engine of this webview is subpar and we could be better off with WKWebview. Fast forward to 12 weeks later. The application is ready and is given to the boss for testing. He runs the app and plays around for a day. The next day, he comes up to me and says "The javascripts aren't working that well, can we switch to WKWebview instead?" In the inside of my mind, I have already murdered him three times, on his face, however I say, "We can look into it."
So, basically I rewrote the whole app with WKWebView, retargetting the app to iOS 8+.
The app is tested and launched. Everythings fine. AND NOW, he comes up to me and says, "Can we switch it back to UIWebView? We really need the app to be universally available on the app store and 6% of our customers, still use iOS7."
You know how I felt and what I had to do. Goes without saying, that the application is available on the AppStore, targetting iOS 7+.
TLDR, iOS Dev, given half boiled code with UIWebview, tells boss about WKWebview (iOS8+) and advantages. He asks me to continue UIWebView. App developed, 12 weeks. He comes up and points to problems and asks me to retarget with WKWebview. Developed and App launched.
He comes up and says, we need iOS7+, retarget the app to UIWebview. FML.7 -
My company deals in finances.
Part of our interview process is a coding challenge.
It is absolutely fascinating to me how few candidates point out that 'float' is an inappropriate data-type for currency. SMH.26 -
ARRAY LIKE OBJECTS
Long story short, i am fiddling a bit around with javascripts, a json object a php script created and encountered "array-like" objects. I tried to use .forEach and discovered it doesnt work on those.
Easy easy, there is always Array.from()..just..it doesnt work, well it does work for one subset called ['data'] which contains the actual rows i generate a table from, but for the ['meta'] part of the json object it just returns a length 0 object..me no understanderino
at least something cheered me up when researching, it was an article with the quote: "Finally, the spread operator. It’s a fantastic way to convert Array-like objects into honest-to-God arrays."
I like honest-to-God arrays..or in my case honest to Fortuna..doesnt solve my problem though2 -
Are there any JavaScripts dev out there using Eclipse (excluding students who are being forced)?
Is this actually a thing in 2019?
I'm being asked to run a JS seminar with Eclipse as the IDE. I've not seen this used in a JS shop for ages. Are there significant pockets of use out there that I'm unaware of?3