Posts

What happens to a running rake task if I change its source? -

if running rake foo:bar , if edit bar method before task completes, change task midway through? if change code of rake task no, if change on depends will. changing database schema on task dependent change mid way

Connection limit for SQLDB with small_plan (Bluemix) -

what concurrent connection limit sqldb small plan? have liberty application bounded sqldb service small plan , got following error. db2 sql error: sqlcode=-4712 the free beta plan features 100mb per instance , 10 concurrent connections. the small plan features 10gb max per instance , 20 concurrent connections. the premium plan features 500gb max storage per instance , 100 concurrent connections. see link below more information: https://console.ng.bluemix.net/?ace_base=true/#/store/cloudoepaneid=store&serviceofferingguid=0d5a104d-d700-4315-9b7c-8f84a9c85ae3&fromcatalog=true if think you're close exhausting connections, should use monitoring , analytics service monitor connection pools: https://www.ng.bluemix.net/docs/#services/monana/index.html#gettingstartedtemplate

sas dis - kickout process to publish tables in SAS DIS -

i have job matching may produce duplicates. when happens, want job create table containing these duplicates , send email data. putting aside conditionality moment (on whether duplicates produced), can't seem email send. i have tried selecting publish email transformation , follow this link best could, errors error: email host ****** not found error: unable publish package email address ****** error: email transport engine encountered errors while publishing package. error: email host ****** not found. package end successful where ****** strings obscuring. 1 issue mentioned link asks me show output tab, checking indicated box has no effect , output tab still cannot seen. not know if causing error. much gratitude this. update: i can output tab display. toggling option takes effect after closing , reopening job. other (main) issue remains. please reach out sas administrator this. either email options have not been setup correctly in sas or maybe ...

sorting - bug in bash sort with different columns? -

i working file contains 3 values, id (they happen protein ids in case curious), value, , value. tab delimited, looks this: a2m 0.979569315988908 1 aacs 0.925340159491081 1 aagab 0.982296215686199 1 aak1 0.736903840140103 1 aamp 0.00589711816127862 0.138868449447202 aars2 1 1 aars 3.13300124295614e-05 0.00212792325492566 aarsd1 0.527417792161261 1 aasdh 0.869909252023668 1 aasdhppt 0.763918221284724 1 aatf 0.691907759125663 1 abat 0.989693691462661 1 abca1 0.601194017450064 1 abca5 1 1 abca6 1 1 i interested in sorting these ids in alphabetical order , extracting various values. however, noticed sort sorts ids differently, depending on extracting. when execute: cut --fields\=1,2 input.txt|sort --key=1 the resulting file is: a2m 0.979569315988908 aacs 0.925340159491081 aagab 0.982296215686199 aak1 0.736903840140103 aamp 0.00589711...

python - How to set axes limits in each subplot -

i created subplot figure code: f, axs =plt.subplots(2,3) now on loop make plot on each subplot doing: for in range(5): plt.gcf().get_axes()[i].plot(x,u) is there similar code set axis limits of subplot i'm accessing ? yes can use .set_xlim , .set_ylim on axessubplot object get_axes()[i]. example code in style gave: import numpy np matplotlib import pyplot plt f, axs =plt.subplots(2,3) x = np.linspace(0,10) u = np.sin(x) in range(6): plt.gcf().get_axes()[i].plot(x,u) plt.gcf().get_axes()[i].set_xlim(0,5) plt.gcf().get_axes()[i].set_ylim(-2,1) or more pythonically: import numpy np matplotlib import pyplot plt f, axs =plt.subplots(2,3) x = np.linspace(0,10) u = np.sin(x) sub_plot_axis in plt.gcf().get_axes(): sub_plot_axis.plot(x,u) sub_plot_axis.set_xlim(0,5) sub_plot_axis.set_ylim(-2,1)

objective c - How to set default text at UITextField in iOS -

following code: - (void)getage:(nsstring *)age getgender:(nsstring *)gender getlocation:(nsstring *)location getprefage1:(nsstring *)age1 getprefage2:(nsstring *)age2 getprefgender:(nsstring *)prefgender getpreflocation:(nsstring *)preflocation getimage:(uiimage *)image { self.textfieldage.text=age; self.textfieldgender.text=gender; self.textfieldlocation.text=location; self.textfieldprefgender.text=prefgender; self.textfieldprefage1.text=age1; self.textfieldprefage2.text=age2; self.textfieldpreflocation.text=preflocation; self.imageprofilepic.image=image; } i these value viewcontroller want set these textfields above values. can help? new ios. this method calling above method : -(ibaction)editpro:(id)sender { profileeditviewcontroller *profileedit= [[profileeditviewcontroller alloc] initwithnibname:@"profileeditviewcontroller" bundle:nil]; [profileedit getage:_labelage.text getgender:_labelgender.text getlocation:_label...

sql - MySQL select rows with timestamp closest to but not exceeding the given timestamp -

i have table looks below state_history +---------------------+-----------+----------------+ + | state_added_time | entity_id | state_id | .... | +---------------------+-----------+----------------+ | | 2015-05-15 13:24:22 | 1 | 1 | | | 2015-05-15 13:29:44 | 3 | 2 | | | 2015-05-15 13:34:26 | 2 | 2 | | | 2015-05-15 14:24:28 | 1 | 3 | | | 2015-05-15 14:24:30 | 2 | 3 | | | 2015-05-15 14:26:32 | 3 | 5 | | | 2015-05-15 14:26:34 | 3 | 3 | | ....... my intention know states of entities @ given time. example, if timestamp received application 2015-05-15 14:25:00 expected output should be: state_history +---------------------+-----------+----------------+ + | state_added_time | entity_id | state_id | .... | +---------------------+-----------+----------------+ | | 2015-...