#ot1-perplexing-regexing
1 messages · Page 416 of 1
seems like they're going a bit overboard on the quirky austrian emperor factor
I hope the app doesn't get shot down 🤣
but does it do discord?
7 votes and 12 comments so far on Reddit
"Just read the documentation, it isn't that long"
The documentation: https://www.youtube.com/watch?v=FYx_IGBX-EE
@rough sapphire
I'm trying to insert a dataframe into a mongodb database.
The problem is although the dtype of my dates is datetime64[ns], it gets inserted as an Integer 64 bit ....
why ?
.astype(....) aswell as pd.to_datetime(...) still inserted as an int
what types does mongodb support
if it doesn't support datetime64, that's probably why it's getting type coerced
is there a way to change the type of an column to JUST datetime ?
I think mongodb supports timestamp and date in iso.. so you need to split and convert your datetime64 format to get what you want
only using the date without time, still won't work
This random graph I made almost looks real
The crashes might be exaggerated, but I feel like it matches the US economy in a way
give or take a few years here and there
unlabeled axes, random axes limits. Seems like very realistic graph
What's the Y axis? IDK
I mean more in terms of the way it kinda follows the growth and fall of the US Economy over the last 120 years
🙂
Not very offtopic though
though kinda
those ups and downs don't even really match that closely. You don't have 2008 on there. It doesn't reflect the 60s-80s all that well
doesn't reflect the US impact of WW2
oh my god
that hurts
yeah...
the moment when you have to use pip3 because pip doesn't work, and you don't know Why
Or because your Linux distro is packed with python2 and you want to use python3
i mean, sudo package manager python3
I know, it’s just that you have to type pip3 and python3 because it defaults to python2
And you can’t change either without breaking your os
That’s odd, I’ve had pip2 installed on a new os
probaly just have to apt install pip
Woah, wait
Anyone who thinks Haskell is ugly is wrong
Just plain objectively wrong
@bleak rain
yeah but haskell is not for parsing HTML inside a spreadsheat function
weird and wonky math yes
Just googled Gaskell syntax and oh god
check out brainfuck
Oh god it's simple, right?
no it isn't, and I though c++ was bad
(Except for the all the symbols, I'll admit that. Until you learn them it's fucking confusing)
hey at least it's not brackets under functions, conditional statements, classes, and loops
so that's good
I mean its simple in the minimalist meaning of simple
It's simple as in super easy to understand
I mean, if you're a minimalist and program in anything else your not a minimalist
whats up simps
I knew what it was, but I've forgotten. I don't believe it's short for simpleton.
it's someone who will say anything to please someone else
it's an insult a little kid will call you because they don't have anything smart to say

