 |
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
Message Automatically Removed
|
|
|
|
 |
Hi,
while reading buffer from TCP/IP continuously after some time i am getting this error.. could you please anyone help me to resolve it....
1.
An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
Additional information: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full
2.
An unhandled exception of type 'System.IO.IOException' occurred in System.dll
Additional information: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Regards,
Ganesh
|
|
|
|
 |
Without seeing the relevant code it's impossible to tell you anything useful.
|
|
|
|
|
|
 |
Eddy Vluggen wrote: Try MSDN;
those are no OOF Rules... I'm looking for the rules to set forwardings, not for OOF settings...
|
|
|
|
 |
Ah, my mistake.
Try MSDN[^] instead.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
 |
Hi,
that's not what I was looking for...
I'm looking for out of office rules, not inbox rules.
Difference is, that out of office rules are deactiveated autmaitcally once the user is back in the office...
|
|
|
|
 |
Frosch11111 wrote: that's not what I was looking for... If it is using Exchange, then it will be on MSDN.
Frosch11111 wrote: Difference is, that out of office rules are deactiveated autmaitcally once the user is back in the office Would that be implemented as something special in Exchange, or would it simple be a rule that gets deleted when the user is back?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
 |
Regarding Out-of-Office-Replies, let me tell a bad story.
Someday, a customer told us they could not receive emails from our company. They found out that the emails were blocked due to some spam filter rules. Somewhere in their spma-checking chain, they used a blacklist from spamhaus. And our company was listed there as a sender of spam.
How did we get there?
Some spammer sent an email to a colleague. Because she was on holiday, an Out-of-Office-Reply was sent to the "sender" of that email. But the "sender" was forged: it was a honey-pot address of spamhaus. Great!
Well, I do not know the further steps taken then to recover our status as a non-spammer - having analysed the situation to that point, I forwarded the issue to higher management. I do not know if they paid the money normally required by spamhaus or if they could convince spamhaus that the spam originated from some other place.
Anyway, since that time I suggest not to use spamhaus, and not to use Out-of-Office-replies either.
But who cares about that experience?
|
|
|
|
 |
I seem to be having problems when trying to run the shared sub from another class in my form1 application. The code works flawless when its called directly but when i try to multi thread the controls on form1 will not update.
The shared function and sub
Public Shared Function FileCount(PathName As String) As Long
Try
Dim FSO As New FileSystemObject
Dim fld As Folder
If FSO.FolderExists(PathName) Then
fld = FSO.GetFolder(PathName)
FileCount = fld.Files.Count
End If
Return FileCount
Catch ex As DirectoryNotFoundException
End Try
End Function
Public Shared Sub StartNewScan(ByVal FilePath As String)
Dim Allfile As String = "*.*"
Dim FFcount As Long
Dim MyFolderSize As Long
Dim FullPath As String
Using fse As New FindFiles.FileSystemEnumerator(FilePath, Allfile, True)
Dim ien As IEnumerator(Of FileInfo) = fse.Matches().GetEnumerator()
ien.Dispose()
For Each fi As FileInfo In fse.Matches()
FFcount += CStr(FileCount(fi.DirectoryName)).Length
Form1.Label3.Text = CStr( "File Count:" & FFcount)
MyFolderSize += fi.Length
FullPath = fi.FullName
Form1.Label4.Text = "File Path:" & FullPath
Next
End Using
End Sub
I am trying to call the shared sub in form1 like so
Dim StartSharedSub as new threading.thread(addressof Startnewscan)
startsharedsub.start()
I am aware of delegates and that it may be necessary in my case to use that to update my UI controls but I am confused how to implement it in my case.
thank you in advance
|
|
|
|
 |
You absolutely cannot touch UI controls from a thread.
You have to Invoke methods on the UI thread to update the controls for your threaded code.
There's a lot of examples[^] of this all over the web.
|
|
|
|
 |
