Posts

Submitting a Watchkit App to the Appstore - do I create a new App or is it somehow part of my iPhone App -

Image
i tried load app itunesconnect today got error during build re. no provisioning profile found (when run iphone app works fine , has been fine while now). assume because have added watchkit app. how resolve ? do need create new app in itunesconnect watchkit app ? thanks. you don't need create new app watch app. it's part of main app extension . you resolve problem just signing out account settings in xcode , signing in again . worked me. first of click onto accounts tab. then select apple-id , click minus. then click onto plus button , add apple-id once again.

ubuntu server - mysql performance_schema missing tables -

using mysql 5.6.19 on ubuntu box, installed sudo apt-get install , missing few tables (got alert workbench when trying use performance reports). these tables have in performance_schema: +----------------------------------------------+ | tables_in_performance_schema | +----------------------------------------------+ | cond_instances | | events_waits_current | | events_waits_history | | events_waits_history_long | | events_waits_summary_by_instance | | events_waits_summary_by_thread_by_event_name | | events_waits_summary_global_by_event_name | | file_instances | | file_summary_by_event_name | | file_summary_by_instance | | mutex_instances | | performance_timers | | rwlock_instances | | session_connect_att...

c++ main function, argc value is weird if command-line arguments contain * -

a simple piece of c++ code this: int main(int argc, char **argv){ std::cout << "argc: " << argc << std::endl; } compiled g++ -o hello hello.cpp when run ./hello u , output argc: 2 ; when run ./hello u + , output argc: 3 ; when run ./hello u * , output argc: 26 , why 26 ? shell expansion. * expanded shell files in current directory, of there appear 24, , passes them individual arguments program. since looks call unix shell, use ./hello u \* or ./hello u '*'

Akka's TestProbe expectMsg to match if expected message is among sent -

i have test particular actor. actor depends on other actors, use testprobe() test in isolation. problem is, receive more messages interested in testing @ particular test. example: val = testprobe() val b = testprobe() val actor = testactorref(new myactor(a.ref, b.ref)) actor ! message(1, 2) b.expectmsg(3) the test fails, because while creating myactor sends kind of "registration" message ones passed in constructor. the message 3 arrives eventually, assertion fails - not first message arrive. avoid asserting more messages need test - can change, etc, not scope of particular test anyway. as testprobe not contain such methods - suspect there may wrong test setup (or rather project architecture then). see there many methods fishformessage require explicit time parameters seems irrelevant whole test purely synchronous. is there way accomplish such test desired message among received? if not, how can setup can improved easy testable? the fishformessage ...

.htaccess - Website URL redirects to name/%20/auth/login -

i have website hosted on godaddy. when enter url thehotkey.in, url redirects thehotkey.in/%20/auth/login gives me blank page. when go : thehotkey.in/auth/login, gives me distorted login form. every button click on , example, if click on register button on login page, redirects thehotkey.in/%20/auth/register gives me blank page. if go thehotkey.in/index, gives me blank page well. there sort of mis-redirection cant figure out how tackle it. here my.htaccess more help: <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] rewriterule ^index.php/(.*)$ [l] </ifmodule> ( didnt write code, bought code) any suggestion appreciated. the base url in fx_cpnfig file had space @ end of url address. due this, sae %20 in every redirected url . alright after removing space.

cordova - error of using purecomputed function of knockoutjs in devextreme -

this dxview:- using knockoutjs in visual studio. <div data-options="dxview : { name: 'home', title: 'home' } " > <div class="home-view" data-options="dxcontent : { targetplaceholder: 'content' } " > <p>first name: <input data-bind="value: firstname" /></p> <p>last name: <input data-bind="value: lastname" /></p> <h2>hello, <span data-bind="text: fullname"> </span>!</h2> </div> </div> this javascript in visual studio using devextreme:- myfirstproject.home = function (params) { var viewmodel = function (first, last) { this.firstname = ko.observable(first); this.lastname = ko.observable(last); this.fullname = ko.purecomputed(function () { return this.firstname() + " " + this.lastname(); },this); }; ko.applybin...

c# - Migrate Post action to web forms -

i have action on mvc application , need same thing in application uses web forms. i'm sorry if such stupid thing i'm not expert on web forms. this action: [httppost] public actionresult login(string username) { } how do httppost in web form? update i discovered if put (page.request["login"]) in code i'm able retrieve post parameters. i believe want use httpwebpost class class. something private void onpostinfoclick(object sender, system.eventargs e) { string strid = userid_textbox.text; string strname = name_textbox.text; asciiencoding encoding=new asciiencoding(); string postdata="userid="+strid; postdata += ("&username="+strname); byte[] data = encoding.getbytes(postdata); // prepare web request... httpwebrequest myrequest = (httpwebrequest)webrequest.create("http://localhost/default.aspx"); myrequest.method = "post...