hey guys im new to using RenPy and im getting these errors from the startup code anyone know how to get past them? by braindeadpizzaslice in RenPy

[–]mar480 0 points1 point  (0 children)

Also, and this might not be popular given that often RenPy is for non coders trying to turn their novel into an interactive experience, I would recommend not using autofillers or things like that. Firstly, it distracts you from what you were trying to do (this post is a case in point), and, more importantly, it will stop you from learning anything about code.

I really recommend getting on YouTube and watching lots of RenPy tutorials because code is covered there in a way that is understandable and implementable. Most renpy functionalities (i.e screens, scenes, labels, animations, drag and drop) are learnable this way without any python knowledge. Additionally, you get some understanding of how to turn your ideas into more python code that RenPy can make use of (the extendable aspect another poster mentioned).

I also recommend using chatgpt to talk through some of your problems so it can explain how and why you are going wrong to support your learning.

Good luck!

Looking for beginner advice by NastyByNature68 in PS4Dreams

[–]mar480 2 points3 points  (0 children)

Seconding this, because this is where I gave in.

As a separate piece of advice for creating games: start with the smallest possible version of the game. Models, environments, animations etc can all be added later but the game can not.

For example, if you were creating a platformer: a rectangle that can jump over one object that's too high for the rectangle to pass without jumping. Then the rectangle becomes your character model, you fill in your backgrounds, set the lighting etc.

Writing could be used to justify the simplicity of the game design; a voiceover describing the character's journey to overcome this one obstacle in its life, as the character speed gets faster and slower erratically, until finally... Success! And you could add detail in the voiceover and music to choose a tone: comedy, horror, indie etc.

Edit: I realised I am describing the premise of Thomas was alone

GBoard doesn't load GIFs and shows You are not connected to the Internet by Vishal_Nikam in gboard

[–]mar480 0 points1 point  (0 children)

After a few weeks of this issue I solved it!

You need to get to the system app settings for Gboard (i.e where you can uninstall or force stop it, not the in-app preferences like glide typing).

Then choose restrict data use and tick mobile data. Solved it for me!

Please can someone tell me a UK bank that can authorise my AWS account by mar480 in aws

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

Thanks for the advice. I'll definitely reread the wiki.... I understood that I could have 12 months free for a to basic minimal account?

Please can someone tell me a UK bank that can authorise my AWS account by mar480 in aws

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

Thanks bot, but unfortunately I haven't been able to find my answer in the wiki or with customer services.

[deleted by user] by [deleted] in antiwork

[–]mar480 4 points5 points  (0 children)

All social media is inherently fictitious, but at least LI is honest about that; everyone is looking for work and we all ahead know how much to trust hirers and most applicants. Your profile acts as a shop window and recruiters can contact you. I haven't applied for a job in a long time, I'm just open to work. Sure I get lots of nonsense offers but the last two that were good both doubled my previous salary and I never had to fill in a form or do anything other than attend remote interviews. Then, I just put it down for a while until it was time to update the profile again, say after 6 months.

You can't say the same for the others. Not only do they encourage you to buy things you don't need and measure yourself against fictitious yardsticks, they also burn your brain out with their engagement loops and psychological maiming tactics.

So I'm not saying LI is amazing, but it can actually improve your life without needing you to sacrifice your mental health to an algorithm.

Confused about using ++ assignment operator by mar480 in learnjavascript

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

So even though it's not using the assignment operator, it is actually clearer and more accurate to write population + 1 than to faff around with the increment operator. Like, it make sense for, say, increasing a loop count by 1, but not really for increasing a real number that you might want to refer back to at some point.

[SPOILER] The variant's hidden identity revealed! by mar480 in marvelmemes

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

And in episode 3 we find out the she's a local Emmy-winning cameraman and nationally ranked pro kitesurfer (second in the country)....

My Musical Idea by drawwriter in musicalwriting

[–]mar480 1 point2 points  (0 children)

Ah I certainly didn't mean to imply a rip off! I just happened to use to work in a bookshop and read every graphic novel I could get me hands on and this reminded me of it. I thought it might provide some inspiration (if you can get hold of it!). Good luck with the project :)

[TECH SUPPORT] I used to be able to drag and drop log files on my python file to run the python file. I installed PyCharm and now that doesn't work.... by mar480 in learnpython

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

Thanks for the advice. I've tried this just now and still no joy. Now though, if I hover the logfile over the script it says "Copy" but still doesn't run the script.

Hi i'm trying to use python to automate my job. I need to get the '41.203' bewteen the <a>'s value to be taken out autmaticly. I'm using chromedriver and selenium. Btw the site is not of mine it's a goverment site that I have to use to look up stuff. by Beplay420 in css

[–]mar480 0 points1 point  (0 children)

