Posts

c# - Visual Studio: Opening a solution on a different machine loses already opened files -

visual studio 2013 sp2 (all versions share same problem). if reopen solution in visual studio on same machine, ide has persistence, namely was, when exited vs. see same files open , in same order. if go different machine , open same file (say solution saved in cloud, on flash drive, or on central server inclusive of user based temporary files), presented clean interface. basically, there no files open. in clean, no trace of previous settings. as mentioned, suo , other user specific files saved locally moved. question: there way visual studio open project on new machine continue left off , not have open files again?

Javascript Object: Map of Functions. How to return default value -

sorry title of question, don't found better one. introduction my goal create object, , associate every params function. simple! var canidothis = { one: function(a, b, c){}, two: function(a){}, three: function(){} } i want call canidothis in way if(canidothis['one'](x, y, z)) { // somthing } if(canidothis['two'](w)) { // somthing } if(canidothis['three']()) { // somthing } if have var can "one", "two" or "three" can use canidothis in way // myvariable can equalso "one" or "two" or "three" var myvarable; if(canidothis[myvarable]()) { // somthing } my problem i'd manage myvarable value. if call canidothis['four']() uncaught typeerror: undefined not function my question is there way prevent default behaviour of uncaught typeerror , return default value? cute if canidothis['four']() interpretated false or undefined ...

Continuous Delivery for FUSE OSS and Github -

i set continuous delivery cycle open source application. based on linux's filesystem in userspace (fuse). tried set on cloudbees' jenkins , provided decent free accounts, did not have root access, problematic project has many dependencies. went on use travis ci , works great testing internal apis, since have root access install dependencies. not support fuse , cannot run tests on filesystem directly. according experience travis ci, continuous delivery approach prevent many bugs being released , identify problems more quickly. is there service similar travis ci, integrates github, allows root access, , supports fuse? [edit] vi. suggests run user mode linux on travis-ci machine, emulate fuse. summarize progress achieved vi.s help: for setting uml more memory, network access , access file system execute: /usr/bin/linux.uml init=script_to_run.sh rootfstype=hostfs rw eth0=slirp mem=2g inside user script, call: # enable fuse module. insmod /usr/lib/uml/modules/`una...

asp.net - DateTime format not match to expected format in SQL SERVER 2012 -

after hours of searching solution problem ask best answer : building project in asp.net 2013 , date datetimepicker (jquery script) set format - dd/mm/yy , convert datetime object in c# format in c# : dd/mm/yyyy hh:mm:ss , send function insert sql server databse expected mm/dd/yyyy hh:mm:ss format insert faild , throw error - the conversion of varchar data type datetime data type resulted in out-of-range value. hope quick solving problem ! thanks, shaul.

ios - Disabling a control with Pixate Freestyle -

i have uibutton following css button { size: 50 100; color: #ff0000; } but want disable button based on style maybe: button { size: 50 100; color: #ff0000; enabled: true; } does know how accomplish or add extension method enable this? i don't think there enabled or disabled pseudo-classes available uibutton . potentially instead detect button state , assign styleclass dynamically this: #import <pixatefreestyle/pixatefreestyle.h> uibutton *button = [uibutton new]; if(button.enabled){ button.styleclass = @"mybutton"; }else{ button.styleclass = @"mybuttondisabled"; } ...and css be: .mybutton { /* default button styles */ } .mybuttondisabled { /* disabled button styles */ } i hope helps. luck.

asp.net - .NET Localization Satellite Assemblies -

we have website project being localized 30+ languages. the project split pll, bll & dal. we have on hundred .resx files located in various different folders in base language (english). we use separate system localization spits out language files in correct format/directory automatically. once finished there thousands of files import visual studio project! this become nightmare manage :( is there way compile localized files separately satellite assemblies , copy them project later? i want work english files in main vs project , not see localized files. you can create project houses localized resource files - build these satellite assemblies , copy them main project. for example: create new project in existing solution eg: myapp.localized then change assembly name match name of main application (myapp) , change default namespace (c#) or root namespace (visual basic) match default or root namespace of main application (myapp). now when build myapp.l...

what is wrong with this code of nltk python -

def ethos(file): f = open(file) raw = f.read() tokens = nltk.word_tokenize(raw) words_to_match = ['love' , 'good' , 'excellent' , 'perfect' , 'brilliant' , 'easy' , 'well' , 'made' , 'impressive' , 'great'] matching_tokens = [] tokens in tokens: if tokens in words_to_match: matching_tokens.append(tokens) return matching_tokens i not able understand why code not able return list, returning 1 token/word, after execution your return statement in loop, means function returns tokens in words_to_match true. correct problem, move return out of loop, this: (for simplicity removed part of opening file. it's test. you'll have let method read file) import nltk def ethos(): raw = 'i love made products' tokens = nltk.word_tokenize(raw) words_to_match = ['love' , 'good' , 'excellent' , 'per...