it's an insult a little kid will call you because they don't have anything smart to say
@tight meadow naaaa
Simping is the act of ass kissing to a female for sexual favors
It’s kinda evolved to ass kissing to females in general
👀
anyway....
do you guys have experience with the pythonanywhere website.
if you do. What did you use it for.
or do you use something else
I need something i can run my code on 24\7
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
oh. banned in ot2. haha. oops.
honestly python-general is more off topic than off topic rn nice
lol
I'll take it
i mean, its close xD
you know that feeling when you write one line of code that accomplishes so much
Hmm?
Is there anything for which java is the best language for the job? (Assuming you can start fresh)
never turn your back on the python 🐍
minecraft mods
lmao
actually, apparently you can write them in kotlin nowadays, so perhaps not even that
Business applications (management software) is what I'm gussing java would be best for.
Old softwares with old devs tbh
Tph people are here 👀
My 'novel' version of Bogosort, called randomsort versus the original bogosort:
Here's a better graph with averaged values from 10 runs of each algorithm:
@rough sapphire want to explain a little more what's going on...?
Sure, I am comparing the run times of bogosort vs an algorithm that I made called 'randomsort'
what does the list length mean
The input length n
The sorting algorithms are applied to lists of random values, with length 'list length'
and then you're measuring how long it takes?
Exactly
and random sort just puts the numbers into random orders until it finds the correct one?
That's bogosort
okay
It shuffles the list and if it's sorted, returns
you might want to make the y-axis logarithmic for the second picture
since we're losing all the details
Hmm, yeah that might be a good idea. I was thinking of cutting bogosort's line off and just continuing randomsort
well there's an exponential difference in the behavior
it seems
so logarithmic axes makes sense
Bogosort has time complexity O((n+1)!)
I'm not sure about my algorithm, but it's probably something exponential
Here it is with a cut off bogosort graph:
I'll try a logarithmic axis
are those single runs
They are averaged over 5 runs here
okay
Looks interesting, they both seem approximately exponential:
But I think more repetitions would be needed to show the factorial
the factorial should grow faster than the exponential
it's starting to show there already
It's clear already, that randomsort is a revolutionary probability based sorting algorithm, and soon there will be no more need for bogosort 😄
This (pseudocode) is how it works:
def random_sort(iterable):
best_sorted = iterable
best_sorted_n = len(iterable)
current = best_sorted.copy()
while True:
unsorted = check_amount_unsorted()
if unsorted == 0:
# list is sorted
return current
# new best list
if unsorted <= best_sorted_n:
best_sorted_n = unsorted
best_sorted = current
current = best_sorted.copy()
for _ in range(best_sorted_n):
current.swap_2_random_elements()
hmm how long has the longest random sort taken you
i mean bogo sort
Basically: It keeps a copy of the best list and performs the minimum amount of swaps theoretically needed to sort the list. If the swapped list is better than the best list, replace it with the swapped list. Do this until you are done.
Right now I did bogo sort up until 11 elements, and it took me 140 seconds
i did bogo sort for 11 and it took 40 seconds
New graph, higher values
What implementation did you use?
I'm running just this ```py
%%time
for i in range(1,60):
print(i) if i % 5 == 0 else ''
R = list(np.arange(1, 9))
N = list(R)
random.shuffle(N)
while list(R) != N and not random.shuffle(R):
continue```
Ah, okay. Mine definitely takes a bit longer. ```py
def bogosort(iterable, reverse=False):
current = iterable.copy()
while True:
for el, next_el in zip(current, current[1:]):
if reverse:
is_sorted = el >= next_el
else:
is_sorted = el <= next_el
if not is_sorted:
break
else:
# list is sorted
return current
shuffle(current)
i might have gotten lucky
probably did
True xD
That's the fun with stochastic sorting
"fun"
You never know how long it takes, time complexity is anywhere between O(n) and O(infinity)
well that's true for any sorting algorithm, kinda.
a lot of algorithms have amortized time complexities
I see mostly O(n^2) as worst cases for sorting algos
i'm more curious on the side of what algorithms actually use random numbers but can still guarantee results
there's a metric ton of heuristics that guarantee some results like that but nothing optimal
Hmm, you can guarantee results, but only if you have infinite time
i'm not sure if that's the case
just because you choose something randomly doesn't mean you don't have a sure-fire way to get the job done
If there's a chance that shuffling something up randomly gets you the right list, it'll eventually happen.
well for a random sort yes but
i'm not talking about sorting here
I think general this principle of randomness is called the Monte Carlo method
There are algorithms in use everywhere that have infinite time complexity
@undone berry wanna expand?
Yes
Bit
I forgot the examples. Just someone once explained that they were used in lots of places because random factors are never going to actually be infinite
I'll do some research quickly
There definitely are algorithms in use that can produce crap results once every few trillion runs.
Monte Carlo methods, or Monte Carlo experiments, are a broad class of computational algorithms that rely on repeated random sampling to obtain numerical results. The underlying concept is to use randomness to solve problems that might be deterministic in principle. They are of...
looks pretty darn exponentially growing to me
that's on a nice logarithmic scale with RUNS = {6: 1000, 7: 1000, 8: 250, 9: 25, 10: 10, 11: 2}
averaged over all of them
Length of 6
0.00029621505737304686
Length of 7
0.0022091636657714845
Length of 8
0.01585757541656494
Length of 9
0.14624876976013185
Length of 10
2.01311719417572
Length of 11
17.074811458587646
Wall time: 1min 4s```
Bogosort?
yes
%%time
times = collections.defaultdict(list)
RUNS = {6: 1000, 7: 1000, 8: 250, 9: 25, 10: 10, 11: 2}
for k in range(6, 11+1):
print(f"Length of {k}")
for i in range(1, RUNS[k]+1):
R = list(np.arange(1, k))
N = list(R)
random.shuffle(N)
START = time.time()
while list(R) != N and not random.shuffle(R):
continue
times[k].append(time.time() - START)
print(np.mean(times[k]))```
Well, according to Wikipedia it has O((n+1)!) complexity
it looks exponential at that scale still
in that range
Yeah, it's hard to run it for input's larger than 11
even the last results might not be correct because there's only 2 runs averaged
i know for fact that one run lasted 50 seconds once and this time it's saying the average of runs was 17 seconds so
the truth is probably somewhere between 17 and 60
Hmm
what about bogobogosort
which supposedly will not succeed before the heat death of the universe.
What is it?
from wikipedia
Bogobogosort
is an algorithm that was designed not to succeed before the heat death of the universe on any sizable list. It works by recursively calling itself with smaller and smaller copies of the beginning of the list to see if they are sorted. The base case is a single element, which is always sorted. For other cases, it compares the last element to the maximum element from the previous elements in the list. If the last element is greater or equal, it checks if the order of the copy matches the previous version, and if so returns. Otherwise, it reshuffles the current copy of the list and restarts its recursive check.
Sounds horrible
is there an efficient way to pull the integer component from a boolean in rust
I'm mad. I just got told why I wasn't getting the Microsoft Office console log output; You can't do it in Visual Studio 2019, it has to be Visual Studio 2017
Because why not
christ
this is not the first time i've heard that VS2019 is worse than VS2017
they broke many things apparently
Apparently they just straight up removed the JavaScript Console
You'd think they'd at least support it as an extension or something
Or have it re-added when you download the tools for the various dev system you're targeting
Just waiting for that to download now
Wheeeeee
I'm just lucky 2017 still has a community edition
Oh wow, that's infuriating Hemlock
a hackintosh perhaps?
Hey guys I want to make a choice hope you would help me out.
I have to two options my laptop's hardisk failed.
My current laptop specs are:
i5 8th gen
8gb ram
Intel 620 UHD graphics.
1.) Should I buy a new 500 gb ssd and fix it cheaply at home.
Or
2.) Should I buy a new laptop with 10th gen processors for 1000 bucks. Its been two year using this and the only major issue is hardisk failure.
Thanks for reading
Newp to the Hackintosh question
@tall glen I'd just go with the harddrive personally
If you feel like you want more power after that, you can always put said new hard drive into the new machine as well
You mean you would go with new machine altogether
Not for a while
2 years really isn't that long
But if you're looking for an excuse to get a new machine anyway, now's the time
Hmm yeah I also thought that
But like you said, this is a cheap thing to fix
And it's not like you can't move the hard drive later down the line to your next machine
Nah my mom told me if you get a new big ssd then you would wait for at least year for new laptop
Hmm yeah I can use that ssd later on new machine too
Anything in particular you're trying to do or play?
fix your laptop, if it's just a HDD failure you should have had an SSD in it anyways, shame on you for not, also, go for a 1 or 2 TB at this point, 512?
Hmm nope just that I am not liking the models available currently and the prices are just inflated currently
You'll see significant gains in getting an SSD anyways
Also depends if you're the one paying or not
It'll feel like a whole new machine
Qvo
faster than any other upgrade
I wouldn't say "shame on you" if someone else is paying for it, Gnab
I kid
I'm more of a "be grateful for what you get" kind of guy
I mean not having an SSD for the OS in this day is like walking around with your ankles tied together
Not really?
Hmm
It bogs you down quite a bit
I'll get a new ssd
Can we get more time or is our time limited?
It's a matter of what you think you'll need
but if you had a 512 and used 120
over 2 years
you can probably live with 512 again
I personally have my 1TB HDD and my 512 SSD near capacity
Hmm I just do programming on laptop not a gamer not a video editor
Then the lower size is probably fine
Save the money then
And if you're not paying, then your parents will appreciate it
And that can go a long way as well
It doesn't sound like you needa new machine at all. The 8th gen is more than good enough for a few more years
I usually play on phone that's why I can't see the point
That's logical
Yeah that's why I am not buying a new one
But I thought I should take some other opinions
but you will be impressed by the speed boost with the SSD, when I installed mine I Was amazed that Windows loaded before I even realized it was loading
my wife accidentally booted my old HDD Windows the one day
all the updates, the horror!
again, it's a QoL thing you can't really step back from
and time is money
so to not invest, I think you're just costing yourself
I'm thinking more in terms of a business
Hmm I think I need some faster opening and for 70 buck we can get one of the best ssd in business I wouldn't think twice
I know
I am just feared it's my first time of replacing hardisk I've never done that before
Although I opened my laptop recently.
It's stupid easy
It's typically just take out the old, slot in the new
Worst you can do is lose a screw
And it can only go in one way
😅 okay
Hold on, I actually have one on my desk...
i highly recommend looking up "hdd replacement <make / model of laptop>"
you're bound to find an article or video on how to do it
so you know you're doing it safely
but it is a simple process.
Yeah I found tons of them
I mean it can only go in one way
Yeah
https://reasonml.github.io/docs/en/module#every-re-file-is-a-module I wish this is how Python's local imports worked. Just boom, snagged. I know it can't since that would be interpreter hell
Basics
But it's just so simple
yeah, that really is the simplest way of doing things
But I feel like it would just make Python explode a little
It's different when it's at compilation vs runtime
It really is making me fall more in love with the language, though
It's the same discovery thrill I got when learning Python
Okay, I cannot for the life of me figure out how to load this .json file into this add-in
Been told by some of my other JS friends that it's implementation dependent which doesn't help me in the slightest.
I personally don't know of any. (Not that there aren't some, I just am not in any)
@undone berry Were you the one that had a list of servers like that?
Fair
Reactiflux: https://discord.gg/reactiflux
Nodiflux: https://discord.gg/vUsrbjd
SpeakJS: https://discord.gg/dAF4F28
Nifty
For those who grow tomatoes, do you normally clip off the armpits? I just pruned a few plants and on some the leaves looked sad, so I clipped the bigger branch instead of the pit
hopefully I didn't hurt the plants ,they do have plenty of healthy leaves up higher
growing these from my pencil, surprised they did so well
Sorry the what?
Mmmm, depends if the branch is unwieldy/not producing anything anymore
I'm fairly liberal with lopping off branches if I feel like the growth is more focused on growing branches than producing fruit/growing what it already has.
I'll usually just pinch the suckers if it's a producing/good branch.
!otn a tomato armpits
:ok_hand: Added tomato-armpits to the names list.
It really is
In related news, my cherry tomato plants are finally producing cherry tomatoes!!
let state = undefined;
exports.gameLoop = init => update => draw => handleEvent => () => {
const canv = document.getElementById("canvas");
state = init;
draw(state)();
canv.addEventListener('mousedown', e => {
if (e.button === 0) {
state = update (handleEvent({x: e.offsetX, y: e.offsetY})) (state);
draw(state)();
}
});
}
```JS to be called from purescript looks quite strange
Huh
I've never seen concatenation like this before greet name = "Hello, " <> name <> "!"
There's typically a plus sign involved somewhere
<> is a common name for the semigroup associative operation (called splat IIRC)
oo math
the one thing elm is so badly missing
Lens ❤️
Remind me what Lens is
so, y'know how in elm you get these horrible nested structures which you need to unwrap and rewrap all the time. Lens lets you create a special function that will target a specific part of the structure and you can then read its value, set its value, map its value and such, returning the modified value. For example
import Data.Lens
type Structure = Tuple Int (Tuple Int (Tuple Int Int))
structure :: Structure
structure = Tuple 1 (Tuple 2 (Tuple 3 4))
rightmost :: Lens' Structure Int
rightmost = _2 <<< _2 <<< _2 -- _2 is the lens for second tuple element
structure2 = over rightmost ((+) 2) structure -- Tuple 1 (Tuple 2 (Tuple 3 6))
<<< is function composition
there are also many other much cooler things people much smarter than me do with lenses, I just use them as a convenient way to update states
@plucky ridge ^
emacs just crashed because of a long build. Nice
@wheat atlas Are you still having an smtplib issue?
Ah, I misread. You were right after them
@kindred solstice Are you still having an smtplib issue?
No problem, but can you help me with it?
Yea
i was
not specific to python tho i believe
its an auth error when i try to sign in from python
Were you using LOGIN PLAIN by chance?
uh not sure what that is, is that just username and password input?
You're using smtplib.SMTP_SSL, right?
Ah, that's a problem.
should i switch
I would, considering you're sending credentials in plaintext.
https://support.office.com/en-us/article/outlook-com-no-longer-supports-auth-plain-authentication-07f7d5e9-1697-465f-84d2-4513d4ff0145 is about LOGIN PLAIN not working on Outlook as well
Hm it drops a wrong version number error
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1108)
Lemme check something
ok
Let's go into a help channel
Has anyone on here had actual success with Duolingo or similar? I see lots of people using them, but I can't ever recall anyone saying they got to a useful point with an app based thing like that
@undone berry Duolingo, I've heard, is a really good supplement to other language-learning software.
However, it's not very good as your main learning program.
hi, is there a way to disable python linting on vs ? it's kind of getting mad at every walrus
I'd imagine it is an app that just needs to be disabled
welp, ended up going back to vscode and installed cpp stuff there too
couldn't find anything about py linting or disabling intellisense's checks in it's settings
@outer mango we can't help with that question here I'm afraid, "sneakerbots" are not something we help with
oh ok
eyy my long con paid off lol (sry jag2)
the channel was too well named to not do that
does anyone know why when im scraping this code gives me a error:
soup = bs(r.text, “html.parser”)
div = soup.find_all(“div”, {“class”:”b-swatch-value-wrapper”})
size = div.find_all(“data-value”)
print(size)
this is it but the error goes away when i just remove the size = line
im trying to parse all the sizes and it gives me a error with size = div.find_all so idk rlly
and when i remove it and just print the div = i can clearly see the data-value there so the problem is not that there is no object called data-value
what's the error
lemme show
Traceback (most recent call last):
File "C:\Users\misan\Desktop\FrostAIO\snipes.py", line 26, in <module>
size = div.find_all("data-value")
File "C:\Users\misan\AppData\Local\Programs\Python\Python38-32\lib\site-packages\bs4\element.py", line 1619, in getattr
raise AttributeError(
AttributeError: ResultSet object has no attribute 'find_all'. You're probably treating a list of items like a single item. Did you call find_all() when you meant to call find()?
@high verge
you saw it?
you're operating in a search result with another search
is the first thing that springs to mind
but look
i am looking
i wanna search in div in the class the box wrapper thing and inside that i wanna search data-value
so basically div-class-boxwrapper-data-value
have you tried iterating over the results of div
rather than trying throwing find_all at it?
And why are you asking in this channel...
oh sorry i thought this was for bots
try the #web-development or read the #❓|how-to-get-help channel
bisk can you go in a help channel with me?
no. i'm at work.
oh
If you are trying to make a sneaker bot or similar you should check out this video first though https://www.youtube.com/watch?v=NNZscmNE9QI
Ever wondered how to make a sneaker bot? You should watch this video!
Check us out at:
https://pythondiscord.com
https://discord.gg/python
😄
well noone will ever help me then
We can't help you if it breaks a sites terms of service, otherwise it is OK.
well its not only for a sneaker bot
its in general something i need to know
how to find something in something with bs if you know what i mean
Well regardless this is the wrong channel, and as I said this isn't really something we help with, but if you just want to to this to learn there are some sites that are great to practice on while not breaking ToS and it would be fine to ask for help with something more related to those.
Here is one http://toscrape.com/
If you are trying to make a sneaker bot or similar you should check out this video first though https://www.youtube.com/watch?v=NNZscmNE9QI
@wheat lynx lmao I watched this vid when it came out and It’s so good
Ever wondered how to make a sneaker bot? You should watch this video!
Check us out at:
https://pythondiscord.com
https://discord.gg/python
New bump in the road on the Excel Add-in travels
So the command for creating the checkmark image and moving it works
Once
Additional button presses create the image, but will then throw an error and won't move it
I know it has something to do with how the context of the document is synced
Just trying to find an example of how to manipulate it more than once in a command
I get that you don't want to be learning too many things at once, but it seems like it might be easier to use React. PureJS sounds like a nightmare for anything remotely complex
The issue isn't with the JS part of it, though
Every issue I've bumped up against has been with the API
So using React wouldn't make a difference, I don't think anyway...
But you have me wondering
Well, my understanding is that you're creating a checkmark in the panel on the right hand side right? If so, the React code to create and mess around with a checkmark is very simple - so I imagine if they support react, the simple stuff works how you'd expect
No
might be wrong though - it's not unlikely that MS messes it up
I'm adding it directly to the worksheet
ah
fair enough
that makes more sense
yeah. React wouldnt help with that I guess
Specifically in the cell to the right of the currently selected cell
And I can see where the error is but I'm not getting why it's failing
Keeps saying that "the current selection is invalid for this operation." the second time the button is pressed. Dying at the middle sync...
If you're adding an image, wouldn't a unicode checkmark be better?
It's not just a checkmark
fair enough then
They might all be unicode, but I think I worked it out
I'm suggesting things which there's like a 95% chance you've thought of, and like a 95% chance other people have suggested, but I feel like it's still worth mentioning for the 1% chance it's useful
It is
I'm not dismissing it
Just trying to think it out
Ah HA
Figured it out
https://paste.pythondiscord.com/imajisezev.js
It really didn't like me splitting up where I was creating the image and modifying its position. So I moved the var image = yaddah to be within the .then( scope
Weird that that was the trigger
hey, is this chat about making a bot to buy stuff like supreme clothing?
yes
Ever wondered how to make a sneaker bot? You should watch this video!
Check us out at:
https://pythondiscord.com
https://discord.gg/python
here's a nice tutorial
I personally want to make a Snickers bot
Just a little robot that will bring me a Snickers bar upon request
or a shoe robot
why did i just watch that vid lol
Because it's amusing
and useful
Who is the most self taught man in the world?
Someone that taught himself everything?
Are there any self taught doctors or pilots?
you mean without a tutor or without materials
No tutor.
well to be a pilot or doctor you need to pass an exam, which requires specific training
How about self taught investment banker?
yeah probably a few
but like self-taught mountain climbers that's more a product of statistics
😂
Tbh. It’s hard to be self taught with no guidance.
Because it’s hard to judge your own skill without biases or blindpots.
You may think you know or are good at something but someone with more experience may know where your knowledge gaps are.
That’s the biggest problem with being self taught.
On the other hand you can always ask ppl online.
I wanna get rick rolled.
Whatever happened to those days on YouTube?
I hate memes more every time I see a bad one
Eh.... that one isn't super terrible
Could use with a grid to separate things a smidge
needs less pixels
Fewer*
Progress is being made
It looks crappy and yet I don't care:
I genuinely don't think any of the folks are going to care so long as it works and continues to work
Okay kind of works
Seems to have broken the actual command
Hmm
yeah they won't care as long as it isn't a CLI utility
Yep, that's my thought
the menu could be a bunch of hyperlinks and they wouldn't care a whole lot
Eh... I think they'd still want the pictures at the very least
thats true, hyperlinks require reading text
@plucky ridge What's that project about?
Sorry for the ping, I'm just curious what that image comes from.
I also agree with what julie said about people not caring about the GUI as long as it isn't CLI. My mom works as a nurse and struggles with some of the command-line aspects of her work's interface every day, so having it all implemented in a GUI, no matter what it looks like, is certainly important.
Oh no you're fine.
So I work at an accounting firm, and our auditors use Excel for some of the forms and what not for the audits. Great, standard, makes sense. They also had an add-in that was made for them in-house by one of our IT guys years ago, back in 2001. Also great, works fine. However, it turns out, that as of Office 2019, that add-in doesn't work
Now, I could go in and try and change the VBA so that it uses the more modern API, but Microsoft is moving away from that entirely. Now it uses some Office.js thing. So I'm trying to make sure that the add-in is future proof for the foreseeable future
And it has been an absolute slog and just brick wall after brick wall
Finally making some decent headway, though. So that's exciting
And I don't mind getting pinged, since my attention can be any several dozen places at once
I really commend you for having enough patience to cover something so corporate and backend like that. Here I am trying to develop small games and web scrapers, and you're designing an entire add-in for Excel!
I just wouldn't have enough patience, nor enough interest, to tackle a problem like that with programming, so the fact you're doing it is pretty commendable.
I mean.... in fairness, the bulk of the add-in is just "add a picture of a checkmark and scoot it to the cell to the right of the current one"
And I think at this point it's just pure stubbornness
if that's the case - I'm curious - why do they even need it?
Because it's significantly faster than adding an image and scooting it into place by hand
And the tickmarks are important for documenting the audit process
sure, but a keyboard shortcut+macro seems infinitely simpler
For 20+ images?
Exactly
I think developing wn extension sounds fun
it's easy to forget that normal people like GUIs
@clear plume It's fun once it stops punching you in the face
Just dodge the punch 4head
Had an error that just made NO sense
JKJK
Turned out that it didn't like me creating the image and setting its location in two different spots
The errors were not helpful in helping me track that down
Ahh
Do you know if there's some kind of store or community hub for these things? It would be cool for you to be able to publish yours if you're allowed
although
That’s annoying
that sounds like the kind of thing enterprise would dislike
There is a marketplace thing yeah
Eh.... I mean I currently have it sitting on a private repo on GH
There's no license tied to it, and there's nothing confidential or proprietary about the add-in
I mainly just don't think it'd be clean enough that I'd feel good about publishing it
that's fair I guess. Although, if your guys find it useful, there's probably someone out there who would find it equally useful - and be very glad if they managed to stumble across it
well, no matter what that's not relevant right now. Main thing that matters is you're making progress
True, couldn't hurt. Main focus is getting it field ready
yeah, that's the right focus
I can worry about dolling it up later
I have a terrible tendency to look miles ahead
I do with my own projects, but for work stuff I tend to zero in
that's absolutely the best way. If you can focus on making some progress every day, you end up making actual good progress
So far it's only been little bits of progress. Currently fighting with how to implement images on the buttons
little bits of progress are what build products. I don't think anything was built in a day
We know beyond a shadow of a reasonable doubt that Rome wasn't built in a day.
Well something is messed up
Now it's not working at all, and I'm not getting any output or errors
you've been javascripted
You've Just Been Javascripted!™
Think I'm going to reboot, something in the background isn't clicking
Okay, take two
Hi im new, I think im at a stage where I could program something useful, but I just dont no what. Ive programed mandelbrot renderer, a raycasting engine, a 2d gravity simulation ... but thats all "useless" and has been done better before. How can I find original, useful ideas? Any tips?
your friends probably have a loads of "million dollar app/webstite" ideas
For the record, this project is bullshit. Carry on
@plucky ridge Which project?
Oh the Excel Add-in thing
Did they delete their message or something?
if it ain't broke don't fix it i guess
But now it is broke/will break so I do have to fix it
But the reason for my little outburst was because of this
So, that's a bunch of base64 strings that translate to images. They're several hundred characters long.
I initially had them all in a single line
But APPARENTLY, JS didn't like that
So I was getting a while class of errors I had never seen before
Like it just gave up trying to read the lines and then went "Whelp, nothing else is going to load now, screw you"
But making them separate lines fixed it
But I hate it
And the ONLY reason I don't have it as a .json file is because I can't figure out how to make that work
Since loading a local object isn't in JS
And it's implementation specific
But whatever, that works, no harm no foul. At least now I can see the image names, which will be handy for the next few steps
Well in fairness, it's normally served to the JS by a site or server or what have you
Rarely if ever from the client computer
So I get it
But it's bullshit
is there really no way to load them from a file?
this sounds like a weird, weird project
I spent 2 days looking
fair enough
I'm not saying there isn't, but I sure as hell couldn't find it
Now that I have it working again, currently working out how to add image to the html buttons without making shit crash
Because I CAN feed it the base64 strings and it'll properly take them and render them, but after that it straight up just froze the JS part
Entirely
Unless....
This project is way above my head lol
It's honestly really simple, it's just....
The documentation is both helpful and unhelpful at the same time
base 10 is annoying enough, base 64 is just insane
That part was easy
Did the conversion with Python in the REPL in like 5 minutes
Dumped it as a json to a file
I just realized I MAY be stupid
I think I can load the .json via the HTML since I can do local references there...
Hmm
I'm very out of my depth on all this
whats it like thinking out loud into a text chat?
Relaxing, probably
my brain isn't wired that way
no its fine
My brain is normally just noise so I have to write or speak to connect on a single thought
I just thought it was interesting
ADD suuuuucks
that sucks man
If I wasn't so easily distractible I'd say I'd be good at streaming while coding. Not because I think it'd be helpful to anyone but it'd be interesting to see how people take my thought process
that could also be funny, in a way
"and this recursive function calls back to.. 'awe man that squirrel is awesome'"
Honestly though, I feel bored all the time, right now I have avatar the last airbender playing to the right of discord
Well more that I'd be just flipping back to Discord or start researching something else on a tangent
Back in a tic
lol
This has taught me a lot about Visual Studio, though
how is visual studio?
I like IDEA a lot, and also atom, how different is it
https://vscodium.com/ is pretty good
Free/Libre Open Source Software Binaries of VSCode
Sorry, dealing with a mod thing
I do like it
It's responsive, well put together, debugging is nice and clean
And some of the tab behavior I think is better than PyCharm's
But it's also friggin MASSIVE
So, there's that
Visual Studio is completely different than Visual Studio Code AFAIK
Yeah they're completely different monsters
No compatibility in that fashion
@red yew @tranquil quail Here's free if you want to discuss it
vs code is the electron monster
vs is the... bloated monster
Ok sure thank you 🙂
To my knowledge, you wouldn't want to use an app store to distribute a program you only want a select number of people to use
Hello
I mean like, why do you use vs unless you're coding on c#
So how would you do it
I agree.
You'd likely host it on the business's server and have them download it or just send them the .apk itself via an email or something
Well it may be too large, in fairness
But it's similar to desktop installers
It's a single file that gets passed and used to install the program
That's a horrible idea
@rough sapphire Fair, I have a lot of those
You could always send several emails to make each file smaller
You can setup a repo through F-Droid and have them add that
That way you get updates
The Guardian Project does that with a few things
These are just prelim questions to see if it's doable
put it all in a repo and send a install.sh
You wouldn't need to root the phones right?
@rough sapphire An .sh file for an .apk?
yes
Why
because I said my idea before i was 100% sure what we where talking about
Ah, 😄
@tranquil quail If it's packaged in a .apk file, no, there wouldn't be any rooting needed
Again, just like a regular installer
Also, depending on what it is, you may not need a native application for mobile. Could get away with it as a mobile website.
send it via firefox send
It's just a time tracker for employees to clock in clock out
Those already exist
^^^
yeah, internal support would suuuck
Well that's ok with me I'm just in it for the work experience
Lol
@tranquil quail Lots of questions. One being, does this include anyone working from home?
No
So they physically have to be in the building?
Then yeah, a mobile app isn't necessary.
Do tell
Why would it be necessary?
Just setup something like a Pi with a keyboard/mouse/screen, have someone login some way, clock in.
Makes sense
I don't know of your system / work environment, so I can't give any finer tuned suggestions
or you know, some kind of AiO punchcard system
Sure, but that's probably overkill here.
Sure sure, but if security is concern, it's something to consider
I just wanted to express the thought
just get one of them date/time stamp and a slot
Would be rather easy to setup a bunch of systems - though we don't know what kind of industry they're in.
Sure sure
My recommendation would be different if it was someone trying to setup a clock in/clock out system for a fast food franchise as opposed to a bank.
I think I'm just still riding the high of making more progress on the add-in
yeah if it was a bank though, they shouldn't be soliciting help on a discord server
God I hope not
@rough sapphire You'd be surprised.
We currently use wheniwork
They have a monolithic architecture so it's not very flexible
I choose to believe it's pronounced weenie-work
"yeah just store their uuid and password in Md5, its good enough"
I can build her a backend and pull data from their API but long term idk
She needs reports generated
So if I do that, then the only reason she'd need the app would be to clock people in
make a discord bot, you know, say !clock in
get the whole company on a server
Sounds like you need a lot of things. Scheduling and the like is setup?
Wym the like
Scheduling people and not scheduling days/times they're not available
Yeah
You can automate that, so manager doesn't have to do it
Driving currently unfortunately
You never know in this discord when you'll get in depth help like this lol
Or just left unread for hours 😂
I just discovered why people find FP confusing
Just (Just (Stashed ss)) ->
let
assert = flip toMaybe s <<< or
_stash = (_game <<< _activeStash <<< _fromStash ss)
hasStone = assert <<< (<$>) ((>) 0) <<< preview _stash
takeFromStash = Just <<< over (_game <<< _activeStash <<< _fromStash ss) ((-) 1)
checkBoard = assert <<< preview (_game <<< _board <<< ix n <<< ix 0 <<< _size) >>> ((<$>) ((>) ss))
addToBoard = flap $ over (_game <<< _board <<< ix n) <$> ((Cons <<< Stone ss) <$> preview (_game <<< _active) s)
swapPlayers = Just <<< over (_game <<< _active) case _ of
P1 -> P2
P2 -> P1
in
fromMaybe s $ hasStone s >>= takeFromStash >>= checkBoard >>= addToBoard >>= swapPlayers
```it makes perfect sense knowing the context and types, but without it is just horrible
Holy moly
Ok so, I'm trying my best to make a personal website as a hub to find all my contact links etc.
Does anyone have a cool personal website that they'd like to show off. I'm in desperate need of inspiration.
@rough sapphire Does the website not have any intended purpose besides serving as your personal website? That's not meant to be an insult; many people make personal websites just because they can, and include lots of resources they've written on it.
yeah, that's pretty much it
so weird that names don't get offlisted once they are used
names?
May someone please teach me how to sleep?
Are there any beginner friendly tutorials or books out there?
Or any interactive tutorials?
There's a military technique.
I'm not familiar with it, beyond "be fucking exhausted"
But I think there's an actual thing beyond that.
Exercise, avoiding phones/light near your bed would help.
Fresh sheets.
Decent ventilation in the room.
I shall try out neovim later today
aaand I switched
Is there any ways to inherit from a struct in rust?
https://riptutorial.com/rust/example/22917/inheritance-with-traits#:~:text=In Rust%2C there is no,(a trait in Rust). I've taken a look at this but it's more for implementing methods, what about fields?
rust documentation: Inheritance with Traits
afaik it's not possible to inherit struct fields in Rust, given the fact that composition is a more dominant pattern in the language
ugh I wish I could zoom around a word document with ctrl + arrow
Ctrl + scroll wheel should work right?
i want to take a bath in tomato soup
why?
to try to get the skin to match the hair
fair enough then. It's pretty acidic, so watch out for that
idk if its move 5 characters or what but the cursor "fast move" like in the terminal or discord
it does that by default
well not for me, but whatever
wait im in libre office, lemme try on MS word real quick
yeah i think you brought this up a while ago as well
yeah, I use word for school, but you know, debian
yeah thats true, it doesn't work in word, for me either, but whatever
it is, but don't like google for privacy reasons
functionality wise.. there's nothing else that's better in the market
I never feel like I really know whats collecting data or not
which one are you curious about:3
oh it works now
tbh for schoolwork i'm pretty confident that google wouldn't be secretly collecting data from enterprise accoutns because that would be a whole other level of disaster if people found out
I yeah, except our school uses MS not google, so it'd be a private account
well, enterprise users are helped with troubleshooting, so they probably have access to your account
I don't care that I'm giving MS or Google my data - those two products are lightyears ahead of anything else
Latex is the closest thing
but that has a massive learning curve
yeah, its true, although openoffice is pretty good
well, you should care.. companies are not people.. if people are not all ok, imagine what companies are like
why should I care?
what can go wrong?
they use it for advertising or feed it to some NLP monster
everything
I don't mind
What did it cost
well - it cost me nothing
I'm willing to listen if you have any suggestions as to what can go wrong
I'm talking specifically about documents here
My main thing is that google's whole business is targeted advertising, so they have an incentive to collect as much data as possible
not all my data
collecting your data, they can use it to displace competition, monopolize markets.. own you
that's an interesting point about displacing competition. I don't think that's a point worth me protesting by not using google docs on though
ah - that's all I'm talking about here
I meant more like.. Fb collecting off facebook activity, etc
in the general sense, I agree
although, I was thinking, the online word program, once they implement all the features, do you think MS office is going to become an electron app like Teams?
I doubt it
there's so many legacy features that people expect at this point
they might come up with a little brother to office
and ms office online is still pretty shit
thats true, I almost forget it exists usually
i've only had bad experiences with it, yeah
laggy piece of shit with rubbish collaboration
and it crashes!
although that was back in 2017
it crashes!
a web app crashes!
how?!
we had a 1h20m physics lesson which was 75% my teacher getting angry because powerpoint online was crashing
why the fuck was he using powerpoint online?
just print it to a pdf
and look at it in FF or Chrome
presentation features
through the power of Microsoft, our products only work 50% of the time, and are full of stupid backwards compatibility features from 1995
he has to share screen through the online learning software
so it needs to be in a window that's resizeable
My main thing is that google's whole business is targeted advertising, so they have an incentive to collect as much data as possible
@rough sapphire frfrfr. They deadass collect almost all your data.
real men use Vi
Won't be surprised if my voice is locked away somewhere in their database for later use.
oh
intellibrain, or?
This is why me and tor are best friends.
Markdown is fantastic for small documents.
I just wish it was 10% better
What are you missing?
Tools for nicer headers, columns, underlining
those are the big three
they're pretty simple
document headers?
yeah
it has underlining?
I'm quite sure pandoc does
what about the abomination of R-markdown?
sounds like something for you
So, what do you hate about latex?
it's hard to learn and I'm lazy
latex is somehting I should obviously learn
but it's pretty big
For most usecases I don't think so
well - from an outsider perspective it seems big
just start with something like overleaf, and look at a basic template?
The next essay I need to write, I guess I will
tbh it seems like something you could learn as you need to use it