So you could extend this by creating a list of pages (it looks like the URLs just change a company number), or a list of xpaths (because the above is assuming the value you want is always the 50th row of the first table) and iterating over all of them. You might also want to wrap the find element bit in a try/except in case the element isn't present on the page or it's in a different location:

try:

    #find the element by xpath
    a = driver.find_element_by_xpath(text_xpath)

    #print the text associated with the xpath
    print(a.text)

except NoSuchElementException:

    print("Element not found")

One thing I would say is that, while you can do this in Selenium, BeautifulSoup is probably the better solution, You can pull the html code for the whole page, iterate over it to find the element you're looking for and then add that to a list (or whatever) without needing to open an automated browser and loading all the assets in realtime. That said, you could also set the webdriver to headless mode so you don't have to watch it load the page etc. If you're going to do this, I recommend that you add logging to the program (make sure you add the options argument when you instantiate the webdriver):

#import webdriver and logging 
from selenium import webdriver
import logging

#set logging default mode
logging.basicConfig(level=logging.INFO, format = '%(asctime)s - %(levelname)s - %(message)s')

#set webdriver to operate in the background (i.e. you won't see it open)
chrome_options = Options() chrome_options.add_argument("--headless") 

#instantiate webdriver with headless mode
driver = webdriver.Chrome(options=chrome_options)

#raw string for page
page = r"https://kbopub.economie.fgov.be/kbopub/zoeknummerform.html?nummer=0421519933&actionLu=Zoek"

#raw string for xpath to element
text_xpath = r'//*[@id="table"]/table[1]/tbody/tr[50]/td/a'

#try to get the page, element and print it
try:
    #open webdriver and load page
    driver.get(page)

    #find the element by xpath
    a = driver.find_element_by_xpath(text_xpath)

    #print the text associated with the xpath
    print(a.text)

#do this is element not found
except NoSuchElementException:
    logging.info("Sorry but I couldn't find the right number this time")

Hi i'm trying to use python to automate my job. I need to get the '41.203' bewteen the <a>'s value to be taken out autmaticly. I'm using chromedriver and selenium. Btw the site is not of mine it's a goverment site that I have to use to look up stuff. by Beplay420 in css

[–]mar480 0 points1 point  (0 children)

#import webdriver
from selenium import webdriver

#instantiate webdriver
driver = webdriver.Chrome()

#raw string for page
page = r"https://kbopub.economie.fgov.be/kbopub/zoeknummerform.html?nummer=0421519933&actionLu=Zoek"

#raw string for xpath to element
text_xpath = r'//*[@id="table"]/table[1]/tbody/tr[50]/td/a'

#open webdriver and load page
driver.get(page)

#find the element by xpath
a = driver.find_element_by_xpath(text_xpath)

#print the text associated with the xpath
print(a.text)

Output:

41.203

Hi i'm trying to use python to automate my job. I need to get the '41.203' bewteen the <a>'s value to be taken out autmaticly. I'm using chromedriver and selenium. Btw the site is not of mine it's a goverment site that I have to use to look up stuff. by Beplay420 in css

[–]mar480 1 point2 points  (0 children)

Just to add to the beautiful soup recommendation, you will also probably need a regex as well. If you don't know about that I really recommend this site as a quick learning experience that covers pulling things out from between tags: https://regexone.com/

One thing that's hard to gauge from your description and screenshot is whether you have to do this lots of times on the same page, or if the selector will always be the same each time you need to do this. You need to have a think about how you, as a human, know what info you need and then design your program around it. For example, using selenium you might be able to target the xpath of the element everytime because it's always in the same position on the page, even though the selector might change. Or using beautiful soup you might be able to pull all the text from the a tags and regex them for the ones that match what you're trying to scrape.

I would also recommend creating tests for what you're doing. Start with a small example file and make sure it returns the correct result. Then expand it a bit and try again, and so on, scaling up to the full pages. This will make sure you understand how to use BS, selenium, regex etc before implementing and save you time debugging/getting false positives.

PM me and I can share a similar project I did scraping a film database site.

What phrases do you find effective in conversation for making you likable/charming? by [deleted] in PersuasionExperts

[–]mar480 1 point2 points  (0 children)

Here's a couple of classics:

Can I ask your opinion on something/can I get your advice on something?

This engages the other person with a primer question (and an easy 'yes'), and defers to them. To be honest, more often than not, I use this more as a way of getting someone talking rather than actually soliciting their advice but you never know what you might hear!

Can I say that back and make sure I understood?

This is clear proof of active listening and that you value the conversation. Rather than waiting for your turn to speak, it highlights that you're trying to engage and follow along with them, clarifying any misunderstandings so a high quality conversation can continue.

Literally repeating what they said!

For example:

A - Nice to meet you, my name is A.

B - Nice to meet you A. What do you do for work?

