|
im kinda sad that trump avatar guy solved it for you because its really fun to think out the tree traversal in sql imo
|
# ? Jul 11, 2018 03:48 |
|
|
# ? May 31, 2024 03:18 |
|
HoboMan posted:ok i have a table that is full of items that may be copied from other items in the table. there is a "copied_from_id" column and business people want a count of how many times each record has been copied and copies-of-copies count only towards the original record but the copied_from_id column will have the id of the copy and not the original. sure just have an ORIGINAL_ID column too so you don’t have to do graph traversal to get that information
|
# ? Jul 11, 2018 05:48 |
|
gonadic io posted:beaten completely but here's my Rust version: https://play.rust-lang.org/?gist=985480e936f735ad46c6b45b2bec68eb&version=stable&mode=debug&edition=2015 FYI you can use {:#?} to pretty print the output.
|
# ? Jul 11, 2018 07:12 |
|
Also if you search from the parent nodes instead of the child nodes you can do it with just regular dfs or bfs.
|
# ? Jul 11, 2018 08:35 |
|
floatman posted:You could do it in pure SQL, but SHOULD you do it in pure SQL? pulling everything from a table into the app, or writing some sort of loop to repeatedly retrieve (grand etc.) children/parent rows will land you in the coding horrors thread imo. so yes, you should do it in pure sql
|
# ? Jul 11, 2018 09:28 |
|
cjs: browsing the . bash_history copied from a device in the field is the best available source of documentation I currently have on how this project is deployed
gonadic io fucked around with this message at 15:47 on Jul 11, 2018 |
# ? Jul 11, 2018 15:30 |
|
cjs: oh god I'm falling down a hole of endlessly nested react components. send help
|
# ? Jul 11, 2018 15:39 |
|
try mescaline
|
# ? Jul 11, 2018 16:24 |
|
its the only way to fly
|
# ? Jul 11, 2018 16:25 |
|
gonadic io posted:cjs: browsing the . bash_history copied from a device in the field is the best available source of documentation I currently have on how this project is deployed yeeeeah, spread that log out and roll around in it
|
# ? Jul 11, 2018 16:31 |
|
eschaton posted:try mescaline Or recursion
|
# ? Jul 11, 2018 16:58 |
|
Finster Dexter posted:cjs: oh god I'm falling down a hole of endlessly nested react components. send help Reminded me, I'm 27 days into a nested component bug logged with Google's Polymer 3. No update in the last 24,
|
# ? Jul 11, 2018 17:36 |
|
stop using javascript for everything jesus loving christ. how many pages REALLY need all this bullshit. look at all the sites you enjoy using, almost none of them use any stupid dynamic DOM rendering because even with "virtual DOM" and all that other stupid bullshit it still runs like total poo poo. just loving render the page on the server side, you goddamn morons
|
# ? Jul 11, 2018 18:48 |
|
our health information vendor has an API that lets us send a list of topic ids and a coversheet (in html) and sends us back a PDF with the coversheet and all the health information topics specified by the IDs. we then email or mail this to a patient. Turns out they check for script tags in the html which is good, but they do it wrong. How did I find this out? We had a failing health info print request that was getting rejected because it contained a script tag. We don't send script tags so I start troubleshooting. The coversheet contains a list of topic names so the patient has a summary of what health info is on the document we send them. It seems that if I remove the topic list, it works fine. So I look at the topic list and look to see which of them might be causing the error. Of course it was "Prescription Medication". Their anti-script code just looks for "script" and that's it. so I just added a replace on the topic list to replace script with s<span></span>cript and now it works. great. I love 2 program
|
# ? Jul 11, 2018 19:15 |
|
https://twitter.com/legaladvice_txt/status/1017030592528113665
|
# ? Jul 11, 2018 19:21 |
|
lol, not even filtering on just "<script"
|
# ? Jul 11, 2018 19:22 |
|
yeah its dumb. I sent them a bug report but idk if they care. it would be pretty trivial to do it right w/ html agility pack or something.
|
# ? Jul 11, 2018 19:25 |
|
They're gonna reply, "We'll need to filter for <script, too, right?"
|
# ? Jul 11, 2018 19:43 |
|
CRIP EATIN BREAD posted:stop using javascript for everything jesus loving christ. Oh I am in 100% agreement on this
|
# ? Jul 11, 2018 21:46 |
|
Shaggar posted:our health information vendor has an API that lets us send a list of topic ids and a coversheet (in html) and sends us back a PDF with the coversheet and all the health information topics specified by the IDs. we then email or mail this to a patient. Turns out they check for script tags in the html which is good, but they do it wrong. How did I find this out? We had a failing health info print request that was getting rejected because it contained a script tag. We don't send script tags so I start troubleshooting. The coversheet contains a list of topic names so the patient has a summary of what health info is on the document we send them. It seems that if I remove the topic list, it works fine. So I look at the topic list and look to see which of them might be causing the error. Of course it was "Prescription Medication". Their anti-script code just looks for "script" and that's it. so I just added a replace on the topic list to replace script with s<span></span>cript and now it works. great. I love 2 program For a loving medical system too. Like the one industry that's guaranteed to encounter that string regularly.
|
# ? Jul 11, 2018 21:56 |
|
i'm the module starter, package instigator i'm the javascripted danger illustrated i'm a framework starter, twisted framework starter
|
# ? Jul 11, 2018 22:08 |
|
just start spelling them scrip+s
|
# ? Jul 11, 2018 23:25 |
|
Soricidus posted:i'm the module starter, package instigator more like: change my framework, batch my script up
|
# ? Jul 12, 2018 00:04 |
|
Why Does It Burn When I Compile? Edit: poo poo, forget that. Why Does It Burn When I Memory Leak? SardonicTyrant fucked around with this message at 01:54 on Jul 12, 2018 |
# ? Jul 12, 2018 00:40 |
|
i am the very model of a model view controller?
|
# ? Jul 12, 2018 01:35 |
|
lol
|
# ? Jul 12, 2018 01:36 |
|
Had to explain to a coworker today that my new API storing refs from other microservices does not mean that it's coupled to those services. "But what if the other microservice is down and the consumer can't retrieve the data pointed to by the ref?" This is a person who advocates for having every API hold copies of any data that might be referenced in it and use jobs everywhere to keep those local copies in sync, regardless of how important it is to have that service be up 100% of the time.
|
# ? Jul 12, 2018 02:10 |
|
Bloody posted:just start spelling them scrip+s how much u wanna bet that the script check is case-sensitive
|
# ? Jul 12, 2018 03:40 |
|
Shaggar posted:our health information vendor has an API that lets us send a list of topic ids and a coversheet (in html) and sends us back a PDF with the coversheet and all the health information topics specified by the IDs. we then email or mail this to a patient. Turns out they check for script tags in the html which is good, but they do it wrong. How did I find this out? We had a failing health info print request that was getting rejected because it contained a script tag. We don't send script tags so I start troubleshooting. The coversheet contains a list of topic names so the patient has a summary of what health info is on the document we send them. It seems that if I remove the topic list, it works fine. So I look at the topic list and look to see which of them might be causing the error. Of course it was "Prescription Medication". Their anti-script code just looks for "script" and that's it. so I just added a replace on the topic list to replace script with s<span></span>cript and now it works. great. I love 2 program lol, software engineering
|
# ? Jul 12, 2018 05:02 |
|
Had lunch with a old coworker yesterday. Highlights include: New engineer that joined a month before I left got the gently caress out a week after I left. There is one last engineer left who is now in charge of integrating the 70% done project I left into our server application with no help from anybody else. The integration code was maybe 20% done when I left. They stopped paying for slack, which has blocked all the previous logs and chats I have had that may have helped him. They refuse to pay $2500 for a gitlab enterprise license which has expired and has blocked them from using the git server. There are no offsite backups and the CEO refuses to ask me for help. The CEO is now starting to think that the company should just sell its enclosures and not it’s own products. I never thought I could actually do that kind of damage to a company. Edit: As a reminder, my initial leaving was because they refused to give me a $40,000 raise from 80 to 120 for doing full stack embedded Linux work. FlapYoJacks fucked around with this message at 06:02 on Jul 12, 2018 |
# ? Jul 12, 2018 05:55 |
|
most companies commit suicide. they don't have homicide done to them. i don't think your old company was an exception
|
# ? Jul 12, 2018 06:04 |
|
bob dobbs is dead posted:most companies commit suicide. they don't have homicide done to them. i don't think your old company was an exception It’s certainly suicide. I feel that I may have given them a loaded gun though.
|
# ? Jul 12, 2018 06:05 |
|
quote:imposter syndrome
|
# ? Jul 12, 2018 06:35 |
|
ratbert90 posted:Had lunch with a old coworker yesterday. Highlights include: How much did they flush down the tube to not give you $40k?
|
# ? Jul 12, 2018 06:47 |
ThePeavstenator posted:How much did they flush down the tube to not give you $40k? iirc he quoted earlier a couple mil
|
|
# ? Jul 12, 2018 07:00 |
|
lol @ everything
|
# ? Jul 12, 2018 07:16 |
|
Stringent posted:lol, software engineering
|
# ? Jul 12, 2018 07:46 |
|
CRIP EATIN BREAD posted:stop using javascript for everything jesus loving christ. better, just write a native app and use JSON over HTTP+SSL as your access layer
|
# ? Jul 12, 2018 10:28 |
|
ratbert90 posted:They refuse to pay $2500 for a gitlab enterprise license which has expired and has blocked them from using the git server. There are no offsite backups and the CEO refuses to ask me for help. tag the CEO on LinkedIn and say “hey, remember when I asked for a raise to a salary that was still below industry average, and you said you could just replace me? how’s that working out for you?”
|
# ? Jul 12, 2018 10:34 |
|
|
# ? May 31, 2024 03:18 |
|
what’s important is that all the CEO’s peers see it
|
# ? Jul 12, 2018 10:34 |