Posts

Showing posts from July, 2014

c# - Generic Method Return Type as Type parameter -

i have extension method working ok cast string values various types, looks this: public static t totype<t> (this string value, t property) { object parsedvalue = default(t); type type = property.gettype(); try { parsedvalue = convert.changetype(value, type); } catch (argumentexception e) { parsedvalue = null; } return (t)parsedvalue; } i'm unhappy way looks when calling method, however: myobject.someproperty = stringdata.totype(myobject.someproperty); specifying property obtain property's type seems redundant. rather use signature this: public static t totype<t> (this string value, type type) { ... } and have t end type of type. make calls cleaner: myobject.someproperty = stringdata.totype(typeof(decimal)); when try call way, however, editor complains return type of extension method can't infered usage. can link t type argument? what...

CASE statement IF ELSE in SQL Server -

i have select statement , trying accomplish data in the dosageperunits column if dosage not equal empty or 1 , if units not empty or 1. can me please ? select sbd.code, c.description, sbd.dosage, case when sbd.units = '' '1' else sbd.units end units, ad.apptdate, sbd.rcycle, sbd.rweek, sbd.rday, t.historyorder, t.typeid, sbd.dosage + '/' + sbd.unitsas dosageperunits bill_superbilldetail sbd, bill_procedureverification pv, appointmentdata ad, cptcode c, cpttype t sbd.accessionnumber = pv.accessionnumber , pv.apptid = ad.apptid , ad.patientid = 443 , ad.apptdate <= getdate() , ad.apptdate > '2009-11-15 00:00:00.000' , c.typeid = t.typeid according description, should this: case when isnull(sbd.dosage, '1') <> '1' , isnull(sbd.units, '1') <> '1' sbd.dosage + '/' + sbd.units else null en...

ruby - Watir Testing Highcharts with only 1 Path element -

i have issue testing highcharts watir when graph has 1 path element. when u hover through line on graph coordinate of path element changes. how can loop through line? example demo = http://www.highcharts.com/demo/line-time-series one way of doing using xpath on graph. using firepath add-on on firefox browser, when move mouse through graph have different xpaths each position. like browser.element_by_xpath(".//*[@id='highcharts-0']/svg/g[6]/g[2]/path[2]']").click and pick value need. doing this, may not have accurate xpath every position in graph serve need.

pdf - PDFminer in Python -

i downloaded pdfminer, commandline methods work want able convert multiple pdf documents @ same time trying use pdfminer library, found os stackoverflow can't work.. from pdfminer.pdfinterp import pdfresourcemanager, process_pdf pdfminer.converter import textconverter pdfminer.layout import laparams cstringio import stringio def convert_pdf(path): rsrcmgr = pdfresourcemanager() retstr = stringio() codec = 'utf-8' laparams = laparams() device = textconverter(rsrcmgr, retstr, codec=codec, laparams=laparams) fp = file(path, 'rb') process_pdf(rsrcmgr, device, fp) fp.close() device.close() str = retstr.getvalue() retstr.close() print str convert_pdf("/users/gorkemyurtseven/desktop/casino.pdf") when run get: traceback (most recent call last): file "pdfminer.py", line 1, in <module> pdfminer.pdfinterp import pdfresourcemanager, process_pdf file "/users/gorkemyurtseven/d...

delete a link list in c -

i solving program delete elements in linked list , encountered following problem: when used delete function return type void, , checked if start pointer null in main ,it wasn't , gives me absurd result code: void deletes(struct node *start) { struct node *current,*next; current=start; while(current!=null) { next=current->link; free(current); start=next; current=next; } start=null; return ; } but if change return type, works fine: struct node *deletes(struct node *start) { struct node *current,*next; current=start; while(current!=null) { next=current->link; free(current); start=next; current=next; } start=null; return start; } why start=null working in first code? my entire code here it's because in first version pass list header value, meaning pointer head copied, , change copy in function. changes not visible after function r...

php - CSS div to extend content onto more lines -

i have php script returns list of small images (like thumbprints) displayed based on search criteria. i'd these images displayed on after until reach approx 45% across screen , if there more images fit in space, images continue on new line. i have used css set following within div. .example { float: left; width: 45%; } but images continue beyond 45%. if used style overlap:scroll; or overlap:hidden, images stop @ 45% , either can scroll see others or hidden. how can make images continue onto new 'line'. i've tried word-wrap without success. thanks help. the way describe it should work fine. i made jsfiddle demo images default displayed inline elements, if elements not images try using display:inline on them or display:inline-block .

