|
|
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 
|
|
|
|
|
If you're using POCOs and not setting up your own Model binder with the fluent API, you need to use attributes to indicate your keys and relationships.
public class Attore
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity), Display(AutoGenerateField = false)]
public int Id { get; set; }
[ForeignKey("AttoreTipo")]
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; }
}
And so on. The EF doesn't know what you intend to use for keys unless you are explicit about it, the virtual properties give it a hook for a relation, but unless the FK is defined it has nothing to hook to.
|
|
|
|
|
Hi,
I need to make FolderBrowserDialog in asp.net and that should show all the drives present in the client system and i should get full folder path of the client system so that i can save the files in selected client folder.
How to achieve this.
If anybody knows, please reply me.
Thanks in advance.
|
|
|
|
|
|
You can't without using an unsecure technology like ActiveX or Flash, or downloading an executable to the client side to run. It would represent a massive security hole if a website were able to get full access to the filesystem.
|
|
|
|
|
In a .bat file, I need to find the 32-bit .NET Framework InstallPath on a 64-bit machine. Following is my code snippet:
REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP" /s|FIND "InstallPath"|FIND "4.0."
However, it returns the InstallPath for 64bit:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
I actually need is something like:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\
Any suggestions are appreciated.
|
|
|
|
|
Have you tried searching the Wow6432Node ?
REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP" /s|FIND "InstallPath"|FIND "4.0."
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|