Posts

C - Creation of an array of strings, help request -

C - Creation of an array of strings, help request - i'm having big problems while creating simple programme in c. i have next function: void createstrings (char *dictionary[], int *n) { int i; char word[20]; printf ("insert how many words use: "); scanf ("%d", &(*n)); // initialization (i = 0; < *n; i++) { dictionary[i] = '\0'; } // populating array words (i = 0; < *n; i++) { printf ("insert word in position %d: ", i); scanf("%s", word); dictionary[i] = word; } } in main read array of words populated using printf ("following words have been inserted:\n"); (i = 0; < n; i++) { printf ("dictionary[%d] = %s\n", i, dictionary[i]); } i'm pretty sure lastly cycle has been implemented well. when run programme , seek insert, example, 3 different words "one" "two" , "zero" next output: insert how many words use: 3 inse...

workflow foundation 4 - Where is ListenActivity activity? -

workflow foundation 4 - Where is ListenActivity activity? - i want workflow able respond activity generated host. can utilize receive activity wait external events, receive works (as far understand) in context of workflow web service. in workflow 1.0 (aka 3.5) there hear activity hear events host. i understand can woodoo bookmarks, there replacement old hear activity? or use old activity (form system.workflow) namespace? it's called pick activity. http://msdn.microsoft.com/en-us/library/dd807389.aspx. might improve source http://blogs.msdn.com/b/flow/archive/2009/12/31/event-driven-execution-in-net-4-0-with-the-pick-activity.aspx workflow-foundation-4

c# - Binding height, width, etc to a variable -

c# - Binding height, width, etc to a variable - i don't know if i'm not understanding i've found far, or if complex apply such simple thought seems. i'm trying bind button's height , width variables stored in user settings. can't seem work, or rather don't how to, in commands use. issue lies in not knowing set in binding field of xaml. if point guide involves this, explain appreciative. edit: i've solved problem of binding variable, saves user setting file when should. i'm having issue value stored in user setting beig overwritten every time programme loads default value. running through vs debug menu selection, suppose issue lie there, i've tried publishing , running , still getting same results. ideas? assuming 'user settings' mean built-in settings not custom implementation: see http://blogs.windowsclient.net/bragi/archive/2008/07/03/using-settings-in-wpf-or-how-to-store-retrieve-window-pos-and-loc.aspx illus...

Maven bundles multiple versions of same libraries in WAR -

Maven bundles multiple versions of same libraries in WAR - i got nosuchmethoderror exceptions when running test maven build. realized maven bundles multiple versions of same libraries in war (some transitive dependencies has different versions). default behaviour? fail see how want it. also, found exclusion tag can't have version (or range) can't exclude conflicting version. there way prevent maven adding multiple versions of same library war? give thanks you. edit: yeah, can exclude , depend on in pom. it's far elegant solution (can cause problems changes in upstream). you can configure assembly-plugin exclude dependencies. same excluding duplicates different versions in dependencies section. highly recommend exclude duplicates in dependencies section. project might lack proper dependency management. if utilize correctly, have exclusions in same pom. maven

Retrieve images name from the resources - c# -

Retrieve images name from the resources - c# - i'd name of images resources , store them in listbox. should loop through , declare array? use assembly.getmanifestresourcenames c#

api - Getting information about multiple URLs in one request from Facebook, Twitter, Google+, and LinkedIn -

api - Getting information about multiple URLs in one request from Facebook, Twitter, Google+, and LinkedIn - with facebook, can this: http://api.facebook.com/method/fql.query?format=json&query=select total_count link_stat url="http://stackoverflow.com or url="http://stackexchange.com" or url="http://example.com" however, twitter, google, , linkedin, can figure out how info 1 url @ time. here urls (took me while find): http://urls.api.twitter.com/1/urls/count.json?url=http://example.com https://clients6.google.com/rpc (google uses post request) http://www.linkedin.com/cws/share-count?url=http://example.com how can info multiple urls in 1 request twitter, google+, , linkedin one http request directed @ 1 url. how else http request routed right place if couldn't figure out ip address of send request? you have solution. write web service on server such http://www.example.com/ajax/getallatonce.asmx . in server-side code, cr...

c++ - why typeid returns that int and const int are same types -

c++ - why typeid returns that int and const int are same types - if(typeid(int) == typeid(const int)) cout << "same types"<< endl; program output: same types am missing something? these not same types lol. they aren't same type, typeid operator strips const , volatile . from section 5.2.8 [expr.typeid] : the top-level cv-qualifiers of glvalue look or type-id operand of typeid ignored. c++ typeid