Posts

Showing posts from April, 2013

php - How to force Zend_Navigation_Page_Mvc to generate an href -

i've come across strange issue zend_navigation_page_mvc . when try render anchor tag, url seems cached instance on page, therefore href incorrect. to create instance in action want return to: $request = $this->getrequest(); $back = new zend_navigation_page_mvc( array( 'module' => $request->getmodulename(), 'controller' => $request->getcontrollername(), 'action' => $request->getactionname(), 'params' => $params, // array of params pass 'label' => 'back listings', 'class' => 'back' ) ); i store in session , later retrieve provide back button. in action instance session , assign view. in view, render navigation using echo $this->navigation(new zend_navigation(array($this->back))); a var_dump of $this->back produces this: object(zend_navigation_page_mvc)[132] protected '_action'

c++ - Always assign vs check equality and assign -

is there noticeable performance difference between: if (a != b) = b; , a = b; when a , b both of same built-in type int or bool or maybe simple , small struct ? as understand second expression write memory every time (which assume heavier operation read), while first 1 if a , b not equal. or depends on how b value changed? i understand it's more of "++i vs i++" kind of question, curious though it depends. for x86 cpus, cost of operations involved in program, follows: non-cached read (i.e. read ram not cached yet): ~100 clocks cached read: 3 ~10 clocks register read: 1/2 clock (value rough, there no such single operation "read") write: varies , depends, ~1 clock comparison: 5-10 clocks if compiler guess "which branch happen" wrong (this known "pipeline stall"); otherwise - 1 clock. using information, might able make guesstimates ;-). for other (non-x86) desktop/server/mobile cpus numbers different

php - my data are not showing in phpmyadmin db -

kindly check code.. data not show in db field. send db file. when enter data not show in db.i try lots of time.this newsletter subscriber code <?php $name = ""; $email = ""; $msg_to_user = ""; if (isset($_post['name'])) { include "connect_to_mysql.php"; // sure filter data deter sql injection, filter before querying database $name = $_post['name']; $email = $_post['email']; <!--check queryy --> $result = "select * newsletter email='$email' "; $num_rows = @mysqli_num_rows($result); @mysqli_query($num_rows); if (!$email) { $msg_to_user = '<br /><br /><h4><font color="ff0000">please type email address ' . $name . '.</font></h4>'; } else if ($num_rows > 0) { $msg_to_user = '<br /><br /><h4><font color="ff0000">' . $email

64bit - VirtualBox: VERR_VMX_MSR_VMXON_DISABLED -

yesterday created first virtualbox vm (v4.3.28)! learned in order run 64-bit os (in case, windows 7), needed enable virtual technology (vt) in bios/uefi (intel i7-3770k). set vm snapshot, , continued turn on until after rebooting physical computer. receive following error , no longer see 64-bit os options: failed open session virtual machine <name of vm>. vt-x disabled in bios. (verr_vmx_msr_vmxon_disabled). result code: e_fail (0x80004005) component: console interface: iconsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6} i found several posts this, solutions have been (1) enable vt via bios (as still is) , (2) enable virtualbox option under settings>system>acceleration. regarding latter, unable access acceleration tab (the tab gray). not sure how proceed. discussion appreciated! thank you. acceleration tab greyed out because vm not powered off. cannot change such settings if in saved state. if still have snapshot, recommend removing , configuring vm afterwa

jquery - CKEditor – adding Advisory Title for <a> element -

i have problem ckeditor. tried creating <a href="#"></a> element in ckeditor advisory title, can't it. i set option in modal, tab advenced. do have idea how fix this? this ckeditor configuration: ckeditor.editorconfig = function( config ) { config.toolbar = 'full_theme'; config.toolbar_full_theme = [ ['format','font','fontsize'],['textcolor'],['bgcolor'], ['justifyleft','justifycenter','justifyright','justifyblock'], ['bold','italic','strike'], ['numberedlist','bulletedlist'], ['outdent','indent'], '/', ['link','unlink'], ['image'],['table'],['horizontalrule'],['videoimage'],['source'],['maximize'], ['undo','r

android - OnCreateView NullPointerException -

