Hello all,
I get this error when adding a reference to the Microsoft.Search.Interop.dll library in a new project that I created.
Microsoft.Search.Interop.dll is a library that provides some useful API to communicate with Windows Search. I use it in order to add a folder to the system indexer.
Did anybody else get this error, and if so, how should I go about solving it?
I'm using VS2010 RC on a Windows Server 2008 if that is important.
Thanks.
I have a set of data in one JSON structure:
[[task1, 10, 99],
[task2, 10, 99],
[task3, 10, 99],
[task1, 11, 99],
[task2, 11, 99],
[task3, 11, 99]]
and need to convert it to another JSON structure:
[{
label: "task1",
data: [[10, 99], [11, 99]]
},
{
label: "task2",
data: [[10, 99], [11, 99]]
},
{
label: "task3",
data: [[10, 99], [11, 99]]
}]
What's the best way to do this with javascript/java?
Will this email validation allow foreign email address like russian, hebrew and so on? And how can I just check for the @ sign?
Here is the php code.
if (preg_match ('/^[\w.-]+@[\w.-]+\.[A-Za-z]{2,6}$/', $_POST['email'])) {
$email = mysqli_real_escape_string($mysqli, strip_tags($_POST['email']));
} else {
echo '<p class="error">Please enter a valid email address!</p>';
}
I have a tab container with 5 tabs, each tab contains an update panel.
When the user initially opens the form, they can only see the first Tab, the others are set to visible=false. Once they have completed the first form, the hit save which sends a partial postback to save the data to the DB. Once that is saved, I then want to set all the other tabs to visible, however this does not work at the moment, I am assuming because the tab container is not contained in an update panel.
How can I get this to work, do I need to put the tab container in it's own update panel, which will obviously then contain all the other update panels, or should I not use an update panel in the first tab and do a full page postback?
I am not sure how to put the correct title.
but here is the brief explanation.
With Microsoft .NET, i created a server side custom control using C# to be used in ASP.NET pages. I distribute the DLL generated as a component. developers will include that and use in their ASP.NET project.
Likewise, how can i do for Java based web components for to use with JSP or JSF or any other java web frameworks?
I've read several other questions about material in order to learn RoR. But my question is can I start learning RoR without Ruby?
It's clear that the other way around is better, but I would rather try this way if it makes sense (somehow). Or learn both in parallel...
I start selenium hub to start selenium grid from command prompt on port 4444.
Now I start selenium RC from other command prompt.
It show me error message that "selenium i s already running on port 4444. or some other service is "
Now I am not able to start selenium RC. Please help me how to close /shutdown hub from command prompt.
In a ModelForm, i have to test user permissions to let them filling the right fields :
It is defined like this:
class TitleForm(ModelForm):
def __init__(self, user, *args, **kwargs):
super(TitleForm,self).__init__(*args, **kwargs)
choices = []
# company
if user.has_perm("myapp.perm_company"):
self.fields['company'] = forms.ModelChoiceField(widget=forms.HiddenInput(),
queryset=Company.objects.all(), required=False)
choices.append('Company')
# association
if user.has_perm("myapp.perm_association")
self.fields['association'] =
forms.ModelChoiceField(widget=forms.HiddenInput(),
queryset=Association.objects.all(), required=False)
choices.append('Association')
# choices
self.fields['type_resource'] = forms.ChoiceField(choices = choices)
class Meta:
Model = Title
This ModelForm does the work : i hide each field on the template and make them appearing thanks to javascript...
The problem is this ModelForm is that each field defined in the model will be displayed on the template.
I would like to remove them from the form if they are not needed:
exemple : if the user has no right on the model Company, it won't be used it in the rendered form in the template.
The problem of that is you have to put the list of fields in the Meta class of the form with fields or exclude attribute, but i don't know how to manage them dynamically.
Any Idea??
Thanks by advance for any answer.
I'm having trouble deploying .NET application which uses Microsoft Access automation.
I've installed the Access 2007 Runtime and Primary Interop Assemblies (PIAs) on the target machine:
Access 2007 Runtime
Office 2007 PIAs
However, when I try to create the ApplicationClass:
Application access = new ApplicationClass();
I get the following exception:
Unhandled Exception: System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {73A4C9C1-D68D-11D0-98BF-00A0C90DC8D9} failed due to the following error: 80080005.
I've googled the error code and tried tweaking the security settings in dcomcnfg, to no avail.
Any ideas?
I don't want to install the full version of Access due to the cost, and the runtime should at least be able to create an instance of the application, surely?
We've been using Trac for a while now for our developers only. However we are now opening it up for our (internal) clients. We have a project listing page (based on the default one that comes with Trac). What we'd like to do, is display more information about the project than what is currently available.
I have searched google and here, to see if I can find how to get more information. There seems to be a variable called $project which has .name, .description and .href as attributes.
Is there somewhere, a list of the attributes available? Or perhaps a different solution altogether that will allow us to display more information on the project list page. Such as the number of open tickets etc.
I do work in computer forensics and am trying to move my codebase from C++ to Java. I need a good open source implementation of all the various filesystems in Java to help this effort. Does anyone know of such an implementation?
Is a watch list hidden away somewhere in the AS3 debugger in Flash CS4?
Sorry for asking a simple question like this here - I did spend a while looking around the net first. It's much easier to find the watch list in the AS2 debugger.
Thanks,
Dan
We have a SQL server running SQL 2005 Workgroup 64 bit (9.0.4273), on Windows 2003 server 64 bit.
We have run sp_configure and reconfigured the server which indicates that the clr is now enabled.
exec sp_configure 'clr enabled', '1'
go
reconfigure
go
However, when trying to call CREATE ASSEMBLY the server completely dies on us and we have to do a full reboot of the machine.
A little more diagnostic information, even though clr enabled is set to 1 and we have rebooted the full server, running the following statement
select * from sys.dm_clr_properties
returns
directory
version
state locked CLR version with mscoree
which is what it says when the CLR is not enabled on another machine.
On a correctly enabled machine (after reboot) this function reads
directory C:\Windows\Microsoft.NET\Framework64\v2.0.50727\
version v2.0.50727
state CLR is initialized
So I blatantly got this idea from the MIX 10 event. At MIX they held a rockband talent competition type thing (I’m not quite sure of all the details). But the interesting part for me is how they collected votes. They used Twitter (what else, when you have a few thousand geeks available to you). The basic idea was that you tweeted your vote with a # tag, i.e #ROCKBANDVOTE vote Richard How cool…. So the question is how do you write something to collate and count all the votes? Time to press the magic Visual Studio new Project button… Twitter has a really nice API that can be invoked from .NET. This is the snippet of code that will search for any given phrase i.e #ROCKBANDVOTE public static XmlDocument GetSearchResults(string searchfor)
{
return GetSearchResults(searchfor, "");
}
public static XmlDocument GetSearchResults(string searchfor, string sinceid)
{
XmlDocument retdoc = new XmlDocument();
try
{
string url = "http://search.twitter.com/search.atom?&q=" + searchfor;
if (sinceid.Length > 0)
url += "since_id=" + sinceid;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
WebResponse res = request.GetResponse();
retdoc.Load(res.GetResponseStream());
res.Close();
}
catch
{
}
return retdoc;
}
}
I’ve got two overloads, that optionally let you pass in the last ID to look for as well as what you want to search for.
Note that Twitter rate limits the amount of requests you can send, see
http://apiwiki.twitter.com/Rate-limiting
So realistically I wanted my app to run every hour or so and only pull out results that haven’t been received before (hence the overload to pass in the sinceid parameter).
I’ll post the code when finished that parses the returned XML.
I continue to be impressed with the quality of .NET Developers in Israel.. we had a full house last night for a 2+ hour presentation on building business applications with Silverlight and RIA Services. The audience was very engaged and had lots of good, relevant questions which created a really good conversation. Check out the slides and demo. I started off by demoing the Right-to-Left text support for Hebrew that is baked in as part of Silverlight 4. ...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
When using HAProxy for virtual hosting, I can see how to use the Host from the header at the front end to decide what backend to route to. However, is it possible to make the back end be a URL which includes a path (not unlike what you would do with apache or nginx when setting up virtual hosting).
http://www.techrawr.com/tag/haproxy/ - shows most of it. But what if the back ends were on the one server but with backend1 and backend2 as the servers?
I am quite surprised to see that Windows Explorer is locking my external hard disk. Is there any reason why explorer.exe is holding on to my external hard disk?
Before I was trying to detach the external hard disk, I was opening a csproj file using Visual Studio 2008. I made sure that I closed down Visual Studio before trying to detach the external hard disk. There was no other active program except Google Chrome, from what I could see, that was running.
What will be proper regular expression for git repositories?
example link:
[email protected]:someone/someproject.git
so it will be like
server can be url or ip
Project can contain some other characters than alphanumeric like '-'
I'm not sure what is the role of '/'
any suggestions?