Posts

reporting services - Visible Export Data Feed option SSRS report -

i working on ssrs reports , need visible "export data feed" option in ssrs reports. updated tag in render section adding attribute visible="true" in reportconfig file, don't find solution. can 1 me how can solve this. thanks, sid

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>...

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.

jsf 2 - how we can get only number skipping fraction in jsf f:convertNumber? -

i have inputtext takes value user , bound number. if value "6000.0", subsequent pages show "6000". there way format such if user enters fractional number, show below? examples: user enters "35545.9" show "35545" user enters "5546.1" show "5546" user enter "7558.767" show 7558 user enter "548.7943" show 548 you can use: <h:inputtext value="#{receipt.amount}" > <f:convertnumber minfractiondigits="2" /> </h:inputtext> or <h:inputtext value="#{receipt.amount}" > <f:convertnumber pattern="#0.00" /> </h:inputtext > to add fraction digits

android - Want to publish my .apk file on playstore -

i want publish app on play store. first asked me signed .apk file , did using debug.keystore , again i'm trying upload .apk , saying "you created apk in debug mode, have create in release mode" tried method still got no success. can me plzzz? you need create own signed key in order publish app. simple , can done eclipse. just follow quick guide: right click on project in eclipse -> android tools -> export signed application package click next select "create new keystore", choose location, enter password click next , fill needed fields. write 25 years in validity. (it minimum) click next , chose want place apk google play thats all. next time when want update app select "use existing key" in step 3.

java - Solr delay at document delete -