i have app in google play store. getting crash notifications through crashlytics/fabric, don't have true logcat reference. also, unable figure out how replicate bug on own system. the error i'm getting crashlytics follows: com.company.appname.fragment.oncreateview (fragment.java:48) here's pertinent detail class declaration: import android.support.v4.app.fragment; public class mytypefragment extends fragment {... here's code portion of fragment: 44 mrestartbutton = (button)contentview.findviewbyid(r.id.restart_button); 45 mrestartbutton.settypeface(regulartf); 46 mrestartbutton.setonclicklistener(new view.onclicklistener() { 47 @override 48 public void onclick(view v) { 49 getfragmentmanager().popbackstack("startingfragment", 0); 50 } 51 }); i find interesting crash report listing crash being in oncreateview() method, yet line 48 declaration of onclick() method on button's onclicklistener . i've looked foll

sql server - SQL Where 2 values one is empty -

i'm struggling whit sql code hours now. i'm trying combine 2 different values in 1 row, if 1 value not there (so no result) there not row @ all. to more clear: have location whit 2 different values, coming 2 queries. working fine, sometime second query give no results (can happen, not bad), first value not shown. declare @start datetime, @ende datetime; set @start = '01.04.2015'; set @ende = '30.04.2015'; select t1.[location code], cast(t1.umsatz decimal(18,2))as umsatz , cast(t2.ersatznachweis decimal(18,2)) ersatznachweis ( select [location code], sum(warebrutto) umsatz (select distinct [location code], [document no_] , warebrutto [item ledger entry] [location code] > '0000' , [location code] < '0040' , [document date] >= @start , [document date] <= @ende) t group [location code]) t1, (select [location code], sum([quantity]*bruttopreis) ersatznachweis [item ledger entry] [location code] > '0000&

c - How do I set a buffer in a possibly recursive procedure? -

i realized major flaw in program writing. it's program symbolically differentiates math functions, e.g. "x^2+5" --> "2*x" , , master function involved starts off like char * derivefromtree ( node * rt ) { char * dfdx = malloc(100*sizeof(char)); // buffer if (rt->op) // if rt of form rt = gx op hx { char * dgdx = derivefromtree(rt->gx); // g'(x) char * dhdx = derivefromtree(rt->hx); // h'(x) char thisop = *rt->op; if (thisop == '+' || thisop == '-') { // addition/subtraction rule: // dfdx = dgdx + thisop + dhdx dfdx = strcat(dfdx, dgdx); dfdx = strcat(dfdx, chartostring(thisop)); dfdx = strcat(dfdx, dhdx); } the problem, might see, result of derivefromtree fits in buffer of length 100 , result composed of several other results, won't work. alternative solution getting rid of buffer , sett

ajax - Why does when i call the .php file, the jquery function of it doesnt work -

i have in <head> <link rel="stylesheet" href="css/jquery-ui.css" /> <script src="js/jquery.js"></script> <script src="js/jquery-ui.js"></script> <script src="js/date.js"></script> all of vital run date time picker this. <span><input id="datepicker" style="width:64px;outline:none;border:transparent;" type="text" > </span> yeah sure thing, works. whenever calling whole .php of , display page. doesnt work. here ajax code. <script type="text/javascript"> function get_bookextt(user_id) { var request = $.ajax({ url: "getbookext.php", type: "post", data: {'user_id': user_id}, datatype: "html" }); request.done(function(msg) { $("#get_booke

List files and timestamp of creation on AIX system (Perl) -

i want perform command ls -l --time-style="+%s" on aix system. need timestamp of file , filename. with this answer , made: find . -type f -exec perl -le 'print((stat shift)[9])' {} \; but can't find way print filename perl (i don't know language , have troubles one-liner syntax). i'm experimenting this: perl -le 'print((stat shift)[9] . " ???")' foo.txt can me out? what you're looking @argv array, can use loop over, , check $_ current file name, perl -le 'print((stat $_)[9] . " $_") @argv' foo.txt

html - Trouble getting drop down's selected li to stay in a hover state -

i'm having difficulties drop down menu created. if go of main list items , move mouse away, main list item goes native state. i created fiddle https://jsfiddle.net/7wmqdxv1/ show going on. the list items going black are: <li><a href="myaccount.php">manage</a> <li><a href="">reports</a> etc. i want main list item remain white when move mouse down drop down list displays. have changed list's hover color white, everything, cannot work. any ideas? if understand correctly, have move hover statement a li .signinbar li:hover { color: #ffffff; } .signinbar li:hover a{ background-color: #282828; -o-transition:color .4s ease-out, background .3s ease-in; -ms-transition:color .4s ease-out, background .3s ease-in; -moz-transition:color .4s ease-out, background .3s ease-in; -webkit-transition:color .4s ease-out, background .3s ease-in; /* ...and proper property */ transition:colo

javascript - Bootstrap: close modal and save changes -

<div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">close</button> <button type="button" class="btn btn-primary">save changes</button> </div> is possible close modal window , save changes single button. have not found solution. add data-dismiss="modal" attribute save changes button. fiddle: https://jsfiddle.net/dtchh/8698/

javascript - Bootstrap collapse - opening multiple accordions at the same time -

i've got point accordions open @ same time - see http://www.bootply.com/go4t29ryyf when click on "tab1" "tab1s" open, when click on "tab2" "tab2s" open - great! cant open "tab1s & tab2s" @ same time, works when close 1 of tabs first before opening another. issue js cant work out. $(function () { var $active = true; $('.panel-title > a').click(function (e) { e.preventdefault(); }); $('.number1-collapse').on('click', function () { if (!$active) { $active = true; $('.panel-title > a').attr('data-toggle', 'collapse'); $('.number1').collapse('hide'); } else { $active = false; $('.number1').collapse('show'); $('.panel-title > a').attr('data-toggle', ''

java - How to notify ListModel that ArrayList have changed -

i notify listmodel arraylist have been modified. my arraylist automatically updated after create every person by: new person(...); it achieved add every person arraylist @ end of person constructor. listmodel listen changes in arraylist . arraylist part of hashmap<class, arraylist> instances of every class stored. how notify listmodel arraylist have been changed? notice: don't mean: how make listmodel notify jlist . use observablelist instead of arraylist , register observablelistlistener on listmodel or simplicty sake, use property change listener

delphi - unelevated program starts an elevated updater, updater should wait for finishing of program -

i have 2 apps, program.exe , updater.exe, both written in delphi5. program runs without admin-rights (and without manifest), updater has manifest "requireadministrator" because must able write @ program-folder update program.exe. the problem launch updater , let him wait until program closed. i've found different ways @ web, none works (in cases 1st app starts 2nd app , wait ending of 2nd app, in case 2nd app should wait ending of 1nd app). updater should wait, thats easy updater.exe {$r manifest.res} label.caption:='wait program.exe closing'; repeat sleep(1000); until file not open programhandle := read handle file waitforsingleobject(programhandle,infinite); label.caption:='program.exe closed'; updates way 1 starting updater createprocess: program.exe fillchar(siinfo, sizeof(siinfo), 0); siinfo.cb := sizeof(siinfo); saprocessattributes.nlength := sizeof(saprocessattributes); saprocessattributes.lpsecuritydescriptor := nil; saprocess

SQL server 2008 - rows are mixed when inserting into another table -

i have 1 store procedure , inside 1 used 4 tables(tb1,tb2,tb3,rs1).each table has 1 column(x-varchar type).starting of procedure deleted existing rows in contents first 3 tables except rs1 ll insert 10 15 rows in 3 tables.. end of procedure ll insert 3 tables data rs1 using 3 insert statements(first rs1,rs2 , rs3). issue when select rows rs1,few ts3 rows in first 2 rows of rs1 has rs1 data ts2 value missing ts3 rows..also not happened times... i'm not able find out reason this... tb1 value ---------- arun address state tb2 value ---------- product1 product2 product3 tb3 value --------- productname1 productname2 productname3 after i'm inserting data rs1 this insert rs1 select x ts1 insert rs1 select x ts2 insert rs1 select x ts3 result coming below productname2 productname3 name address state product1 product2 product3 productname1 database tables not ordered nature. getting results in random since there nothing order them by. if add column rs1 can o

php - array_keys() expects parameter 1 to be array, null given -

my form cannot update data, please me, display error on "array_keys() expects parameter 1 array, null given" in line 4 , "invalid argument supplied foreach()" in line 5 @ ramadan.php. here want display data sql query , update query. its work in web page in case cannot work.. my form <form action="ramadan.php" method="post"> <? $result = mysqli_query($dbh,"select * ramadan id in (1, 2, 3)"); if(!$result) { die("database query failed: " . mysqli_error()); } while($row = mysqli_fetch_assoc($result)) { $id=$row['id']; $ramadan=$row['ramadan']; $date=$row['date']; $taraweeh=$row['taraweeh']; echo ' <tr> <td><input type="text" name="ramadan['.$id.']" class="form-control" value="'.$ramadan.'"></td> <td><input type="text" name="date['.$id.'

vba - Is there a more efficient way to display multiple query results in different text boxes on a Form -

i have form several different text boxes. each text box populated result of different query. i'm not familiar vba / access (i teaching myself) , not sure if i'm doing efficient. hoping suggest maybe less cumbersome way of populating text boxes on form different queries, or perhaps suggest better variable naming convention. *edit - think there way place formula directly in text box rather doing through vba received #name error. private sub form_load() dim db dao.database dim qdf querydef dim rst recordset dim qdf2 querydef dim rst2 recordset set db = currentdb() set qdf = db.querydefs("qrygettotaltransactions") set rst = qdf.openrecordset set qdf2 = db.querydefs("qrygettotaltransactionsinmanagement") set rst2 = qdf2.openrecordset [form_portfolio status].totaltransaction_txt.value = rst![total] [form_portfolio status].totalinmanagement_txt.value = rst2![total] end sub in each of 2 examples, you're retrieving single value saved query.

mobile - Phones dialing wrong number from tel-hyperlink -

we received complaint visitors our website dialing wrong number in contact us. our website has hyperlink in following form in footer: call @ <a href="tel:+4712345678">12345678</a> note "+47" (international code) not displayed visually, included in hyperlink. turns out limited number of people (circa 1 day) calling private local number @ 47123456 . not many considering size of our business, still major nuisance family receiving these calls. the people calling pressed link dial. has else had these problems? aware of mobile phones not support tel hyperlink? suggestions solution? (apart changing our or phone number, of course.) there different ways smart phones pick telephone number. reading text of website - use tag on first try: add +47 displayed telephone number on second try (or both together): replace +47 0047 (its norway - or?) and before posting got third idea: encoding has webserver , encoding has html / php page in sourc

omnet++ - Changing .cc file doesn't affect the simulation -

i changed .cc files in omnet++, when run simulation see none of them applied. i've seen here problem might solved removing .exe (in case of windows). however, i'm using ubuntu , i'm not sure do... any ideas? finally, did make makefiles , make again , see changes. maybe isn't best way...but if clean project errors appear , can't run anymore unless said above.

Apt install with ansible -

i use ansible scripts set environment (ubuntu) in amazon ec2 , vagrant box. try set same environment @ germanvps (ubuntu minimal). installing packages apt doesn't seem work. i run ansible-playbook -i ansible/live -u priidu ansible/caselaw.yml -s -vvvv --start-at-task="install" which gives following error. failed: [master] => (item=postgresql-9.4,postgresql-contrib-9.4,postgresql-server-dev-9.4,python-psycopg2) => {"failed": true, "item": "postgresql-9.4,postgresql-contrib-9.4,postgresql-server-dev-9.4,python-psycopg2"} stderr: e: dpkg interrupted, must manually run 'sudo dpkg --configure -a' correct problem. msg: '/usr/bin/apt-get -y -o "dpkg::options::=--force-confdef" -o "dpkg::options::=--force-confold" install 'postgresql-server-dev-9.4' 'python-psycopg2'' failed: e: dpkg interrupted, must manually run 'sudo dpkg --configure -a' correct problem. fatal: ho

javascript - Why don't I get the same output 3 times in the attached code? -

i trying understand features in angularjs. wrote codepen of attempt ( http://codepen.io/ssj666/pen/xbgkxx ). my code: <!doctype html public "-//ietf//dtd html 2.0//en"> <html> <head> <script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> </head> <body> <div ng-app="test" ng-controller="testctrl"> <ul> <li ng-repeat="x in names"> {{ x.name + ', ' + x.country }} </li> </ul> </div> <div ng-app="t" ng-controller="testctrl"> <ul> <li ng-repeat="x in names"> {{ x.name + ', ' + x.country }} </li> </ul> </div> <div ng-app="t2" ng-controller="tctrl"> <ul> <li ng-repeat="x in names"> {{ x.name + ', ' + x.country }} </l

php - How can I send data to a specific port and ip using Yii2? -

how can send data specific port , ip using yii framework? want send string specific ip. using php can send data using or post or whatever method using method: <?php // change own values $ip = '127.0.0.1'; $port = 80; $location = ''; $url = "http://$ip:$port/$location"; // define data want send $params = http_build_query( array( 'name1' => $value1, 'name2' => $value2, // ... ) ); // set method send data $opts = array('http' => array( 'method' => 'get', // or post or put or delete 'content' => $params, 'header' => 'content-type: application/x-www-form-urlencoded\r\n' ) ); $context = stream_context_create($opts); //build http context // send data , capture response $response = file_get_contents($url.$params, false, $context);

multithreading - How to make a robust mutex on AIx [7.1] -

lets assume 2 threads belonging 2 separate processes share same mutex object. if thread holding lock mutex dies; how thread b able recover mutex , obtain lock. know on other platforms can declare mutex robust [pthread_mutexattr_setrobust] , use [pthread_mutex_consistent] recover mutex. these functions not available on aix 7.1

Swift array loop once, write many -

consider following silly, simple example: let arr = ["hey", "ho"] let doubled = arr.map {$0 + $0} let capitalized = arr.map {$0.capitalizedstring} as can see, i'm processing same initial array in multiple ways in order end multiple processed arrays. now imagine arr long , have many such processes generating many final arrays. don't above code because looping multiple times, once each map call. i'd prefer loop once. now, handle brute force, i.e. starting multiple mutable arrays , writing of them on each iteration: let arr = ["hey", "ho"] var doubled = [string]() var capitalized = [string]() s in arr { doubled.append(s + s) capitalized.append(s.capitalizedstring) } fine. don't joy of using map . question is: there better, swiftier way? in hazy way imagine myself using map , or map , generate tuple , magically splitting tuple out resulting arrays iterate, if (pseudocode, don't try @ home): let arr = [&

wso2esb - Changing WSO2 / Synapse to expose CXF service instead of AXIS2 -

currently wso2/synapse uses axis 2 services base , proxy service tag exposes typical service based on axis 2 engine. is possible change expose cxf service instead? if it's not supported out of box, can give idea of how large effort if ready make changes myself in wso2/synapse thanks, harish cxf based inbound endpoint implementation release next esb(4.9.0) version. feature cxf reliable message support. if need write own custom inbound endpoint on cxf, can check existing esb 4.9.0 code base; https://github.com/wso2/carbon-mediation/tree/master/components/inbound-endpoints/org.wso2.carbon.inbound.endpoint.ext.wsrm

c# - Type interference in the call join -

i have built short , sweet join query try , feel on how create join. managed in sql. i'm not sure how in linq. linq: public iqueryable<departmentbreakdownreport> getdepartmentbreakdown (int supplierid, int reviewperiodid) { return (from detail in camonlinedb.details join suppdepp in camonlinedb.suppdepts on new { detail.clientid, detail.categoryid } equals new { suppdepp.clientid, suppdepp.categoryid } select detail.clientid + "" + detail.categoryid); } edit: ignore parameters brought in, cater once have join working. you returning iqueryable<string> rather assume want iqueryable<departmentbreakdownreport> . return type, need project in select specifying type, this: return (from detail in camonlinedb.details join suppdepp in camonlinedb.suppdepts on new { detail.clientid, detail.categoryid } equals new { suppdepp.clientid, suppdepp.categoryid }

java - Single Jenkins instance using multiple Sonar instances -

is possible configure jenkins use multiple sonar instances? currently using 1 sonar instance legacy projects (java 6) , new sonar instance java 8 yes, in manage jenkins > configure system can add many sonarqube installations want in sonar section. when configure job perform sonar analysis can select instance want use drop down list.

maven - How to import / reference a gradle application in android application using command line (ant) -

i using android command line tool (ant , adb) manage application. as project has no "gradle" specifications, wondering how import following gradle library (android google datepicker). https://github.com/flavienlaurent/datetimepicker the files found @ root of application are $ ls androidmanifest.xml build.xml local.properties res ant.properties gen proguard-project.txt src bin libs project.properties i use following commands build , install application $ ant debug $ adb install -r <path apk>

android - RecyclerView with nested RecyclerView - make nested RecyclerView clickable as a whole view -

i use recyclerview shows list of entries. each entry hosts recyclerview list of images. i want make nested recyclerview clickable, not items of it, whole view. how can achieve that? problem: setting onclicklistener main view of nested recyclerview work, if click outside recyclerview itself clicking on nested recyclerview not hand on clicks parent view (i tried set clickable, focusable, focusableintouch false, still, touch not delegated consumed nested recyclerview... here's view wrapping adapter: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.cardview xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" card_view:cardcornerradius="0dp" android:layout_margin="5dp" android:foreground="?androi

Java Swing Access Class Variables From Button -

so in java swing application, need button actionlistener able access variables outside of scope so: int x = 13; jbutton btn = new jbutton("new button"); btn.addactionlistener(new actionlistener() { public void actionperformed(actionevent e) { system.out.println(x); } }); but variable out of scope error. how can access it? the action listener anonymous inner class. means can use final variables outer scope. so, either declare x final or pass class other way. this should work: final int x = 13; jbutton btn = new jbutton("new button"); btn.addactionlistener(new actionlistener() { public void actionperformed(actionevent e) { system.out.println(x); } }); alternatively, see pass variables actionlistener in java other options.

objective c - Watchkit presentAudioRecordingControllerWithOutputURL completion block issue -

i'm trying satisfy arguments function below bring audio recorder. believe issue completion block. error given in debug : presentaudiorecordingcontrollerwithoutputurl:preset:maximumduration:actiontitle:completion: requires non-null url , completion block nsbundle* mybundle = [nsbundle mainbundle]; nsurl* recording = [mybundle urlforresource:@"recording" withextension:@"mp4"]; [self presentaudiorecordingcontrollerwithoutputurl:recording preset:wkaudiorecordingpresetwidebandspeech maximumduration:5000 actiontitle:@"recording" completion:^(bool didsave, nserror *error) { if (error != nil) { nslog(@"error: %@",error);

angularjs - Computing values based on multiple fields using Angular JS -

i'm attempting compute value of multiple fields using angular js (keep in mind, never used angular before, , thought problem i'm attempting solve). so, have page multiple products. each product has associated id, price, upc, etc. idea is, select quantity , total calculated you go. hence, thought using angular data-binding technique work this. here's have far... html <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>multiple products – total calculation</title> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script> <script src="custom.js"></script> </head> <body> <div class="main" ng-app="wholesaleapp" ng-controller="itemlistcontroller"> <div data-alert class="alert-box success"> <b>total:</b> <input type=&q

c# - Cast StringCollection as List<int> -

this question has answer here: how convert list<string> list<int>? 7 answers i have stringcollection object being passed through reportparameter object, , need list<int> instead. so far, i've tried this list<int> ids = (parameters != null) ? parameters[parameters.findindex(x => x.name == "ids")].values.cast<int>().tolist() : null; which should check if parameters object null, , if not finds index of ids parameter, , tries cast values list of ints. keep getting cast not valid error. how go converting stringcollection list<int> ? they string values, can't cast string int . need convert/parse like: parameters[parameters.findindex(x => x.name == "ids")].values .cast<string>() //so linq applied .select(int.parse)

Is it possible to display a specific block from a template in django? -

just in html when reference section of page instance <a href="#tips">visit useful tips section</a> there way similar thing in django if instance wanted load page straight tips section? extending base.html home page has tips section. right have static url <a href="some url/#tips">home</a> want exact same djangos dynamic url {% url 'home'/#tips %} you can add fragment identifier right after url returned {% url %} template tag: <a href="{% url 'home' %}#tips">home</a>

java - Whenever I try to run Tomcat with Jersey, it refuses to load -

basically trying create simple hello world program using rational software architect. create server use tomcat , jersey. found when create server without putting jersey jar files web-inf/lib rather create custom user library jar files, tomcat compile fine url not load "hello world" text, 404 error. simple http://localhost:8080/ project name /rest/ class path name , nothing come up. think because don't have jersey files in web-inf/lib when put jersey jar files in folder , try run tomcat server, "server tomcat v7.0 server @ localhost failed start." error. please me out , in advance. jun 10, 2015 12:56:28 pm org.apache.tomcat.util.digester.setpropertiesrule begin warning: [setpropertiesrule]{server/service/engine/host/context} setting property 'source' 'org.eclipse.jst.jee.server:resthello' did not find matching property. jun 10, 2015 12:56:28 pm org.apache.catalina.startup.versionloggerlistener log info: server version: apache

c# - How do you save selected ComboBox items into a .txt file -

hi i'm new programming , trying create c# grade calculator using wpf users enter grades , remove 2 of lowest grades , tell them overall grade, have got part working save selected grade comboboxes txt file , maybe able load txt file grade calculator again. here code have far <window x:class="gradecalculator.mainwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="grade calculator" height="779.736" width="952"> <grid> <grid.background> <lineargradientbrush endpoint="0.5,1" startpoint="0.5,0"> <gradientstop color="white" offset="1"/> <gradientstop color="#ffaef7f7"/> <gradientstop color="#ffd0fafa" offset="0.49"/> </lineargradientbrush> </grid.bac