thread_id
stringlengths
6
6
question
stringlengths
1
16.3k
comment
stringlengths
1
6.76k
upvote_ratio
float64
30
396k
sub
stringclasses
19 values
ueiw3o
If I want a local data base just for me in my computer I need to create a local server. Why aren't there any local data bases programs/frameworks/libraries that I can access just like I access a .txt file. I'm a math student solving a problem that requires a lot of memory usage and I find myself struggling with datab...
There are a lot of these! I guess the most popular one is sqlite, feel free to check it out. It's super simple to setup and surprisingly well supported
350
AskComputerScience
ueiw3o
If I want a local data base just for me in my computer I need to create a local server. Why aren't there any local data bases programs/frameworks/libraries that I can access just like I access a .txt file. I'm a math student solving a problem that requires a lot of memory usage and I find myself struggling with datab...
I think you are misunderstanding what 'server' means in this. Basically, in a client-server style architecture, you have your client, that requests data, and your server that sends data. It's and over simplification but it should give you the picture. When these things say you need a local server, that just means you ...
40
AskComputerScience
ueiw3o
If I want a local data base just for me in my computer I need to create a local server. Why aren't there any local data bases programs/frameworks/libraries that I can access just like I access a .txt file. I'm a math student solving a problem that requires a lot of memory usage and I find myself struggling with datab...
They don't require a server. A .txt file absolutely can be a database. It's just at some point manipulating a text file directly is not an effective way to work with your data. It's kinda like running a business. When it's small you might be able to do everything out of your home but as it grows eventually you rent an...
40
AskComputerScience
ueo719
I'm looking for project ideas in AI and Software Engineering that can be done in a week. They should be fun to do, solve a real-world problem (even though not necessarily perfectly) and finally should be generally doable in a week full-time by one individual.
An app that supports social justice/good cause like healthcare, homelessness, etc.
40
AskComputerScience
uesv85
What exactly is the reasoning behind learning more than one sorting algorithm, is it to teach concepts about how sorting algorithms work to better understand how to think? Because I can imagine that learning one really fast algorithm would be a good way too, is there something im missing? Thanks
In fact, you will never use any of those algorithms for sorting, and you will most likely only use the “built in” sorting algorithm of the language you are working with (which is usually some sort of hybrid sorting algorithm, such as Timsort for Java - that is not included normally in college curriculum). The point of...
790
AskComputerScience
uesv85
What exactly is the reasoning behind learning more than one sorting algorithm, is it to teach concepts about how sorting algorithms work to better understand how to think? Because I can imagine that learning one really fast algorithm would be a good way too, is there something im missing? Thanks
yep. and to have bubble sort as your whipping boy in the future
130
AskComputerScience
uesv85
What exactly is the reasoning behind learning more than one sorting algorithm, is it to teach concepts about how sorting algorithms work to better understand how to think? Because I can imagine that learning one really fast algorithm would be a good way too, is there something im missing? Thanks
The first time I encountered the idea of a binary search tree was an epiphany to me. It taught me that *how data is arranged in memory has a direct impact on how quickly code can execute*. Up to that point, I only knew array and only thought of it as a general collection. I think teaching several different ways of ...
100
AskComputerScience
uetubj
So I am 16 from the UK, and have just left school so have alot of time on my hands for a few months until I go to college. I started learning to code around 5 or 6 months ago but haven't really got that far because I keep dabbling around in different languages, I started off with Python but then I realised that I didn'...
What language do they use for the college course, and what kind of programming are you interested in doing? Websites? Apps? Embedded? Systems Programming? Etc
40
AskComputerScience
uf9yy8
I've been working with React Native for the last month or so. My question is, if I get decently good at it, will I be able to apply for Android/iOS engineering roles?
Only if they are using ReactNative as part of their tech stack. You won't have experience with Kotlin/Swift, so many roles will not be available.
70
AskComputerScience
ufdu2w
Do you remember "personal ads" in the newspapers? I enjoyed reading the ads but didn't know anyone that placed one. In researching, I discovered ads from the 1800s, including whole newspapers devoted to them.
The Village Voice (an uber artsy liberal weekly newspaper based out of New York) had an (in)famous personal ad section. In addition to the standard, Men looking for Women and Women looking for Men, they were one of the first that also carried personal ads for gays looking or love or a hookup. They popularized abbrevi...
350
AskOldPeople
ufdu2w
Do you remember "personal ads" in the newspapers? I enjoyed reading the ads but didn't know anyone that placed one. In researching, I discovered ads from the 1800s, including whole newspapers devoted to them.
I'm old, so this was back in the 1980's. My divorced father in NY actually responded to an ad in Sheila Wood's Find a Friend column in one of those supermarket checkout rags. I'd always figured they were sketchy, but the woman (in Texas) responded, and they began a courtship over telephone. He owned a restaurant in a p...
350
AskOldPeople
ufdu2w
Do you remember "personal ads" in the newspapers? I enjoyed reading the ads but didn't know anyone that placed one. In researching, I discovered ads from the 1800s, including whole newspapers devoted to them.
Placing a personal ad in an alternative newspaper is how I met my current (and last, I hope) SO, been together for the last 28 years.
270
AskOldPeople
uffgho
I would like to start schooling for a software engineering degree but I'm not sure about the prerequisites I need. I'm 34 years old and have been working as a chef for over 15 years. I am really interested in changing careers and software engineering really appeals to me but I don't have any background in computer tech...
GED is equivalent to hs diploma so they're interchangeable.if ur trying to get to cc just sign up and schedule meeting with a counselor and they can make you an Ed plan getting in to a uni after so long would be difficult but there's some here or there that take anyone with a pulse so it's not impossible. But if ur ju...
30
AskComputerScience
uffgho
I would like to start schooling for a software engineering degree but I'm not sure about the prerequisites I need. I'm 34 years old and have been working as a chef for over 15 years. I am really interested in changing careers and software engineering really appeals to me but I don't have any background in computer tech...
In the US definitely I would recommend the community college pathway and finish at state university. You should first try out writing code, preferably for something that you have no vested interest in because a lot of software engineering is doing to be writing software that you don't care about, so make sure you enjoy...
30
AskComputerScience
ufhpas
If you try to move, rename, or just generally modify a file in Windows while it's being used in another application, you get an error and the OS won't let you. Why is this? Are there operating systems that *do* allow files to be modified in storage while still being used in memory? Or is there a fundamental problem ...
That's a Windows thing, and can be worked around, but that's the default behavior. On Unix-style OSes, you generally *can* delete a file (or move it) while it is open in a program. This is because on a typical Unix-style filesystem, an open file is just a reference to a block of data on disk, and does not have the fil...
80
AskComputerScience
ufhpas
If you try to move, rename, or just generally modify a file in Windows while it's being used in another application, you get an error and the OS won't let you. Why is this? Are there operating systems that *do* allow files to be modified in storage while still being used in memory? Or is there a fundamental problem ...
In addition to what the other comment has said, one potential problem with the OS arbitrarily allowing users to modify files on disk while they are open in memory is that changes to the file do not necessarily write immediately to disk synchronously. Frequently the system will batch up changes and flush them to disk on...
50
AskComputerScience
ufkbfl
I'm an assistant for my university in a research project where I have to access and manipulate really really large files and change the format (JSON to db). The thing is, it's so time consuming and I can't open these files on my computer because they're too big. I'm assuming that's a limitation caused by my RAM, right?...
what software are you using to open the file? are you trying to open a 600mb file in notepad or some other text editor?
40
AskComputerScience
ufl8xy
At what event or occasion did you realize that you are “old”?
When I went to a big concert in 2010 or so of a rock band that topped the charts in the 1970s. I saw the people waiting in line and thought, "I didn't know old people liked this music." A nanosecond later it hit me that they were my age.
1,800
AskOldPeople
ufl8xy
At what event or occasion did you realize that you are “old”?
Not wanting to get pets that will outlive me.
1,270
AskOldPeople
ufl8xy
At what event or occasion did you realize that you are “old”?
70 here. And I've never felt my age. I'd comment that 70 is the new 50. But in Feb, I severed my right quadracep. Fell on ice, leg buckled underneath and I heard the tendon snap. This is a fall that I would have taken easily in years past without injury. But now it was a major rupture and took surgery and months ...
1,150
AskOldPeople
ufmsb8
To those who struggled with anxiety young, how did you/your relationship with it change over time?
I left home at 18, and once I had control over my own life, that cut my anxiety down tremendously. I set up my adult life into something that minimized anxiety/stress (i.e., a career that I enjoy and that pays well, NO children, and waiting until my mid 30s to get married.)
170
AskOldPeople
ufmsb8
To those who struggled with anxiety young, how did you/your relationship with it change over time?
You learn to understand it. You know what it is and finally learn that nothing bad is going to happen if you push thru it
140
AskOldPeople
ufmsb8
To those who struggled with anxiety young, how did you/your relationship with it change over time?
Learning yoga - especially breathing and relaxation practices - has been the most effective way I've ever been able to combat anxiety. Luckily I found a good book at the library when I was a teen - and it made all the difference.
100
AskOldPeople
ufozou
You live your life. learn. work. raise a family. grandkids...what's next? waiting for your final destination? seems like i'm missing something
For me, I coast through each day, doing what I want to do. Sometimes doing "nothing" .
210
AskOldPeople
ufozou
You live your life. learn. work. raise a family. grandkids...what's next? waiting for your final destination? seems like i'm missing something
I skipped the family and grandkids part (not interested). I prefer to travel. The moral of the story being you can do with your life whatever you choose... You don't need to follow the script because everybody else is doing it. Unless you're independently wealthy, you probably do need to work, but you can find work tha...
150
AskOldPeople
ufozou
You live your life. learn. work. raise a family. grandkids...what's next? waiting for your final destination? seems like i'm missing something
Lots of meditation. Not just 20 minutes in the morning but 5-minute sessions during the day, like 6 of them. I'm more interested in being in the vast present than tangled up in a bunch of thoughts about what's next.
110
AskOldPeople
ufpbl6
So 1 byte = 8 bits 2\^10 bytes = a killobyte, why couldn’t (wasn’t ?) there be 3 kB ram ? It was always 4kb, 8, 64, now 1, 2, 4, 8 gigabytes I really couldn’t find an answer for a long time because if we have 8 bits that’s 2\^8 states = 256 possible states, so if we have 3 kilobytes that’s 3072 bytes = (3072 \* 8) b...
There have been. They're just rare. Memory is addressed by an address bus, meaning a set of wires that are each connected to ground or a voltage. Say you have two wires. That means there are exactly four memory locations: each of the wires can be connected to ground or voltage, making four unique combinations. So i...
220
AskComputerScience
ufpbl6
So 1 byte = 8 bits 2\^10 bytes = a killobyte, why couldn’t (wasn’t ?) there be 3 kB ram ? It was always 4kb, 8, 64, now 1, 2, 4, 8 gigabytes I really couldn’t find an answer for a long time because if we have 8 bits that’s 2\^8 states = 256 possible states, so if we have 3 kilobytes that’s 3072 bytes = (3072 \* 8) b...
Since the CPU address bus represents a binary number, the natural size for any memory block is a power of 2. If you had an 11-bit address bus, you could address 2,048 things. A 12-bit bus addresses 4,096 things. In terms of binary addressing, your example of 3,072 is an odd number, so to speak.
70
AskComputerScience
ufpbl6
So 1 byte = 8 bits 2\^10 bytes = a killobyte, why couldn’t (wasn’t ?) there be 3 kB ram ? It was always 4kb, 8, 64, now 1, 2, 4, 8 gigabytes I really couldn’t find an answer for a long time because if we have 8 bits that’s 2\^8 states = 256 possible states, so if we have 3 kilobytes that’s 3072 bytes = (3072 \* 8) b...
There are Xeon boards with 3 dimm channels per cpu. If you fill them with 1GB dimms, you can end up with 3, 6, or 9GB per cpu.
50
AskComputerScience
ufs1kg
Bell-bottoms, silk shirts with art-deco patterns, platform shoes, vests and can't remember what else.
Clothes hadn't been invented yet. We didn't wear anything.
40
AskOldPeople
ufs1kg
Bell-bottoms, silk shirts with art-deco patterns, platform shoes, vests and can't remember what else.
In the 70s (childhood), I mostly wore jeans, sneakers, and t-shirts. I did the same in the 80s and 90s. When the 21st century came about, I continued the trend. Now, in my 50s, I mostly wear jeans, sneakers, and t-shirts. The only real difference is that some of the jeans in the 1970s were bell bottoms or "cowboy c...
30
AskOldPeople
uftqwz
I'm 46, and I will never miss being forced to wear wool anything. What things from the past that are now gone will you also not ever miss?
Pantyhose whenever you wore a dress or skirt. Pads that required a belt before adhesives. Huge pads while you're at it that weren't compressed like now. Tampons with just cotton on the end and no rounded plastic tips, ouch. No cell phones and being able to call for help when you break down at night.
2,390
AskOldPeople
uftqwz
I'm 46, and I will never miss being forced to wear wool anything. What things from the past that are now gone will you also not ever miss?
Wool isn’t gone, but I guess it is for you. I don’t miss second hand smoke.
2,340
AskOldPeople
uftqwz
I'm 46, and I will never miss being forced to wear wool anything. What things from the past that are now gone will you also not ever miss?
I'm 55. People whispering the word cancer. Hiding/ locking away people with disabilities or mental health problems. Marital rape being legal. Sexual harassment being the 'price' women paid to have a job. And cigarette smoke, except vaping is making that an issue again.
1,240
AskOldPeople
ufzuda
I'm a CS student who is currently feeling unmotivated to continue diving deep into the fundamentals of programming. I already know how to build websites but I still consider the kinds of stack the project might need before considering doing it, just because I find it hard to switch from language to language. To anyon...
It feels ok I guess.
350
AskComputerScience
ufzuda
I'm a CS student who is currently feeling unmotivated to continue diving deep into the fundamentals of programming. I already know how to build websites but I still consider the kinds of stack the project might need before considering doing it, just because I find it hard to switch from language to language. To anyon...
My skills aren't so much my ability to remember various programming languages and produce algorithms, but more my ability to visualize all of the interactions and the knowledge that there exist algorithms to perform most of the mathematically challenging things. And, my ability to use google.
80
AskComputerScience
ufzuda
I'm a CS student who is currently feeling unmotivated to continue diving deep into the fundamentals of programming. I already know how to build websites but I still consider the kinds of stack the project might need before considering doing it, just because I find it hard to switch from language to language. To anyon...
It doesn't feel like anything. It's like asking how it feels to be able to read without struggling. You just ... do it.
70
AskComputerScience
ug11np
I recently saw a story of a man who got out of prison after over 4 decades and thought to myself how the world is literally like an alien world to him and how homesick he must have been. In what ways for you is the world so different that it must feel like you’re in another universe?
I miss the days when the Main Street of small towns were full of shops. I miss the small businesses, usually owned by someone you knew, and the feeling of just visiting friends when running errands. I miss the soda counters in drug stores. I miss the train stations that used to be in every small town and the street car...
2,730
AskOldPeople
ug11np
I recently saw a story of a man who got out of prison after over 4 decades and thought to myself how the world is literally like an alien world to him and how homesick he must have been. In what ways for you is the world so different that it must feel like you’re in another universe?
The lack of just being. Sure people veg out in front of the TV/screen etc. I miss the days when my grandfather would be sitting outside and neighbors would drop by and talk for awhile. Some would bring their guitar or banjo and they would play for a couple of hours, just being. No rush, no have to do, work day was done...
1,810
AskOldPeople
ug11np
I recently saw a story of a man who got out of prison after over 4 decades and thought to myself how the world is literally like an alien world to him and how homesick he must have been. In what ways for you is the world so different that it must feel like you’re in another universe?
All kinds of wildlife are DECIMATED where I live. Birds. Bugs. Frogs. Deer. Rabbits. Wolves. Bobcats. Butterflies. Turtles. And that's just what's at the top of mind. I'm in a very rural place, and the extreme decline in all sorts of wildlife is heartbreaking.
1,200
AskOldPeople
ug7bsh
What decade of your life have you enjoyed most so far?
40s. My career and that of my husband were going great, but no so great we had trouble finding time to take vacations. The deaths of close relatives and friends hadn't started en masse. I still got hit on at bars by guys young enough to be my kid. I could run 15 miles each Saturday just for fun, and hike in the desert ...
80
AskOldPeople
ug7bsh
What decade of your life have you enjoyed most so far?
1970-1991 when I was a flight attendant travelling around the world, seeing the sites others paid thousands to see & being paid for it. We stayed in 5-star hotels & resorts, ate exotic foods & experienced different cultures & "partied" on duty free booze and enjoyed life. Now for the last 4 years, I li...
50
AskOldPeople
ug7bsh
What decade of your life have you enjoyed most so far?
30s more money. good job. chill boss. having two little kids. much bigger house.
40
AskOldPeople
ug9y9w
Hi, I have a situation where I need to do up to 5 http requests in parallel. I have some async functions that do the requests. The 5 requests are different data sources but all return Result<FeatureCollection> which is a geodata format. However I don’t know in advance how many I will need to run, that depends o...
You can, for each future that needs to run call Box::pin on it and push it into a Vec::<Pin<Box<dyn Future<Output = YourResult>>>>. You can the use join_all on that. Edit: Your Problem is that the futures associated with different async functions are different types (e.g. a future with more sta...
40
LearnRust
ugajyy
For educational purpouses I want to build an API that returns a random code fragment. To gather the data I'd like to scrape open-source projects on github, but I'm unsure which licenses forbit such actions. For example GNU GPL3.0 requires that I copy the license when I copy the source code. So here's the question: Pro...
This is really a legal question, not a computer science question. You can redistribute code that's under any open-source license, but almost any license (not just GPL) will require that you include the original copyright notice and/or license. If you wanted to comply with this requirement, you could just make your API...
80
AskComputerScience
ugav8y
I drove a maroon Chevy Vega with tan interior with poor transmission. The guys used to drive fast cars and souped up cars that they overhauled themselves. Novas, Mustangs, Firebirds, GTOs-Goats, Mach II's, Trans Ams, Jaguar's and Corvettes.
light mint green Ford Pinto - no, it never caught on fire. edited to add that my parents had a "Grabber Orange" Ford Maverick
140
AskOldPeople
ugav8y
I drove a maroon Chevy Vega with tan interior with poor transmission. The guys used to drive fast cars and souped up cars that they overhauled themselves. Novas, Mustangs, Firebirds, GTOs-Goats, Mach II's, Trans Ams, Jaguar's and Corvettes.
I drove VW Beetles and learned to do my own maintenance and repairs from [The Idiot Book.](https://www.bing.com/images/search?view=detailV2&thid=AMMS_601051f457153cf31f77ffaffc574482&mediaurl=https%3a%2f%2fimages-na.ssl-images-amazon.com%2fimages%2fI%2f61J1ZJE3TQL.jpg&exph=475&expw=361&q=how+to+keep...
70
AskOldPeople
ugav8y
I drove a maroon Chevy Vega with tan interior with poor transmission. The guys used to drive fast cars and souped up cars that they overhauled themselves. Novas, Mustangs, Firebirds, GTOs-Goats, Mach II's, Trans Ams, Jaguar's and Corvettes.
Never had a car until my 20s (1980s), but I had this in high school after I turned 16. ['74 Kawasaki F7 175cc enduro](https://i.imgur.com/pVKbkue.jpeg) If it was raining or too cold I got a ride from a classmate or my Dad dropped me off in his Jeep Wagoneer.
60
AskOldPeople
ugddoc
Hello everyone! I am new to this sub and to the field of computer science. So please explain easy and simple as possible (treat me like 7-year-old kid and sorry for the bad English). So, I am currently reading a book about computer science, and I've encountered a problem on computing system. The book's definition ...
No the book is right in both scenarios, but it wasn't a very well written question. Think of a "computing system" as absolutely anything that involves a computer or computer network. All of those items you were listing were hardware components of a computing system. A web sever like "Apache tomcat" would be am exa...
30
AskComputerScience
uge6w2
Yeah I know this wasn't that long ago, but I'm too young to remember this event. How big was it really? Did it affect regular people?
If you were working for dot coms like I did it was a very big deal. The world ended. It was a litany of dot failures. Non web companies weren't hiring either. It was like a game of musical chairs ended and there were no chairs. San Francisco went from being an unbearable boom town to a ghost town in a ma...
310
AskOldPeople
uge6w2
Yeah I know this wasn't that long ago, but I'm too young to remember this event. How big was it really? Did it affect regular people?
It was terrible. I was in tech, but working for a university, so I thought I was safe. But with the stock market tanking, the endowment shrank. The university cut back and laid me off. And there were NO tech jobs. Nobody was hiring. And if they were you were competing with all the other laid off workers. I was in my mi...
180
AskOldPeople
uge6w2
Yeah I know this wasn't that long ago, but I'm too young to remember this event. How big was it really? Did it affect regular people?
When looking back on it and hearing people talk about it, it sounds like it was a quick crash. It wasn’t. It was long and drawn out and businesses were trying their best to survive as long as they could, but eventually the layoffs started and didn’t stop until the majority of the tech startups had gone out of business....
110
AskOldPeople
ughqt2
How do quantum computers processing power compare with the computing power of 3D chips of classical binary computers?
Classical computation fundamentally boils down to logic gates, with basic operations of AND, OR and NOT. Each of these takes one or two bits as input and returns one bit as output. A bit is a single value which is logically true or false, and may be represented in a physical computer by the presence or absence of a v...
280
AskComputerScience
ughqt2
How do quantum computers processing power compare with the computing power of 3D chips of classical binary computers?
[deleted]
30
AskComputerScience
ugksmb
Hi, I have a program that interacts with a whole bunch of crates that have their own error types. I also have my own. In total there are like 4 or 5; the standard error, actix-web, reqwest, geojson parsing, xml parsing. How do I let these errors bubble through the program? I get that I return result<T, Error> fr...
I would suggest using [thiserror](https://docs.rs/thiserror/latest/thiserror/) crate or [anyhow](https://docs.rs/anyhow/latest/anyhow/) crate - depending on the usage of the errors thrown by your project. Is your project a library (and the errors should be usable for anyone using your lib) or do you want to react in a...
50
LearnRust
ugl5z8
I am looking for help understanding how to solve this. Not the answer. Thank you
Bunch of print to consoles would probably work, and if it works it works I take it you're an absolute beginner?
90
AskComputerScience
ugl5z8
I am looking for help understanding how to solve this. Not the answer. Thank you
I am irritated that the pole is not at the middle
70
AskComputerScience
ugl5z8
I am looking for help understanding how to solve this. Not the answer. Thank you
Ask yourself how do I print a X , and how do I print a space ? And then go from there
30
AskComputerScience
ugodyc
How did your injuries and near-death experiences from unsafe equipment make you the person you are today?
Tetherball wrapping around the pole and hitting me in the face .
520
AskOldPeople
ugodyc
How did your injuries and near-death experiences from unsafe equipment make you the person you are today?
[deleted]
460
AskOldPeople
ugodyc
How did your injuries and near-death experiences from unsafe equipment make you the person you are today?
The seesaw helped you figure out which of your friends could be trusted.
390
AskOldPeople
ugpvex
So I'm still fairly new to Rust, I've worked on some projects but all of them were sync. I've been hearing some opinions on async Rust and I wanted to see what the general consensus was - is it really more complicated and less ergonomic than the rest of the language, or am I just hearing a vocal minority? Rust is an...
I believe async is *alright*, it's generally less polished and you will eventually run into confusing error messages if you work with async functions, because they are a bit too much magic. As a backend developer I encounter async a lot in my daily job and these async-related wtfs come up once every two months or so, ...
130
LearnRust
ugpvex
So I'm still fairly new to Rust, I've worked on some projects but all of them were sync. I've been hearing some opinions on async Rust and I wanted to see what the general consensus was - is it really more complicated and less ergonomic than the rest of the language, or am I just hearing a vocal minority? Rust is an...
I don't have a ton of experience with async code myself, but I see lots of examples where the solution to some problem is something like `Pin<Box<dyn Future<Output = ...>>>`. This combines several different language features that tend to be less familiar to beginners: - Both `Pin` (edit: woops I mean...
30
LearnRust
ugqqox
How did the 2007 recession mold you financially? Did it change the way you saved?
Yes! I saw the downturn as a chance to dump a bunch of money into retirement investments, knowing that eventually it was going to turn around. It was literally the “buy low (wait to retire) sell high” investment period. I gained years of retirement savings I wouldn’t have had if the market just stayed on slow growth...
230
AskOldPeople
ugqqox
How did the 2007 recession mold you financially? Did it change the way you saved?
No. I sold my house at the top of the top of the market on the west coast and 6 months later bought a house at the bottom of the market on the east coast. In 2015, I sold the east coast house and bought a house in Arizona just before the market doubled here. I turned $200K of equity in to $2M through a combination ...
140
AskOldPeople
ugqqox
How did the 2007 recession mold you financially? Did it change the way you saved?
It made me ignore the swings (both big and small) when it comes to investing. I was reading everything I could about the economy, the roots of the problems, how QE works, derivatives, what caused the housing crisis, etc. I found it absolutely fascinating however I also found out that it was easy to get into the doom ...
130
AskOldPeople
ugsvmt
Hello, Ther's a tiling window manager (based on Penrose library) written in Rust which I'm trying to make it run on Alpine Linux. However, after compiling when trying to run the binary I get a "Segmentation fault" error. From my basic undersating this must be compiled with "--target x86\_64-unknown-linux-musl" but...
You could share the logs for starters. Set RUST_BACKTRACE=full and run in debug mode. Did you test the app on a different OS, or is this Alpine specific? Segmentation fault after the program compiled fine is suspect.
40
LearnRust
ugtva6
If you're a fresh Rust developer, here's a great mentorship opportunity
"The program requires a commitment of 170 to 340 hours for three to six months" That big a commitment without any pay? That's ridiculous.
150
LearnRust
ugtva6
If you're a fresh Rust developer, here's a great mentorship opportunity
I may be wrong but it looks like an unpaid internship, isn't it ?
60
LearnRust
ugtva6
If you're a fresh Rust developer, here's a great mentorship opportunity
What’s the difference between this and an unpaid internship?
60
LearnRust
uh61ji
Consider a complete graph with nonnegative weighted edges, arranged in a circle. A triangulation of a complete graph is a subgraph such that no edges in it are crossing, but adding any edge would cause edges to cross. I want to find an efficient algorithm to find a triangulation of maximum total weight. It's clear...
> I also tried considering a divide-and-conquer algorithm, like taking any vertex and iterating through all of the edges that one could select containing it, finding the maximal triangulation of the subgraph on either side of the edge. However, when I analyzed the runtime of this it seemed exponential and therefore ...
30
AskComputerScience
uh8cxq
I love all The New Rascals songs, especially the song, How Can I Be Sure sung by Eddie Brigati.
There's just too many to name .......but easily one of the most underrated bands are The Kinks, the put out 5 or 6 straight great albums starting in 1966 and hardly anyone seemed to notice at that time. They had been banned from performing live in the U.S. The Rolling Stones put out some damn good music on 4 straight ...
60
AskOldPeople
uh8cxq
I love all The New Rascals songs, especially the song, How Can I Be Sure sung by Eddie Brigati.
Not big into favorites - I find them too limiting - but you asked about what was a golden age of music for me: Simon and Garfunkel, Beatles, Rolling Stones, Bob Seger, Motown, The Who, Creedence Clearwater, Three Dog Night, Guess Who, Eagles, Elton John, Led Zeppelin, Rod Stewart, James Taylor, Joni Mitchell, Crosby ...
50
AskOldPeople
uh8cxq
I love all The New Rascals songs, especially the song, How Can I Be Sure sung by Eddie Brigati.
Early 60's was The Beach Boys Three Dog Night and the Byrds. Then The Who, Humble Pie, Grateful Dead, Allman Bros. Band, Dave Mason, Deep Purple, CCR, John McLaughlin and the Mahavishnu Orchestra, Jefferson Airplane/Starship, Steve Miller Band and a whole lot of other bands. I got in to "undergrand FM" in the L.A. ar...
40
AskOldPeople
uhg8t1
What was it like to be part of the fight for the right to obtain a safe legal abortion?
My beloved grandma - white, happily married, solidly middle class - almost died from blood loss while lying on her dining room table in the 50s following a "successful" abortion. She suffered for years afterwards. My wife and I protested in DC in the late 80s to protect pro-choice laws. It felt important then, it's ...
2,600
AskOldPeople
uhg8t1
What was it like to be part of the fight for the right to obtain a safe legal abortion?
What's it like?? It's like being the smartest, most compassionate person in a room where the people with single digit IQs and allergies to facts are making decisions. It's like knowing the shortsightedness of the GOP will backfire spectacularly, but not before innocent lives are lost *( not talking about the fetus)....
1,470
AskOldPeople
uhg8t1
What was it like to be part of the fight for the right to obtain a safe legal abortion?
As an older woman, I will tell you that I am terrified for my granddaughter. I'm afraid for the girls she will grow up with, I'm even scared for her idiot mother. People are going to die because of this ruling. I literally,as in dictionary definition, just saw a headline that said the SC said that the leaked draft is a...
1,240
AskOldPeople
uhgmwl
What degree complements computer science other than science degrees like math, physics, engineering, etc?
Linguistics, operations research.
240
AskComputerScience
uhgmwl
What degree complements computer science other than science degrees like math, physics, engineering, etc?
Pretty much all of them. The strength of Computer Science lies in it being able to be comboed with almost anything. That said, of course some are maybe a bit better than others. Mathematics, and the natural sciences (physics, biology, earth sciences, to a lesser degree chemistry) are obvious picks. Philosophy is of c...
210
AskComputerScience
uhgmwl
What degree complements computer science other than science degrees like math, physics, engineering, etc?
Business, Management/Engineering Management, Psychology (for UX)
140
AskComputerScience
uhhvv1
I have a function like this fn evaluate<T>(&self, s: &State, a: Option<T>) -> Option<T> where T: num::PrimInt + std::iter::Sum + WrappingAdd + WrappingSub, And now I realize I need to know the width of the argument. (For context, this is part of something which ne...
You could possibly use [std::mem::size\_of<T>()](https://doc.rust-lang.org/std/mem/fn.size_of.html) but that does return the aligned size rather than the raw size, however this is equal for most primitive number types so if that covers your use case then great. The other option would be to define your own trait ...
90
LearnRust
uhhvv1
I have a function like this fn evaluate<T>(&self, s: &State, a: Option<T>) -> Option<T> where T: num::PrimInt + std::iter::Sum + WrappingAdd + WrappingSub, And now I realize I need to know the width of the argument. (For context, this is part of something which ne...
Since you have a well-defined universe of possible types, I would be inclined to implement the actual swap as a trait on `u8` and `u16`¹ and then have the generic bounded on that trait and call the trait method. This way your code would avoid an `if` branch on the static size and since the logic for an 8-bit value is g...
60
LearnRust
uhhvv1
I have a function like this fn evaluate<T>(&self, s: &State, a: Option<T>) -> Option<T> where T: num::PrimInt + std::iter::Sum + WrappingAdd + WrappingSub, And now I realize I need to know the width of the argument. (For context, this is part of something which ne...
In case you do ever need to actually get the concrete type instead of just using the size, the trait bound you will need is the [Any Trait](https://doc.rust-lang.org/std/any/trait.Any.html) which allows down casting an opaque type to a concrete type, though it does require `'static`
30
LearnRust
uhjd3h
We are announcing a temporary moratorium on posts related to abortion, the Supreme Court and the leaked draft. We will review this before the weekend, and may post a megathread, but our current expectation is that a moratorium outside a megathread will last until the full release of the *Dobbs v. Jackson Women's Health...
When discussing the matter from this point forward we have to refer to it as a "special operation".
900
AskAnAmerican
uhjd3h
We are announcing a temporary moratorium on posts related to abortion, the Supreme Court and the leaked draft. We will review this before the weekend, and may post a megathread, but our current expectation is that a moratorium outside a megathread will last until the full release of the *Dobbs v. Jackson Women's Health...
I’ll make sure to have popcorn ready for sale in the megathread
790
AskAnAmerican
uhjd3h
We are announcing a temporary moratorium on posts related to abortion, the Supreme Court and the leaked draft. We will review this before the weekend, and may post a megathread, but our current expectation is that a moratorium outside a megathread will last until the full release of the *Dobbs v. Jackson Women's Health...
But we can still discuss the weather, right?
730
AskAnAmerican
uhm9c9
Were you looking for it, just happened at random, was something “arranged” (like actually arranged or even a blind date)?
I was just 19 and was already sick of the kind of guys that were always ready to jump my bones but never put anything into any kind of real connection. I took a look at myself and honestly assessed the kind of guy that would be good for me and also the kind of guy I'm attracted to. And I was sure it would take forever...
90
AskOldPeople
uhm9c9
Were you looking for it, just happened at random, was something “arranged” (like actually arranged or even a blind date)?
\> Have you ever found love? If yes, when? Multiple times.! Most recently with the wonderful woman I married several decades ago. Many years, six kids, and a bunch of grandkids ago, we're still very much in love and incredibly happy to be together.
50
AskOldPeople
uhm9c9
Were you looking for it, just happened at random, was something “arranged” (like actually arranged or even a blind date)?
I was (1970) 18. She was 16. My sister, with whom I was very close (J.D. Salinger "Franny & Zooey" close) introduced us. We have been married 47 years this year. She has put up with a lot of my shenanigans, but it has never been boring. We have three children who tell us their love lives were ruined because they ca...
50
AskOldPeople
uhma4e
Hi, I'm slowly learning that comparing programming environments is hard and its almost impossible to say that one language will always be faster than another for certain use cases.. However I ran into something peculiar now. I have an application where I need to calculate the Intersection between polygons as part of...
Can you show some code? Try to run benchmarks with flamegraph https://github.com/flamegraph-rs/flamegraph It's possible that the node library has better optimizations.
80
LearnRust
uhma4e
Hi, I'm slowly learning that comparing programming environments is hard and its almost impossible to say that one language will always be faster than another for certain use cases.. However I ran into something peculiar now. I have an application where I need to calculate the Intersection between polygons as part of...
> First thing I checked: Am I building a debug build? Classic error. But I wasn't. Next big gotcha areas are memory fragmentation and zillions of unnecessary copies. Putting all of you polygons in a contiguous array will likely be much much faster than putting them behind something like a hash table (where they ca...
50
LearnRust
uhma4e
Hi, I'm slowly learning that comparing programming environments is hard and its almost impossible to say that one language will always be faster than another for certain use cases.. However I ran into something peculiar now. I have an application where I need to calculate the Intersection between polygons as part of...
I had to make this kind of thinks to create a tile server in rust I used https://github.com/georust/rstar
30
LearnRust
uhss9t
Anyone got bruised up using Click Clacks?
Yes. Bruised forearms. Bruised foreheads. Bruised cheekbones. I don't know any kid who mastered them like the ones in the TV commercials. That was before CG, so the little monsters must've really learned how to do it.
180
AskOldPeople
uhss9t
Anyone got bruised up using Click Clacks?
Oh yes. We used to bring those to school and have contests to see who could move their hand in and out of their path unharmed. I used those until they shattered little pieces into my eyes or the string broke! Good times.
120
AskOldPeople
uhss9t
Anyone got bruised up using Click Clacks?
Of course...downright black and blue forearms at times as a kid. Sometimes more painful places like a forehead and I have a memory of clacking myself in a thoroughly double-over painful way down where the delicate bits are parked: Though I can't figure out quite how that happened 50 years later. And when the resin ba...
100
AskOldPeople
uhtfb8
How many friends do you have and how often do you see them?
Actual friends I enjoy? 3. I see them less often than I’d like, but we text every day. Acquaintances bore me now. I’d rather keep the circle small.
150
AskOldPeople
uhtfb8
How many friends do you have and how often do you see them?
1 ..My wifes good friends husband. We have met 3 or 5 times? exchanged polite small talk about sports and the yard and the weather and went on our seperate ways. I dont know his name and i dont think he knows mine. We both are happy as can be with it. If i see him again in 5 months or so its good.
110
AskOldPeople
uhtfb8
How many friends do you have and how often do you see them?
I have very few people who I'd rather be with, than be alone. It's nobody else's fault, I just like being alone.
90
AskOldPeople
uhvegr
[Duncan Yo Yo's 1976](https://www.youtube.com/watch?v=dfqykR14O3Y)
Never did. I couldn't do a single thing wih a yoyo.
50
AskOldPeople
uhvegr
[Duncan Yo Yo's 1976](https://www.youtube.com/watch?v=dfqykR14O3Y)
I could do "around the world" and "walk the dog". Get a good quality yo-yo. You basically fling it strongly off the top of your palm downwards, and it should stay spinning there. Take it on a walk. Give it a light yank, it comes back up.
30
AskOldPeople