Posts

Featured post

php - rewriterule to prevent 500 internal error with accented Characters in url -

i got unsolved problem maybe basic 1 dont find answer. problem accent characters in url, i got 500 error(error code: 500 internal server error. request rejected http filter. contact server administrator. (12217)). for instant when search "blé", in url got: /content/search?searchtext=blé , result 500 error, in blog keywords: /content/keyword/blé : (result 500 error). i have created directory out of website folder , have created alias website directory. www.mysite.com/directory if put file accented name result same! can use rewriterule change accented words non-accented or can make url accept these accents? i need , appreciate if can me. this looks issue on tmg/isa firewall. on publishing rule have enable high bit character (right click on publishing rule, configure http, general tab).

php - How to delete an item into an array with a button -

Image
i have code array saves need each time press button, these items saved array showed later erase buttons, don't know how delete it, there part of code shows meant: echo "<table border=1>"; echo "<tr class='tabpreciostitles'>"; echo "<td>nom activitat</td> <td>nom tipus activitat</td> <td>tipus tarifa</td> <td>temps/km</td> <td>preu</td>"; echo "</tr>"; ($x=0;$x<count($savedarray[4]);$x++){ echo "<tr>"; echo " <td>".$savedarray[0][$x]."</td>"; echo " <td>".$savedarray[1][$x]."</td>"; echo " <td>".$savedarray[2][$x]."</td>"; echo " <td>".$savedarray[3][$x]."</td>"; echo " <td>".$savedarray[4][$x]."</td>&quo

Google Search Appliances -

how customize xml output of google search applianes.we need add images , ratings in search result.by default after crawling, when go search, items on indexes not proving details users needed.how cutomize or extend searh result google search appliances. if information in metadata of indexed documents isn't being displayed in xml of results when remove proxystylesheet url parameter, try adding getfields=* url parameter.

java - overriding hashCode, why is this.hashCode() not used? -

when overriding equals() , hashcode() methods in java why isn't used often: public int hashcode() { return (int) this.hashcode(); } or above prime introduced: public int hashcode() { final int prime = 31; //31 common example return (int) prime * this.hashcode(); } is bad practise or not work? the method: public int hashcode() { return (int) this.hashcode(); } would lead stackoverflowerror because recurse infinitely, unless replace this super . second method has same problem. in addition, casting value of type int int useless well. if not provide useful new method, don't override it.

Make a choice with a ComboBox, PyQT -

how ? i create programme wherein propose choice combobox. for exemple, if choice item in combobox, write in spinbox. probléme that, wirte in third spinbox without create new combobox. hope understand check out :) ` # -*- coding: utf-8 -*- import sys pyqt4.qtcore import qt pyqt4.qtgui import (qapplication, qwidget, qvboxlayout, qspinbox, qcombobox) class widget(qwidget): def __init__(self): super(widget, self).__init__() self.layout = qvboxlayout(self) self.spin = qspinbox(self) self.spin2 = qspinbox(self) self.spin3 = qspinbox(self) self.combo = qcombobox(self) self.combo2 = qcombobox(self) self.layout.addwidget(self.spin) self.layout.addwidget(self.spin2) self.layout.addwidget(self.spin3) self.layout.addwidget(self.combo) self.layout.addwidget(self.combo2) self.combo.currentindexchanged['qstring'].connect(self.on_combo_changed) self.combo2.c

parcelable - Unmarshalling unknown type code exception while reading parcel values in Android 4.4+ -

i'm using parcelable interface , working fine till android 4.3 (jelly bean) when install same app on device running under android 4.4+ (kitkat) crashing while reading parcel. throwing below error : java.lang.runtimeexception: parcel android.os.parcel@42acce90: unmarshalling unknown type code 6881383 @ offset 1864 when try read : getintent().getextras().getstring("type").contains("some_type"); i have put extra in intent : intent ointent = new intent(getactivity().getapplicationcontext(), eventfragment.class); ointent.putextra("type", "some_type"); after long time , r&d, came know should not use arraylist inside arraylist , within parcelable object. causing issue. so end-up using serializable interface provided java , both concept same.