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 - "list"
-
Colleague: "Python is slow..too much slow."
Then I look at the code:
Eight nested for loops, inside two of them, two function calls and three list comprehension. That function has 2 nested loops and two "objects.all()" Django method, plus a list comprehension too..
Yep, Python is slow.20 -
Don't send me a confirmation email that I successfully unsubscribed from your list you shit nugget.15
-
My smartphone specifications list
1. Should come with 3.5 mm jack
2. No exploding battery please.15 -
List of things that my fucking corporate proxy blocks
* Maven
* The NPM registry
* Github
List of things that aren't blocked
* Google drive
* Twitter
* Porn
Half my mobile data is burned away by NPM sinkholes. Fuck this place.20 -
"Pythonists don't comment, they write readable code."
Yea, tell that to the list comprehension with three lambdas21 -
So... some guy at the company I work for complains to software dept that we've broken his app.
He's saying we've removed the drop down list from this field he uses....
We're all like... there's never been a drop down list there?!
it escalates and some big-dogs get involved. One of us has to go out and see him. Turns out the "drop down list" was his browsers saved autocomplete history, and he had changed browsers.
Asshole.2 -
> project nearing deadline [✔]
> an IDE that hangs itself [✔]
> awkward status meetings that turns into pointless discussion [✔]
> confusing requirements [✔]
> getting addicted to tea [✔]
> losing track of time [✔]
> sleepless nights [✔]
> overgrown hair and beard [✔]
> did I shower today ? [✔]
> no srsly did I ? [✔]
> I don't know where am going with this [✔]
> I should probably get some sleep [?!]6 -
So, none other than the father of our beloved Linux kernel - Linus Torvalds, just totally put an antivax guy down in the public kernel mailing list.
I think I love Linus even more now. He may not be a people person, but he sure does know how to totally rip people into shreds lol.
https://lore.kernel.org/ksummit/...23 -
CHILD: But how can Santa deliver toys to every little boy and girl on his list in one night?
MEH: (laughs) It's quite simple. The items on Santa's list are called blocks, and each block in his "blockchain" typically contains a hash pointer, a timestamp, and transaction data...6 -
Christmas song for UNIX hackers:
better !pout !cry
better watchout
lpr why
santa claus < north pole > town
cat /etc/passed > list
ncheck list
ncheck list
cat list | grep naughty > nogiftlist
cat list | grep nice > giftlist
santa claus < north pole > town
who | grep sleeping
who | grep awake
who | egrep 'bad|good'
for (goodness sake) {
be good
}
(By Frank Carey, AT&T Bell Laboratories, 1985 )1 -
Making our own linked list class in C++
This is how he deleted his list in the destructor
~myList() {
delete head;
}
Gets a couple of points off, blames the prof for biased marking6 -
When management produces a list of priorities but every item on the list is #1 priority. So some items are in BOLD to signify their even greater priority over other priorities.14
-
Going through the name list of Manifesto for Responsible Software Development at http://manifesto.responsiblesoftware.org/... when suddenly......4
-
Note to self:
Don't try to remove elements from a list using a for loop because the FUCKING LIST SIZE CHANGES!
Just copy required elements to another list and discard the previous.
Spent fucking 2 hours on this.
/Rant9 -
She : You spend your whole day with your stupid computer ! That dumb machine is more important to you than me. We are done 😡
Me : Babe, I swear to God, you'll always be number one on my priority list.
She : Aww.. love you so much 😚
Me in mind : This must be the reason behind foundation of 0 index for Devs.1 -
When I slice the head off a list I usually call the rest decapitated.
const [head, ...decapitated] = myList1 -
So apparently this guy has the infrastructure for the Linux kernel mailinglist archive sitting under his desk.
And then there was a power outage.
While he's on vacation.
Now, someone has to physically go there to enter a LUKS passphrase to let the system boot again... 🤔😂😂😂
Sometimes I don't understand people.7 -
Hey guys I just installed Arch Linux and a desktop environment, I don't know what to do with my life now...10
-
Was looking through the most used passwords list (the one that had 'removed my password from lists...'). 'password' is like one of the top one, and then 'PASSWORD' is 810th !?!?!?! At least it's before hentai...8
-
So one problem checked off my list today, solved by concluding:
MOTHERFUCKERS DON’T READ WHAT THE CHECKBOX SAYS4 -
Today I sent email blast to wrong list of 12k recipients. I was given the list by another employee. I crashed the email server. It was fun.2
-
me@termux $ su -c pm list packages
android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died at [...]
Hmm, strange.. wasn't that the proper command? 🤔
Maybe it's SELinux that's at it again? It's giving permission errors with /sys/class/power_supply/battery/capacity as well, which can only be solved by disabling SELinux it seems.
me@termux $ su -c setenforce 0
me@termux $ su -c pm list packages
(Gives list)
So it was SELinux after all.. FUCKING PIECE OF SHIT!!!2 -
When I'm trying to find resource to setup react-toolbox with react using same keyword in google for past 3 hours ....(google removed me from human being list to bot list)7
-
Does anyone else make a list of new things you hear about to research later? I have a big ass list, as well as dozens of open tabs with things to read up on.4
-
Have you ever tried chatterbot library (python)?
Last day I tried to train a bot with a list conversation but no matter how long the list was , the bot was really stupid!
Do you have any idea how I can make it a bit smarter?12 -
Users.applyAll(u -> u.watchOut(true), u -> u.setCry(false), u -> u.setPout(false));
Users.each(u -> u.tell(He.getName() + " is coming to " + TownRegistry.getCommonName()));
List<Object> list = He.composeList();
He.validate(() -> list);
He.validate(() -> list);
List<Object> naughty = He.filter(He.UserType.NAUGHTY, () -> list);
List<Object> nice = He.filter(He.UserType.NICE, () -> list);
He.with(naughty, nice).arrive(TownRegistry.next());
Users.each(u -> u.setStateObserver(User.State.SLEEPING, He.asObserver()));
Users.each(u -> u.setStateObserver(User.State.AWAKE, He.asObserver()));
He.subscriptions().monitorEvents(s -> s.type == He.EventType.BAD);
He.subscriptions().monitorEvents(s -> s.type == He.EventType.GOOD);
He.subscriptions().each(s -> He.advisor(He.EventType.GOOD).advice(s));5 -
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 -
Let's play spot the error!
Hint:
THERE'S A COMMA ON THE END OF THE LINE THAT HAS BEEN CAUSING MY LIST TO BE WRAPPED IN A SECOND LIST AND IT HAS TAKEN ME AN HOUR TO FIND.
Good luck finding it, it's hard!2 -
What the actual fuck...
What kind of API does not do data integrity validation, and allows me to subscribe a user to a newsletter list with a non-existant list id ?
That's some fucking bullshit. fucktards at www.make.as1 -
From the Chromium mailing list:
TL;DR - 32 bit is no more (?)
Hi, chromium devs,
TL:DR;
I will remove following 4 builders next week.
Linux Builder (dbg)(32)
Linux Tests (dbg)(1)(32)
linux_chromium_compile_dbg_32_ng
linux_chromium_dbg_32_ng
More explanation:
For now, chromium does not support 32 bit Linux
https://support.google.com/chrome/...
and all 32 bit x86 devices for chromeos is EOL too.
https://chromium.org/chromium-os/...
Considering that, I was not able to find any reason we have builders for not supported platform now.
If you have any comments about this builder removal, please let me know.
I will start removing process of the builders next week if there is no concern from you.
Note: This removal does not include 32 bit android/windows/libfuzzer or other than chromium builders.
Thanks,
Takuto
--
Takuto Ikuta
Software Engineer in Tokyo
Chrome Ops (goma team)8 -
Interviewing for a front end JavaScript position. Interviewer asks me to converge a linked list in c#. wtf?3
-
Annoying git cli inconsistencies:
git branch --list
git stash list
Lost count of the times I have entered
git branch list6 -
I started thinking it would be a good idea to write a shopping list in json so it's nice and categorised.
Then I thought what people who saw my list in the shop would say.3 -
does anyone know if theres a way (browser / api / mobile) lying around on devRant to retreive the list of users you have subscribed to?
it looks like someone has a half done project to finish 😢5 -
Interviewing a 7yr experienced c++ guy, started with an ice breaker.
Me: when would you use std::list and when would you prefer to use std::vector
Candidate: vector for sequential elements and list for sequential but sorted elements
Me: why list for sorted elements? I didn’t say anything about sorting
Candidate: you’re rude
Real telephonic interview10 -
Notifications
Phone calls, whatsapp, emails, slack messages, recurring meetings. The list is limited but distractions abound5 -
When a university-wide mailing list system restricts posting to a list based solely on the From address... I was able to telnet port 25 from an outside server (so obviously no SPF either), pretend I'm admin@, and send a message to all students and staff...2
-
An intern approached me for help in one of their past exam questions. They said they had already turned in the exam but just wanted to know the answer. The question was not that hard and I had a bit of time to kill so I helped them.
Me: So, to make it O(n), you have to make it a double linked list, and keep a tail.
Them: But the problem requires us to solve it with a single liked list.
Me: You can just iterate it at the end to make it single-linked again. That costs O(n), so the solution is still O(n).
Them: Oh yeah right. I don't think we even need a tail though, we could just have a variable pointing to the last link.
Me: ...which is called a tail.2 -
As a junior dev from a sysadmin and security background, this is a list of software development concepts I never seemed to truly understand but hope to(rated from most intimidating to least):
1) Frontend web development and all the huge world of javascript frameworks and tools. - It's more overwhelming than the political geography of the Holy Roman Empire in the Middle Ages.
2) Machine Learning, Deep Learning and A.I- too much math that fucks with my brain.
3) low-level programming(kernel,drivers) - sounds extremely interesting but the code in assembly/C/C++ looks like Linear A Minoan hieroglyphics.
4) Rx(insert language here) - I never get why it is useful or why someone invented this. Seems interesting though.
5) Code Reflection - sounds like Thelemic magick.
6) Packaging, automation, build tools, devops, CI, Testing -seems too complicated. I just want to run an executable at the client or make a web app that does something. Why all this process?6 -
Documenting. Starting Microsoft Word to fill in a preconfigured template. It contains two numbered lists, but the numbering incorrectly continues from the first list to the second. Right-click > numbering > Set Numbering Value > Start new list. Bang! MS Word fucks up the complete formatting, margins, tabs, paragraph spacing... But the list numbering still continues from the first list to the second.
I SO FUCKING HATE MICROSOFT WORD FOR WINDOWS!!!7 -
I had a list that was built off a for loop.
One day the list was off by 1, and continued to be for a solid week...
Instead of solving the problem.. Added +1 to the incrementer variable.
Hasn't happened since (3 years)1 -
Initialize List ✔️
Initialize and hydrate DTO ✔️
Forget to add DTO to List and wonder why my list is returning empty?
Every fucking time!2 -
I once sent a test message mail to a list full of over 500 customers instead of the actual test list on mailchimp! :p
-
master -> main/default/primary
slave -> secondary
blacklist -> deny list
whitelist -> allow list
Let the age of newspeak commence!16 -
An incomplete list of 2018 personal dev goals:
* do more web development (It's fun. In a crude way.)
* finish the smart lamp I started building in 2016 ...
* fix up more electronic devices while learning their inner workings
* learn Python and some other language
* get myself a blog again
* get that testautomation thing which is haunting me in my dreams already to production
* be more relaxed
* do some home automation while not cursing all that much -
I appreciate people making tutorials to help people learn, but please, please, please, choose a different topic than creating a task list next time.
-
Fuck me sideways, it took me so long to figure out what caused a certain bug. Thanks python
>>> list = [[0] * 2] * 2
>>> list
[[0, 0], [0, 0]]
>>> list[0][0] = 1
>>> list
[[1, 0], [1, 0]]9 -
Have you guys seen the cool write up fossBytes did on the new devRant 'Most Annoying Programming List'. Many news sources picked up the story. Way to go devRant!
http://fossbytes.com/devrant-releas...2 -
Data representation is one of the most important things in any kind of app you develop. The most common, classic way to do it is to create a class with all the fields you want to transport, for example User(name, lastName). It's simple and explicit, but hell no, in my current company we don't play that kindergarten bullshit, the only way we know how to do things here is full hardcore. Why would anyone write a class to represent a Song, a Playlist or an Album when you can just use a key-> value map for pretty much everything? Need a list of songs? No problem, use a List<Map<String, String>>, OBVIOUSLY each map is a song. Need a list of playlists? Use a List<List<Map<String, String>>>... Oh wait, need to treat a value as a number and all you have are strings? That's what casting is for, dumbass.
No, seriously, this company is great. I'm staying here forever!1 -
!rant
Hmm... so I was thinking...
What if devRant implemented a feature that lets you get rants into some kind of list, accessible via your profile? Kind of like the "Watch later" list on YouTube, or playlists. I know we have a "Favourites" list of rants, already, on devRant, but being organized about this might be a good idea.
What do you think?3 -
How do you customise your arch installation ?
Desktop environment and stuff ..
Give me the whole list3 -
When you're so deep into programming that you see this piece of code in a bulleted list and start to feel your body shaking and feeling really badly.2
-
Tye branch manager just made me spend 1.5 hours rearranging a huge dropdown list because he wanted to be able to sort it differently. We are deleting that dropdown list tomorrow.1
-
3 more workdays and then this nightmare of MS Teams will be over. I swear when Microsoft planned that they had a list of everything Slack did right and told the team if anything on that list was included they would be hung up by their unmentionables with fish hooks.5
-
Aha, more c++ knowledge. An implementation of a List (already provided by vector).
Lots of learning here, including use of the placement new operator, which is required for containers like this because if you just use the normal new operator, the buffer will construct a million items.
Also, the buffer is of type char*, not of type T, which really confused me in the beginning.
Lastly, with placement new, you need to call destructors yourself.
Interesting stuff.1 -
Give me a second to get my todo list.
- get a office/server room built
- setup a home kubernetes cluster
- create an open-source ActivityPub whatsapp clone
- unify existing ActivityPub implementations where an account on one can be used on others
- finish dockerssh
- create an irc bridge for signal messenger.
- find a way to fully provision linux workstations fully unattended2 -
"To-Do List: The Never-Ending Story" 📝
My to-do list is like a magical scroll that keeps getting longer, no matter how much I cross off. It's a testament to the infinite possibilities of coding and the constant pursuit of perfection. -
Scrum master sends a team wide mail and Apple Mail thinks it’s from a mailing list. Ummm.. wut? How come? What’s the algorithm to deduce whether a mail is from a mailing list or not?1
-
*Working on code: 😋😃🥰
-
* Goes to todo list
-
* Item on the list: Documentation (1 month overdue)
-6 -
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. -
Want to get last value of a list?
value = 0
for value in list:
pass
working with 10 year old code :/2 -
and this is why you dont let a first timer build your database....
"has 34 column names in index key list. The maximum limit for index or statistics key column list is 16"4 -
Any tips on how to organize the ever growing shit list that is my tasks list? Maybe some of you are using some awesome methods that I don't know about?4
-
Does anybody know an awesome list of services relevant to (.NET) developers? Preferably self hosted.
The section in kickballs list is too short I think.7 -
My coolest project is my Facebook - to - email adapter 😜
An interface that takes emails from an inbox (mailing list) and posts it to a Facebook group, if it is a new mail. If it is an answer, it finds the original post and posts the new mail as a comment.
Once every hour it checks Facebook for comments on the posts it made, creates a list and sends it the the mailling list 😀 -
you boubas use todo list apps bloated with spyware to not forget things.
I, the kiki, store my todo list right at the function body.7 -
Will there be a follow user list feature in the future for devRant? Something similar to Twitter's list feature. I have a few friends who have joined but no easy way to view their rants.
Unless the feature is already there and I can't seem to find it?1 -
Why do developers leave out the google search engine when they list out their development tools?2
-
I regret ever picking my CS major every time I stare at my VS Debugger and am stuck reading the values stored in a List<Int>. Why, List<Int>, as the backing for my shortest path, do you not have the proper values after I walk my tree.
I have lovingly set up my Priority Queue. I have followed the class notes and lectures.
Oh why, my List, have your forsaken me?
Oh.
It's a recursion bug. I'm not updating nodes properly.
I'm a dumb ass.2 -
Everyone comment one programming language that someone else did not already comment. Let's see how many different ones we can list. GO!54
-
a lot of people
Aaron Swartz, Tim Berners-Lee, Ted Nelson, Raph Levien, Nathan Hurst, Linus Torvalds, Bjarne Stroustrup, Richard Dawkins, J.G. Ballard, William Burroughs, William Gibson, Ludwig Wittgenstein, Donna Haraway, BLACK SABBATH
and the list goes on and on1 -
Last year, I made an application of A* maze-solving algorithm in class. I used a linked list and my friends used arrays. Their algorithms were way faster than mine (I remade it later :p).
OK I understand that accessing memory by address if way faster than accessing by iterations, but I also see that python lists or C# lists are really fast. How is it possible to make a list performance-proof like this? Do the python interpreter make a realloc each time you append or pop a value?1 -
Trying to find if there is a bug on Devrant.
I'm calling the herd (meaning a group of Devranters I added on a list for a specific topic).
If you are on the list and didn't receive a notify, please tell me so I can report it.15 -
how am i supposed to be interested in a company if they list all the requirements of what skills i HAVE TO HAVE, they list EVERYTHING except HOW MUCH FKING MONEY THEY PAY?4
-
Him: "I'm updating a site and I'm trying to find the REST endpoints you put out to replace the SOAP services"
Me: "Send me a list of endpoints it's using and I'll tell you what the new ones are"
Him: "Here's a list of the endpoints. The ones I've found are in bold"
Me: "Here's the new list."
Him: "Why did you only fill out the ones I'm not using?"
So, FML, he sent me a list of everything in the WSDL and bolded the ones he "found" in his code. And I'm the asshole for getting frustrated that he wasted 30 minutes of my time. -
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! -
Python list and dictionary comprehension is some crazy awesome black magic. More languages should have these.5
-
We need a list of functions with an associated string, keyed by a sequential int. Neither can change between program versions. In fact, any changes align perfectly to program versions.
The datastructure: a list of string and func with statically known parameters
The solution my PO insists on: a class with static methods that have an attribute for specifying the number, and a database table of number to string. Whenever you need to pass around the list, you pass around a Type object of the class.6 -
Python list / dict comprehension, one of the numerous reason I truly love python. Simple and powerful abstraction2
-
create, read, update, delete, get, store, put, post, show, view, patch, destroy, list, remove, save, status, ...
crudgsppsvpdlrss? -
I have a question that my friend and I can't work out an answer for. Is a list of length 0 sorted?
A list of length 1 is sorted so you'd expect this to be sorted but then there's no items to be sorted. But does this mean it it sorted???3 -
I thought I'd give flutter a test, a simple list app lags on the following:
1. Scrolling the "Lazy Loaded" list
2. Tapping on a list item to change an icon color
I followed their "lesson" in creating that app
Now tell me, why should I invest time on this?6 -
awesome-calculators: 😎 A curated list of calculators, for every platform! Please suggest more calculators and ⭐ !
https://github.com/xxczaki/...3 -
Job offer that just popped in my inbox: "backend developer with strong frontend skills" :/ I wonder this company
1) saves way too much money hiring the less people as possible.
- or -
2) only knows that developers develop, but don't have a clue about how that is internally organised in a well structured team.1 -
me: yes..hurray I fixed 5 of 25 critical bugs. Its turning out to be a great day.....
...checks the bug list....
"There are 29 critical bugs in the list"1 -
C# Collection class had me pulling my hair out for hours the past two days.
With a list, you can do new List<T>(IEnumerable<T>) and it creates a new list with the contents of the parameter in it.
With new Collection<T>(ICollection<T>), however, the new object is a reference to the parameter passed in.
Is it just me, or does that seem fucking bonkers?2 -
I need to make a legacy Java monstrosity asynchronous and came across a class which is currently making me cry blood.
It took our whole team 5 days to figure out how this thing works, including the weekend. At one place, It is adding an empty list, to another list.
The magic here is that if I remove the statement assigning data to the sub list, the data is still somehow being populated in the root list.
This clusterfuck somehow works in single threaded processing, but as soon as I make this multi threaded, all hell breaks loose.
Please send help!!1 -
Today I wondered why the heck there where null-Elements in my list.
When searching for elements to add I check if this element == null after adding it to the list. Not my brightest idea. -
Wanted to share one of my projects from school.
3 years ago I had to create a Linked List Mesh in Java that held data in each individual node, as well as location data of each of two of it's neighboring nodes.1 -
The code I'm working in always has problems with stuff like "Object obj=new Object();" or "List stuff=new List;" without type specification, but now I found the summit: "private void methodName(Type parameter) *throws Exception*"
-
On a white board discussing with the team, rubbed list leaving numbers so that I won't have to list them again.1
-
Me (to peer): I counted all of the items in the list, and if the list count is zero, we branch to this logic.
Peer: I don't like that, and reject your PR. You should get the list of items, and check to see if the list is empty.
- How is that fucking different than what I did?
- This is not a performance issue, we're talking less than 20 milliseconds on a command run three times a day by developers, not customers.12 -
When the previous dev's function returns null instead of an empty list when no results were found. Why?!
-
Believe it or not, I'm new to Github.
I only want to commit the main project files to my branch (not all the automated files that occurred when I exported the project)
question - how do I safely get rid of the visible list of "changed files" that I don't want to commit? Can I just "discard changes", or does this actually do something to the files?
I selected "ignore all XXX selected files (add to .gitignore)" but it has neither added to gitignore nor removed them from the list.
I mean, I could just leave these files in the list of "Changes"...but my OCD doesn't like a list of files in my face.8 -
Collect project specifications & details.
- order by relevance.
List & install dependencies (possibly spin up a vm).
mkdir ~/Code/{lang}/{framework?}/{project}
Bootstrap skeleton & scaffold.
- ensure functional base.
Iterate specs list & create test case(s) one at a time, going: test => minimal to pass => refactor => next(repeat_cycle)1 -
#magento
Idk who's developing that, but that's what occured to me:
Request for getting specific category in shop:
V1/categories/{category_id}
Request for getting categories list:
V1/categories/list
....?
"Invalid type for value: "list". Expected Type: "int""
I wonder fucking why -.-'1 -
My professor just asked the students "so what is a queue?"
Some dude answered "First in last out"
Profesor says "Nope, a queue is a list" (as in a linked list)
Also he said no very bitchy which pissed me off... I mean a queue can be an array, a list is just one implementation?
Hate it when they blatantly simplify something (and outright butcher it) to make explaining it easier4 -
I am launching an Android app in Play store for the firdt time, any To-do list that I should consider before launching it? already been thru SO to-do, anyone has anything more to add?4
-
imagine building an app using javascript(react-native) that get list of skills which will be displayed to the user to select and the same list displayed as interest for the user to do the same if you try to treat them seperately but from the same source you get a shit result e.g
const list = responseFromApi;//array of object
let skills = list;;
let interest = list;
skills.checked = true;
interest is changed and the list constant variable is changed the values change were ever the list variable is assign to a variable and the variable is tempered.
the above code was the fustration i got with javascript when i didnt know of the mutation guy.
Mutation is a nightmare never knew javascript object are passed by reference which make them mutable this sucks....
another crazy behavior below though the same;
const person = {name:'Dan',age:43} //object
let person0 = person;
let person1 = person;
person1.name = 'David'
the value of both person0 and person get change.
this is madness .3 -
Working with QA department (QA for company processes, not IT) on creating a change history list in SharePoint. Name, fields, etc, simple stuff and all working fine for the past two days.
Today I get a request to change the name of the list because its the same name as another list on a separate SharePoint site (used exactly the same way).
Me: "I can, but no one really cares about the list name. Besides, it serves the same functionality as the XYZ site, so the same name would be consistent."
QAMgr1: "Go ahead and rename the list if its easy."
QAMgr2: "Agree! We already have that list in the XYZ system, we do not need to confuse people."
NOBODY IS GOING TO BE CONFUSED!
I would never, ever want to hear this from someone if there is a blunt object within my reach.
User: “I drove the forklift off the dock because I was confused by the SharePoint list name. Sorry.” -
! Rant
https://nodeschool.io//...
Very nice interactive workshops for brushing up on web dev skills ☺1 -
Fuck netlogo,
Fuck the way you have to code anything in there, you can't even access an element in a list or string using list[index] but you have to use "item index list".
Netlogo is aimed at kids so it also avoids using math symbols like it's a sin to use them.
You make variables with "let name value" and "set name value".
It's a huge pain whenever I get a assignment which I need to make in netlogo again.
Fuck netlogo.1 -
What would be the best language to build a randomiser?
I want to build a little program where you can insert a number of items and picks one at random.22 -
Dear emailing list,
Do not send me a confirmation email to let me know that my cancellation to your stupid email list was successful. Fuck you. I don't believe you. -
Me and a friend are making a discord bot, and added a warning command to warn users.
All was going well, and when we tested the deleting a warning it seemed fine. I then tried to delete all the warnings one by one, when we came across a problem. It wont delete the last warning in the array, the 1st, 2nd, 3rd etc? Thats fine, just the last index that isnt working.
Our code is like this:
list = data.warns//a list of JSON format warnings
console.log(list)//shows the value is in the list
console.log(list[index])//shows the value
delete list[index]
console.log(list)//shows its gone
data.warns = list;
console.log(data.warns)//shows the value is still no longer present
data.save().catch(blah blah)//no error is caught, and nothing crashes, it proceeds to send a message to the channel after this
but then the value at index is still there in the database as if it didn't save it, but only if the index is the last item in the array.
We have been stuck on this for over an hour and I now remember why I hate programming.2 -
Does anyone know a good todo app? I' searching someting _simple_, so no kanban board whatsoever.
I only want a way to do simple lists.
I'm looking for a mobile app, if it has cloud synchronization or even a desktop app, that's an absolute bonus. Also, while we're on that topic, self hosted would be reeeeaaaally cool (but again no must)6 -
O great devs that know grep I have a log that I took from a local company's router that got DOSsed yesterday (they sell very nice sandwiches) and I wanted to know how I can take only the IP's from the log so that I can take action against the users (contacting the abuse if the ISP)10
-
Statically linking to qt5 is quickly driving me fucking insane.
I've a list of unresolved dependencies during linking longer than a really long fucking list. Ugh.
Cmake, why can't you save me?
Think I'll just go back to dynamic and build on each needed system.1 -
Cable/Internet outage. Tried to contact ISP (Mediacom, who are awful)... Reported outage over an hour ago, but no update.
So, I figure it's time to call then...
In support app, selected "Call someone now." Selected sevices. Drop-down for "Tap down arrow for list"... contains the single placeholder "Tap down arrow for list". Plus, of course, you cannot submit the form without making a selection from the list.
Fuck your fucking support app right in the java-hole, Mediacom.
I did not need any more reasons to hate you - you are already at the top of my list, with no one else remotely close behind.3 -
Quote from an email: Please confirm that the attached list is the list of people that have the ability to load "versions" into SVN.
Gods, I hate non-technical project managers. -
I guess I just try to make a features list for "my next thing (now 3% smaller!)", instantly become a customer, demand way too many features, then get lost in the to-do list aand I'm writing another devRant. Nice.
-
Rustfmt doesn't support inline function calls with a block last argument unless the last argument is an array literal or lambda. Dedicated support for arrays is obviously intended for XML-like trees where a factory takes a number of arguments and then a list of children, and the use cases for block last lambda argument don't need explanation, but what I don't get is how did no one catch on that this is a useful pattern that should perhaps be generalized? Why can't I produce the same behaviour for a function call in the last position.3
-
!rant
@dfox it would be nice to be able to see whom you are following, so you can easily revisit rants you love.
And please don't let us see how many followers we have, I like it this way :)
So:
Following list ++
Followers list --6 -
Behold, the code submitted by user Hecker:
(Quote) > writing html like a pro:
from typing import List
class MissmatchedRowsAndCols(Exception):
pass
class HtmlTableBuilder:
classes: List[str] = []
identifier: str = ""
rows: List[str] = []
cols: List[list] = []
def add_row(self, name: str):
self.rows.append(name)
return self
def add_col(self, fields: list):
if len(self.rows) != len(fields):
raise MissmatchedRowsAndCols(
"The given fields are not matched 1:1 with the rows.")
self.cols.append(fields)
return self
def build(self, indent: int = 4) -> str:
html = "<table border=\"2px\""
if len(self.identifier) > 0:
html += ' id="' + self.identifier + '"'
if len(self.classes) > 0:
html += ' class"' + (" ".join(self.classes)) + '"'
html += ">\n"
html += (" "*indent) + "<thead>\n"
for row in self.rows:
html += (" "*(indent*2)) + "<th>" + row + "</th>\n"
html += (" "*indent) + "</thead>\n"
html += (" "*indent) + "<tbody>\n"
for col in self.cols:
html += (" "*(indent*2)) + "<tr>\n"
for field in col:
html += (" "*(indent*3)) + "<td>\n"
html += (" "*(indent*4)) + str(field) + "\n"
html += (" "*(indent*3)) + "</td>\n"
html += (" "*(indent*2)) + "</tr>\n"
html += (" "*indent) + "</tbody>\n"
html += "</table>"
return html
builder = HtmlTableBuilder()
builder.add_row("index").add_row("language")
builder.add_col([0, "Python"]).add_col([1, "Kotlin"])
print(builder.build())6 -
Planning to do a mailing list/website for a weekly updated list of *must-read* long form articles about tech trends, AI, finance and society.
Would anyone be interested in having a mailing list for this?1 -
In Kotlin or Java, I have a list of items that have an ID property. This list is generated based on another list. Now I get a List of mentioned list items and I want to select all items in the parent list, selecting by ID equality.
Is there a more elegant way than just iterating the parent lost for each derived item? Thank you :)5 -
Someone answer this question.
I'm stuck on this.
I've tried almost everything that's possible
https://stackoverflow.com/questions...4 -
DevRant.Pet PetMaker(Account myAcc){
List<Account> accs = new List<Account>();
For(int i=0; i<100){
myAcc.Post(new Rant());
If(i%10==0)
accs.Add(new Account());
}
Foreach(Rant r in myAcc.rants){
Foreach(Account a in accs){
a.PlusPlus(r);
}
}
return myAcc.Buy(new Pet(cat));
} -
We got this feature on our app where if you change the status of an action item, it moves down/up to join its brethren of the same status at the bottom of its respective grouping. This is also true for creation.
Problem is: Testing.
I embarked upon this fuckin ridonkulousness today where I had to test all possible scenarios. Empty list, list with only A status, list with only B, list with A and B, list with A and C, etc etc
9 fucking hours later and a lot of anger, I am finally done. I powered back probably 10 club sodas, 6 teas, and had chillstep rollin all day.
If y'all ever feel like giving up because shit's hard, keep pushin. You'll get it eventually ;)1 -
One of my preferred functions is Collections.unmodifiableList(List).
What a relief was the introduction of the collection FW. And the Function above changed the usage of lists (also sets, maps) a lot. You could now just expose your internal list without worrying that somebody messes with the data. -
How do you find a list of the different week topics? I use devrant through a browser and have clicked just about everywhere. I can find no list.
-
Anyone know any tools for quickly creating interfaces for APIs? Like if I have a list of posts, I want to display them as a list with title and content.18
-
List all commands for troubleshooting networking issues! (For Microsoft) Go!!!! (I feel like I'm forgetting some!)4
-
Since Google is failing me...
Given a user input (string query) and a list of larger strings (like email bodies or something), what's the best way to search and rank the list of strings against the user input.
So far I have implemented levenshtein distance but it doesn't really seem to do extremely well. (Short strings rank very well against each other, whereas long strings **containing** exact matches will go lower in the list)
Should I be splitting the input and the list by word and then averaging the distances?
The only thing I have tried is removing complete non-matches from the list by not including them if the distance is equal to the length of the largest string17 -
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 -
Learning Python from some days back, and have confused about Python Array and Python Lists, please help me to understand this.
Thank You.5 -
Does anyone know a good way to retrieve back the indexes of elements in the unsorted list after sorting that list in python?
Let's say for example I want to find the largest element in a list, so I sort it and find the last element(as it will be the largest), now I want to retrieve its original position in the unsorted list.9 -
def list = ['Stark', 'Bolton', 'Lennister', 'Tyrell']
def map = list.collectEntries ({[(list.indexOf(it)): it]}) -
Looking for good literature regarding CRUD. Basically i want to have a list of possible dataoperations nowadays. And the relations to commands like Copy, Paste, Search, List, Undo Redo, Macros etc. Any suggestions?16