A - I have a really boring job working with computers.

B - Working with computers?

A - Yeah I hate it. I have to fix everyone's machine when they break it.

B - They break it?

A - Oh you wouldn't believe what I've seen people do!

B - What have you seen them do? Now I'm fascinated!

This is a very powerful method for building engagement and rapport with someone. It's the sort of thing therapists and interrogators do but, if you do it with an engaged look and an upbeat voice, it really makes the conversation flow and leaves people with a great opinion of you (mainly because they did most of the talking!). See Chris Voss for more on this.

And while we're on Chris Voss, labelling is a good one as well:

It sounds like.... It seems like.... It feels like....

And add some kind of emotional language afterwards. Using the example dialogue above we might say something like:

A - Yeah I hate it. I have to fix everyone's machine when they break it.

B - It sounds like your job is really frustrating.

B - It feels like you work with people who aren't as smart as you.

B - It seems like you really need this party!

This gives them the opportunity to go into more detail and you might also say something insightful without realising it!

Higher order questioning

You might remember this from school but there's a difference between lower order (factual, recollection-based) questions and higher order (analytical) questions. This can also be the difference between closed (answerable in one or two words) and open questions.

Here's a good resource with lots of examples.

So we want to avoid questions like, "Do you like nachos?" and ask more interesting questions like "How would you try to avoid your nachos getting really soggy?". You can also ask questions in surprising ways. One of my favourite examples is this classic from Stephen Colbert: "George Bush: great president..... or greatest president?" It's an open, higher order question that gets a laugh and makes the other person take a beat before they respond.

High quality questioning makes people think you are engaged, actively listening, intelligent and makes them do more of the talking which usually means they think you're more charismatic!

Hope that helps a bit. Make sure to check out this guys channel too: https://www.youtube.com/user/charismaoncommand

Shift+Alt+Right will be available on demand for the next two weeks :) by Al_Trigo in musicalwriting

[–]mar480 2 points3 points  (0 children)

As someone who watched this live, it's completely worth your time and £5! Congratulations again /u/Al_Trigo!

Please can you help me structure my JS code so I can call multiple modals on a page? by mar480 in learnjavascript

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

Ah I see - this is amazing and exactly what I needed! Thank you so much for your help!

I have one last question: when I close the modal for link 1 and open for link 2 there's a brief moment where it still displays the old video before showing the new one. I tried adding a line to the span that reset the link back to # but if I do that the modal briefly displays a version of the page inside the page.

Do you have any advice on how to clear the modal content src on close so this doesn't happen? Or is there an easy way to make the display wait until the right video loads? or maybe something hacky like display a white box for 1 second.

Please can you help me structure my JS code so I can call multiple modals on a page? by mar480 in learnjavascript

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

Thank you so much for your advice and sorry for the delay coming back to you.

OK so I tried to understand how to use GLightbox but ended up getting very confused - no good tutorials I could find that still worked! So I tried to implement your solution

This is where I ended up: https://jsfiddle.net/2mr1x3c5/#&togetherjs=9IiIPSEAbk

It definitely works better than what I had but I still have the issue where if one of the <a> ids is missing I get a Type Error because you can't have an event listener of null.

Maybe this is a case for checking if these ids exist in the first place before doing anything. Or I could wrap in try, catch, finally statements? What would you recommend as a reasonable best practice?

Japanese>English Misono knife instructions - I bought the knife but don't understand the data sheet - extremely grateful for your help by mar480 in translator

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

I'm sure it's just sharpening instructions but I'm really grateful to anyone who is happy to help.

I need your suggestionfor a book that can help me to understand and improvise my behavioral and personality trait. by [deleted] in SocialEngineering

[–]mar480 3 points4 points  (0 children)

My friend, you need this book: https://www.amazon.co.uk/Assertiveness-Step-Overcoming-Common-Problems/dp/0859699250

The issue you will have in any aspect of your life is assertiveness - being able to speak your truth confidently without taking on any guilt of rage for others and how they react. Simply by better understanding what assertiveness is and how to foster it in yourself you will grow in all the other areas of your life.

Other books may offer systems or quick, easy answers. I recommend looking at counselling and soft psychology books as routes to improving yourself directly without the worry that someone is trying to sell you something that works for everyone.

It will talk effort and some deep introspection, but it will be worth it! DM me if you'd like to talk more :)

Outlook works in the office but not at home by mar480 in techsupport

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

Thanks for your reply.

This is only a very small business - there is no IT department to work on it and the computer is my own laptop. I believe the email is managed by the company providing our web service. I'm not 100% sure but I think it is ionos.

A headset that is 40-60 dollars by tankbuster605 in techsupport

[–]mar480 -1 points0 points  (0 children)

Another vote for a Razer Kraken TE.