like basic html
ok what is this
it's gold dust but
not

Iunno. I tried using it for an essay once and quickly decided I couldn't take the time to learn it
probably because of my habit of starting essays 24hrs before they're due
imagine having to do essays
well i didn't this year
some next year for chemistry of all things
essays are easy
I like me a good essay
being able to version control it, is so nice.
That's what I love about Markdown, it works perfectly in Git
Luke Smith has some videos on Groff, Troff, Latex, Markdown, R-markdown etc.
You should probably use Latex though compared to groff or troff 
but I kinda like the oldschool ones.
yeah, if it's from 1990 I'm not gonna put that much effort into researching it
But Markdown makes me so salty because it's so close to perfection
but it's fragmented, and the tooling to work with it for documents isn't great
readme.docx :)
how is it that Netflix crept into that acronym?
the others are massive, Netflix is so much more focused
I think they just needed a vowel and went with Netflix
that is insane
@leaden shuttle lat thing about the document stuff. R Markdown actually looks very neat
Nice 👍
I remember when I viewed jupiter for the first time in my telescope
was so blown away
I have too much light polution where I live now, so had to sell it 
soon there will be too much light pollution everywhere from satelites
It really is quite sad
I was in the azores once.. no light pollution at all
can see the stars clear as day..
sometimes stayed up all night looking up.. it was beautiful
then I found this https://www.reddit.com/r/europe/comments/7zd7lu/portugal_us_base_in_the_azores_linked_to_inflated/
which is very sad
Oh hey, I remember some people here bitching on UE4 because of the one frame input delay, it is actually just an option, by default all the objects ticks on post physics work, but you actually want to make everything that touch the player view a pre physics work
i bitch until the cows come home about how its input system is flawed
the input still introduces latency after having 21 years to perfect this shit
and yet the stuff coming from an id software base is, for the most part, solid
does that seem right to you?
I mean, I just had an issue with input delay making my portal looks awful, problem solved, no more delay
does someone know how to resolve this?
zlib1.dll missing
i can't run the program
yes @stuck meteor https://manjaro.org/download/#kde-plasma
@idle night Calculus and Linear Algebra are only fun if you like math
Is it objectively fun?
But yeah, I personally would say that they are
Probably not
since there is no such thing as objectively fun
But people who like Math generally like Calc and Linear Alg
How can I make everything in life fun?
?
I want to become passionate about everything.
and everything becomes fun
Well, give up trying to do that, since not everything in life is fun :P
The true non-philosophical answer is to listen to music and challenging yourself on a timer
that way taking out the trash 5 am in the morning becomes an adventure
try it out
Or to detach your mind from the activity and just focus on the activity. Detach the sensory impressions.
I listen to hacker music on full volume when I'm doing boring CSS work
Yeah, these things stop being fun though. Our brain is hard-wired to not always experience fun.