Hi all - I'm looking for a motivated full stack developer to work independently within a team. The ideal candidate would be excited to learn and experiment with new technologies and with a passion for user-oriented design.
If you are interested, or know of someone who would be, please let me know. Thank you!
Required Skills:
• Microsoft .NET Framework ecosystem with C#
• ASP.NET MVC3 / MVC4
• Microsoft SQL Server 2008 / 2012
• Web Technologies: JavaScript, JQuery, AJAX
Desired Skills:
• Bachelor's Degree in Computer Science Preferred
• Web Development: HTML5, CSS3
• Knowledge of NoSQL
• Experience with Kendo UI
• Good communication skills
• Knowledge of IIS 7
• Web API/WCF
Victoria Feng
|
|
|
|
 |
This is not the place to post these.
|
|
|
|
 |
Ah, ok. Could you guide me to the right one please? Thanks!
Victoria F
|
|
|
|
 |
CP doesn't have a jobs board any more.
|
|
|
|
 |
Darn! OK, thanks for letting me know. Apologies for any inconvenience.
Victoria F
|
|
|
|
 |
Victoria Feng wrote: The ideal candidate would be excited to learn Try the nut-house.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
 |
Hi,
I have four related tables
AttoreTipo (1..n) Attore (1..n) CommessaAttore (n..1) Commessa.
AttoreTipo is a lookup table
i'm using entityframework 6 code first with repository and UnitOfWork patterns.
the model is:
public class Attore
{
public int Id { get; set; }
public int IdTipo { get; set; }
public string Nome { get; set; }
public string Cognome { get; set; }
public virtual ICollection<CommessaAttore> CommessaAttore { get; set; }
public virtual AttoreTipo AttoreTipo { get; set; }
}
public class AttoreTipo
{
public int Id { get; set; }
public string Tipo { get; set; }
public DateTime CreateDate { get; set; }
public DateTime? UpdateDate { get; set; }
public virtual ICollection<Attore> Attore { get; set; }
}
public class CommessaAttore
{
public int Id { get; set; }
public int IdCommessa { get; set; }
public int IdAttore { get; set; }
public DateTime CreateDate { get; set; }
public DateTime? UpdateDate { get; set; }
public virtual Commessa Commessa { get; set; }
public virtual Attore Attore { get; set; }
}
public class Commessa
{
public int Id { get; set; }
public string Descrizione { get; set; }
public DateTime EndDate { get; set; }
public DateTime CreateDate { get; set; }
public DateTime? UpdateDate { get; set; }
public virtual ICollection<CommessaAttore> CommessaAttore { get; set; }
}
In the aspx page, in the same button click event, i call the repository's method AddCommessaAttore(CommessaAttore commessaattore)
,where CommessaAttore has the attore property value by an Attore entity. Attore entity has an attoretipo prop. (attoretipo entity) not set because is a lookup table. Next i call getCommessaAttoriByCommessaId method, that read all commessaattore records by a given idcommessa, to fill a gridview,
but the AttoreTipo result always null. Entity framework don't resolve AttoreTipo entity
public CommessaAttore AddCommessaAttore(CommessaAttore commessaattore)
{
repository.Add(commessaattore);
SaveChanges();
return commessaattore;
}
public IEnumerable<CommessaAttore> GetCommessaAttoriByCommessaId(int idcommessa)
{
var activities = repository.GetMany(commatts => commatts.IdCommessa == idcommessa);
return activities;
}
thanks
|
|
|
|
 |
Did you define a relation between the two tables? If you open the database using Sql Management Studio, and generate a diagram of the tables, does it show a line between the lookup-table and the table in which it is used?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
 |
Yes tables are related. Anyway i solved using include and specifying tables attore.attore tipo. Thanks
|
|
|
|
 |
Sorry, sounded like something that simple might have been overlooked.. attore, an 'actor type'?
You're welcome
|
|
|
|
 |