• Register

Recent questions

0 votes
0 answers 2 views
asked 8 hours ago deep 220 points
0 votes
0 answers 2 views
0 votes
0 answers 2 views
0 votes
0 answers 2 views
0 votes
0 answers 2 views
asked 8 hours ago deep 220 points
0 votes
1 answer 2 views
SQL check if record exists before insert I need to write a stored procedure to update a row. If the row does not exist, I need to insert it. Any Idea?
asked 15 hours ago miki 1.5k points
0 votes
1 answer 3 views
I need to do the following page layout and I do not know how to do it right. I need to divide page into header left pane and right pane. The right pane in its turn, I need to divide into 2 sections. Something like that: Header Pane 1 Pane2 ... my understanding this is not a best practice to use tables for page layout. Just one more detail: I am targeting modern browsers, especially chrome.
asked 15 hours ago alexh 1.5k points
0 votes
1 answer 2 views
Problem: Hi there! I am new to the world of programming. My programming teacher gave me an assignment in which I have to write a program in which there would be a function that will take two strings as input from user and will compare the size of both strings ... the larger string of the two. I have no clue how to do that. Please provide me with the sample program with proper description. Thanks
asked 1 day ago Sheeza 3.5k points
0 votes
1 answer 3 views
String or binary data would be truncated in SQL I have the error when I am inserting a row in SQL. Any idea?
asked 1 day ago miki 1.5k points
0 votes
1 answer 2 views
SQL query between two dates and times I need to select the records between two specific dates and times. Any idea?
asked 1 day ago miki 1.5k points
0 votes
1 answer 9 views
import numpy as np from sklearn import metrics, svm from sklearn.linear_model import LinearRegression from sklearn.linear_model import LogisticRegression from sklearn.tree import DecisionTreeClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.discriminant_analysis import ... in the first prediction of LinearRegression() and SVR() algorithms (15.72 vs 3.95)?
asked 1 day ago ibe4em 160 points
0 votes
1 answer 3 views
When trying to create a simple flask app: from flask import Flask app = Flask(__name__) if __name__ == '__main__': app.run() but when I add the debug: FLASK_APP = run.py FLASK_ENV = development FLASK_DEBUG = 1 I got the following error: ... threaded=with_threads, ssl_context=cert) File "c:\MyProjectPath\api\venv\lib\site-packages\werkzeug\serving.py", line 812, in run_simple reloader_type)
asked 1 day ago ibe4em 160 points
0 votes
1 answer 3 views
I received an error message when converting data type varchar to numeric I imported data into VARCHAR column to check correct character types before moving into the destination table. I ran across some decimal values they could not CAST or CONVERT even though they ... values. I received the message "Error converting data type varchar to numeric.” How can I load these problems values?
asked 2 days ago miki 1.5k points
0 votes
1 answer 3 views
SQL select from multiple tables without join I need to know the easiest way to select data from two tables and have them appear as separate rows. The tables have similar fields and I need to run some functions on them.
asked 2 days ago miki 1.5k points
0 votes
1 answer 4 views
Problem: Hello programmers! I am new to the world of Java and I have very little knowledge about the object oriented paradigm with no programming background. I recently learned about “this” keyword as I saw the above mentioned error from Java compiler. I want to know more about ‘this’ keyword. Where can I use it and how to use it?
asked 2 days ago Sheeza 3.5k points
0 votes
0 answers 2 views
Problem I love PHP for its simplicity. I like a lot to use file_get_contents function. But I meet some strange behavior. When I use it like that: file_get_contents('../resource/data.html'); It works fine. But when I substitute the local server file path by ... problem has something to do with PHP configuration, but I do not have a clue what configuration key is responsible for that. Please help.
asked 2 days ago alexh 1.5k points
0 votes
1 answer 2 views
Problem: Hi there! I am working with java. I want to create a program that can take two characters as an input from user and arrange the characters in alphabetical order. I searched for it on Google and found many solutions but there was not enough explanation of the programs ... be grateful. I know how to take input from user so you can skip that part and use dummy data for the program Thank you.
asked 2 days ago Sheeza 3.5k points
0 votes
1 answer 3 views
Problem: Hi there! I am working with enumerations in C# and I am trying to check whether certain string exists in my enumeration or not. I am using ‘if’ condition with == operator but the compiler is giving some error and I am not getting the desired output. How can I convert a string to enumeration in order to check whether it exists in enum or not?
asked 2 days ago Sheeza 3.5k points
0 votes
1 answer 6 views
When writing the panda program with Str.replace method it returns an attribute error. dc_listings['price'].str.replace(',', '') AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas Shown here are the top 5 rows of my price column.
asked 2 days ago ibe4em 160 points
0 votes
1 answer 5 views
Problem: Hi there! I have been working in C# since last month and have learned a lot of things. I have written many console programs for converting one type of data to another. Recently, my teacher gave me an assignment in which I have to convert an Image to byte array. I ... with images yet and I have no idea how can I complete the task. If any of you could help me, I would be grateful thanks.
asked 3 days ago Sheeza 3.5k points