Posts

Nuget sources update fails to update -

following nuget command line reference , update internal nuget source url new url. update fails. execute nuget sources output nuget.org [enabled] http://www.nuget.org/api/v2 internalfeed [enabled] http://oldserver:8888/nuget execute nuget sources update -name internalfeed -source http://newserver:8888/nuget package source "internalfeed" updated. nuget sources output nuget.org [enabled] http://www.nuget.org/api/v2 internalfeed [enabled] http://oldserver:8888/nuget expected output nuget.org [enabled] http://www.nuget.org/api/v2 internalfeed [enabled] http://newserver:8888/nuget actual output not match expected output. how can update internalfeed url? there file in root directory called nuget.config . file contained oldserver value. removed value nuget.config . update took after making said change.

keyboard down key not working if chosen dropdown height set -

i have set max height chosen dropdown using following code `.chosen-container .chosen-results { height:100px !important; }` but results in keybord down arrow key not working on press of down key scroll bar not reaches end please try setting max-height:100px instead of height.

java - Issues with javac compilation errors and Maven dependency resolution -

i'm "noob" when comes maven. i've used ant in past, not enough maven make "stick" me. here problem. i'm attempting write java program parse json files relevant information , generate csv files upload using proprietary tool uploads csv files. built project using maven. program use google gson library, listed dependency in pom file (included below). when execute "mvn compile", maven returns error indicating package maven should resolving via dependency management features doesn't exist. specific error: "error: package com.google.code.gson not exist" here pom file: <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.acumen.app</groupid> <artifactid...

ios - How can I access the array saved in the for loop? (objective c) -

-(void) queryrestuarantsname { nsmutablearray* restaurantnamearray = [[nsmutablearray alloc] init]; pfquery *query = [pfquery querywithclassname:@"menus"]; [query selectkeys: @[@"resturant", @"description", @"name"]]; query.limit = 1000000; [query findobjectsinbackgroundwithblock:^(nsarray *objects, nserror *error) { (pfobject *object in objects) { nsstring* restaurant = [object objectforkey: @"resturant"]; [restaurantnamearray addobject:restaurant]; } }]; } currently, outside of loop, restaurantnamearray said empty. however, in loop, has objects. how can access objects outside of loop? it asynchronous code. access restaurantnamearray before receiving results findobjectsinbackgroundwithblock return empty results. so processing of data in array should happen after findobjectsinbackgroundwithblock got results. expected following code work: [self queryrestuarantsname];...

android - manage fade in animation of listitems with onScrollStateChanged for a listview -

animate listview items fade-in animation, onscrollstatechanged , i have been trying out below code layoutanimationcontroller controller = animationutils.loadlayoutanimation( this, r.anim.anim2); getlistview().setlayoutanimation(controller); getlistview().setonscrolllistener(new onscrolllistener(){ public void onscroll(abslistview view, int firstvisibleitem, int visibleitemcount, int totalitemcount) { // todo auto-generated method stub } public void onscrollstatechanged(abslistview view, int scrollstate) { // todo auto-generated method stub if(scrollstate == 0) { layoutanimationcontroller controller = animationutils.loadlayoutanimation( mainactivity.this, r.anim.anim2); getlistview().setlayoutanimation(controller); } } }); } how works when load ...

Diagnosing proxy issue with python -

so trying work python 2.7 various things require pulling data internet. have not been successful, , looking diagnose doing wrong. firstly managed pip work by defining proxy so, pip install --proxy=http://username:password@someproxy.com:8080 numpy . hence python must capable of getting through it! however when came writing .py script same have had no success. tried using following code urllib2 first: import urllib2 uri = "http://www.python.org" http_proxy_server = "someproxyserver.com" http_proxy_port = "8080" http_proxy_realm = http_proxy_server http_proxy_user = "username" http_proxy_passwd = "password" # next line = "http://username:password@someproxyserver.com:8080" http_proxy_full_auth_string = "http://%s:%s@%s:%s" % (http_proxy_user, http_proxy_passwd, http_proxy_server, ...

escaping - Escape Characters Aren't Working In Debugger (C#) -

Image
i'm trying use escape characters print double quote. however, program throwing error i'm trying debug it. when add watch string using escape character shows backslash being included in string literal. how use escape characters \ doesn't become part of literal? you confused debugger's behavior. vs debugger show value escape character (ex: 4\" ) in watch section , on hovering but code use 4" in picture above, can notice it's shown escape character vs displays correctly in console.