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 - "hg"
-
API Guy.
He has a serious regex problem.
Regexes are never easy to read, but the ones he uses just take the cake. They're either blatantly wrong, or totally over-engineered garbage that somehow still lacks basic functionality. I think "garbage" here is a little too nice, since you can tell what garbage actually is/was without studying it for five minutes.
In lieu of an actual rant (mostly because I'm overworked), I'll just leave a few samples here. I recommend readying some bleach before you continue reading.
Not a valid url name regex:
VALID_URL_NAME_REGEX = /\A[\w\-]+\Z/
Semi-decent email regex: (by far the best of the four)
VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
Over-engineered mess that only works for (most) US numbers:
VALID_PHONE_REGEX = /1?\s*\W?\s*([2-9][0-8][0-9])\s*\W?\s*([2-9][0-9]{2})\s*\W?\s*([0-9]{4})(\se?x?t?(\d*))?/
and for the grand finale:
ZIP_CODE_REGEX = /(^\d{5}(-\d{4})?$)|(^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$)|GIR[ ]?0AA|((AB|AL|B|BA|BB|BD|BH|BL|BN|BR|BS|BT|CA|CB|CF|CH|CM|CO|CR|CT|CV|CW|DA|DD|DE|DG|DH|DL|DN|DT|DY|E|EC|EH|EN|EX|FK|FY|G|GL|GY|GU|HA|HD|HG|HP|HR|HS|HU|HX|IG|IM|IP|IV|JE|KA|KT|KW|KY|L|LA|LD|LE|LL|LN|LS|LU|M|ME|MK|ML|N|NE|NG|NN|NP|NR|NW|OL|OX|PA|PE|PH|PL|PO|PR|RG|RH|RM|S|SA|SE|SG|SK|SL|SM|SN|SO|SP|SR|SS|ST|SW|SY|TA|TD|TF|TN|TQ|TR|TS|TW|UB|W|WA|WC|WD|WF|WN|WR|WS|WV|YO|ZE)(\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}))|BFPO[ ]?\d{1,4}/
^ which, by the way, doesn't match e.g. Australian zip codes. That cost us quite a few sales. And yes, that is 512 characters long.47 -
There is a group of ladies who work in the accounting department at my job who have made it their mission to decorate the cubicle of whoever has a birthday on a given day. They come in at 6 am on someones birthday and decorate, leaving a mess of balloons and streamers, which is a nice surprise the first time it happens (they do it every year). Well, we in the IT office decided it would be fun to booby trap one of our cubicles so that when our birthday rolled in, they would receive a surprise of their own. So we set up a webcam as a motion detector, and had the computer speakers turned up as loud as possible, so that when motion was detected, the honorable Admiral Akbar would yell "It's A Trap!". We succeeded in scaring the pants off of them, and also annoying them because the sound did not stop until the program was exited, so they had to listen to it the entire time they did their setup. It was priceless xD4
-
The number of tabs opened in the browser is directly proportional to the completely of the problem! :p9
-
There should be a devrant Meetup one day. Basically The community just gets together, rants about stuff to each other but in person so we all meet our social interaction requirements for the year. Then we could buy swag and sit on our computers and work on our personal/group projects. It would give devs a great excuse to take a vacation once a year.14
-
TL;DR Setup computer for new guy @ office, he got mad about software he was missing that we weren't told he needed, so he complained to the director above our department and got us in trouble.
I work for a small company, in which the I.S. Department is 8 people (Manager Included). We do everything from setting up computers and fixing printer problems to writing custom software for in-house use. Kind of a "Renaissance Department" if you will.
So a few weeks ago we were asked to set up a computer for a brand new user, meaning he would need email setup, a domain account, etc. We were also given a (very) small list of programs he would need to do his job. No problemo, took me 30 minutes, and he was good to go.
Last week I met the guy because he was training at the general office and his training computer lacked a few tools. Since I was called to remedy that situation, I introduced myself, told him if he ever had any problems to let me know and I would get him fixed up.
Now today, 5/5/2017, 15 seconds after walking into the door of the department, I am pulled aside by my boss and asked if I setup up the new guys desktop, to which I proudly replied yes. Come to find out the (very) small list of tools we were told he needed was incomplete, so he was missing stuff (how the fuck were we supposed to know that). So what does the new fuck do? HE COMPLAINS TO A DIRECTOR ABOVE OUR DEPARTMENT SAYING THE IT GUYS DIDN'T SETUP HIS COMPUTER PROPERLY! Like holy shit dude, why not send me a fucking email like you did before telling me you needed stuff? I would have GLADLY fucking helped. Now I hope your computer catches on fire. Or you get fired. I'll take either one.2 -
My wife is complaining that am spending too much time on devRant. I just told her, am coming here only when windows is updating :p ;)1
-
I graduated last weekend. Walked in the commencement ceremony, took pictures, posted a !rant here, the whole 9 yards. Then what happens? I get an email from the dean of the engineering college at my university stating that my degree check was done incorrectly and that I am 3 credit-hours short of graduating, it is too late to sign up for an intersession course, and there are now 3 credit-hour courses offered as 8-weel courses. So here I am, with two Job interviews coming up, without my degree, wondering why the hell I found all this out A WEEK AFTER I "Graduated"! DA FUCK!!!!!9
-
!rant
I just wanted to say how much I freaking love this place. I come here every day, and what I find is a magical community of people who are accepting of everyone, supportive of each others hopes and dreams and sympathize with those struggling with jobs or school or just life in general. DevRant honestly makes the world a better place, at least for me. Thank you @dfox and @trogus for this beautiful Eden!3 -
I've developed an interesting habit. I wear a hat 24/7. The same exact hat.
I (almost) never wear my hat backwards. I think its weird, and I look weird, and its just too much weirdness.
There is one exception to this rule.
Before I begin coding each day, before a single stroke of my keyboard, I turn my hat backwards. I don't know why I started doing this, but it is almost as if my hat is a key and turning it unlocks all my programming knowledge.
Anyone else have a quirky habit they do before/during a coding session?12 -
Connect a pen drive, format it successfully. Connect to a new machine to copy data and see the data exists.
Crap! which drive did I formatted :(1 -
I spent an entire week debugging my JS Gameboy emulator an year ago.
(The "C" register was read-only for some reason)
Turns out I typed "с" (cyrillic) instead of "c".4 -
I just got e-mail:
"Sunsetting Mercurial support in Bitbucket
After much consideration, we've decided to remove Mercurial support bla bla bla crocodile tears bla bla..."
So basically, Bitbucket started out as a Mercurial repository hosting platform. After GitHub's rise in popularity, they decided "hey, everyone's welcome, both Hg and Git!" Then it became Git and "okay Hg too, but shhh don't tell anyone". Now they FINALLY completed running it into the ground: "Only 1% of repositories are Mercurial" - yeah no shit sherlock, after actively hiding the fact you support it, people don't find out you support it! Surprised Pikachu! Oh congrats, Atlassian. You're so smart.
Mercurial support was the sole reason I had repositories there. I mean, for Git we already have GitHub, GitLab and others. So what's their unique selling point again? What's that, the sound of crickets? Thought so.
So after that, hopefully they change the name to "Gitbucket". Or preferably "Bitfuckit".7 -
At the end of each work day, once I am sitting down, I take a moment to do a little stress relief exercise.
I get in my car, make sure all doors/windows are shut, make sure the coast is clear, and I yell at the top of my lungs.
The relief is almost instant. And even if it was a good day, sometimes a good, loud yell can just help to relieve any build up tension, anxiety, or stress you may not have known you were under. Give it a try (:2 -
Our Product Manager is so amazing that,
1-> She writes FEEDBACKs in Trello
2-> BUGs in MS Excel
3-> and Upcoming FEATUREs in her DIARY
and best part is She used to work as Developer in MnC2 -
!Rant
Just scheduled an interview for a full-time programming position with a company for after my graduation in the fall! Super Stoked!6 -
Woke myself up shouting hdcp at 4:40 am today!!!
I was explaining what hdcp was to my sister in the dream, why the HDMI cable wouldn't work..
Had a chuckle and continued to sleep, realizing what a nerd I am 😆
Who dreams about hdcp and hdmi cables?4 -
Never thought I would like a standing Desk, but this is pretty great. Got horrible sleep last night, was falling asleep at my desk, so I stood up and pulled the desk up and WAM! No more sleepiness! Who needs Coffee or Soda when you have the power of STANDING.6
-
I have a coworker who, when frustrated with a bug in his code then finds the simple solution, loudly exclaims "You Idiot", or "Ah dammit", or "What the Hell?!". He also belches loudly, and says a few other humorous things throughout the day. It has inspired me to make a sound board that would say whatever he would say in a given situation. Don't think it will ever get built, but it sure would be hilarious!2
-
Rediscovering the wonderful Devrant community and reading through old rants. So much fun to see where I was just a few years ago and where I am now. Feels like a lifetime ago. Glad to be back!1
-
I realised, that Git now has the same problem as Windows:
Its widespread because its widespread.
There are, especially for smaller projects, few reasons to actually use Git instead any other VCS.
Look at the landscape of free repo hosting.
There are hundreds, if not thousands of free Git hosters.
A handful of free Mercurial hosters,
Launchpad for Bazaar and I didn't even find a free SVN hoster.
Everyone uses Git, because there are Services for it, and there are Services for it, because everyone uses it.5 -
Does anyone keep a journal as they develop code? Something to keep track of ones thought process so that you understand what you were thinking when you come back to it? I know most people just use comments, but does anyone use something different?16
-
What do you guys think about mercurial (hg)?
I think it has no place in a world where git exists and I prefer git.
Just wondering what the general sentiment is15 -
I hate python.
Who thought that creating a language that doesn't provide any backwards compatibility whatsoever without a way of managing versions is a good idea?20 -
When it is Friday and you want to be productive, but you have spent the entire time since sitting down at work fixing Visual Studio and its bullshit.1
-
guess who is working on a 10+ GB hg repository using sourcetree on a macbook air
hint: I DO
pull, update lasts so long, there are new changesets to pull (hours, i kid you not)1 -
android development is shitty af, it will make you super zombie computer nerd that sit on his chair for fking several hours just to find the where the fk is null pointer exception is coming from not only this but for all kind of errors,logcat looks like someone just hacking nasa, you know what im the one who is shitty af i would have opt web dev instead of android dev , this retarded studio and emulator takes too much time to just load a simple fking thing & if i make some change in it i've to install that application again ,it's so pathetic and horse shit thing i've ever encountered , kotlin is fun it's actually great language most of the features are so helpful in it,but the google codelabs,it's all documentation , adding dependencies whole concepts are trash imo, why can't we install the dependencies using terminal what's problem in that ,but no they chose the hard way for no fuking reason, i've successfully wasted a year learning this shitty tech stack, hopefully this NY i will choose different stack , will work till ass off .gonna build some cool projects and will eventually try for internships and all. done with android dev, idk how senior dev's are alive in this field6
-
my old game had this flow every time a client places an object:
Client A creates a new generic object, and attaches texture paths (yep, global paths are allowed), and... lua code as strings to it.
Client A sends the entire object list to the server
Server receives it, replaces it's own object list
Server copies the entire object list and sends it to all clients
Client A and Client B both receive the object list and replace their versions.
All clients see that the object contains some code as strings
They compile and store it, and then run every frame. UNSANDBOXED.
any client could make all other ones execute any code and i was proud of my idea! -
!rant
Hello, World! (Couldn't help myself)
What are some of y'all's favorite books? I am finishing Ready Player One right now, and I am looking for some new reading material. Suggestions?11 -
TLDR: A friend had only a local repository and fucked it up completly
A friend of mine had to do an project for school. Sche decided to do a little chat application. The requirements were to use java in combination of javafx.
Things started very well. Sometimes she asked me for a little help but that was no problem. She used mercurial for version control which was an inportant requirement too. But. The teacher didn't teach them how to use mercurial so all she had was a local repository. A few days ago she called me and told me that she fucked up the repository. I told her she should cerp calm and wait until i am at home. It's a fucking repository. this can be fixed i thought. But when i arrived at home and she sent me the repo i tried everything but a file (stored at .hg/store/) was missing. it was a manifest file. I asked her what happened to this file. "I deleted it because there were error messages because of it" FML. Why would you even delete such a file?
Luckily for her she sent me a copy of her repo to look at it a few days ago. so she only lost 5 commits.1 -
A question for all you grey beards and other more knowledgeable devs:
I work for a small grocery retail company. Work primarily as a dev, but also spend time doing I.T./HelpDesk stuff. My wife is a nursing student, and when she graduates in May 2018 she is wanting to move to a different location to work at a specific hospital, which would require me to change jobs. No problem, I'm fine with that.
Here is what I am wondering: I currently make a modest salary (for 23 years old I feel like I'm doing pretty good), but we are expecting our first child in April and I would like to be making more. Would persuing a different job for extra $$$ that I could potentially only be working at for around 8-ish months be a bad idea? Should I just stick where I am at until I actual HAVE to move?
Thanks in advance for any advice :D2 -
http://tasks.io/
Stumbled upon an interesting site yesterday.
"I watched C-beams glitter in the dark near the Tannhäuser Gate"4 -
why are Linux graphical git clients so crap? (as compared to TortoiseHg)
like GitKraken is the only OK one, but it lacks soo many features its nearly useless (bisect anyone?) + you need a commercial license
GitEye is the second non-shit one, but it regurarly stops working + its non-free
and it seems most git GUI clients force the name of the repo to be their parent dir. my parent dir for all web projects is www, so in both apps I have a long list of projects named www, unless I expand the projects sidebar to cover half of the screen to see the very very end of the path that petrays the actual project name in GitEye. In GitKraken I have to investigate the commit history to figure out if I have the right GitKraken with the right project open... talk about UX :D
so do most "git experts" just use git commit, git push and git pull on the command line and thats their whole world and the reason why they prefer git to mercurial (for all the many features they never use)?10 -
if(!rant)
{
cout<<"Anyone here ever play the game Screeps? If not, you should really consider checking it out! The point of the game is to write scripts to automate the tasks carried out by your "creeps". Scripts are all in Javascript. Its fun!"<<endl;
}
else
{
cout<<"I hate mondays."<<endl;
}4 -
how to propose your nerd gf here we go...
"you may look attractive like frontend but you need my support like backend and together we can become full stack developer we can create beautiful projects6 -
I can't tell if this is a windows sourcetree problem or mercurial, but trying to do anything on this is a pain. Every action takes 3-4 seconds (including switching between history and working copy).
My project is 10 commits and 50 files, this is a horrible ux. Bazaar never had this many problems. -
How many project do you have in your main Visual Studio solution? At work we have 180+ and it is driving me nuts how slow everything is. Especially when pulling from hg.5
-
!rant
Just made the leap from a company with and I.T. Department of 8 people to a company with an I.T. Department of 5000 people. At the old company, I was a SysAdmin, DBA, Helpdesk, Programmer, etc. 7/8 were programmers. We all had our hands in pretty much every aspect of the companies technology. At the new company I am just a programmer. I only write code (well, I will soon. There is a LOT I have to learn about how this place operates). I worked at the old companies for almost 3 years (2 as an Intern, 10 months as Salaried Full-Time) so it's weird having most of those aspects of my old job stripped away, yet at the same time it's somewhat freeing in the sense that I am now only responsible for 1 slice of the pie, not the whole damn thing. Anyway, hope everyone is having a great monday!1 -
I'm all about the good vibes
V — I grind my Trintellix with my $1200 Lyn Weber Workshops HG-1 Premium Coffee Grinder™
I —
B —
E —
S — React js -
JetBrains' IDEA. For being smart and integrated out of the box.
Mercurial + hg-git + MutableHistory. Like Git, but actually works and doesn't speak gibberish.
Fish shell. For leaving 80s in peace.
openSUSE Tumbleweed. For actually tested up-to-date software.
GNOME. For actually trying to improve UX. -
when your daily machine is a 150$ chromebook with a celeron running ubuntu....terminal and vim, you are my friends....and the only things I can use without freezing the machine 😥4
-
hi everyone quick question can people responded if your repo management tool (e.g. beanstalk, github, bitbucket, assembla) integrated with your project management tool?5
-
Accidentally reverted the repository wiping all the non-versioned custom patches in a production client! I thought it was my computer’s terminal. Luckily we’d got a backup from last deploy. Later we customized the bash prompt in all prod servers to avoid confusions like this.1
-
Has anyone used the new Visual Studio with Xamarin studio built in to build mobile apps? I was doing some research for my senior (we are thinking of going mobile), and wanted to see what the community thought of it. What do you guys think?1
-
Almost all the company uses git, I even took a training about git and how does it integrate with internal tools.
In my team they use mercurial.
fml. -
In those learning days the universal solution to all systems issues -
'restart and see if that fixes' -
!rant
Just started a new internal project today. The best thing? The meeting I just got out of, in which we were discussing the details, was with someone with technical knowledge and experience, and who had realistic expectations. Never have I been so happy after a meeting! :D -
!Rant
Question for all you wise neck beards:
I was talking with my boss in his office (I'm an intern), and he was saying one thing I need to work on is making more accurate estimates for when a project will be done. He asked if it was just an attempt to "paint a rosey picture" and asked if I was just afraid to be honest, to which I answered definitely not, I just didn't realize I was being that inaccurate. Any suggestions on how I can correct this? I feel like if I just overestimate by a lot i'm just going to give off a lack of confidence, but I also don't want my boss to think I am just lazing around and not working as hard as I could. Feel like I am in a pickle here.
Also, what are some tips you guys have for staying Focused/Productive? I do a pretty good job as it is, but any more advice would be handy :D
Happy Tuesday Everyone!7 -
24 hours of being awake. At Work. Struggling to focus. Using DevRant infusions to keep myself alive.
-
!rant, but satisfying.
Got pulled in to a demo for some work that I had been apart of previously, but not recently since I had rolled on to a client. The Manager in charge of the work had fought me being pulled on to said client, as he wanted me committed to this project (which I didn't want to be invovled with). I had rolled off the engagement earlier this week, which is why I suspect I was included in this demo. So we are going through the motions, they are asking questions, I'm sitting quietly watching. out of the blue, Manager dude decides he wants to ask me a difficult question, because I'm sure he assumes he will stump me. I respond with "Not sure I'm the best to answer that specific question, since I haven't worked on this in a minute". He confirms that he only wants me to answer. So I do. And boy was I glad his camera was on, because he went from "Got em" to "Fuck, he got me" in a matter of seconds, and I could barely keep from smiling. After my answer, I respond with "Anything else you'd like to know?" to which he mutters "No, thank you" and quickly moves on. Talk about a victory. I'll ride this high through next week, I think.