15,905,912 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 Javascript questions
View Visual Basic questions
View Python 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 User1454 (Top 65 by date)
User1454
24-May-17 4:19am
View
Hi thanks. Is it by publishing for linux platform by setting in program.csproj?
User1454
24-May-17 0:03am
View
Thanks sir. I solved it by changing the date time format to YYYY-MM-DD.
User1454
28-Apr-17 5:31am
View
ok sir .thanks.. better i will try it. !!!
User1454
28-Apr-17 5:17am
View
sir, I haven't tried anything. I have just gone through some in web about .net core.
User1454
24-Mar-17 5:30am
View
Its html and javascript embed in php
User1454
24-Mar-17 5:27am
View
No, Actually the folder structure is like ,
Main Folder
------Folder1
-------------file1
------Folder2
-------------file2
I specify the main folder name and get the folders such as folder1 and folder2 and display it in a treeview. When i click folder1, it should display the 'file1' under that as a sub item. Getting the list of folders and files is done in php. But I need to display the file list only when folder item is clicked.
User1454
24-Mar-17 4:19am
View
Hi @karthick, the use case is I need to get a list of folders first and then only when i click on each folder, it should display the sub folders of that clicked folder. So here as an example i just used '111' and '222' thats it. I generated a treeview with folders and subfolders on page load, but it expands the treeview for a secons and then collapses. So to avoid that I need on item click it should get/diplay all the sub folders.
User1454
24-Mar-17 4:14am
View
Yeah ! ok .. I didnt notice that ... thanks
User1454
24-Mar-17 2:32am
View
Means on clicking '444' it should generate '333' and on clicking '555' it should generate '666'. Sorry if I didn;t explain it clearly.
User1454
22-Mar-17 7:20am
View
Sorry i am new to this. But how can I display a message if the chart is not loaded ?
User1454
22-Mar-17 6:37am
View
Yeah! I had given the same for the function, but it does not catch the syntax error !
User1454
15-Mar-17 1:04am
View
Hi I tried the following solutions:
1. gmdate('d.m.Y H:i', strtotime('2017-02-18 00:00:42') but gives wrong date time 01.01.1970 00:00.
2. $timestamp = strtotime("00:00" - 19800); but shows wrong values
User1454
14-Mar-17 11:45am
View
Hi, this is one of the datetime value I have 2017-02-18 00:00:42 in which I need only HH and mm, but in charts in tooltip it is displayed as "05:30:42". It adds "05hrs:30minutes" to all the values
User1454
14-Mar-17 11:39am
View
Hey @Graeme_Grant you are right!! This is my Indian time 2017-02-18 00:00:42,889 and I take only HH and mm from this for display. I will try that.. thanks
User1454
14-Mar-17 11:37am
View
Yeah thanks!!. My mistake.. updated it..
User1454
14-Mar-17 0:03am
View
it does not make any impact with my code :( not sorted..
User1454
6-Mar-17 10:32am
View
Hi thanks for the reply. For the first point, is it possible only through looping? Because there are many items in that array.
User1454
5-Mar-17 6:35am
View
Deleted
Hi PeterLeow Sure. Can you please help me for a logic? I need to move the items from one array to another.
For the same above mentioned array,0th index will be date value and 1st index will be name. So I need to check if the name already exists, I should check that the date value to added to the new array is greater than the available date value in the new array.If the new date value is greater than the existing date value,then the new value should be added and remove the existing one. I am unable to find where am I going wrong. If you dont mind please help.
This is what I have tried :Here $pol_array is the array from which the values are read and $polListData is the array to which the items should be moved.
for($ind=0;$ind<count($pol_array);$ind++)
{
if(count($polListData) > 0)
{
for ($i=0; $i < count($polListData); $i++)
{
$text.=$pol_array[$ind][0] ." ".$pol_array[$ind][1]."\n";
if (in_array(trim($pol_array[$ind][1]), $polListData[$i]))
{
$text.="exists = ".$i." ".$pol_array[$ind][1]."\n";
if(new DateTime($pol_array[$ind][0]) > new DateTime($polListData[$i][0]))
unset($polListData[$i]);
else if(new DateTime($pol_array[$ind][0]) == new DateTime($polListData[$i][0]))
unset($polListData[$i]);
else
{
end($polListData); // move the internal pointer to the end of the array
$key = key($polListData); // fetches the key of the element pointed to by the internal pointer
if($key=='' |$key==null )
$key = 0;
else
$key++;
for($j=0;$j<=13;$j++)
$polListData[$key][$j]=$pol_array[$ind][$j];
}
}
else
{
end($polListData); // move the internal pointer to the end of the array
$key = key($polListData); // fetches the key of the element pointed to by the internal pointer
if($key=='' |$key==null )
$key = 0;
else
$key++;
for($j=0;$j<=13;$j++)
$polListData[$key][$j]=$pol_array[$ind][$j];
}
}
}
else
{
$key=0;
for($j=0;$j<=13;$j++)
$polListData[$key][$j]=$pol_array[$ind][$j];
}
}
Thanks in advance.
User1454
5-Mar-17 0:35am
View
Hi PeterLeow, it works well.thanks
User1454
15-Feb-17 1:31am
View
Hi Richard Deeming, thanks a ton! My mistake.. understood clearly and now it works like a charm.. but found everywhere with increasing the offset. anyway thanks a lot. :)
User1454
14-Feb-17 5:27am
View
Can you please help me where to add the index so that it takes the next set of the mail list ? I tried few ways but didn't work.. :(
User1454
14-Feb-17 0:09am
View
Thank you Richard Deeming for explaining briefly !!! I'll try it..
User1454
9-Feb-17 0:38am
View
:)
User1454
7-Feb-17 23:01pm
View
Wow! Its working .. thanks a lot!! .. So what about the 3rd parameter?
User1454
7-Feb-17 22:52pm
View
Deleted
Thanks for the solution. I trid the same but didn't work :(
$(document).ready( function ()
{
$('#alert_table').DataTable
({
'order': [[ 0, 'asc' ]],
'pageLength': 10
});
oTable = $('#ttable').dataTable();
oTable.fnFilter('^(?!EAS)', 0, true, false);
} );
Am I doing something wrong?
User1454
31-Jan-17 6:18am
View
You can set some flag for each click.
like
if(clicked)
{
val =1
}
else
{
val = 0;
}
based on the value perform the operation.
User1454
2-Jan-17 4:41am
View
Thanks for the solution. Yeah then I changed it as reading from a JSON file which is "D:/Testing/Logs", but still it saves the files to C:/.
User1454
27-Nov-16 23:51pm
View
Hi John Simmons / outlaw,
Thanks a lot for the solution. I tried TPL and its pretty fast. But I want to know is that some thing like if there are 1000 files, 1000 threads are created or it occupies the thread which is free or not alive ?
User1454
24-Nov-16 23:31pm
View
Deleted
Parallel.ForEach(findResults, item =>
{
StartProcess(item);
});
Tried this but this does not read all attachments and saving to disk is done partially, conflicting :(
User1454
24-Nov-16 22:20pm
View
Nice explaination. Thanks. I will try for sure.
User1454
23-Oct-16 4:06am
View
Hey Surendra,
For phone number @"\d{10}" if i am correct this is for 10 digit number right? So how can I make it for other countries where the phone number length varies?And also that come with "+" For e.g in this way +919580767876 also 333?
User1454
21-Oct-16 8:03am
View
Hey Surendra,
Thanks a ton! Works like charm
User1454
20-Oct-16 0:04am
View
Hey John,
Actually I am splitting each word and perform the validation and it works fine. But when more number of files comes into picture this takes a lot of time to complete the process. So in order to avoid time consumption, I think its better to use regex.
User1454
19-Oct-16 23:58pm
View
Hi Surendra,
This works fine but when email id like [u'amith.hello@xyz.com'], this replaces only [u'amith._HIDE_@xyz.com']. I need it as [u'_HIDE_@xyz.com']. How to replace the whole name except domain name? Can you please suggest a solution.
User1454
7-Oct-16 8:14am
View
Actually I need to open CSV file in excel from windows application.
For e.g : using 'Process.Start(filename.csv); ' it should be able open but since this \t separated,once it is opened from application, it displays as a single text in each row instead of categorizing into columns.
User1454
7-Oct-16 5:14am
View
Tried this as well, but didn't work :(
var ExcelApp = new Excel.Application();
ExcelApp.Workbooks.OpenText( path, Tab:true);
ExcelApp.Visible = true;
User1454
7-Oct-16 2:09am
View
For e.g : This is the required format
Id Student Marks
1 Jake 99
2 Luke 98
But now this is viewed as :
IdStudentMarks
1Jake99
2Luke98
Columns does not get separated with '\t' unless it is done manually (open excel-> DATA->From Text->Finish)
User1454
27-Sep-16 5:14am
View
Thanks Maciej Los, the code which I tried earlier throws error of invalid date time format due to double digit month trying to parse using 'd'in dd MMM d hh:mm:ss yyyy. Once it was padded with '0' and using 'dd', it works fine. Also it worked with 'null' instead of other culture- specific info.
User1454
27-Sep-16 1:26am
View
Thanks a ton!!! It worked . Modified to
var parts = dateTime.Split(' ');
var day = parts[2];
var validDay = day.Length == 1 ? "0" + day : day;
dateTime = dateTime.Replace(" " + day + " ", " " + validDay + " ");
dateValue = DateTime.ParseExact(dateTime, "ddd MMM dd HH:mm:ss yyyy", null);
UTC_DateTime = dateValue.ToString("yyyy-MM-dd HH:mm:ss");
User1454
9-Jun-16 9:02am
View
I need to merge rows of index from 0 to 47 of column index 1. But datagridview is not merging those rows.
User1454
3-Feb-16 4:00am
View
Actually I need to do this programmatically in c# ,only whenever required for user from my application. Is that possible ???
User1454
21-Aug-15 1:14am
View
Sir, I have gone thru that "Standard Date and Time Format Strings" and "Custom Date and Time Format Strings", was very very helpful to me... !!!!!!!! thnx a lot !!!
User1454
21-Aug-15 0:49am
View
:)
User1454
21-Aug-15 0:48am
View
Thank u ..... it was very helpful !!!! :)
User1454
20-Aug-15 10:41am
View
Sir, so u meant like that I should specify the format like how you have provided in your answer (date.ToString("dd/MM/yyyy hh:mm:ss"))? is that so?
User1454
20-Aug-15 10:23am
View
Sorry for that !!!, i have given "yyyy" only, but still it gives me "15-08-2015 AM 12:00:00". I have a doubt whether..in anyway will this take the system format because whatever value I get is exactly according to my system format. If I change to 24 hour format in my pc, I get the required one.
User1454
13-Jun-15 6:39am
View
Deleted
Yeah!!! In case if I don't have the .so file source code, just as a plug-in , can I use it without defining the native functions. I have tried it by just copying .so file into android project libs folder and I get "Unsatisfied error..Native method not found !!!". So it means it failed to link with whatever .so file I have placed right?
User1454
12-Jun-15 5:15am
View
Deleted
Sir, I have tried a sample app that invokes .so file and it worked like charm. Initially I had to create .cpp file and .h(header) file. But my doubt is that whether can I load the .so file without creating any .cpp file and .h file that should just display the message when i call the function which is defined in .so file from my android app. Because my client has to give this .so file created and I just invoke the functions in it. Please help me in that.
User1454
5-Jun-15 1:36am
View
Deleted
Thank u sir... i will look into it...
User1454
29-May-15 4:56am
View
Thanks u so much..... Works like a charm !!!!! :)
User1454
3-Feb-15 5:57am
View
Sir, good explianation....but I need to get the mac address of virtual machine. i.e. based on ip address. This just gives the system mac address. How to get mac address based on IP and also for virtual machines.
User1454
29-Dec-14 3:36am
View
k let me try thanq!!!!
User1454
29-Dec-14 3:36am
View
Deleted
k let me try
User1454
29-Dec-14 2:21am
View
sir... i have gone through that link.....but i think its for changing the image in imageview click right. But I need it to change only when I get response from server. Is it possible ??
User1454
10-Dec-14 6:52am
View
SparseBooleanArray checked = listView.getCheckedItemPositions();
for (int i = 0; i < checked.size(); i++) {
if(checked.valueAt(i) == true) {
String tag = String.valueOf(listView.getItemAtPosition(checked.keyAt(i)));
Toast.makeText(getApplicationContext(), ""+tag, 5000).show();
Log.i("xxxx", i + " " + tag);
}
Solved :D:)
User1454
28-Oct-14 11:21am
View
thank u so much thats working ..............and this is what i need..... u saved my time...
User1454
28-Oct-14 11:20am
View
Deleted
sir i got it sir,.............. anyway thank u for all
public static byte[] hexStringToByteArray(String s) {
int len = s.length();
byte[] data = new byte[len / 2];
for (int i = 0; i < len; i += 2) {
data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)
+ Character.digit(s.charAt(i+1), 16));
}
return data;
}
sorry if my explaination is wrong......
User1454
28-Oct-14 11:13am
View
I need byte array from hex string.................
User1454
28-Oct-14 11:03am
View
sir,....actually........ value of "a" should be converted to byte array
byte[] command={0x2D,0x12,0x01,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x02 ,(byte) 0xFF ,(byte) 0xFF ,0x08 ,0x00 ,0x06 ,0x11 ,0x01 ,0x02};
so this value i will be sending using tcp/ip socket....
User1454
19-Feb-14 1:47am
View
Deleted
here i want to create textview and radio groups along with image view.
int n;//the no of radio groups i need to create dynamically
rb= new RadioButton[Integer.parseInt(n)*2];
for (int k = 1; k <= Integer.parseInt(n); k++)
{
//create text button
final TextView title = new TextView(getApplicationContext());
title.setText("Light " + k);
title.setTextColor(Color.BLUE);
title.setTextSize(20);
mLinearLayout11.addView(title);
//create radio button
final ImageView imgview=new ImageView(getApplicationContext());
imgview.setImageResource(R.drawable.bulb);
RadioGroup rg = new RadioGroup(getApplicationContext());
rg.setOrientation(RadioGroup.HORIZONTAL);
for (int i = 0; i < 2; i++)
{
rb[i] = new RadioButton(getApplicationContext());
rg.addView(rb[i]);
rb[i].setText(""+Status[i]);
rb[i].setTextColor(Color.WHITE);
rg.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
public void onCheckedChanged(RadioGroup rg, int checkedId) {
for(int i=0; i
User1454
17-Feb-14 0:53am
View
Deleted
here i want to create textview and radio groups along with image view.
int n;//the no of radio groups i need to create dynamically
rb= new RadioButton[Integer.parseInt(n)*2];
for (int k = 1; k <= Integer.parseInt(n); k++)
{
//create text button
final TextView title = new TextView(getApplicationContext());
title.setText("Light " + k);
title.setTextColor(Color.BLUE);
title.setTextSize(20);
mLinearLayout11.addView(title);
//create radio button
final ImageView imgview=new ImageView(getApplicationContext());
imgview.setImageResource(R.drawable.bulb);
RadioGroup rg = new RadioGroup(getApplicationContext());
rg.setOrientation(RadioGroup.HORIZONTAL);
for (int i = 0; i < 2; i++)
{
rb[i] = new RadioButton(getApplicationContext());
rg.addView(rb[i]);
rb[i].setText(""+Status[i]);
rb[i].setTextColor(Color.WHITE);
rg.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
public void onCheckedChanged(RadioGroup rg, int checkedId) {
for(int i=0; i
User1454
23-Jan-14 4:00am
View
thank u sir
User1454
22-Oct-13 1:44am
View
Deleted
then how to connect it with mac address...sir??
User1454
9-Oct-13 1:22am
View
Deleted
You can view this dcm files by using its own software which is avaliable in android google play..You can check from (http://www.dcmtk.org) on Android via Android NDK to acces DICOM. There's a discussion about it on the DCMtk forums here: http://forum.dcmtk.org/viewtopic.php?t=2960&sid=868791a13b4d266998284b921c4bfe8c.....Pls check it out
User1454
9-Oct-13 0:39am
View
Sorry sir....i was new to this......I will do it properly here on.....
Show More