php - How to show results of a form upon submission -

using wordpress, php, html, css, javascript best method of populating results of form upon submission? have form ddl, radio buttons, etc. <form> <input type="radio" name="sex" value="male">male<br> <input type="radio" name="sex" value="female">female <input type="checkbox" name="vehicle" value="bike">i have bike<br> <input type="checkbox" name="vehicle" value="car">i have car <input type="submit" value="submit"> </form> what best way of populating results i.e. "67% of users female" , "30% ride bikes" on same page once submit button triggered? try along these lines: script.php ---------- <html> <body> <form method=post action=script.php> form here... </form> <? if($_server["content_length"]...

xslt - XSL key to get elements that meet specific criteria -

i working table entry elements , want preceding entry elements in same table pass following test: parent::row/preceding-sibling::row/entry [@morerows >= count(parent::row/following-sibling::row [not(preceding-sibling::row/entry [generate-id() = $id])])] [count(preceding-sibling::entry [not(@morerows)]) + 1 = count(current()/preceding-sibling::entry) + 1] the xpath gives me desired result, painfully slow..... use key having problems. i defined key follows: <xsl:key name="morerowsentry" match="entry[@morerows]" use="."/> while key retrieve entry elements morerows attribute, need retrieve within same ancestor table. well, @ loss how test morerows value. have tried things such : <xsl:for-each select="key('morerowsentry', (@morerows >= count(parent::row/following-sibling::row[not(preceding-sibling::row/entry[generate-id() = $id])])) , (count(preceding-sibling::entry[not(@morerows)]) + 1 = count(cu...

jsf 2 - PrimeFaces doesn't work -

i have problem in newfile.xhtml. use jsf2.2 . when put library primefaces-3.5.jar web/lib folder , restart tomcat server, web page not work anymore. when remove primefaces jar file every thing works without showing primefaces tags. i put external jar correctly, think there wrong: my web.xml file <!doctype web-app public "-//sun microsystems, inc.//dtd web application 2.3//en" "http://java.sun.com/dtd/web-app_2_3.dtd" > <web-app> <display-name>sample jsf 2 filter login app</display-name> <!-- login filter --> <filter> <filter-name>loginfilter</filter-name> <filter-class>somepackage.loginfilter</filter-class> </filter> <!-- set login filter secure pages in /secured/* path of application --> <!-- staring jsf --> <servlet> <servlet-name>faces servlet</servlet-name> <servlet-class>javax.faces.webapp.facesservlet</servlet-class...

sql server - DATEADD error when use French language? -

i have sp needs calculate date & time. works fine when language set english. however, when french, has error: la conversion d'un type de données varchar en type de données datetime créé une valeur hors limites. which means datetime overflow based on translation. the query similar to: set language 'french' declare @startpastdays int set @startpastdays = 1; declare @pastdays int set @pastdays = 30; print convert(varchar(10),getdate(),111) print convert(date,getdate(),111) print dateadd(day, -(@pastdays+@startpastdays-1), convert(varchar(10),getdate(),111) ) print dateadd(day, -(@pastdays+@startpastdays-1), cast('2013-07-23' date)) if run it, result is: le paramètre de langue est passé à français. 2013/07/23 2013-07-23 msg 242, level 16, state 3, line 16 la conversion d'un type de données varchar en type de données datetime créé une valeur hors limites. 2013-06-23 the error happens at: print dateadd(day, -(@pastdays+@startpastdays-...

php - Session doesn't work after redirect -

my code looks this: ... $_session['message']="something"; header('location:http://url/somewhere'); exit; as can see, have exit @ end of it. , problem. doesn´t work although have exit there. i have problem on localhost. @ online server works well. in errorlog shows "undefined index message". few days ago installed new apache 2.4 , php 5.4. don't forget start session on every page going use it: if(!isset($_session)){ session_start(); }

postgresql - Easy way to have return type be SETOF table plus additional fields? -

i'm writing pl/pgsql stored procedure return set of records; each record contains fields of existing table (call retailer, has 2 fields: retailer_key , retailer_name). this, of course, works: create function proc_find_retailers (in p_store_key int) returns setof retailer $$ ...` now want update sp returns additional 2 fields 'end' of each returned record. can such as: create function proc_find_store (in p_store_key int) returns table ( retailer_key int, retailer_name varchar(50), addl_field_1 int, addl_field_2 double precision) $$ ... in real world, retailer table has 50 fields (not 2 in example), enumerating fields in returns table clause tedious. there shortcut this, might such (i realize i'm making stuff here that's syntactically illegal, i'm doing give flavor of i'm looking for): create function proc_find_store (in p_store_key int) returns (setof store, addl_field_1 int, addl_field_2 dou...

python - Regex Match for Domain Name in Django Model -

i have 1 table, looks like: class tld(models.model): domainnm = models.charfield(validators=[ regexvalidator('^[0-9]^[a-z]','yourdomain.com only','invalid entry')], max_length=40) dtcreated = models.datefield() for domainnm - want validate on entry looks like: domain.com 1domain.com domain1.com it has follow way : <domainname>.[com|biz|net] etc , alphanumeric. how do on model level of django model? thanks to recap clarifications above: want match domains single alphanumeric label , tld of 4 characters, eg. "domain.com" or "someotherdomain.info" or "345xyz.pdq1" not "subdomain.domain.com", " http://domain.com ", "www.domain.com", or "345xyz.abcde". regex it: ^[a-z0-9]+\.[a-z0-9]{1,4}$

jquery - Getting a GET error when adding a google map from database values -

using tutorial , trying pull data wordpress custom post type meta box xml file, create google map markers setup database values. i added folder , file the themes dir called map/generatemapxml.php generatemapxml.php <?php // create xml doc map // start xml file, create parent node $dom = new domdocument("1.0"); $node = $dom->createelement("markers"); $parnode = $dom->appendchild($node); header("content-type: text/xml"); //query artist info & coordinates. $args = array( 'post_type' => 'artists', 'posts_per_page' => -1 ); $query = new wp_query($args); if($query->have_posts()): ?> <?php while($query->have_posts()): ?> <?php $query->the_post() ?> <?php $mapname = get_the_title(); $mapaddress = rwmb_meta('artists_location'); $maplat = rwmb_meta('artists_lat'); $maplong = rwmb_meta('artists_long'); ...

multithreading - Java - Threading HttpUrlConnection calls -

i have custom service module pass json body, containing array of ids. have iterate through these ids , make separate web service call each id obtain response body, aggregate these responses custom json structure. have working, i'd implement threading (or manner thereof) make http calls asynchronously, rather in succession. how implement threading in following code: ids = (jsonarray) jsonin.get("ids"); myclass myclass = null; list<myclass> myclasslist = new arraylist<myclass>(); (int = 0; < ids.size(); i++) { jsonobject p = (jsonobject)ids.get(i); id = p.get("id").tostring(); //the httpurlconnection call made in getresponse() method gson gson = new gson(); myclassresponse result = gson.fromjson(getresponse(), myclassresponse.class); (int x = 0; x < result.ids[0].id.length; x++) { myclass = new myclass(); myclass.setstringone(re...

sql - ssdt post deployment script run once -

i new sql server database tools , may making incorrect assumptions post deployment scripts doing.. correct me if wrong. as far aware post deployment script expected run after every deployment, not single deployment. if want have post deployment script run script 1 time there way without requiring version or history table in database logs when these scripts ran? i.e. can have subsequent amendments script added new file within project version number on, , add post deployment script have previous script ignored how (potentially without first removing it)? regardless of whether still runs script during deployment? is there configuration sort of thing or unintended behaviour? pre , post-deploy scripts designed run each time release project. best practice make them repeatable. add checks if data exists, don't run again or similar. build sort of basic logging table store - if row not found in table, run script , put row in table. you can't tell project run lates...

fiddler - No SOAP message exchange between Metro client and WCF service on 64Bit Win7 and Windows 2008 Server -

i have running web service connection between java client program metro {2.2.1-1} web service stack , wcf {.net 4.0 v30319} wshttpbinding web service on windows xp sp3. if move exact same setup windows 7 {with enterprise setup} or windows 2008 r2 server sp1 {from ms dvd}, hanging requests java client wcf service. i.e. there no symptoms of data exchange between 2 partners {i have -dcom.sun.xml.ws.transport.http.client.httptransportpipe.dump=true on client side , diagnostic print messages on server side -- both without output}. networkologically, tcp connection open ("netstat -a") until timeout occurs after 200+-5 seconds following stack trace: jul 19, 2013 12:13:00 pm ch.xxxxxxxx.xxxxx.balance.client.start.start main severe: null com.sun.xml.ws.streaming.xmlstreamreaderexception: xml reader error: com.ctc.wstx.exc.wstxioexception: connection reset @ com.sun.xml.ws.streaming.xmlstreamreaderutil.wrapexception(xmlstreamreaderutil.java:326) @ com.sun.xml.ws.strea...

mono - Android GPS turns off after long period of time -

i have completed writing android application (2.2+) using mono android track devices location on 24/7 basis. for part application runs quite there seems issue gps decide turn off (icon disappears notification bar) , not reengage. occurs randomly happens when app has been running 24 hours. i use alarmmanager service check if gps location update has been registered in last 10 minutes , if not restart application. on restart of application, gps not reengage. gps start tracking again application phone has restarted. all services start , stop should , drop listeners on locationmanager when necessary. rather show code inquiring if else had come across same issue gps can decide disable while being used in application , not restart on reopening application.

multithreading - C++ OpenGL Threading (Terrain) -

Image
so, after long time got quadtree terrain working. means terrain far away less resolution terrain closer me. shown in picture - now, have many new problems... of them i've had many ideas on. there's ripping in between resolutions, texture size difference , above all... lag. due how determine if character standing in quad. using distance can make clean area around character , minimize ripping. causes lag due fact have check distance on recursively. first check parent, if that's within 100m split it. check it's children , it's children , children etc etc... to fix this... decided it's time use threading. made rendering go different thread. in hope of reducing lag. however, have new problems. when terrain splits. vertex data changed. void quadtree::setup(std::vector<glm::vec3> vertexdata, int width, int height) { center = glm::vec3((left+right)/2, 1, (top+down)/2); float previvalue; float prevjvalue; float ivalue; float jvalue; size = 25; w = 16 ; h ...

google chrome - No permissions for notifications -

the problem when run extension securityerror dom 18 when trying make notification. so how manifest file looks like: { "name": "no", "manifest_version": 2, "version": "1", "content_scripts": [ { "js": ["js.js"] } ], "permissions": [ "notifications", "tabs" ], "web_accessible_resources": [ "48.png" ] } this notification: var notification = webkitnotifications.createnotification( '/favicon.ico', 'item added cart!', // notification title 'item ............ has been added cart.' // notification body text ); the notifications permission not propagate content script. add event page extension, , send message open notification event page.

java - RESTful: return error code in place of JSON -

i have post method in restful: @post @produces("application/json") @consumes("application/json") public string dopostjson(string string) { ... } normally gets json , returns json. if face incorrect json in received parameter return error code "400 bad request". how can that? thanks. you can throw webapplicationexception code when got incorrect json. might better idea extend webapplicationexception if use exception in other places well. throw new webapplicationexception(response.status.bad_request); you can see more detailed on webapplicationexception here: http://docs.oracle.com/javaee/6/api/javax/ws/rs/webapplicationexception.html and list of response.status here: http://docs.oracle.com/javaee/6/api/javax/ws/rs/core/response.status.html another read in related this: jax-rs / jersey how customize error handling?

jquery - Uncaught TypeError: Cannot set property 'Width' of undefined -

i'm having issue dynamically setting width of ul element in website. below jquery i'm uusing var button = $("#navbar"); alert(button); var count = $("#header li").length; alert(count); $("#navbar").style.width = count * 110 here's html <div id="header" class="clearfix"> <div class="clearfix hidden"> <img src="/content/images/main-logo.png"> </div> <div id="navbar"> <ul> <li id="home"> home </li> <li id="portfolio"> portfolio </li> <li id="about"> </li> </ul> </div> </div> the "alert(button)" returns [object object] it's not null (at least understanding of it) error mentioned in title whenever ...

report - Wrap table to multi columns in RDLC -

Image
a dynamic list (name, page number) need generated rdlc report. need wrap 3 columns this. solution this? thanks i set matrix this: the row group based on expression: =ceiling(rownumber(nothing) / 3) the column group based on expression: =(rownumber(nothing) - 1) mod 3 i.e. we're grouping based on row number of each row. this gives required results data:

android - Web server always returns true (Jdbc Driver) -

guys need bad. i'm developing android application in eclipse connects mysql database using web service. android app runs smoothly no problems web service. problem application return true when enter wrong username or password. can guys me figure out mistake? also, console in webserver returning error. package com.example.koios_beta5; import org.ksoap2.soapenvelope; import org.ksoap2.serialization.propertyinfo; import org.ksoap2.serialization.soapobject; import org.ksoap2.serialization.soapprimitive; import org.ksoap2.serialization.soapserializationenvelope; import org.ksoap2.transport.httptransportse; import android.os.asynctask; import android.os.bundle; import android.app.activity; import android.view.menu; import android.view.view; import android.widget.button; import android.widget.edittext; import android.widget.textview; import android.widget.toast; public class mainactivity extends activity { private textview textview; private edittext loginusername; private ed...

webgl - How often do I have to update my uniforms? -

all of webgl sample code i've seen calls gl.useprogram(), , sets every uniform program, once per frame. thing is, 2 costly things can in webgl project run lines of javascript , copy stuff javascript shader, , here's doing both sixty times second. also, know of uniforms, in own program, not change frame frame. (it's light positions , such, stuff could mess don't.) my question is, webgl specification have how long uniforms' values preserved? if call gl.useprogram(), might program i've stopped using lose uniforms? if calling gl.useprogram() scrambles uniforms, can not call every frame, , have uniforms preserved? if force users run firefox 22.0 forever, write , run test code, , have figured out in jiffy. sadly... a uniform's value associated particular program. not go away because switched program. (i don't have spec reference handy.) probably code you're seeing setting uniforms every frame 1 of these reasons: simple laziness: work...

javascript - XML reading code working on my server but not on my client server -

i have written image slider code. reads image details xml file.i have tested on server works fine , when client putting on server images not loaded seems link xml reading not done . can please me identify cause of .. below link client have installed code. http://gulin.sg/andrea/maple/coverflow/webkit.html $.get('photos.xml', function (xml) { $('item', xml).each(function (k) { frontimg.push($(this).find('frontimg').text()); stripimg.push($(this).find('stripimg').text()); fronttext.push($(this).find('fronttxt').text()); ftitle.push($(this).find('title').text()); fcity.push($(this).find('city').text()); fyear.push($(this).find('compyear').text()); floc.push($(this).find('loc').text()); ftype.push($(this).find('type').text()); frole.push($(this).find('role').text()); arrbackimg.push($(this).find('backimg...

push - ssh: connect to host bitbucket.org port 22: Connection timed out fatal -

whole error is: ssh: connect host bitbucket.org port 22: connection timed out fatal: remote end hung unexpectedly i'm getting error when push 2 of projects on different servers (countries). what problem? update: using ssh -v i'm getting this: usage: ssh [-somecode] [-b bind_address] [-c cipher_spec] [-d [bind_address:]port] [-e escape_char] [-f configfile] [-i identity_file] [-l [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-o ctl_cmd] [-o option] [-p port] [-r [bind_address:]port:host:hostport] [-s ctl_path] [-w tunnel:tunnel] [user@]hostname [command] check if don't have iptable rules ssh outgoing connections, if true, add port 22. multiple ports: iptables -t filter -a output -p tcp --match multiport --dport 22,1111,2222,3333 -j accept

javascript - angularjs localstorage against page refresh -

i doing few steps form angularjs. there possibility user hit f5 button, , refreshes page. data collected angular deleted. prevent myself against possibility. i thought using local storage , angular library that, far i'm not convinced yet proper path deal problem. thinking correct, or there better idea solve that? chek out http://sisyphus-js.herokuapp.com/?utf8=%e2%9c%93&basic_form_country=usa&basic_form_name=hihi~&button=#advanced-sample library persist form's data in browser's local storage. easy use, have option save input field , able retrieve other page.

sql - Alternative for reserved word "group" -

i take naming because appears user in many places default. i create model named group, refers similar facebook groups. because group common hoped possible use other common words (e.g. date), but... reserved word in sql , activerecord method (i.e. model.group(*args) ). i cannot find valid (and generic need) synonym: how should behave in case? there convention or common replacement word "group"? late party coworker sent me , had correct him. the solution quoting identifiers . there no problem. in mysql quote backticks (`): mariadb [some_db]> create view `group` (select 1 one); mariadb [some_db]> select * `group`; +-----+ | 1 | +-----+ | 1 | +-----+ in postgresql have use normal double quote (") instead: select * "group"; . in mssql,you use square brackets ([]): select * [group]; . there many reserved words in sql , new may added. quote identifiers unless you're sure free. active record should quote identifiers default. i...

javascript - How can i save nested models -

i'm working on ember.js project uses ember data , restadapter. my model exists out of questions , possible answers. app.question = ds.model.extend({ answers: ds.hasmany('app.answer'), text: ds.attr('string'), image: ds.attr('string') }); app.answer = ds.model.extend({ question: ds.belongsto('app.question'), text: ds.attr('string'), image: ds.attr('string') }); my view modal, in can create or edit questions , answers. questions , possible answers should saved on hitting save button, or on uploading image. the problem saving procedure complicated. in order upload image of answer, need make sure answer exists on server. in order save answer, need make sure question exists. is way tell ember save whole question, it's answers, @ once? i think solution might workaround problem: ds.restadapter.map('app.question', { answers: {embedded: 'always'} }); see instance: emb...

what is the best way of check existing database before creating new database on android -

i have created database android app contains static data , not require update/delete functionality when app starts, want check if db exists , if not execute dbadapter class. know simple if statement wondering efficient way query whether db exists. use openorcreatedatabase method public boolean checkdatabase(){ sqlitedatabase checkdb = null; try{ string mypath = db_path + db_name; checkdb = sqlitedatabase.opendatabase(mypath, null, sqlitedatabase.open_readonly | sqlitedatabase.no_localized_collators); }catch(sqliteexception e){ //database does't exist yet. } if(checkdb != null){ checkdb.close(); } return checkdb != null ? true : false; }

Android - Play Store Unsupported Device -

my app manifest described below. i've mentioned required flag false below.. fyi : i've added permission amazon maps universal between amazon , play store. current application having 337 unsupported devices on market. of them are samsungolleh– ik1 samsunggalaxy– gt-i7500 samsunghomesync– spcwifi samsungmoment– sph-m900 samsunggt-i5800l– gt-i5800l samsungmoment– sph-m900 samsungbehold ii– sgh-t939 samsunggalaxy star– mintss samsunggalaxy player 50– yp-g50 samsungeuropa– gt-i5500m samsunggalaxy 070– hendrix samsunggalaxy star– mint samsungbehold ii– sgh_t939 samsungspica– spica samsunggalaxy spica and many others.. am missing in androidmanifest.xml ? <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:amazon="http://schemas.amazon.com/apk/res/android" package="com.vishal" android:versioncode="35...

python - Where is the do_CONNECT method in goagent being called? -

i reading version of goagent, don't know do_connect method being called. class gaeproxyhandler(basehttpserver.basehttprequesthandler): ... def do_connect(self): ... the same method in following page not being called, either. click here yes, if search "do_connect", nothing, search "http method connect" gaeproxyhandler's base class basehttprequesthandler, code may written in basehttprequesthandler if want run proxy, should run following code: server = localproxyserver((common.listen_ip, common.listen_port), gaeproxyhandler) server.serve_forever() so know server may write code calling method do_connect now. and let's see backtrace, does. file "e:\python33\lib\threading.py", line 616, in _bootstrap self._bootstrap_inner() file "e:\python33\lib\threading.py", line 639, in _bootstrap_inner self.run() file "e:\python33\lib\threading.py", line 596, in run self._target(*s...

python - GQL query Inequality no working with ''IN" operator -

i writing gql query using both in operator , inequality operator returning error. query select * mymodel state in ('abc') , count > 9 and output no matching index found. the suggested index query is: - kind: mymodel properties: - name: state - name: count as per output (and documentation) need create index query work. add suggestion index.yaml

linux - How to get default open yum client's /etc/yum.repos.d configuration -

all , since server install yum client , config /etc/yum.repos.d our private yum repo , can yum install our private rpm packages , software , want change point common open public repos installing common rpm packages , how re-set yum repo configuration ? if have command "lynx -dump "xxxx" > /etc/yum.repos.d " better , thank ! you need create additional repo in /etc/yum.repos.d delete local repo /etc/yum.repos.d/ following syntax eg /etc/yum.repos.d/public.repo [name-name] name=newpublicrepo baseurl=http://publicurlof repo enabled=1 gpgcheck = 0 or can install rpmforge, epel net directly. http://wiki.centos.org/additionalresources/repositories/rpmforge

Cant get ImageView onItemClick from custom ListView Android [EDIT] -

i've implemented custom listview, structure of each row: <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <imageview android:id="@+id/imagenevento" android:layout_width="80dp" android:layout_height="80dp" android:scaletype="centercrop" android:adjustviewbounds="false" android:paddingbottom="2dp" android:contentdescription="@string/contenidoimagen" /> <linearlayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="left" android:padding="10dp" android:orientation="vertical" > <textview android:id="@+id/titulo" android:layout_width="wrap_content" androi...