maybe got same problem , can me, when delete document there delay between solr index refresh , got still on list document deleted thans in advance it looks using solrj updaterequest delete document. since not explicitly committing update, actual timing of index update depends on solr configuration. solr docs ( https://cwiki.apache.org/confluence/display/solr/near+real+time+searching ) "a common configuration hard autocommit every 1-10 minutes , autosoftcommit every second" if need make delete committed index right away, can add "commit" action updaterequest this: updaterequest req = new updaterequest(); req.deletebyquery("documentid:"documentid); req.setaction(action.commit, false, true); this have same effect adding "?action=commit" update request , perform soft commit right away.

c - Function returns only letters of string -

i wrote program should take string , return string letters original one, it's not working , can't figure out why. can me? #include<stdio.h> char *only_letters(char *s1ptr, char *s2ptr) { while(*s1ptr) { if((*s1ptr >= 'a' && *s1ptr <= 'z') || (*s1ptr >= 'a' && *s1ptr <= 'z')) { *s2ptr = *s1ptr; s2ptr++; } s1ptr++; } *s2ptr = '\0'; return s2ptr; } int main() { char *s1ptr, *s2ptr; printf("\n write string:\n"); scanf("%s", s1ptr); printf("\n%s\n", *only_letters(s1ptr, s2ptr)); return 0; } you have 3 problems. s1ptr , s2ptr 2 unallocated arrays caused undefined behavior. you're incrementing s2ptr point has value \0 . after returning have string has \0 . to show string, must pass without * (don't dereference it). try this char *only_letters(char *s...

sql - Oracle - How to force user to INSERT multiple row -

i using oracle 11gr2 on academic assignment. there constraint room must have 3 - 5 people. know can write trigger check if room has more 5 people: create table people ( pid integer primary key ); create table room ( rid integer primary key ); create table living ( rid integer, pid integer, constraint living_pk primary key (rid, pid), constraint living_fk_rid foreign key (rid) references room(rid), constraint living_fk_pid foreign key (pid) references people(pid) ); create or replace trigger living_biu before insert or update on living referencing new new old old each row declare count number; begin select count(*) count living rid = :new.rid; if(count > 5) raise_application_error(-20002, 'too many people in room.'); end if; end living_bi; but can not check if number lesser 3 because can not insert things living. question how can create trigger force user insert more 3 rows , less 5 rows @ time? with standard p...

Deploy TypeScript WebSite from GitHub to Azure -

i have .net website includes typescript files. i'm attempting deploy azure website github, i'm getting error associated typescript. it appears me may related use of newest version (1.0) whereas kudu build has 0.9 - i'm new enough can't sure that's issue, nor how fix it. here deployment log (sorry formatting): command: d:\home\site\deployments\tools\deploy.cmd handling .net web application deployment. packages listed in packages.config installed. restoring nuget packages... prevent nuget downloading packages during build, open visual studio options dialog, click on package manager node , uncheck 'allow nuget download missing packages'. packages listed in packages.config installed. shadow_findly -> d:\home\site\repository\shadow_findly\bin\release\shadow_findly.dll d:\program files (x86)\msbuild\microsoft\visualstudio\v12.0\typescript\microsoft.typescript.targets(96,5): error : project file uses different version of typescript compiler ,...

html - Float Two Divs Side By Side -

Image
i'm sorry post this. i've read dozens of posts on same issue, can't solve this. how place blue , green boxes side-by-side? i've got plenty of space in wrapping div, , think dealing float correctly, still incorrect results. gives? <div class="titleframe" > <div class="image" > <img id="thief" src="thief.png"> </div> <div class="titletext"> <h1>my title</h1> <p>line1<br>line2<br>line3</p> </div> </div> .titleframe { margin:0 auto; width:750px; clear:left; height:300px; border: 1px solid red; } .image { width:100px; height:250px; border: 1px solid blue; } .titletext{ position:relative; float:left; padding-left:25px; padding-top:0px; height:150px; width:250px; border: 1px solid green; } add float:left; .image class....

php - simplexml_load_file not working with variable but works with string -

i trying connect crm (pardot). i have create url necessary call xml: //this log in , print api key (good 1 hour) console $rz_key = callpardotapi('https://pi.pardot.com/api/login/version/3', array( 'email' => 'myemail@email.com', 'password' => 'password', 'user_key' => '032222222222222b75a192daba28d' ) ); $number_url = 'https://pi.pardot.com/api/prospect/version/3/do/query'; $number_url .= '?user_key=032222222222222b75a192daba28d'; $number_url .= '&api_key='; $number_url .= trim($rz_key); $number_url .= '&list_id=97676'; $ike = simplexml_load_file($number_url); print_r($ike); now code returns : simplexmlelement object ( [@attributes] => array ( [stat] => fail [version] => 1.0 ) [err] => invalid api key or user key ) however, if echo $number_url , , copy , paste url browser, loads wonderfully. if copy , paste same echoed url simplexml_loa...

bash - Synchronize access to shell variables while using Gnu parallel (i.e. critical section in Gnu parallel) -

i have for loop i'd convert parallel . however, i'm appending global ( bash ) array within loop. what's recommended way of dealing situation? parallel provide form of synchronization between jobs besides --keep-order ? i thought replacing array combination of flock , echo > some_shared_file , wanted know if there's standard way of implementing "critical section" parallel . bash has "thread local" variables. there no global variables can updated different threads. variables/arrays copied subprocesses, , changes in 1 not reflected in another. the more general answer -- if had resources updated different processes -- use sem comes gnu parallel.

Android get data using regexp -

i have html string in in trying string between tag using regexp , saving value array-list . not able string between tag array-list empty. <span><div style=\'float:left; width:350px;\'>pharmacie dar d\'bagh</div> my code data using regexp is private void findtextbyregexp() { arraylist<arraylist<string>>datalist1 = new arraylist<arraylist<string>>(); string pattern3 = "<span><div style=\'float:left; width:350px;\'>"; string pattern4 = "</div>"; string text = readfromfile(); pattern p = pattern.compile(pattern.quote(pattern3) + "(.*?)" + pattern.quote(pattern4)); matcher m = p.matcher(text); while (m.find()) { arraylist<string>dataadd = new arraylist<string>(); dataadd.add(m.group(1)); datalist1.add(dataadd); log.d(...

Outputting multiple lines of text with renderText() in R shiny -

i want output multiple lines of text using 1 rendertext() command. however, not seem possible. example, shiny tutorial have truncated code in server.r : shinyserver( function(input, output) { output$text1 <- rendertext({paste("you have selected", input$var) output$text2 <- rendertext({paste("you have chosen range goes from", input$range[1], "to", input$range[2])}) } ) and code in ui.r : shinyui(pagewithsidebar( mainpanel(textoutput("text1"), textoutput("text2")) )) which prints 2 lines: you have selected example have chosen range goes example range. is possible combine 2 lines output$text1 , output$text2 1 block of code? efforts far have failed, e.g. output$text = rendertext({paste("you have selected ", input$var, "\n", "you have chosen range goes from", input$range[1], "to", input$range[2])}) anyone have ideas? you can use re...

jQuery Auto Refresh Send Value Variable -

i want pass value of variable using jquery auto refresh : var auto_refresh = setinterval ( function () { var p_box_sn = $("#p_box_sn").val(); $.ajaxsetup({ cache: false }); $('#counts').load('load.php?p_box_sn=p_box_sn').fadein("slow"); }, 1000 ); but show output : p_box_sn. wanted value var p_box_sn , sent load function. possible? since p_box_sn variable, need concatenate using + : $('#counts').load('load.php?p_box_sn=' + p_box_sn).fadein("slow");

php - insert single set of data multiple times mysql -

i have insert single set of data multiple times , n rows. insert mytable values ("john", 123, "us"); can insert n rows in single sql statement? here n dynamic value n user input , how make insert query n times , idea. $sql = "insert `mytable` values(`field1`,`field2`,`field3`) values "; $count = 5; for($i=0;$i<$coutn;$i++) { $sql .= " ('john','123','us' )"; } is correct way.. yep, can done easily, should this: insert mytable values ("john", 123, "us"), ("carl", 123, "eu"), ("jim", 123, "fr"); however, programming practice specify columns of table in query, example: insert mytable (column1, column2, column3) values ("john", 123, "us"), ("carl", 123, "eu"), ("jim", 123, "fr"); edit : can build query (in for cycle), $total user input: $sql = "insert mytable (colu...