Hi All,
I am working on Solr in my application. I am using apache-solr-solrj-1.4.0.jar
When I try to call add(SolrInputDocument doc) of CommonsHttpSolrServer I am getting following exception:
org.apache.solr.common.SolrException: Internal Server Error
Internal Server Error
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:424)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:243)
at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:64)
Can anyone please help me to resolve this problem?
following are attributes in solrconfig.xml:
native
false
true
Specifically, I'm looking to use the 16*16 32-bit png images included with the VS2008ImageLibrary. I've tried manually setting the Height and Width attributes of the image, adjusting margins and padding, adjusting Stretch and RenderOptions. My attempts to create toolbar buttons have all led to either Improper Scaling (blurry icons), the bottom row of pixels on the icon being truncated, or the toolbar button being improperly sized - not to mention the disappearing icons already mentioned Here. Has anyone found the best way to make standard, VisualStudio/WinForms-style toolbar buttons that display properly in WPF?
Hi,
I want to delete one ABPerson (say, person) in address book then add another one (say new), since some parts of attributes may be reused, I want to clone 'person' to 'new', here is my question, it seems there is NO function to do this clone, I found ABRecordCreateCopy but it seems to be MAC specified, Is there any api I could use to avoid copy each properties one by one ?
Thanks in advance!
Jeff
Here is my first attempt at validating XML with XSD.
The XML file to be validated:
<?xml version="1.0" encoding="utf-8" ?>
<config xmlns="Schemas" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="config.xsd">
<levelVariant>
<filePath>SampleVariant</filePath>
</levelVariant>
<levelVariant>
<filePath>LegendaryMode</filePath>
</levelVariant>
<levelVariant>
<filePath>AmazingMode</filePath>
</levelVariant>
</config>
The XSD, located in "Schemas/config.xsd" relative to the XML file to be validated:
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="config">
<xs:complexType>
<xs:sequence>
<xs:element name="levelVariant">
<xs:complexType>
<xs:sequence>
<xs:element name="filePath" type="xs:anyURI">
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Right now, I just want to validate the XML file precisely as it appears currently. Once I understand this better, I'll expand more. Do I really need so many lines for something as simple as the XML file as it currently exists?
The validation code in C#:
public void SetURI(string uri)
{
XElement toValidate = XElement.Load(Path.Combine(PATH_TO_DATA_DIR, uri) + ".xml");
// begin confusion
string schemaURI = toValidate.Attributes("xmlns").First().ToString()
+ toValidate.Attributes("xsi:noNamespaceSchemaLocation").First().ToString();
XmlSchemaSet schemas = new XmlSchemaSet();
schemas.Add("", XmlReader.Create( SOMETHING ));
XDocument toValidateDoc = new XDocument(toValidate);
toValidateDoc.Validate(schemas, null);
// end confusion
root = toValidate;
}
Any illumination would be appreciated.
I have a Django form setup using GET method. Each value corresponds to attributes of a Django model. What would be the most elegant way to generate the query? Currently this is what I do in the view:
def search_items(request):
if 'search_name' in request.GET:
query_attributes = {}
query_attributes['color'] = request.GET.get('color', '')
if not query_attributes['color']: del query_attributes['color']
query_attributes['shape'] = request.GET.get('shape', '')
if not query_attributes['shape']: del query_attributes['shape']
items = Items.objects.filter(**query_attributes)
But I'm pretty sure there's a better way to go about it.
I'm searching for a little piece of javascript that can attach to a div (in data-x data-y attributes for example) the x,y coordinates of a draggable div. And then be able to draw arrows between them (using a data-targetid attribute?).
If the solution can look like a simple version of graphview, jsPlumb or vizster but without the complicated library, and only in javascript/html
I do Java programming and recently started learning Python via the official documentation.
I see that we can dynamically add data attributes to an instance object unlike in Java:
class House:
pass
my_house = House()
my_house.number = 40
my_house.rooms = 8
my_house.garden = 1
My question is, in what situations is this feature used? What are the advantages and disadvantages compared to the way it is done in Java?
Hi,
I have a modal popup extender in which i have a progress bar.
When i click a button ...this popup should be displayed to the user.
I have done this though button.attributes.add().[ this is without postback]
But ...popup extender can blur the base page only after the postback.
Issue is currently i am able to see the progress bar...but base page is not blurred.
:(
Any help
Is it possible to mimic IQueryable with NHibernate?
I was looking at Nhibernate docs and for what i could tell, it always returns a List of objects, that have it's attributes indexed by a integer. Ok, perfect, that works.
But is there a way to retrieve objects like LINQ? With something like IQueryable?
Thanks
So I am using the techniques in this thread to use a custom background for my titlebar. Unfortunately the framework places my layout inside a FrameLayout which has padding and so the image doesn't cover the whole bar, but instead has gray borderes. Is there anyway to remove this padding? I can't just set the padding attributes because I do not create the frame layout.
I can't find a css formatter (web based or Windows app) which formats the css where it puts the open brace on its own line aligned with its close brace, plus indents the attributes. The web based css formatters out here seem to be based on CSSTidy which doesn't do what I want.
I don't like this CSSTidy format:
.example {
font-size: 3em;
}
I want:
.example
{
font-size: 3em;
}
I've got a radiobuttonlist with a bunch of list items, some of them disabled.
The label control beside the radio button turns gray, which can be hard to read.
How do I change the color of the label?
I've tried CSS, changing the forecolor - nothing seems to work:
currentButton.Attributes.Add("class", "disabled");
Any ideas?
What's the ideal way to store login and password for LDAP membership providers in the web.config?
Having the login and password stored in the provider under connectionUsername/connectionPassword attributes does not go well with me because, I would want to encrypt the connection string later on.
Don't have much experience with this, and was wondering if anyone had any best practices for this.
My java program is packaged in a jar file and makes use of an external jar library, bouncy castle. My code compiles fine, but running the jar leads to the following error:
Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
I've googled for over an hour searching for an explanation and found very little of value. If anyone has seen this error before and could offer some help, I would be obliged.
Hi,
I would like to know how I would go about altering the HTML that is displayed by my VB.net application using GeckoFX. What I would like to do restrict certain words/names/attributes from showing in the browser.
Any info/links would be greatly appreciated.
Thanks!
I am not been able to update any of the attributes in one of my feature classes using the Arc FM Attribute editor, but I am able to update it thru the ESRI Attribute editor.
Please lemme know if somebody knows the reason.
I am using Arc SDE 9.3.1 with ArcFM 9.3 and ArcMap 9.3
Note:I am in selection Tab and not in Target tab.
Please let me know if sombody can figure out the reason.
Vinay
[email protected]
I have a database containing multiple tables (Person, Parents, etc)
Person table has certain attributes particularly ssn, countryofbirth and currentcountry.
Parents table has ssn, and fathersbirthcountry
I'm trying to output the SSNs of all people who have the same countryofbirth as their fathersbirthcountry and also have same currentcountry as fathersbirthcountry.
SELECT Person.ssn
FROM Person, Parents
WHERE fathersbirthcountry = countryofbirth
AND currentcountry = fathersbirthcountry;
the above doesn't seem to be working, could anyone please help me out?
Hi,
Considering such an enumeration :
type
TTypeOfData = (
[XmlName('ABC')] todABC,
[XmlName('DEF')] todDEF,
[XmlName('GHI')] todGHI
);
Where XmlName is a custom attribute used to define the serialization string for members of this enumeration.
How can I explore the attributes attached to each member of this enumeration ?
Regards,
--
Pierre
Can someone provide a strategy/code samples/pointers to test Captcha validations + Authlogic using Shoulda, Factory Girl and Mocha?
For instance, my UsersController is something like:
class UsersController < ApplicationController
validates_captcha
...
def create
...
if captcha_validated?
# code to deal with user attributes
end
...
end
In this case, how do you mock/stub using Shoulda / Factory Girl / Mocha to test valid and invalid responses to the Captcha image?
Appreciate your help,
Siva
I use a sheet with 3 NSTextFields and a Cancel- and OK-Button to edit the attributes of a Core Data Entity.
The text entered in the NSTextFields is only updated in the Core Data Entity if i press Tab or Return after writing in the NSTextField or if i focus another NSTextField with the mouse. If i just enter text in an NSTextField and press the OK-Button the entered text is lost.
Is there some attribute i can set in Interface Builder to change this NSTextField behaviour?
hi
simple question -
How do I access an attribute of an object by name, if i compute the name at runtime?
Ie. i loop over keys and want to get each value of the attributes "field_".$key
In python there is getattribute(myobject, attrname)
It works, of course, with eval("$val=$myobject-".$myattr.";");
but IMO this is ugly!!
TIA
florian
Hello, friends
Who knows, why in vb.net WinForm projects the designer by default use the Friend WithEvents attributes and in C# - private ones.
By ex, in a form.designer.
.cs
private Label Label1;
.vb
Friend WithEvents Label1 as Label;
For WithEvents is more or less clear(for using Handles, apparently). But why Friend in VB and private in C#...
Thanks.
Can something like this be done through attributes or templates (pseudo xaml :))
<ListView ListViewItem.Style={x:Null}>
</ListView>
This question is not just about ListView, it's about all ItemsControl's classes, is there a way to set or reset style for item's from container.
Is there an easy and straight-forward method to select elements based on their data attribute? For example, select all anchors that has data attribute named customerID which has value of 22. I am kind of hesitant to use rel or other attributes to store such information, but I find it much harder to select an element based on what data is stored in it.
Thanks!