Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. simong1993

    (BEGINNER) Dynamic Array Size Problem??

    The code you provided has a limitation on the length of input because it declares the array z with a fixed size of 1+i. In each iteration of the loop, the code reads a character and stores it in the z array. However, the size of z increases by 1 with each iteration (1+i), resulting in a maximum...
  2. simong1993

    PHP Need help with archive filter

    Hiya, if i understand the question right. This might help :- To include the "nickname" field in the filter for the archive page, you need to modify the code in the following ways: 1. Update the $additional_joins variable to include the join for the "nickname" field: $additional_joins .= "...
  3. simong1993

    Python Python

    Hiya, Give this a try:- To add another string before each line in the given LOINCDATA string, you can use the following Python code: LOINCDATA = """ lab item, result, reference range ALK PHOS, 72, 35-100 BG RANDOM, 125 mg dl^-1, 70-125 BUN, 16 mg/dl, 7-25 CALCIUM, 9.6 mg/dl, 8.2-10.2 CHLORIDE...
  4. simong1993

    Python Chromedriver Automated image downloader not working.

    Hey. The issue i am getting says :- selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable Is this the error you get?
  5. simong1993

    Python Go through hidden elements one by one.

    I think the first thing we need is the website you are trying to use Selenium on and what you are trying to do. The reason i ask is if you are trying to go through each hidden div you could instead do :- browser.find_elements(By.XPATH, "/html/body/app-root/ac-site-layout/div") and this would...
  6. simong1993

    Hello

    Hello Conrad and welcome, What brings you to Codeforum :)
  7. simong1993

    Python Problem with split() and rstrip()

    Give this a try :D import requests #Get the page html = requests.get("https://www.py4e.com/code3/mbox-short.txt").text #set counter to 0 counter = 0 #Turn all lines into a list for line in html.split('\n'): #Check to see if from is in the line if "From" in line: #now turn...
  8. simong1993

    Python Adding brackets to a list and sort it

    Its this bit:- [word_list.append(word) for line in lines for word in line.split() if word not in word_list] for someone new to python it works and i understand what's happening lol but for someone new it could be troublesome lol
  9. simong1993

    Python Adding brackets to a list and sort it

    @cbreemer ooops i tagged the wrong person sorry lol, i should have tagged @menator01
  10. simong1993

    Python Adding brackets to a list and sort it

    I think @cbreemer example would be great for us programmers who have been doing this a while lol, its short its sweet, we understand what it does and there is less code to read but mine is designed to be a bit longer but easier for someone new to follow and understand, broken down a bit so you...
  11. simong1993

    Python Adding brackets to a list and sort it

    Hey so the issue you have is your making a list with: lst = list(fh) then your trying to make a list again with a list with: new_lst = lst.split()) what you will need to do is loop the list you just created then you can turn each of the first lists into a new list if that makes sense. I have...
  12. simong1993

    What should I do Before I give up programming?

    If i was to show you some of the ground breaking websites i built back in 2010 when i was 16 you would laugh at me. If i was to show you some of the macros i built in AHK a few years ago, you would probably say WHY. If i showed you my python scripts from when i started 3 years ago you would ask...
  13. simong1993

    Python how to grouping/merge rows in to single row

    Hey Mate, upload your code and something for us to work with and we can help you more :D
  14. simong1993

    "fake" BITS Job to keep it running?

    Hey heheyy2 can you expand a bit on what you are after please as your current request makes no sense :S
  15. simong1993

    JavaScript Phone Repair Booking

    That booking is made by a company called WeFix and the issue you will face here isnt making the system but instead getting all of the price etc. That's the bit that's taking me the longest, once you have found a way of automating that part, i use python for that then you can use PHP to build the...
  16. simong1993

    Python Ebay - 'error': 'invalid_grant', 'error_description': 'the provided authorization refresh token is invalid or was issued to another client'

    Yep the docs are pants when it comes to python lol but from what i can tell everything seems the same :S
  17. simong1993

    Python Ebay - 'error': 'invalid_grant', 'error_description': 'the provided authorization refresh token is invalid or was issued to another client'

    Ebay dev community is pants and Ebay is just as bad, i spoke to them and they only change they have made is they now use Oauth as well as Auth where i was Auth but they have assured me that will no cause me any issues :S
  18. simong1993

    Python Ebay - 'error': 'invalid_grant', 'error_description': 'the provided authorization refresh token is invalid or was issued to another client'

    Up until last month, my code was working perfectly. I was able to get a refresh token from eBay using AuthToken but for some reason, it just stopped. I have tried getting a new AuthToken with the same results and i have got the token manually from eBay and it works. I am at a loss as to what has...
  19. simong1993

    Node.JS Scraping and Automation

    As far as I am aware as you do not need to login to the site it makes the information public and fair game :D and my script does not bypass any security features or use any vulnerabilities I see no issues :D So to get the data I used Chrome developer menu, and watched the network as I submit...
Back
Top Bottom