program crash when i submit the form in c#

when ever i click submit button of form in my c# application it crashes. the program suppose to take all the data to my database which is made in microsoft sql server below is the code string connection = “Data Source=DESKTOP-EON545D;Initial Catalog=TMS_Database;Integrated Security=True”; public LoginFrame() { InitializeComponent(); con = new SqlConnection(connection); } private void button2_Click(object…

Details

BeautifulSoup XML to CSV

The code below takes an xml files and parses it into csv file. import openpyxl from bs4 import BeautifulSoup with open(‘1last.xml’) as f_input: soup = BeautifulSoup(f_input, ‘lxml’) wb = openpyxl.Workbook() ws = wb.active ws.title = “Sheet1” ws.append([“Description”, “num”, “text”]) for description in soup.find_all(“description”): ws.append([“”, description[‘num’], description.text]) ws.append([“SetData”, “x”, “value”, “xin”, “xax”]) for setdata in soup.find_all(“setdata”):…

Details

themoviedb JSON parse with JQ

been trying to concatenate on the same line the values. Here is my command line syntax on a win10 curl “https://api.themoviedb.org/3/find/tt0111161?api_key=_MY_KEY_&external_source=imdb_id” | jq -r “.movie_results[].id, .movie_results[].poster_path” The results are on separate lines: 278 /9O7gLzmreU0nGkIB6K3BsJbzvNv.jpg How do i change it so both values are on the same line with a semicolon separator? Thanks in advance

Details