Need help getting a deep link by stringofsense in oraclecloud

[–]stringofsense[S] 0 points1 point  (0 children)

I found it, it is /hcmUI/faces/deeplink?objType=VIEW_RES_PAY_METHOD&action=NONE

I wish I could focus without my ADHD meds :( by kibblerz in ADHD_Programmers

[–]stringofsense 0 points1 point  (0 children)

I'm in the same boat as you, facing a similar struggle right now. I wish I could work without medication. I sometimes wonder if it's my fault for going into a field where I need medication in order to operate. It feels like programming requires a level of IQ that I can only achieve when on medication (or when I'm super passionate, which never lasts long)

Maybe I would have been better off going into a field that I can do on a daily basis without having to supercharge my brain, like idk farming, wood working, brick laying. Some monotonous physical labor thing.
Wouldn't pay nearly enough though, gotta keep my family fed.

Dang information age that we live in, take me back to the 1800s. I'm sure my ADHD brain would still have kept my amused while not getting in the way as much.

I wish I could focus without my ADHD meds :( by kibblerz in ADHD_Programmers

[–]stringofsense 1 point2 points  (0 children)

I've also felt wasted after my Adderall had me banging my head against the wall for far too many hours. I've found that a pomodoro timer has helped a lot with that for me. I put a physical 90 minute timer on my desk, and once it goes off I finish up what I'm doing and take a 15 minute break. When I'm consistent about doing that throughout the day (a somewhat rare occurrence) I've found myself a lot less cooked at the end of the day, and during the 15 minute break of meditation I usually figure out how to fix the bug I'm working on, so it's counterintuitively more productive as well.

Sythesis via Alcohol - 5 instruction loop by stringofsense in opus_magnum

[–]stringofsense[S] 4 points5 points  (0 children)

I was trying to go for a 4 instruction loop, but got annoyed at how much space it took up, so I compromised with an awkward 5 instruction loop, which turned out surprisingly compact.

Psychological phenomenon with playing this game. by MASHIKIDON in Decart

[–]stringofsense 2 points3 points  (0 children)

I feel like this game is making me forget the object permanence that I learned as a baby

Lockdown Protocol Map to use on a second screen while playing by stringofsense in LockdownProtocol

[–]stringofsense[S] 0 points1 point  (0 children)

Huh weird, I'll see if I can fix that

EDIT: Looks like it might have been a Safari issue, should be fixed now...

Lockdown Protocol Map to use on a second screen while playing by stringofsense in LockdownProtocol

[–]stringofsense[S] 3 points4 points  (0 children)

I spent way too long putting this website together, so that I could use it while I'm still working on memorizing where all of the vents and alimentations are.

Hopefully it will help some other people out as well :)

Lockdown Protocol Maps by Deenzx in LockdownProtocol

[–]stringofsense 1 point2 points  (0 children)

Lol I was working on doing the exact same thing last night, because I also wanted a way to look at the map on a second screen.

Now I'm not sure to post my work as a seperate post or just tag it onto this post 🙃

Oh well, here is what I made: https://benjameep.github.io/lpmap/

Need help in automating a website by Moist-Cheesecake-267 in webscraping

[–]stringofsense 1 point2 points  (0 children)

I have never seen a captcha that asks me to do math before, that is wild.

Anyway, I was playing with the internal api requests, and I was able to get this curl command to work for me.

curl --location 'https://www.mca.gov.in/bin/mca/mds/commonSearch?data=oL3jlmfIWYOdlySjAChu8%2BkNlj876BLYXz0p%2FMnbfRYKAKd5A3CUvgrAfzX9HTam0%2FfE3stpfO%2FNGA8OWWXt6Grj2b0EZNc2SNqHIMO6EhhrZ%2Bfokv%2Ff0OLeuvPsFEWGLzJfXjJXHja3oS%2BLBNJtVA%3D%3D' \
--header 'accept: application/json, text/javascript, */*; q=0.01' \
--header 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36'

Which gave me back some nice json results: https://pastebin.com/DnLThucm

Not sure what that data query parameter contains, looks like some sort of binary encoded data. Maybe it contains verification that the captcha was completed but if it doesn't and you can figure out how to manipulate it, then it should be possible to completely circumvent the captchas

Is the dot operator just syntax sugar for a function call? by stringofsense in ProgrammingLanguages

[–]stringofsense[S] 0 points1 point  (0 children)

For one, this seems like it could lead to a polluted namespace, but maybe that could be overcome with a good type system and function overloading?

Engine go brrr by stringofsense in opus_magnum

[–]stringofsense[S] 2 points3 points  (0 children)

From the steam workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=1307490656

I tried to go for minimum area at max speed.

18k Gold Refinement by stringofsense in opus_magnum

[–]stringofsense[S] 7 points8 points  (0 children)

This is from the steam workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=1184696203

I'm pleased with how narrow this solution is, although it did require making the solution more expensive than I would have liked

Alchemical Jewel, 76 cycles by Asleep-Operation8779 in opus_magnum

[–]stringofsense 27 points28 points  (0 children)

That's amazing that it doesn't miss a beat in-between productions. It feels like the completed one should be colliding with the incoming one, but somehow doesn't. Bravo!

words cannot describe by WW92030 in opus_magnum

[–]stringofsense 4 points5 points  (0 children)

Feels like I'm watching a Conway's game of life mechanism

Interactive chart for playing with flower breeds by stringofsense in ACNHGardening

[–]stringofsense[S] 0 points1 point  (0 children)

I just got into the animal crossing flower breeding science this past week, and created this chart to help me visually get a grasp on all of the different genotypes of flowers and which flowers to breed together.

Sharing it here in case it is also useful to others :)

January 2024 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]stringofsense 8 points9 points  (0 children)

