Hi,
Why cannot IE parse this string as a Date object.
var d = Date.parse("Fri Jun 11 04:55:12 +0000 2010"); // returns NaN
However, it works well in FireFox. I am running IE 8.
Thanks.
I am trying to read .doc/.docx file with stream reader, but it give me output as unspecified character ie.
??[ ?L?f???C???.
I'm writing the file using a text editor. Here's a snippet of my code:
string filePath = baseUrl+ "Sample.docx";
using (StreamReader reader = new StreamReader(filePath, Encoding.UTF8))
{
txtBody.Text = reader.ReadToEnd();
}
I'm using VS 2010. Thank you.
I have a JSON Struct like
appointerment= {ids: '15,16,17', appointments: {'15': '12.05.2010,14,05,2010'} }
now in appointments object I want to add something like '16', '21.05.2010'
what is the best possible way to do this.
is there a way in delphi 2009 to make form controls private? eg: if i add a label at design time, i'd like for it to impossible for code outside the form to access the label.
(does delphi 2010 have this?)
thank you!
mp
The folloqing is the excpetion I am getting
The null value cannot be assigned to a member with type System.Int32 which is a non-nullable value type.
below is my LINQ Statement where QuestionId is the primary key in my table
var questionViewsData = from questionViews in objDc.SC_QuestionsViews
join questions in objDc.SC_Questions
on questionViews.QuestionId equals questions.QuestionId into qs
from questions in qs.DefaultIfEmpty()
where questionViews.CreatedDate.Date == new DateTime(2010, 4,27)
select new
{
Selected =(questions == null ?-1:questions.QuestionId),
QuestioinTitle = questions.Title,
VotesCount = questions.VotesCount
};
Let me know how to resolve this
Hi everyone,
Im writing a C# web page thats tied to a listview. My lcient would like to eb able to type in something or part of something that it would show results. For example he wants a textbox where he may put in a phone number, part of a phone number, a name, city or whatever and there would be a SP of sorts that finds then lists the info. How can I accompish this in either a SQL Sp or within VS 2010?
Hi,
I have an entity FinancialWeek which maps to continuous periods defined in a database table.
For example:
Week 1, From: 1/01/2010, To: 7/01/2010
Week 2, From: 8/01/2010, To: 14/01/2010
I need to define a lazy property for Next and Previous weeks in my entity. How do I do this in the HBM mapping?
Thanks
I know VisualStudio2010's standard library has been rewritten to support rvalue references, which boosts its performance considerably.
Does the standard library implementation of gcc 4.4 (and above) support rvalue references?
I know I can download the "April CTP" to get F# 2.0 for .NET 2.0. But I need FSC and F# Interactive for .NET 4.0. On a machine with VS 2010 installed, it ends up in C:\Program Files (x86)\Microsoft F#\v4.0. Is there a redistributable for this?
I create a query: Select * from HR_Tsalary where month='3' and year ='2010' the result is 473 records and I found 2 duplicate record, then I create another query to find duplicate record only: SELECT Emp_No, COUNT(*) FROM HR_Tsalary WHERE year = '10' AND month = '3'GROUP BY Emp_No HAVING COUNT(*) 1 the result is zero record from client side (thru Visual Basic Adodb code). But when I use same query from server the result is 2 records. Is there any different when create a query between from server side and client side?
In VisualStudio2010 I added Trace to Page_Load as explained here http://www.asp101.com/articles/robert/tracing/default.asp but I can't see any Trace output, why ?
public partial class _Default : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) {
Trace.IsEnabled = true;
Trace.Write("Hello World");
}
}
I am looking to create shortcut handler for MS Office. I am creating an addin with VS2010 for Office 2010. The handler needs to listen to all keyboard events when Word/PowerPoint is active.
Although there is a lot of material for creating application level shortcut handlers, I couldn't find one that was specific to Office.
It would be great if somebody could suggest techniques with sample c# code.
Thanks
I'm looking for some good tools that help to share tips, best practices, company standards, etc. amongs developers in my company. Two tools I'm currently considering are a wiki (screwturn wiki) or Sharepoint 2010. I'm wondering if there is something better suited to the task, or any input anyone has on this subject. I'd prefer something that's windows based (i.e. runs on IIS, can authenticate users against Active Directory etc) but I am open to anything.
Hi there,
I have a date format like this :
$date1 = "Sun May 09 20:07:50 +0000 2010";
and I have to convert it to: 09-05-2010
I am using date("d-m-Y", $date1));
When I print this individually it gives proper result but I am using it in loop
it gives me results like: 31-12-1969
I don't understand why this is so?
Can you help, please?
I am newbie to Windows Azure application. I have downloaded the Microsoft VisualStudio express edition 2010 BETA and want to develop Window Azure application. My PC is having Microsoft Windows XP Service Pack 2 with IIS 5.0.
Will Windows Azure cloud application work on IIS 5.0 or IIS 6.0?
Hello in my database date / time are stored in this format
2010-06-01T18:20:25+0000
I'd like to echo that out to time passed since that date / time
e.g.
2 minutes ago or 2 days ago
is this possible?
Using ObjectARX (C++) for AutoCAD 2010, can AutoCAD entities be serialized?
We need to save the serialized entity in a field in a database (Oracle, PostgreSQL, etc., not AcDbDatabase). It'OK if you show me how to save them in disk, something like this:
AcDbEntity * entity;
...
std::ofstream ofs("c:\\filename.fil", std::ios::binary);
ofs.write((char *)(entity), sizeof(entity));
ofs.close();
Thanks
string time = "Job started: donderdag 6 mei 2010 at 20:00:02"
var filterReg = new Regex(@".*:", RegexOptions.Compiled);
time = filterReg.Replace(time, String.Empty);
Is it possible to stop after the first occurence? so at the first ":".
I'm looking to write a comparator to sort my items in a list.
For items without an end year they should be at the top.
For items with an end year they should be next.
For items with the same end year the one with the lowest start year should be next.
Something I have so far
[item.get('end_year'), item.get('start_year')]
Test sceanrios first is end year second is start year ("" is present)
"", ""
"", 2012
"", 2011
2012, 2005
2012, 2008
2011, 2011
2010, 2005
I have to fetch all the files from a folder and i am using the function GetFiles() like
string[] dirImages = Directory.GetFiles(strPathYearImages + intYear , "*.png");
where strPathYearImages="Images\Holiday\2010\"
but when i write the whole path like
string[] dirImages = Directory.GetFiles(@"E:\IWP\Images\Holiday\"+ intYear , "*.png");
i get the required result.
How to solve this problem? I dont want to use the whole path.
Help me out.
Regards,
Jigar <3
Is there a Javascript script to change the time and date of blogs automaticly like facebook ???
for example "10 minutes ago" instead of "May 15 2010 12:30".
-Thank You
Hello I have a problem with GregorianCalendar.
What is wrong in there?
How outcome is 2010/6/1 and not 2010/05/31?
package test;
import java.util.Calendar;
import java.util.GregorianCalendar;
public class Main {
public static void main(String[] args) {
Calendar cal = new GregorianCalendar(2010, 5, 31);
System.out.println(cal.get(Calendar.YEAR) + "/" + cal.get(Calendar.MONTH) + "/" + cal.get(Calendar.DAY_OF_MONTH));
}
}
I recently changed my root password, but when I restart Ldap (openldap-2.2.13) I couldn't log in with Ldap users to any application that is on this server.
in /var/log/httpd/ssl_error_log I can find a lot of error like:
[Tue Jun 01 02:27:24 2010] [warn] [client 89.138.98.214] [26762] auth_ldap authenticate: user foo authentication failed; URI /svn-clients/clients/myclient/ [LDAP: ldap_simple_bind_s() failed][Can't contact LDAP server]
I guess there is a linkage between user root and the Ldap configuration, I also changed the
rootpw entry in slapd.conf, but this doesn't seem to make things better.
hi
why in Windows 7 i see the Data & Time in DataTimePicker inverse
and in Windows XP it fine ? (the region and language are same)
ex.
Win7: 2010/12/31 - 51:09
XP : 31/12/2010 - 09:51
thank's in advance