16,019,976 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by datt265 (Top 70 by date)
datt265
16-Nov-22 10:11am
View
did not work for me
datt265
16-Nov-22 4:14am
View
Configuration resource = JsonConvert.DeserializeObject<configuration>(content);
string[] line = resource.ResourceRoot.Split('/');
var regex = new Regex(@"[\d\.]");
var matches = regex.Matches(line[3]);
string version = string.Empty;
foreach (Match match in matches)
{
version = string.Join(version, match);
}
datt265
11-Nov-22 4:30am
View
This was a really well explained answer and I managed to work, I had an attempt to do something similar but I tried to do class manually and nothing was working.
A question in case properties are available in json but the class does not have an entry for them, what would happen ?
datt265
10-Nov-22 10:56am
View
updated my question
datt265
23-Nov-18 4:45am
View
GOOD
FW2.PLANT_DEV.APPNAME.REQUEST.*.*
FW2.PLANT_DEV.APPLICATION.REQUEST.*.*
FW2.PLANT_DEV.APPLICATION.REPLY.*.*
FW2.PLANT_PRD.APPNAME.REQUEST.*.*
FW2.PLANT_PRD.APPNAME.REQUEST.TYPE.*
FW2.PLANT_PRD.APPNAME.REQUEST.TYPE.NAME-001
FW2.PLANT_PRD.APPNAME.REQUEST.*.NAME
PLANT_DEV.APPLICATION.REQUEST.*.*
PLANT_DEV.APPLICATION.REPLY.*.*
PLANT_PRD.APPNAME.REQUEST.*.*
PLANT_PRD.APPNAME.REQUEST.TYPE.*
PLANT_PRD.APPNAME.REQUEST.TYPE.NAME
PLANT_PRD.APPNAME.REQUEST.*.NAME
NOT GOOD
FW2_SITE_DEV.APPNAME.REQUEST.*.*
FW2_PLANT_DEV.APPNAME.REQUEST.*.*
FW2.SITE.DEV.APPNAME.REQUEST.*.*
FW2.SITE_DEV.APPNAME.REQUEST
B2K_DEV.APPNAME.REQUEST.*.*
B2K.DEV.APPNAME.REQUEST.*.*
datt265
28-Sep-18 7:54am
View
They are empty spaces, what I have is mind is take the header size since it looks it is right aligned, example InstanceName, read before upto DGNAME end that should find the cell.
datt265
28-Sep-18 7:32am
View
I cannot access the file, as the contents are sent as base64 object then converted to string.
datt265
27-Feb-18 10:26am
View
Yes like this works, now If I want to add a where 'country' but county names can change how do I do it?
SELECT ClassName FROM GetStudents(?,?) where country in ('USA', 'UK')
datt265
12-Jan-18 1:13am
View
Thanks for your comment, however I was asked to perform some sort of encryption so my idea was to use Rijndael. Any suggestions?
datt265
8-Nov-17 11:41am
View
Yes might be easier to write in c# but i am not used to vbs so it is difficult for me to convert. I tried online tools but they are not converting the code.
datt265
2-Nov-17 5:26am
View
Thanks, how to force the 5th character to be an asteriks?
Note there should only be one asterik in the string
datt265
28-Sep-17 3:38am
View
I have a list box, then when I click an item I retrieve the information by calling this function. At startup I am initializing a public class, when I click an item in the list I call this function that will fill the class. The problem is that the first item I click the class is still blank, then I click on another item an the class will contain the information related to the previously clicked item.
datt265
28-Sep-17 2:28am
View
Yes I am getting the result as object and store in a class
datt265
30-Jan-17 1:47am
View
Hi, thanks for this solution, in case I want to remove such element and its closing tag (I have another element named ParameterList)
<ParameterList xmlns:APCS="urn:st-com:ST:FW2:APCS">
can this be done?
datt265
27-Jan-17 2:52am
View
they are null
datt265
27-Jan-17 2:47am
View
Yes hovering over pgName I can get a string value
datt265
27-Jan-17 2:40am
View
Hi this is the line of code pg.ParametersGroups.Add(pgName, newPg);
getting null exception can't figure out why
datt265
20-May-16 19:11pm
View
what i am closing with a timeout is settings window not mainwindow. All windows are displayed with .Show() method, and i am not using any windows dialogs but a window as a dialog i.e modeless, and have done some logic to return response when clicked.
datt265
19-Apr-16 10:05am
View
Sorry for my ignorance, but still cannot understand how can I solve my problem after going through your code.
datt265
18-Apr-16 11:08am
View
Thanks, I know that winforms are stable and can find many online help. I did small things with WPF and I really like, what I am afraid is if Microsoft discards it like they did with others such as Silverligth.
datt265
8-Jan-16 10:19am
View
Thanks Richard, the solution worked, however I included the if statment as Sascha suggested.
datt265
18-Mar-14 16:24pm
View
are you going to store the scores permanently somewhere?
datt265
20-Jan-14 14:48pm
View
[Code removed — SA]
datt265
20-Jan-14 14:41pm
View
[Code removed — SA]
datt265
20-Jan-14 14:38pm
View
[Code removed — SA]
datt265
20-Jan-14 14:37pm
View
This is a scenario of what I have:
Practically the 'add product' works perfectly as I have a form fill it and database gets updated.
The problem arises when I select the 'remove' and 'modify'.
These two work like this:
In the dropdown 'productCode' I select the product I want, some quering takes place and I get other textboxes filled, such as details,price, etc. This is similar in both cases to 'modify' and 'remove' a product.
I know why I have the problem that javascripts populates only the first div and this is because lets say textbox 'productPrice' in div 'removeProduct' and div 'modifyProduct' has same id, and I know that you cannot have same id's, what I want to know is how I can get a way to do it.
datt265
5-Jan-14 10:26am
View
ok thats a very good solution, using the id not the class name.
datt265
31-Dec-13 11:37am
View
it is in the first <div>
datt265
28-Dec-13 5:25am
View
No still cannot tell why it is not working, I have updated the question and put all the contents of 'myfile.php'
datt265
28-Dec-13 5:13am
View
no errors are issued. the loaded page remains 'myfile.php'
datt265
28-Dec-13 5:12am
View
I do not get re-directed at all
datt265
26-Nov-13 14:19pm
View
When I am trying to replace _blank with _self and try it in a web browser nothing happens when clicking the button.
I have noticed that using _self and from CS6 I choose publish preview and select Flash a new browser tab opens.
Any ideas of why this happens?
I have also tried using :
ExternalInterface.call("open", "http://www.mywebpage.com/webdesign", "_blank");
and
ExternalInterface.call("open", "http://www.mywebpage.com/webdesign", "_self");
datt265
30-May-13 16:56pm
View
Deleted
yes attended the lessons, the only thing I have which I can answer the question is .asmx files used by doNet & filenmae without extension, which is very basic intro sort of.
datt265
30-May-13 15:35pm
View
Deleted
so if I answer the question in a general way like : .asmx files used by doNet & filenmae without extension in java. would it be ok?
datt265
30-May-13 15:26pm
View
Deleted
This question was asked in an exam, and I was trying to figure out what the examiner was asking. To me the question doesn't make much sense. The original question was:
"Specify names and purposes of the files constituting Web service hosted on a remote server"
datt265
11-May-13 4:01am
View
dataentry table --> id, event, ts (ts is timestamp)
userLogs table --> userName, tsLog (tsLog is a timestamp when the user logged last)
datt265
10-May-13 10:06am
View
I assume you are using javascript and HTML, are you using Google maps or another mapping service?
datt265
10-May-13 10:01am
View
Do you mean, getting directions and use them as a guide like a normal gps?
datt265
9-May-13 15:21pm
View
ok now thanks alot
datt265
9-May-13 15:09pm
View
I am getting
Unknown column 't2.attrFK' in 'field list'
datt265
9-May-13 14:45pm
View
Thanks for your reply, with this I can get the attributes that the user already has, I want the inverse, that is the attributes missing to the user so that when I select the dropdown list I can add them to the user attributes
datt265
19-Apr-13 0:43am
View
no not working
datt265
18-Apr-13 15:46pm
View
Notice: Use of undefined constant query - assumed 'query' in C:\wamp\www\My Web Sites v10d php\update_data.php on line 22
Call Stack
# Time Memory Function Location
1 0.0053 382024 {main}( ) ..\update_data.php:0
( ! ) Fatal error: Call to a member function bind_param() on a non-object in C:\wamp\www\My Web Sites v10d php\update_data.php on line 23
Call Stack
# Time Memory Function Location
1 0.0053 382024 {main}( ) ..\update_data.php:0
datt265
18-Apr-13 14:01pm
View
Deleted
I have implemented this by I am getting an error, I can't figure out whats wrong
prepare(query);
$stmt->bind_param("s", $riskCategory);
$stmt->bind_param("s", $EventAccidentSubject);
$stmt->bind_param("s", $description);
$stmt->bind_param("s", $peopleInvolved);
$stmt->bind_param("s", $hazards);
$stmt->bind_param("s", $address);
$stmt->bind_param("i", $lat);
$stmt->bind_param("i", $lng);
$stmt->bind_param("s", $caseStatus);
$stmt->bind_param("s", $id);
$stmt->execute();
$stmt->close();
$mysqli->close();
//link variable is equal to the referring page
$link = $_SERVER['HTTP_REFERER'];
//sends a header directly to the browser telling it to redirect the user to the referring page
header("Location: $link");
?>
datt265
4-Apr-13 12:10pm
View
here is a good example
ttp://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
datt265
4-Apr-13 5:45am
View
not exatly sms, push notification. The above code works, though if i want to send the same message to multiple users i have to do it one by one
datt265
3-Apr-13 13:58pm
View
Thanks for your reply, I have modified a bit my question as, the php part in the html was not showing properly and missed important parts. Can you help me out please?
There are other questions related to my question but no answers available.
Googling "php code send notification to all devices GCM" I can see 2 other question.
datt265
24-Nov-12 1:53am
View
ok solved
datt265
23-Nov-12 18:04pm
View
ok yes i realized later
datt265
20-Nov-12 11:25am
View
should i dispose each image after use? if yes is this the correct way
img.Dispose(); after the foreach loop?
thanks
datt265
18-Nov-12 13:32pm
View
To use deligates what should I change ?
datt265
17-Nov-12 23:47pm
View
So do you suggest removing the class OCRChar + the list and implementing a multi dim array is better? My binary number consists of 300 1's & 0's as my image is a 30x40 = 1200, I have downsized it to 15x20 = 300.
Together with this I have to add the character and the desired output.
Example:
lets say a particular 'A' binary equivalent is 0000011100.......0000111 and I have to fix a desired output. Since I have 10 numeric digits and 26 alphabet letters in total 36 characters I will require an output of 6 bits. That is why I have assigned a binary output to each character so each and every 'A' has 000000 and 'B' has 000001 and so on.
datt265
17-Nov-12 10:07am
View
I am trying to build an OCR using back propagation neural networks.
my task is to load a number of .png images that I can train my neural network with, and then with other images I can be able to read the character.
datt265
17-Nov-12 9:14am
View
Yes you are true I am trying to guess code and hope it works. Actually I am a bit confused of what is the best and easiest way to get this code ready. Actually I still do not know if this is the right way to do it or there was another simple solution.
datt265
12-Nov-12 9:59am
View
so that I can be able to read any range of characters I want
datt265
11-Nov-12 6:00am
View
already googled it, but what i found does not work
datt265
10-Nov-12 11:26am
View
ok thanks, this would serve as an input to a neural net
datt265
9-Nov-12 15:56pm
View
I have hundreds of images in several sub folders that will be used to train a neural net, that is why I want to load the files one after the other automatically, instead of having the user selecting which files to open.
datt265
23-Jan-11 5:43am
View
ok working now, thanks very much... I will now try to modify the code so that if I have 2 or more docs with the same title i get both as know i am only getting one
datt265
23-Jan-11 5:20am
View
Should I call which method from my Form? the method in Document or the one in myLibrary?
as i have managed to get the required data but noticed that I was only accesing the Document class
These are my methods as i have renamed them
-----------------in myLibrary-------------------
public Document SearchByTitle(string searchText)
{
foreach (Document d in this)
{
if (d.SearchByTitle(searchText))
{
//Console.WriteLine(d);
return d;
}
}
return null;
}
-----------------in Document-------------------
public bool SearchByTitle(string aTitle)
{
bool foundTitle = false;
if ((Title != null) && (Title == aTitle))
{
foundTitle = true;
}
return foundTitle;
}
-----------------in Form -------------------
private void cmdSearch_Click(object sender, EventArgs e)
{
foreach (Document d in myLib)
{
d.SearchByTitle(txtTitle.Text);
if ((d != null) && (d.Title == txtTitle.Text))
{
richTextBox1.AppendText(d.GetData() + "\n");
}//end if
if (d == null)
{
richTextBox1.AppendText("Title " + txtTitle.Text + "was not found");
}//end else
}
}
datt265
23-Jan-11 4:03am
View
I have changed class names as suggested, thanks very much for the info.
the GetAllOfData is working as it should
the only problem have is that I am getting the last inputted document when i do search
public bool Find(string aTitle)
{
bool foundTitle = false;
//if ((Title != null) && (Title == aTitle))
if (Title == aTitle)
{
foundTitle = true;
}
return foundTitle;
}
datt265
11-Jan-11 13:42pm
View
Form2 is launched from Form1 when clicking a button. can you help me out on how to pass a parameter please?
datt265
11-Jan-11 13:36pm
View
I have tried making static, and getting errors. I am thinking that since I have to declare StoreObjects so = new StoreObjects(); again in Form2 I am created a new instance and thus I get no results. But I dont know how to make it in another way
datt265
12-Dec-10 9:07am
View
thank you for your patience, yes i am a beginner, I could not understand most of it, and especially this part got me confused.
string[] findThese = searchFor.Split(' ');
I SAY THANK YOU VERY MUCH AGAIN, I REALLY APPROPRIATE IT
datt265
12-Dec-10 6:02am
View
10ks, these really work out. can you please comment the code for me as i can't understand exactly what it does.
datt265
11-Dec-10 10:30am
View
Sorry.. before the 'Button' was called command button or command box
datt265
11-Dec-10 5:13am
View
Thanks this is what I was looking for
datt265
11-Dec-10 4:33am
View
private void button1_Click(object sender, EventArgs e)
{
foreach (Employee emp in lstCustomers.Items)
{
//Employee emp = (Customer)lstCustomers.Items;
MessageBox.Show(Convert.ToString(emp.Salary),"Salary");
}
}
datt265
11-Dec-10 4:32am
View
When I click on the command box, I want to show as a message box, the objects in class Employees (I just want to show the salary)
datt265
10-Dec-10 16:26pm
View
I have updated the question
Show More