Posts

Add reference to same Nuget package but for different targets -

i have solution in visual studio 2013 more c# project files have source code in common targeting different platforms (.net, winrt, .net micro framework , on). csproj files under same directory. these projects use nuget package available above platforms itself. if add nuget package 1 of project (ex. .net), package.config file created , inside has reference target (ex. .net). package downloaded in packages folder. if try add same package different target project in solution, ui tells me package installed. it's true because package.config file there i'd have same package different target. so question following : how can add same nuget package different projects different targets ? thanks, paolo unfortunately, don't think nuget supports scenario. nuget expects packages.config file in same folder .csproj file. there should 1-to-1 relation between these files. should create separate folder each project rather keep .csproj files in same folder. if want s...

Difference between upvar 0 and upvar 1 in TCL -

can let me know difference between upvar 0 , upvar 1 in tcl, how can use in real time. kindly, if explain example, makes me more clear. when calling bunch of procedures, stack of stack frames. it's in name. might visualise so: abc 123 456 bcd 321 456 cde 654 321 ok, we've got abc calling bcd calling cde . simple. the 0 , 1 in upvar how many levels go stack when looking variable link to. 1 means go 1 level (i.e., caller of current frame), cde bcd in our example, 2 go cde abc , 3 way global evaluation level overall scripts , callbacks run. 0 special case of this; means lookup in current stack frame. there's ability use indexing base of stack putting # in front of name, #0 indicates global frame, #1 first thing calls. the common use of upvar upvar 1 (and if leave level out, that's does). upvar 0 used when want different (usually easier work with) name variable. next common 1 upvar #0 , though global more common shorth...

java - SocketTimedOut when connecting to https Url through CXF -

i facing problem cxf framework trying connect https backend service. since service out side of network using proxy connect. getting sockettimedoutexception when set readtimeout value 60000 default. when set timeout 0(infinite) gives connectionresetexception after while. wrote program on own used httpsurlconnection connect same service proxy , able work it. under feeling connection not happening later came know that have thrown connectexception rather socketexception. gave me relief , want know how can deal socketexception, both timeout , connection reset. please explain me whoever knows this. thanks, sachin you should blame on network or proxy, not codes. sockettimedoutexception , connectiontimedoutexception thrown when network blocked or weak. so, solution both exceptions smoothening network.

pom.xml - Error when building with maven: A required class was missing -

while build maven application(2.0.4). got following build error in pom.xml(eclipse): execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed: required class missing while executing org.apache.maven.plugins:maven-resources-plugin:2.6:resources: org/apache/maven/shared/filtering/mavenfilteringexception ----------------------------------------------------- realm = plugin>org.apache.maven.plugins:maven-resources-plugin:2.6 strategy = org.codehaus.plexus.classworlds.strategy.selffirststrategy urls[0] = file:/c:/users/nm28088/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.jar urls[1] = file:/c:/users/nm28088/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.jar urls[2] = file:/c:/users/nm28088/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar number of foreign imports: 1 import: entry[import realm classrealm[maven.api, parent: null]] -----------------------------...

windows - ValueError: [u'path'] error when trying to install pysftp in python -

i'm trying install pysftp-0.2.8 on 64 bit windows 7 system, use 32 bit python 2.7. have microsoft visual studio 2012 express installed. when run python setup.py install from command line, get: raise valueerror(str(list(result.keys()))) valueerror: [u'path'] i have tried setting visual studio 2012 (vs11): set vs90comntools=%vs110comntools% in command line, didn't help. when try install package, fails on pycrypto dependency. else appears install correctly. pycrypto requires visual c++ 9.0, according error message receive. instead of messing that, downloaded pre-made installer pycrypto here: http://www.voidspace.org.uk/python/modules.shtml#pycrypto once that's installed, should have required dependencies. able import pysftp after doing that.

c# - Windows Phone 8 region-neutral resource file from external assembly -

i have windows phone 8 app project , portable library project resources used in phone app. it's developed in visual studio 2013 ultimate. i try use region-neutral resource files (e.g. appresources.en.resx instead of appresources.en-gb.resx). if place region-neutral resource files in phone app project works fine. if place resource files in portable library project default resource file used application. if use region-specific naming (appresources.en-gb.resx) resources files in portable library project ok too. class access resources: public class localizedstrings { private static appresources _localizedresources = new appresources(); public appresources localizedresources { { return _localizedresources; } } } reference class in app.xaml: <application.resources> <res:localizedstrings xmlns:res="clr-namespace:project.phone.app;assembly=project.phone.app" x:key="localizedstrings"/> </application.resources> example ...

objective c - UIAppearance for UINavigationBar ios8 -

in application have implemented custom view in place of uinavigationbar. there 14-15 screens. repeatedly created top view fro each screen. so while surfing solution avoid repetition. came across concept of uiappearance. don't know how implement it. have gone through basic concept of still confuse. my top view bit different each screen. in 4-5 screens there 2 buttons(back button on left , call button right) 1 label in center. then in other 4-5 screens there 2 buttons(cancel button on left , call button on right) 1 label in center. then in other 2-3 screens there 2 buttons(side menu button on left , call button on right) 1 label , icon in center. can tell me how achieve using uiappearance? in advance! you can't set buttons via uiappearance. if setting titletextattributes on each page (for say, font, size , color), can via uinavigationbar appearance this: [[uinavigationbar appearance] settitletextattributes:attributes]; the attributes pointer nsdictionar...