Posts

Showing posts from June, 2010

Java Generic List Template -

i created listprinter (main class) , listholder class. i taught how create generic arrayholder trying modify (my homework) list holder. my teacher's array printer code is: public class arrayholder <p> { p arr[]; public void print(p arr2[],int count) { arr = arr2; (int = 0; < count; i++) { system.out.print("\n"+arr[i]+"\n"); }// end }// end print method }// end class. i used template listholder keep getting error in sout line: public class listholder <x> { x list ; public void print (x list2, int count) { list= list2; (int = 0; < count; i++) { system.out.print(list2(i)+"\n"); } } // end print } //end class what doing wrong??? ========== kaykay it still giving me errors :( copied , pasted answer. first error on line: list list; first list underlined , error is: cannot find symbol...

Bengali Calender JQuery Datepicker Localization -

hi have been working bengali language in multilingual website, , when language set english need show jquery datepicker calender in english, , bengali need show in bengali. i have used jquery datepicker localization. i have gone through tutorial , process accomplished part of it. can show january, february etc. sat, sun etc in english , bengali . while in bengali, digit remains in english. so, question is, there way out can change digit 0-9 in bengali digit ? jquery(function($){ $.datepicker.regional['bn-bd'] = {"name":"bn-bd","closetext":"close","prevtext":"prev","nexttext":"next","currenttext":"today","monthnames":["জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর",...

c# - WPF / XAML - Cannot get DevExpress tiles to work in unisn -

i'm trying have cool tile feature in app can move tile want in position ans , 1 don't want snaps in place instead of navigating , fourth page page. have them on screeen dont want freakin cooperate. in xaml code , should writing c# method in order make them work right. please i've been night fooling this. <window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dxui="http://schemas.devexpress.com/winfx/2008/xaml/windowsui" xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" xmlns:ig="http://schemas.infragis...

Powershell outputs Directory paths differently sometimes -

i'm using ls find directories convention. works in finds them, i'm piping results other functions. depending on way 'ls' (aka: dir ) called. why happening? c:\tmp40d4> ls *_pkg -recurse | %{"$_"} c:\tmp40d4\sub\a_pkg c:\tmp40d4\sub\b_pkg c:\tmp40d4\sub\c_pkg c:\tmp40d4> ls sub *_pkg -recurse | %{"$_"} a_pkg b_pkg c_pkg both results list of directoryinfo instances. c:\tmp40d4> ls sub *_pkg -recurse | %{$_.gettype()} ispublic isserial name basetype -------- -------- ---- -------- true true directoryinfo system.io.filesysteminfo true true directoryinfo system.io.filesysteminfo true true directoryinfo system.io.filesysteminfo as turns out, directoryinfo instances provided alternative calls ls result in different directoryinfo instances. specifi...

django - call variable from method inside the method -

having 2 views views.py def followup(request): '''''' marklist = report_template(request) return render(request, 'incident/followup.html',{'somevar':somevar}) def report_template(request): ''''' report=report.objects.filter(report=report_id) '''''' return render(request, 'incident/print.html', {'report':report}) i calling 1 method inside method.calling report_template method followup method.followup method have variable render in template. how pass variable of report_template method followup method , make display in template. thanks one way achieve create helper method returns report or context needed both methods. issue here returning httpresponse object, , cleanest use helper method here: def get_report(request): report=report.objects.filter(report=report_id) #do more processing here. #returning dict safest ...

Java: Does nu.xom.Builder properly close Files? -

i using nu.xom.* project, link found @ http://www.xom.nu/ . question following part of code: private void open() { builder = new builder(); try { document = builder.build(file); } catch (parsingexception | ioexception ex) { logger.getlogger(invoicedata.class.getname()).log(level.severe, null, ex); } } i have unwanted file locks in program , practically checking places open file. struck me here builder.build(file file) implement closeable , myself not sure here whether closes file or not. can shed light on this? regards. fortunately xom library open source, can take @ source code of nu.xom.builder.build(file) : public document build(file in) throws parsingexception, validityexception, ioexception { inputstream fin = new fileinputstream(in); // [...] string base = url.tostring(); try { document doc = build(fin, base); return doc; } { fin.close(); } } so pass file insta...

c# 4.0 - Entity Framework non generic Include on dynamic ObjectSet -

i've ran problem while creating data access layer application. working derived entities in entity framework. if try create objectset derived entity, exception: blockquote there no entitysets defined specified entity type 'type name'. if 'type name' derived type, use base type instead. i've tried resolve problem via reflection. (if entity type derived entity type => objectset base type) i found this: how can obtain objectset<t> entity-framework @ runtime t dynamic? haven't found how use include , on built objectset. protected ienumerable<idataobject> getdata(type entitytype, expression<func<dynamic, bool>> whereclause, expression<func<dynamic, dynamic>>[] includes) { if (typeof(idataobject).isassignablefrom(entitytype.basetype)) { return getdata(entitytype.basetype, whereclause, includes); } var contexttype = this.context.gettype(); methodinfo crea...

spring - org.xml.sax.SAXParseException ... no declaration can be found for element 'context:component-scan' -

i have eclipse-maven-spring project , applicationcontext.xml in it. is: <?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:security="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/security/spring-security-3.1.xsd"> <description>soapclient1</description> <context:component-scan base-package="hu.bz.ikti.soap.test"/> ... </beans> when xml parsed following error: exception in thread "main" org.springframework.beans.factory.xml.xmlbeandefinitio...

r - Using specifyModel from quantmod package within a loop -

i trying replicate stock prediction case study data mining r book, , trying place of code within loop can deal more 1 stock. however, cannot figure out how specifymodel function work within loop. want calculate number of technical indicators each stock, , use random forest select useful ones. below example code. library(quantmod) # list of stocks want investigate stock.symbols = c("mmm", "ibm") # download daily stock prices global environment getsymbols(stock.symbols, src = "yahoo", quotes = c("open", "high", "low", "close", "volume", "adjusted"), = "2011-01-01", = "2012-01-01") # "custom" indicator functions myaroon = function(x) aroon(cl(x))[,1] myadx = function(x) adx(hlc=x)[,4] # try create quantmod model each stock for(i in stock.symbols) { my.model = specifymodel(cl(mmm) ~ myaroon(mmm) + myadx(mmm)) # line works - looks mmm in global environment...

Android socket to trace location on google map -

i trying make server program android phone receive location client program written in c. client program sitting on beagle board , fetching location gps device. problem dont have idea android programming or java programming???. please me out. need guidance , support. the solution problem simple , easy understand : have learn how use java , android sdk. nothing more say. can start here : http://developer.android.com/training/index.html

Bing maps rest service get full addresses from postcode -

i wondering if there functionality in bing maps api allows specify postcode , returns possible addresses within postcode area? for example, on sites when entering address, have option specify postcode , click button find address. typically produce dropdown list of possible addresses found @ postcode. there no functionality in bing maps. closest thing able geocode postal code , reverse geocode bunch of points in surrounding area until stop getting addresses same postal code. slow , generate lot of transactions against bing maps account. can find code sample of how reverse geocode on area here: http://rbrundritt.wordpress.com/2010/01/09/reverse-geocoding-over-a-search-area/

version control - How to maintain a small repository of bash/python scripts -

for past several years, i've been making small (single file, 1-500 line) scripts (mostly bash & python) automate random tasks (usually scientific data analysis). of these end being one-offs, want go , revisit/change something, or end rather unwieldy script benefit sort of version control. should note of these scripts done solely on own, , don't need share-able. which type of versioning (svn,cvs,git,mercurial..) has simplest command structure/syntax use case? more importantly, machines connect behind rather finicky kerberos walls, i'm not looking sophisticated server-based implementation. i found this thread 2010 asking similar question, though didn't talk specific options, whether or not should using single repository. in short, versioning system allows simple same-directory approach minimal bells & whistles (only checkouts , commits needed)? should set sort of subversion/cvs/git repository , throw in? yes. for use-case, suppose, svn...

Displaying special extended characters with PHP -

so i've been working on couple hours , i'm close keep getting stuck on these special characters. my client type foundry. majority of fonts have extended characters. requirement upload 1 otf file per each font, convert eot, woff, etc... allow font downloaded , purchased. i've done of , noticed when conversion fontforge, creates .afm file appears adobe file. after poking , prodding, afm file contains list of characters in font. awesome! now i'm trying embed otf file in page display characters comes , can't figure out character encoding use. a sample of afm file: c 251 ; wx 965 ; n ucircumflex ; b 90 -10 869 691 ; c 252 ; wx 965 ; n udieresis ; b 90 -10 869 675 ; c 253 ; wx 856 ; n yacute ; b 11 -182 845 678 ; c 254 ; wx 947 ; n thorn ; b 96 -172 899 668 ; c 255 ; wx 856 ; n ydieresis ; b 11 -182 845 675 ; c -1 ; wx 1090 ; n amacron ; b 0 0 1090 820 ; c -1 ; wx 927 ; n amacron ; b 65 0 861 655 ; c -1 ; wx 1090 ; n abreve ; b 0 0 1090 851 ; c -1 ; wx 927...

java - Skip integration tests in maven by directory -

our project structure looks (sorry formatting): server/ pom.xml src/ main/ java/ test/ java/ it/ java/ i mvn clean test skip tests in it/java regardless of name of test. solutions have seen depend on integration tests being in different package or having prefix on name indicate integration tests. is there way exclude it/java running when run mvn clean test ? want able run integration tests running mvn integration-test. your best best make multi-module project, , in module skip tests based on different maven properties. allow flexibility you're looking for.

c# - Determine Client version of Application on Startup -

problem: we have c# application, .net 3.5 updated manually on client computers. don't ask, can't one-click deploys. when new build created , client has not been updated, alert client (on start-up) application out of date , new build must obtained before proceeding. i interested in approaches others may have used solve same problem (restricting clients using old builds) thanks - glenn you need create web service return current application version. service must installed available clients call. then need add call service , check running application version against version service.

liferay - How to retrieve all the Groups/Roles a user is member of using SOAP services? -

i trying collect user informations using soap services. i able job title given user, don't understand how retrieve list of groups , roles user has. can use groupservicesoap.getuserplaces(long userid, string[] classnames, int max) method? or there way can these fields? currently code: private static url _geturl(string remoteuser, string password, string servicename) { final string liferay_protocol = "http://"; final string liferay_tcp_port = "8080"; final string liferay_fqdn = "localhost"; final string liferay_axis_path = "/api/secure/axis/"; try { return new url(liferay_protocol + urlencoder.encode(remoteuser, "utf-8") + ":" + urlencoder.encode(password, "utf-8") + "@" + liferay_fqdn + ":" + liferay_tcp_port + liferay_axis_path + servicename); } catch (malformedurlexception e) { return null; ...

HTML5 Microdata format for location and temperature? -

what semantic way mark location , temperature? thinking of html5 microdata didn't come across appropriate. for example: new york, ny 100° there format locations http://schema.org/place , don't think there 1 temperature, weather event , use this. <div itemprop="event" itemscope itemtype="http://schema.org/event"> <span itemprop="location">new york ny, us</span> <meta itemprop="startdate" content="2011-05-23">may 23 <span itemprop="name">100&deg;</span> </div> example: http://jsfiddle.net/jbjku/ more info here: http://schema.org/event

php - Loop through array that might be multi dimensional -

i might have following array() array([ 0 ]=>array([ part_id ]=>6[ part_user_id ]=>2[ part_department ]=>3[ part_category ]=>1[ part_subcategory ]=>1[ part_name ]=>sparepart[ part_qty ]=>1[ part_condition ]=>new[ part_description ]=>thisisadescription[ part_image ]=>images/parts/default.jpg)[ 1 ]=>array([ part_id ]=>7[ part_user_id ]=>2[ part_department ]=>3[ part_category ]=>1[ part_subcategory ]=>1[ part_name ]=>sparepart[ part_qty ]=>1[ part_condition ]=>new[ part_description ]=>thisisadescription[ part_image ]=>images/parts/default.jpg)) from data have got mysql, same query might return more 1 row receive array() array([ part_id ]=>7[ part_user_id ]=>2[ part_department ]=>3[ part_category ]=>1[ part_subcategory ]=>1[ part_name ]=>sparepart[ part_qty ]=>1[ part_condition...

c# - Deleting Rows in a Database Table -

what's easiest way delete rows in database table using entity framework 6? i pulled down ef6 via nuget , have been able query rows db. however, not seem have access context.<entity>.delete() or context.<entity>.deleteobject() methods, shown examples online. got working. var query = <linq query>; context.<entity>.removerange(query); context.savechanges();

r - ggplot2 : How to write mean value as text on a plot? -

Image
i have following dataframe : my.data=read.table(text=" values tag class 1 100.0000000 x3 cs 2 100.0000000 x5 cs 3 54.2370601 x7 cs 4 63.4813701 x7 cs 5 51.0402580 x7 cs 6 60.1430236 x7 cs 7 70.3939619 x7 cs 8 56.5981165 x7 cs 9 75.4148038 x7 cs 10 88.2687052 x7 cs 11 70.9697583 x7 cs 12 54.2014007 x7 cs 13 63.4325244 x7 cs 14 51.0086771 x7 cs 15 60.1034812 x7 cs 16 70.3397973 x7 cs 17 56.5630966 x7 cs 18 75.3652206 x7 cs 19 88.2007869 x7 cs 20 70.9258461 x7 cs 21 38.6325912 x9 cs 22 27.7455102 x9 cs 23 21.1778773 x9 cs 24 100.0000000 x9 cs 25 73.0803007 x9 cs 26 55.7814809 x9 cs 27 85.8614803 x9 cs 28 38.5666461 x9 cs 29 27.7114796 x9 cs 30 21.1580450 x9 cs 31 72.9906659 x9 cs 32 55.7292434 x9 cs 33 85.7810739 x9 cs 34 0.0000000 ...

c# - XML - Check for existence of a specific node -

i don't know why i'm having trouble this, i'm hoping can me pointed in right direction. i have these few lines of code : var xdoc = new xmldocument(); xdoc.loadxml(xelementvar.tostring()); if (xdoc.childnodes[0].haschildnodes) { (int = 0; < xdoc.childnodes[0].childnodes.count; i++) { var sformatid = xdoc.childnodes[0].childnodes[i].attributes["formatid"].value; // stuff } // more stuff } the problem xdoc i'm getting doesn't have formatid node, end getting null reference exception, although 99% of time works fine. my question : how can check if formatid node exists before try read value out of it? if node not exist, returns null. if (xdoc.childnodes[0].childnode[i].attributes["formatid"] != null) sformatid = xdoc.childnodes[0].childnodes[i].attributes["formatid"].value; of can shortcut way var sformatid = xdoc.childnodes[0].childnodes[i].attributes["formatid...

Reversing database changes in Neo4J -

i'm developing wiki application using neo4j database. wondering is/are correct(s) procedure(s) track users edits topics mods can reverse them when needed. i thinking saving every modified node before every change , keeping old versions couple of weeks or so, doesn't seem fast/efficient procedure. it doesn't seem efficient method, it's method. can improve upon bit, have store old data somewhere. attach transaction handler database. whenever transaction committed, collect properties changed/removed , store them somewhere. storing modified properties, you'll save bit of space. store them in db, that's entirely you. you use incremental backup feature, requires enterprise edition of neo4j. (which better option if possible.) edit: transaction handler can found here . implement interface, register database using registertransactioneventhandler method in graphdatabaseservice. code called every time transaction committed (and since neo4j requires chan...

asp.net - Ninject with ActionFilters and SignalR -

i have mvc3 based web service uses ninject manage action filters, works fine. having implement signalr hub mix , ideally want re-use existing action filters on these new hubs if possible. one of important filters cookieauthentication filter, checks given request contains right authentication cookie, if cookie not present or valid sets filtercontext.result object custom unauthorisedresult object. in example able use functionality signalr knowledge has no idea action results not sure if automatically cancel requests etc. i have tried googling cannot find info on topic, assume cannot intermingle them both frameworks share underlying asp framework not mvc framework. you can't. actionfilters mvc , don't run when using signalr. common ground (as realize) asp.net itself. means can write httpmodule not action filter. you can learn more signalr security here: http://www.asp.net/signalr/overview/security

How to change value of element via JavaScript with Selenium webdriver .NET -

i'm trying test popup page chrome webdriver , selenium2 using .net, i'm having issues. need change value of element after it's window pops up. need chage default "selectedindexes":["1"]" "selectedindexes":["0"]" the element is: <input id="tstabs_clientstate" name="tstabs_clientstate" type="hidden" autocomplete="off" value="{"selectedindexes":["1"], "logentries":[], "scrollstate":{}}"> my code follows: (i've tried both below listed executescript lines) dim chromedriver = new chromedriver("c:\clearcase\projects\cms\vbsetest") try 'chrome test chromedriver.navigate().gotourl("http://localhost/cms/<location>.aspx") dim queryc iwebelement = chromedriver.findelement(by.id("ctl00_cphm_grd_ctl00_ctl02_ctl00_aci_btninitinsert")) queryc.click() ...

javascript - Changing Highcharts font size -

i'm looking @ using highcharts webpage, specifically: http://www.highcharts.com/demo/column-basic/dark-green however, font sizes small. i've tried adding: legend: { itemstyle: { color: '#000000', fontweight: 'bold', fontsize: '15px' } to js file site provided doesn't result in font size change. additionally increase size of key (where states tokyo, new york, london, berlin). first time using highcharts , i've been doing research couple hours , can't seem find answer. appreciated! for legend font size, code working perfect. here working demo . and x-axis , y-axis,put font size in (x-axis/y-axis)->labels->style object: here sample : xaxis: { categories: ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'], labels...

.htaccess - Apache supposedly ignoring htaccess directive? -

i have following in .htaccess file: rewritecond %{request_filename} -f [or] rewritecond %{request_filename} -l [or] rewritecond %{request_filename} -d rewriterule ^.*$ - [nc,l] rewritecond %{request_filename} !admin\.php$ rewritecond %{request_filename} \.php$ rewriterule ^.*$ - [g] rewriterule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [nc,l] rewriterule ^.*$ index.php [nc,l] what should do, if file valid file nothing should happen (the file should processed normally) - works. next, if file has .php extension, isn't admin.php, should return 410 gone status. doesn't work - goes next directives, , second block ignored. example url: http://<my site>/file.php - doesn't return 410, goes last directive. why happening? (also, don't think stackoverflow site question, couldn't think of :/) edit: should point out works fine on windows localhost, not on live linux server. edit2: still doesn't work on live box dot...

objective c - Returning custom description and debugDescription values for mock objects -

i use ocmock excellent ochamcrest matchers. encounter test failure messages aren't helpful be. because ochamcrest output relies heavily on value returned "description" method of objects ocmockobject's default description implementation generic. is there recommended way have mock objects return custom description? i've tried stubbing "description" method on mock objects doesn't seem work. as workaround i've created occlassmockobject+description category extension adds setmockdescription: method, i'm hoping there's more officially supported solution. (if not, maybe i'll polish mine , submit pull request.) here examples of of results i'd improve... example assertion #1 assertthat(recommendedsong, is(mocksong1)); failure message: expected <ocmockobject[songbar]>, <ocmockobject[songbar]> example assertion #2 assertthat(playlist.songs, contains(mocksong1, mocksong2, nil)); failure message: expec...

xml parsing - LuaXML parse the XML with multiple tags with the same name -

i'm trying parse data xml files like <level> <bg>details1</bg> <bg>details2</bg> </level> with xml.find(bg) can details 1 out. it's because xml.find returns first (sub-)table matches search condition or nil. if want read both bg out. how achieve in luaxml? or please introduce other lua xml library works. addons real scenario this <a> <b> <level> <bg>details1</bg> </level> <level> <bg>details2</bg> </level> </b> </a> i know need whole b object out , use xml.tag read level out. attempts fail. me on code? i solution based on mike corcoran's suggestion. require 'luaxml' local text = [[ <a> <bcde> <level> <bg>details1</bg> </level> <level> <bg>details2</bg> </level> </bcde> </a> ]] local txml = ...

python - Open a new tab in background on chrome, firefox and ie -

i wonder how call python in new tab in main browsers chrome, firefox , ie, have open tab in background. same should not open face of user, in background. any idea? thank in advance help! you use mozmill firefox, so: controller.rootelement.keypress('t', {'ctrlkey':true}); here documents mozmill .

ruby on rails - Devise multiple users - uninitialized constant UserRegistrationsController -

i relatively new rails , trying set multiple user types devise (borrowers , lenders). followed tutorial multiple user models ruby on rails , devise have separate registration routes 1 common login route but keep coming error "uninitialized constant userregistrationscontroller". here code have updated basic devise , locations (some of these moved/created based on understanding of tutorial may wrong): in: app/controllers/users/registrations_controller.rb class userregistrationscontroller < devise::registrationscontroller def create build_resource # customized code begin # crate new child instance depending on given user type user_type = params[:user][:user_type] resource.rolable = child_class.new(params[child_class.to_s.underscore.to_sym]) # first check if child instance valid # cause if , parent instance valid # it's being saved @ once valid = resource.valid? valid = resource.rolable.valid? && valid # customized code end if valid && reso...

inheritance - C#, reflection, inheritence and static fields? -

i have family of classes inherit abstract superclass, implemented 2 concrete classes: public abstract class abstractfoo { protected static string fooname = "reset me!"; public static string getname() { return fooname; } } the subclasses constructed like public class barfoo : abstractfoo { static barfoo() { fooname = "pretty name barfoo"; } } and forth. i want list of abstractfoo implementations' pretty names user can decide implementation use. my reflection code looks like type footype = typeof(abstractfoo); list<assembly> assemblies = new list<assembly>(appdomain.currentdomain.getassemblies()); ienumerable<type> alltypes = assemblies.selectmany<assembly, type>(s => s.gettypes()); ienumerable<type> footypes = alltypes.where(p => p.issubclassof (footype)); foreach (type thistype in footypes) { methodinfo method = thistype.getmethod ("getna...

php - fatal error: Destructor cannot take arguments -

i'am newbie in programming... try call webservice android. have fatal error there. 1.this android coding public class userfunction { private jsonparser jsonparser; private static string loginurl="http://10.0.2.2/android/include/index.php"; private static string registerurl="http://10.0.2.2/android/include/index.php"; private static string login_tag="login"; private static string register_tag="register"; public userfunction(){ jsonparser=new jsonparser(); } public jsonobject loginuser(string email, string password){ //building parameter list<namevaluepair> params= new arraylist<namevaluepair>(); params.add(new basicnamevaluepair("tag", login_tag)); params.add(new basicnamevaluepair("email", email)); params.add(new basicnamevaluepair("password", password)); jsonobject json=jsonparser.getjsonfromurl(log...

java - JPA cascade all causing integrity constraint -

i have 3 tables employee, boss, , address. employee , boss in case share same address. when call entitymanager.remove on employee integrity constraint exception because tries delete address can't because boss still needs it. if no 1 using address though want removed. should annotations can delete orphans address avoid integrity constraint? exception = internal exception: java.sql.sqlintegrityconstraintviolationexception: delete on table 'employee' caused violation of foreign key constraint 'boss.... code = public class employee { @onetomany(targetentity = address.class, orphanremoval = true,cascade = { cascadetype.all } fetch=fetchtype.eager) @jointable(name = "employee_address") @xmlelement(required = true) @ordercolumn protected list<address> addresses; } public class boss { @onetomany(targetentity = address.class, orphanremoval = true, cascade = { cascadetype.all }fetch=fetchtype.eager) @jointable(name = "boss_addres...

Cordova-CLI & PhoneGap-CLI do not see android sdk -

i've created app " phonegap create " command. switch project dir , try run " phonegap local run android " , have next error message: please install android target 17 <...> android sdk placed c:\dev\sdk path variable contains c:\dev\sdk; c:\div\sdk\platforms\;c:\dev\sdk\platform-tools run " android " command cmd , sdk manager shows no updates or no missed sdk files. tried create , run project cordova cli had same problem. can be? it seems latest cordova (3.0.6), cordova platform add android command recognize android 4.2.2(api17) sdk. after install api17 sdk, error gone. not sure if there cordova command option can specify sdk version.

php - PHPSESSID changes in every request ONLY under one internet connection -

after 1 day of extensive research on internet, still can't figure out one. happening phpsessid in cookie isn't persisting 1 page another. this happening in computers under 1 internet connection in specific place. i've tested several others machines located elsewhere , works fine. i've checked session_start, there's no problem subdomains. i hope can me out. things check: is time (and time zone!) set correctly on computers? if it's set incorrectly, may discarding session cookies prematurely (possibly immediately). is odd security or "privacy" software installed on computers? if possible, check if issue persists under browser on machines. are these computers behind sort of web proxy? if so, may meddling cookies.

asp.net - Identity Server v2 Multiple Origin Login -

i'm running thinktecture identityserver v2 1 relying party in development environment (windows 7 professional visual studio 2012). my relying party (www.myprotectedcustomersite.com) asp.net framework 4 web site using wif federation. this works fine. when attempt access www.myprotectedcustomersite.com redirected identityserver login , when authenticated redirected www.myprotectedcustomersite.com. my problem is, have site (www.mycompanyfrontdoorsite.com) users need able login (on home page) , authenticate redirect www.myprotectedcustomersite.com via identityserver. of users enter www.myprotectedcustomersite.com way. i'm not sure how configure this. have done research , have not been able find solution problem. i'm trying accomplish without making significant changes identityserver. i hope can help. sounds each of needs separate rp configured in sts. if/when rp1 wants send user rp2, can redirect. once land on rp2, trigger authentication sts , still log...

excel - Nesting "and" statements with "or" statements -

this line of code gives me: error 13: type mismatch how combine "nd" statent in "or"? ex: if or b or c or (d , e) or (f , g) here code if (cell.value) = "ftv1" _ or (cell.value) = "ftv2" _ or (cell.value) = "ftv3" _ or (cell.value) = "ftv4" _ or (cell.value) = "ftv5" _ or (cell.value) = "istcr" _ or (cell.value) = "cast" _ or (cell.value) = "rig" _ or (cell.value) > 50000 , (cell.value) < 52000 _ or (cell.value) > 55000 , (cell.value) < 56000 thanks in advance enclose compound statements in brackets explain compiler how order logical statments... try this: if (cell.value) = "ftv1" _ or (cell.value) = "ftv2" _ or (cell.value) = "ftv3" _ or (cell.value) = "ftv4" _ or (cell.value) = "ftv5" _ ...

angularjs - ui-select2 problems with initSelection -

hi guys have problem when try move app use ui-select2. here old app use ui.directives: http://plnkr.co/edit/gyjnqu8mow1aykzvkr61?p=preview , when try remove old 0.4.0 angular-ui , move ui-select2 change on app module definition ui.directives ui.select2. here example: http://plnkr.co/edit/y9dl1lz0nfvbqrnyfsen?p=preview on second 1 not calling initselection select2. know can be?

html - Trying To Use A PHP Header with an IFrame -

i trying add blog website , decided create google blog , use full screen iframe display on page. works fine decided add websites header. have header followed iframe able treat header & iframe 1 single page. right header visible , can scroll through iframe header showing above not visibly pleasant experience. here code: <?php include("header.php"); ?> <html> <head> <style type="text/css"> body { margin: 0; overflow: hidden; } #iframe1 { height: 80%; left: 0px; position: absolute; top: 180px; width: 100%; } </style> </head> <body> <iframe id="iframe1" src="http://xxxx.blogspot.com/" frameborder="0"></iframe> </body> </html> here header code: <html xmlns="http://www.w3.org/1999/xht...