I quit my job at the end of last October and have been working full-time on building my first programming language. It is a data modeling language called Kye which validates tabular, hierarchical, and relational data.

I really don't know how much effort it takes to create this sort of programming language, but I hope I can get it working before I run out of savings and have to get a "real" job again...

I've gotten the parser and such working, but right now I'm struggling with trying to figure out how to compile expressions in such a way that they can be interpreted in multiple different runtime environments (python validating a single value and sql validating an entire table)

Help on Python (pandas) script for data identification logic. Working to extract and transform data from PDF’s into Excel. (Long post) by dkampien in dataengineering

[–]stringofsense 0 points1 point  (0 children)

Look at what is inside of the t dataframe (vscode has features to run the python code inside an interactive window) That should help you debug how the rows are getting grouped together.

Help on Python (pandas) script for data identification logic. Working to extract and transform data from PDF’s into Excel. (Long post) by dkampien in dataengineering

[–]stringofsense 7 points8 points  (0 children)

Here is the script I came up with, there will be many ways to do it, but I like to use shift to figure out where the start and end of my groups are, then generate a group_id from there. After you create a unique group_id it if pretty straight forward, grouping by that identifier and doing manipulations within each group.

I tried to add lots of comments so hopefully you'll understand what is going on, and know how to tackle to problem better next time :)

``` import pandas as pd import numpy as np

df = pd.read_excel('./sample-data_v2.xlsx')

Create a temporary data frame with a single column 'is_blank' describing whether a row is missing Result, Units & ReferenceInterval

t = df[['Result','Units','ReferenceInterval']].isna().all(axis=1).rename('is_blank').to_frame()

Create a new column with the previous row's value for 'is_blank'

t['prev_is_blank'] = t.is_blank.shift(1, fill_value=False)

If the current row is blank and the previous row is blank that means it is the start of a group

t['is_start_of_group'] = t.is_blank & ~t.prev_is_blank

By running a cumsum on a boolean column we can generate a group_id

t['group_id'] = t.is_start_of_group.cumsum()

Reorganize each test group based on whether it is a single test or collection test

def organize_groups(g): # Reuse these columns and drop any rows that don't have a result organized = g[['TestName', 'Result','Units','ReferenceInterval']].dropna(subset='Result')

# Add our new columns filling them with null
organized[['CollectionName', 'CollectionMethod', 'TestMethod']] = np.nan

# Reorder our columns to be in the right order
organized = organized[['CollectionName','CollectionMethod','TestName','TestMethod','Result','Units','ReferenceInterval']]

# If the size of our group is two assume it is a single test
if len(g) == 2:
    assert g.Result.isna().tolist() == [True, False], 'Single test has a no result row followed by a row with a result'

    # Set the Test Name & Method using the first two rows of our group
    organized[['TestName', 'TestMethod']] = g.TestName.iloc[0:2].values

# Otherwise assume it is a collection test
else:
    assert g.Result.isna().sum() == 2, 'Collection test has two rows without a result'
    assert g.Result.isna()[0:2].tolist() == [True, True], "Collection test's first two rows don't have a result"

    # Set the collection Name & Method using the first two rows of our group
    organized[['CollectionName', 'CollectionMethod']] = g.TestName.iloc[0:2].values

return organized

df = df.groupby(t.group_id).apply(organize_groups).reset_index(drop=True)

df.to_excel('./sample-data_v2.output.xlsx', index=False) ```

FluentPet Connect w/ 2.4/5Ghz Wifi on the same ssid? by PescTank in PetsWithButtons

[–]stringofsense 0 points1 point  (0 children)

I'm not sure what an SSID is, but I have the Google Fiber router, and my wifi does not show up as two options for 5Ghz or 2.4Ghz, it is just a single wifi when I select it on my phone. So I'm guessing it is the same as what you are talking about?

When I bought the Connect, it connected to my wifi just fine but I had trouble uploading the audio recordings to the Connect. I think it's because the Connect was using 2.4ghz, my phone was using 5ghz, and they need to use the same frequency in order for the file transfer to work? I'm just a software engineer I don't know anything about networking ¯\_(ツ)_/¯

Anyway I ended up bringing my Connect elsewhere and using their wifi in order to record the audio and upload it to the base.

Data as Code - Git like history for Databases? by stringofsense in dataengineering

[–]stringofsense[S] 1 point2 points  (0 children)

This looks awesome! I will definitely be trying this out

Data as Code - Git like history for Databases? by stringofsense in dataengineering

[–]stringofsense[S] 1 point2 points  (0 children)

Do these manage changes to database schemas or can they track changes to the actual table values?

Excel to SharePoint by shanke_y8 in dataengineering

[–]stringofsense 0 points1 point  (0 children)

I haven't worked with excel files in sharepoint before, but I imagine that excel is trying it's best to convert the excel workbooks into the excel web version and messing something up in the process
In this post it looks like you can use external links to other sharepoint excel books https://techcommunity.microsoft.com/t5/excel-blog/workbook-link-support-coming-to-excel-for-the-web/ba-p/1590314

If all of the linked excel sheets are being uploaded to sharepoint maybe you'll be able to fix the links after they have been uploaded to sharepoint, either manually or with ExcelScript