Posts

Showing posts from March, 2014

Plugin not firing when using "Manage Members" on a marketing list in CRM 2013 -

good afternoon. thank in advance taking time read this. inside of dynamics crm 2013 environment, have custom entity holds 3 data grids. whenever record (of contact, account or lead) added respective datagrid, adds record static marketing list via custom plugin wrote. trouble i'm having when use "manage members" (to add/remove records using advanced find feature) it's not firing @ all. plugin firing correctly when add/remove items custom entity using "+" , "trash can" buttons. removemember portion firing when use "remove marketing list" button list well, not "manage members". have 3 steps registered on plugin, associate on post-op/sync, disassociate on pre-op/sync, , removemember on post-op/sync. idea able add or remove records custom entity or marketing list, , auto-updates other. does have suggestions or advice on how fire plugin when using "manage members" portion of marketing lists? i've tried valid combin

Sending XML to URL in PHP (without cURL) -

trying send following xml data url below. $xml="<?xml version='1.0' encoding='utf-8'?> <job> <name>set-up - ".$client_name."</name> <description></description> <clientid>".$accountantid."</clientid> <startdate>".$start_date."</startdate> <duedate>".$due_date."</duedate> <templateid>".$templateid."</templateidr> </job>"; $createjob_url="https:<url>apikey=[apikey]&accountkey=[accountkey]"; $stream_options = array ( 'http' => array ( 'method' => "post", 'header' => "content-type: application/x-www-form-urlencoded\r\n", 'content' => $xml ) ); $context=stream_context_create($stream_options); $response=file_get_contents($createjob_url, false, $context); ec

java - Can I newJob on a class and also set some values? -

the usage of newjob following: newjob(connectorscheduler.class) but want set spring jdbctemplate on instance of connectorscheduler, doable? basically want do job=new connectorscheduler(); job.setjdbctemplate(jdbctemplate); newjob(job); yes, can pass parameters jobs (and triggers), in quartz must use jobdatamap structure works so: job=new connectorscheduler(); job.getjobdatamap().put("param1", "123"); newjob(job); for numerical (and other non-string values) can use: job.getjobdatamap().putasstring("param1", 123);

vb.net - Strong Type Assembly not prompted for password -

i have created strong name assembly (with password) , registered in gac. have added reference assembly in project, not prompted password. are prompted password if want convert msil vb.net? i have spent time looking answer on here. the password private device designed restrict usage of .snk file, mitigate risk gets copy of .snk file , creates rogue assemblies seem come organisation. however once assembly created, there no further need re-enter password long rebuilding assembly on same machine. (you can use same .snk file other projects on machine without need enter password) but if try rebuild assembly on machine, visual studio ask .snk file's password when try rebuild it. you don't need supply password in order reference assembly. you can read more here http://www.csharp411.com/net-assembly-faq-part-3-strong-names-and-signing/

ios - Images not displaying on iPad AIR, but display on other iPads -

my images not displaying on ipad airs, displaying on other ipads. not displaying in image views or on buttons. besides images, segmented control image not displaying, although can still tap on buttons , segmented control know exist on ui. found background images on buttons display, image on buttons not. maybe - think started after got message required 64 bit support of 2/1/15 (during validation), recommending me change default build setting 'standard architecture'. after making recommended change, images stopped showing. in build settings, under architectures: before: $(archs_standard_32_bit) after: standard architectures (armv7, arm64) when changed back, images started displaying again. thanks help! i found bug, related 64-bit processing on ipad air. had uiimageview+category file try , show vertical scroll bar. file caused problem, removed fix bug. hope helps else out. thanks @implementation uiimageview (forscrollview) - (void) setalpha:(float)alp

service - Debian start-stop-daemon. Java start jar File -

i have command in shellscript in /etc/init.d/ start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/$name.pid --background --exec /usr/bin/java -jar /home/username/myjar.jar if execute error start-stop-daemon: unable stat /usr/bin/java -jar /home/username/myjar.jar (no such file or directory) if execute /usr/bin/java -jar /home/username/myjar.jar in commandline fine .. don't mistake :( try this: start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/$name.pid \ --background \ --exec /usr/bin/java -- -jar /home/username/myjar.jar it seems need separate executable (here /usr/bin/java argument -- . (oh, change uid appropriate user; root should not required)

r - cols does not work in tags$textarea of a Shiny application -

in following code example. cols not work in tags$textarea. library(shiny) # global variables can go here # define ui ui <- bootstrappage( tags$textarea(id="foo", rows="10", cols="4000", "default value") ) # define server code server <- function(input, output) { } # return shiny app object shinyapp(ui = ui, server = server) how copy it? thanks. this because bootstrap has defined width <textarea> (206px), , have override bootstrap style, e.g. tags$textarea(id="foo", rows="10", style="width:800px;", "default value")

ruby - Creating a method that functions as both a class and instance method -

let's had class , wanted able call same method on class and instance of class: class foo def self.bar puts 'hey worked' end end this lets me following: foo.bar #=> hey worked but want able do: foo.new.bar #=> nomethoderror: undefined method `bar' #<foo:0x007fca00945120> so modify class have instance method bar : class foo def bar puts 'hey worked' end end and can call bar on both class , instance of class: foo.bar #=> hey worked foo.new.bar #=> hey worked now class foo 'wet': class foo def self.bar puts 'hey worked' end def bar puts 'hey worked' end end is there way avoid redundancy? have 1 method call other. otherwise, no, there no way avoid "redundancy", because there is no redundancy. there 2 separate methods happen have same name. class foo def self.bar puts 'hey worked' end def bar foo.bar end end

java - FragmentStatePagerAdapter does not handle changes -

i having problem managing changing list of item using fragmentstatepageradapter. please check source here . the problem when underlying list changes, , call notifydatasetchanged , adapter not rebuild it's internal list of fragments. referring code in instantiateitem : @override public object instantiateitem(viewgroup container, int position) { // if have item instantiated, there nothing // do. can happen when restoring entire pager // saved state, fragment manager has // taken care of restoring fragments had instantiated. if (mfragments.size() > position) { fragment f = mfragments.get(position); if (f != null) { return f; } } i believe code in comment wrong! if delete item @ position 0 in list, , call notifydatasetchanged , fragment @ position 0 should deleted. adapter has never updated position of fragments in own private list. therefore still shows old, deleted, data. i found this answer hack relies on g

angularjs - Including Angular localStorageService in module causes native error -

this code works; getdata() function invoked: var app = angular.module('poc', []); app.controller('pocctrl', ['$scope','$timeout', function ($scope, $timeout) { <snip> $timeout(function () { $scope.getdata() }, 250, $scope); ]); but code below , references localstorageservice , causes native error in ie when try run , debug page. getdata() function never invoked. missing? local storage service have included in module too? var app = angular.module('poc', []); app.controller('pocctrl', ['$scope','$timeout', 'localstorageservice', function ($scope, $timeout, localstorageservice) { $timeout(function () { $scope.getdata() }, 250, $scope); ]); use app.controller('pocctrl', function ($scope, $timeout, localstorageservice) { ); i don't know why c

apigee - Usergrid: Accessing a resource in Usergrid -

i running usergrid on local, trying access entity created, seem having issues inspite of confirming specified in documentation: the entity created is: /summaries/915b986a-78cf-11e4-aa04-eb4bd0e81071 it preceeded api name , in turn preceeded org name, gives me: http://localhost:3000/test-org/test-api/summaries/915b986a-78cf-11e4-aa04-eb4bd0e81071 i not able reach entity above there missing? -s

How can I conditionally reorder elements of an Excel table with Microsoft Visual Basic (VBA) based on the number of entries in each column? -

i have downloaded earnings data bloomberg large number of assets 1 year. resulting table measures 4 rows , around 3000 columns. columns contain 4 values, contain two, , contain 1 because of differences in reporting requirements: some companies announce earnings on annual basis (31/12: 1 value) some companies announce earnings on semi-annual basis (31/6 , 31/12: 2 values) some companies announce earnings on quarterly basis (31/3, 31/6, 31/9, 31/12: 4 values) the table values (b17:dkz20) preceded 1 column of announcement dates (a17:a20), correspond quarterly announcements of first company in list, because highest possible frequency , covers possible dates earnings announcements (31/03; 31/06; 31/09; 31/12). because used: range(b17:dkz17).formula = "=bdh([ticker], ""is_eps"", [beginning date], [end date], ""dates, period"", ""h,m"")" with optional argument hide dates in order display values directly ne

c - Assembly , no such instruction popl? -

i have code in c main tak written in assembly. idea of programm example when x = abc def ,and y = deletes word @ least 1 letter same , writes words without same letters write def. have wrotten code, gives error : prog.c:10: error: no such instruction: `addl $112,%esp' prog.c:12: error: no such instruction: `xorl %eax,%eax' prog.c:13: error: no such instruction: `popl %ebx' prog.c:16: error: no such instruction: `popl %esi' here code : #include <stdio.h> #include <string.h> int main(){ char *x = "asbc4a2bab "; char *y = "ab"; char bufor[100]; asm volatile ( ".intel_syntax noprefix;" "mov ecx,%0;" "push ecx;" //wrzuca na stos "mov ecx,%1;" "mov eax,%2;" "call zadanie1;" "jmp wyjscie;" "zadanie1:" "push ebp;" //wrzucamy ebp na stos "push eax;" "push ecx;" //ecx

sublimetext2 - How to custom alignment in Sublime Text 2? -

well i'm using sublime text 2 lot of tasks, included creation of documents latex . downloaded , installed alignment package , works great when want align respect = symbol. in latex need align respect & , % don't understand or how can custom that. read documentation package here , , see must go preferences > package settings > alignment > settings – user there see is: { "color_scheme": "packages/color scheme - default/monokai bright.tmtheme", "font_size": 12.0, "ignored_packages": [ "vintage", "pyv8" ] } and don't know should add, , if it's before close {} o later opening new pair. me that? on mac need @ alignment/base file.sublime-settings // mid-line characters align in multi-line selection, changing // empty array disable mid-line alignment "alignment_chars": ["="], add characters want align on either file, or cre

Looping over group in a Python regex -

Image
edit: i've gotten work--i had forgotten put in space separator multiple edges. i've got python regex, handles of strings have parse. edge_value_pattern = re.compile(r'(?p<edge>e[0-9]+) +(?p<label1>[^ ]*)[^"]+"(?p<word>[^"]+)"[^:]+:: (?p<label2>[^\n]+)') here example string regex meant parse: 'e0 bike-event 1 "biking" 2' it correctly stores e0 edge group, bike-event label1 group, , "biking" word group. last group, label2 , different variation of string, shown below. note label2 regex group behaves expected when given string 1 below. 'e29 e30 "of" :: of, of' however, regex pattern fills in label1 value e30. truth string not have label1 value--it should none or @ least empty string. ad-hoc solution parse label1 regex determine if it's actual label or edge. want know if there way modify original regex gro

Using site_url() in Codeigniter without getting a ? in the generated URL -

i trying use site_url() in codeigniter, every time put in parameters (for example site_url('controller_name'); url in link looks this: http://{mysite}/index.php?controller_name instead of think should getting is: http://{mysite}/index.php/controller_name. i using echo site_url() syntax in link on webpage far have been unsuccessful. any suggestions? i think problem config file check config file $config['uri_protocol'] = 'query_string'; then change in this $config['uri_protocol'] = 'auto';

javascript - What is anchorNode , baseNode , extentNode and focusNode in the object returned by document.getSelection? -

Image
if make selection in html page , : var = document.getselection() i object 4 properties : anchornode basenode extentnode focusnode the values of first 3 same i.e. text have selected how different , 1 use? according mdn selection. anchornode - returns node in selection begins. selection. focusnode - returns node in selection ends. because there debates on naming, basenode alias anchornode , extentnode focusnode the following beyond scope of question, i'll post anyway, found selection tricky part in scenarios. take @ example: <p>ab12<sup>3</sup>4567890 !</p> let's we've made selection "1234567890". i've made picture explain anchor , focus nodes , offsets are.

python - Text File with Many Columns to Single Column -

i have script produces text file rectangle.txt 20 columns wide , 3000 rows long. columns column delimited, meaning each column divided comma character. rows new line delimited, meaning each row divided new line character. i find single command transmutes rectangle.txt longline.txt , longline.txt text file 1 column wide , 60,000 rows long. thank you! bash or python preferred. thank you! if have tr : tr "," "\n" < rectangle.txt > longline.txt

php - If form is submitted, then checkbox checked -

i want make if form submitted then checkbox should checked. here have: <input type="checkbox" id="chk" <?php if ($_post['submit']){ echo checked } ?> /> html: <form id="form1" enctype="multipart/form-data" action="" method="post"> //stuff here <input name="submit" type="submit" value="upload" /> </form> i getting blank page when test it... appreciated. blank because there php error of php code , have turned error_reporting off. if($_post['submit']) should if (isset($_post['submit'])) echo checked should echo 'checked'; the sample below works me. <form id="form1" enctype="multipart/form-data" action="" method="post"> //stuff here <input name="submit" type="submit" value="upload" /> </form> <input t

In Mathematica, how to make Interpolation as good as ListLinePlot? -

first, learned in mathematica, interpolation function listplot using? the method used listplot interpolation interpolate each coordinate function of list index. , think listlineplot can decide interpolationorder should taken. if change interpolationorder -> 3 interpolationorder -> 1 , intepolation of data more plot of listlineplot. here data , code: so, there way can interpolate data , plot listlineplot do? or there way make interpolation more "clever", can decide interpolationorder itself? here data , code: mypoint = {{1.3336020610508064`, 0.05630827677109675`}, {1.5103543939292194`, 0.05790550283922009`}, {1.6927497417380886`, 0.07151008153610137`}, {1.840047310044461`, 0.11741226450605104`}, {1.9209270855795286`, 0.2726755425789721`}, {1.953407919235778`, 2.0759615023390294`}, {1.9550995254889463`, 0.7164793699550908`}}; interpcut[r_, x_] := module[{s}, s = sortby[r, first]; piecewise[{{0, x < first[s][[1]]}, {0, x > last[s][[1]]}, {interpolat

javascript - Make the second div be next to the first div when using toggle -

when toggling, second div appears on bottom first appears on top. there way make second div on left of first div when toggling? thanks in advance. http://jsfiddle.net/kfmlv/1862/ html slide toggle right left , left right. <hr/> <p> <select class="myselect"> <option value="right">right</option> <option value="left">left</option> <option value="up">up</option> <option value="down">down</option> </select> <select class="myselect2"> <option value="left">left</option> <option value="right">right</option> <option value="up">up</option> <option value="down">down</option> </select> <button id="button" class="mybutton">toggle</button>

How can I findout the last magento update date? -

i want see when magento upgrade (or update )? magento have log files or check last magento files update date ? check magento download page , select tab marked release archives . after each release, date added. simple diffing tools can download , diff 2 versions there.

xaml - How can I set a timer in C#? -

in c#, want set timer when entering page, have ten second countdown begin. if user not complete operation within ten seconds, timer triggered, suggesting "game over". if user has completed operation within ten seconds, timer device canceled. how can this? use dispatchertimer class. tick event handler should have code says game over. example : dispatchertimer dispatchertimer = new system.windows.threading.dispatchertimer(); dispatchertimer.tick += dispatchertimer_tick; dispatchertimer.interval = new timespan(0,0,10); dispatchertimer.start(); private void dispatchertimer_tick(object sender, eventargs e) { ((dispatchertimer)sender).stop(); //your code here } whenever user completed operations, can call dispatchertimer.stop(); . stop timer.

sql - Mysql insert data on table a when insert in table b -

i want this: if not exist data on table mislibros insert value idebook table ebook, when try call mysql says :#1054 - unknown column 'ebook.idebook' in 'where clause' pd: don't want use update, need insert create procedure spexistencia ( ) begin start transaction; if not exists (select idebook mislibros ebook.idebook= mislibros.idebook) insert mislibros (idebook) values (new.idebook); else signal sqlstate '45000' set message_text= 'ya cuentas con el libro seleccionado'; end if; commit; end; check create trigger syntax example. try this: delimiter $$ drop trigger /*!50032 if exists */ `tr_ebook`$$ create trigger `tr_ebook` after insert on `ebook` each row begin if not exists (select 1 mislibros new.idebook = mislibros.idebook) insert mislibros (idebook) values (new.idebook); end if; end; $$ delimiter ;

c# - Is there any minimum Server requirement for Windows Server to Host a MVC3 WebApp -

is there minimum server requirement windows server host mvc3 webapp. know needs iis 7. other other hardware requirements (i.e) ram,processor, etc. i googled it,but couldn't answer question. my web app used 5000 users, randomly 100 users using @ time. configuration suggestions??? ram: 512mb , processor: duel core enough

visual studio - How do I fill in the BabeLua settings? -

Image
i want able program lua in visual studio 2013 ultimate. have babelua try this. in program there tab called settings. within tab there 5 textboxes not understand lua scripts folder - folder files stored? (documents/visual studio 2013/ projects)? lua exe path working path command line setting name can give me explanation of these fields? this prompt seems different 1 seeing latest update of babelua, regardless: lua scripts folder : should explicit path file folder script located. lua exe path : explicitly provide path exe (which can download here . note: sure download windows 32 bit version, if machine happens 64 bit. there appears sort of bug prevents babelua running in debug mode 64 bit version. working path : provide same path folder containing lua exe. command line : provide name of script(s) want run. if wrote file in project called "script.lua" provide name of file, extension, in area. lua project name : different "se

php - How to run query until one record is found? -

this trying right no luck $bid = $next - 2;//this subtracts 2 number, number auto generated $preid = $bid; $query = "select * images imageid = '$preid'"; $sql = mysqli_query($conn,$query) or die(mysqli_error($conn)); while(mysqli_num_rows($sql) !=0) { $select_query = "select * images imageid = '$preid'"; $sql = mysqli_query($conn,$select_query) or die(mysqli_error($conn)); --$preid; } whats suppose happen if record not exist subtracts 1 preid , runs query again new preid , keeps happening until record found cant figure out how it. i assuming checking database new values. however, on large scale application thi highly inefficient way ping database. have made variable $preid not using anywhere. how if go according way $bid = $next - 2;//this subtracts 2 number, number auto generated $preid = $bid; $query = "select * images imageid = '$preid'"; $sql = mysqli_que

sql server - How to Refresh. Datagridview after adding data.im using sql database -

below code project. hope can me. in advance. :) this sqlcontrol code imports system.data imports system.data.sqlclient public class sqlcontrol public sqlcon new sqlconnection {.connectionstring = "server=xxx\sqlexpress;database=sqltest;user=sa;pwd=xxxx;"} public sqlcmd sqlcommand 'allow fire query @ data base public sqlda sqldataadapter public sqldataset dataset public dtable new datatable public bs new bindingsource 'query parameters public params new list(of sqlparameter) public recordcount integer public exception string public function hasconnection() boolean try sqlcon.open() sqlcon.close() return true catch ex exception msgbox(ex.message) return false end try end function public sub execquery(byval query string) try sqlcon.open() 'create sql command sqlcmd = new sqlco

java - Programmatically control android emulator -

i have requirement need launch app on emulator standalone java application. there way of doing this? execute following adb command using runtime.getruntime().exec("application.exe"); "adb shell start package_name/.activity_name" note : activity_name---> name of launcher activity.

c - Modify any element of the array -

given array of integers , can modify of number of arbitrary positive integer , , makes entire array strictly increasing , positive integers , , asked @ least need change few numbers input: 5 1 2 2 3 4 output: 3 and there have tried ,each number in order reduce more ( first number minus 1 , second number minus 2 ,the third number minus three) #include <stdio.h> int modify_the_array(int b[],int n); int max(int a,int b); int main(int argc,char *argv) { int before_array[]={1,2,3,4,1,2,3,4,5}; int len=sizeof(before_array[0])/sizeof(before_array); int b; b=modify_the_array(before_array,len); printf("%d\n",b); return 0; } int max(int a,int b){ return a>b?a:b; } int modify_the_array(int b[],int len) { int i,b=0,n=1; int maxsofar,tmp,j; (i=0;i<len;i++){ b[i]=b[i]-n; n++; } maxsofar=0; tmp=0;

php - How can I add banner to product page? (magento) -

i have homepage redirected product page, still want banners home page show up. anyone have clue how can add banners product page ? pretty new magento... not easy joomla. there handles in magento decide block show when specific controller called. take @ file /magento/app/design/frontend/base/default/layout/catalog.xml , find following lines <catalog_product_view translate="label"> <label>catalog product view (any)</label> <!-- mage_catalog --> <reference name="root"> <action method="settemplate"> <template>page/2columns-right.phtml</template> </action> </reference> <reference name="content"> <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml"> <!-- more code -->

Android - Using Google Analytics v4 Campaign Measurement -

i have implemented google analytics campaign measurement according this guide . want test if works following this guide . i have added these on androidmanifest.xml : <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <meta-data android:name="com.google.android.gms.analytics.globalconfigresource" android:resource="@xml/global_tracker" /> <!-- used google play store campaign measurement-->; <service android:name="com.google.android.gms.analytics.campaigntrackingservice" /> <receiver android:name="com.google.android.gms.analytics.campaigntrackingreceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.install_referrer" /> </intent-filter> </receiver> <uses-permission android:name="android.permission.intern

ios - Swift sidebar menu creation -

i trying follow guide found here create swift sidebar menu: https://www.youtube.com/watch?v=qalizguk2t0 have reached following function: override func tableview(tableview: uitableview!, cellforrowatindexpath indexpath: nsindexpath!) -> uitableviewcell! { var cell:uitableviewcell? = tableview.dequeuereusablecellwithidentifier("cell") as? uitableviewcell if cell == nil{ cell = uitableviewcell(style :uitableviewcellstyle.default, reuseidentifier: "cell") // configure cell... cell!.backgroundcolor = uicolor.clearcolor() cell!.textlabel.textcolor = uicolor.darktextcolor() let selectedview:uiview = uiview(frame: cgrect (x: 0, y:0, width: cell!.frame.size.width, height: cell!.frame.size.height)) selectedview.backgroundcolor = uicolor.blackcolor().colorwithalphacomponent(0.3) cell!.selectedbackgroundview = selectedview } cell!.textlabel.text = tabledata[indexpath.row] return cell }

javascript - Java Script: loop through JSON -

how loop through provided json every grade years , paste them in array?i'm quite new js explanation welcome. expected array example [2,4,2,5,4,5,4.5,2,3.5,5,5,5,5,5] { "first_name": "ala", "last_name": "kowalski", "birth_date": "29 aug 1990", "indeks_number": "9454530", "year_of_study": "2", "courses": { "2013": { "algorithmsi": { "grades": { "exercices": [ 2, 4 ], "lecture": [ 2, 5 ] } }, "basicphysicsi": { "grades": { "exercices": [ 4 ],

html - How to place some fields horizontal while others vertical inside a bootstrap form -

i have bootstrap form want fields horizontal while others vertical. in fiddle @ bottom, want field 1 , field 2 in same row , of default size (not stretched). button should @ center in separate row. how should achieve in bootstrap? tried adjusting size of text fields didn't work. also, button not placing @ center , close above form fields. table idea here? please me this. fiddle: http://jsfiddle.net/r30kk8m4/ html <div class="container-fluid"> <form class="form" role="form"> <div class="form-group"> <div class="row"> <div class="col-sm-6 col-md-6 col-xs-6"> <input type="text" class="form-control" placeholder="field 1" /> </div> <div class="col-sm-6 col-md-6 col-xs-6"> <input type="text" c

locationmanager - Android: Get current location in China -

i need current location in china current location manager not working in china.its not showing latitude , longitude. please tell me how can this? many thanks fact 1: google services blocked in china. fact 2: although gives feeling aosp nothing google, it's not. the truth once used network_provider location, message send google location server check out location, , returned location you. reason every chinese knows about, can't access server, that's why when combine network_provider , gps_provider together, debug codes in room, nothing returned(gps not accessible in room). solution: use android rom modified chinese company xiaomi, meizu etc. these roms modify framework , redirect network_provider message other servers. use third-party location service baidu location sdk.

http - How to make port number 80 appear in nmap scan? -

when perform nmap scan on localhost why doesn't port number 80 show open though browser open, ssh , telnet ports show though. if there rule or firewall blocking how temporarily suspend it. use ubuntu 14.10. port 80 should appear in scan if have web server running on local machine, listening on port 80. port 80 server port, not client port.

ssl - Get complete certificate chain including the root certificate -

how complete certificate chain server? though claim one should able that openssl s_client -showcerts , turns not case. echo | openssl s_client -capath /etc/ssl/certs -connect www.ssllabs.com:443 \ -showcerts | grep -b2 begin depth=3 c = se, o = addtrust ab, ou = addtrust external ttp network, cn = addtrust external ca root verify return:1 depth=2 c = gb, st = greater manchester, l = salford, o = comodo ca limited, cn = comodo rsa certification authority verify return:1 depth=1 c = gb, st = greater manchester, l = salford, o = comodo ca limited, cn = comodo rsa domain validation secure server ca verify return:1 depth=0 ou = domain control validated, ou = positivessl, cn = www.ssllabs.com verify return:1 0 s:/ou=domain control validated/ou=positivessl/cn=www.ssllabs.com i:/c=gb/st=greater manchester/l=salford/o=comodo ca limited/cn=comodo rsa domain validation secure server ca -----begin certificate----- -- 1 s:/c=gb/st=greater manchester/l=salford/o=c

java - Difficulty accessing an ArrayList in another class in the package -

my java experience limited , having problems accessing array list in class in separate file in same package. it doesn't seem matter declare array ..it not accessible other classes my top class like: package 1st_class; import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.arraylist; public class 1st_class { public void main(string[] args) { arraylist<test> tests = new arraylist<test>(); arraylist<score> scores = new arraylist<score>(); tests = new arraylist<test>(); scores = new arraylist<score>(); mainmenu menu1 = new mainmenu(); menu1.setvisible(true); } } this seems recognise arrays in code ..i can reference having instance of mainmenu in other class , prefixing array name example main. i confused scope guess. try write getarraylist() method in class need or define static . public class 1st_class { public static ar

php - how to run multiple projects on Apache using Virtual Hosts? -

my vhosts are: # localhost work <virtualhost *:1983> serveradmin admin@localhost documentroot "d:/wamp/www" servername localhost </virtualhost> # - see more at: http://yogeshchaugule.com/blog/2014/how-setup-virtual-hosts-wamp#sthash.zvhohblj.dpuf # - @: http://www.techrepublic.com/blog/smb-technologist/create-virtual-hosts-in-a-wamp-server/ # - @: http://www.kristengrote.com/blog/articles/how-to-set-up-virtual-hosts-using-wamp (maybe out of usable scope) # afm : agile farm manager #<virtualhost *:1983> # documentroot "d:/projects/afm/code" # servername dafm.dev # <directory "d:/projects/afm/code"> # order allow,deny # allow # allowoverride # </directory> #</virtualhost> # mrs : meeting request system <virtualhost mrs.dev:1983> documentroot "d:/wamp/www/mrs_site/mrs" servername mrs.dev serveralias mrs.dev <directory "d:/wamp/www/mrs_site/mrs"> or

ios - UIButton Image is not changed in Hightlight or Selected state -

i wrote following code of button ios8 app: uibutton *btnback = [uibutton buttonwithtype:uibuttontypecustom]; [btnback setframe:cgrectmake(40, 30, 30, 30)]; [btnback setbackgroundimage:[uiimage imagenamed:@"btn_close.png"]forstate:uicontrolstatenormal]; [btnback setbackgroundimage:[uiimage imagenamed:@"btn_close_on.png"] forstate:uicontrolstatehighlighted|uicontrolstateselected]; [btnback addtarget:self action:@selector(btnbackclick:) forcontrolevents:uicontroleventtouchupinside]; [self.view addsubview:btnback]; and method when click: -(void) btnbackclick:(id)sender{ [self.navigationcontroller poptorootviewcontrolleranimated:yes]; } however, background of image not change when button being click. effect grayout. if draw button on xib file, image change works charm. anything wrong? please help. uibutton *btnback = [uibutton buttonwithtype:uibuttontypecustom]; [btnback setframe:cgrectmake(40, 30, 30, 30)]; [btnback setb

Converting ISO 8601 date time to seconds in Python -

i trying add 2 times together. iso 8601 time stamp '1984-06-02t19:05:00.000z', , convert seconds. tried using python module iso8601 , parser. any suggestions? if want seconds since epoch, can use python-dateutil convert datetime object , convert seconds using strftime method. so: >>> import dateutil.parser dp >>> t = '1984-06-02t19:05:00.000z' >>> parsed_t = dp.parse(t) >>> t_in_seconds = parsed_t.strftime('%s') >>> t_in_seconds '455047500' so halfway there :)

Running bash script with "spawn" in Node.js seems to pause halfway through execution -

heres gist of i'm doing: https://gist.github.com/mattcollins84/75f9ebd422ed6d1d5c91 as part of process generate bash script has bunch of curl commands in (around 20k commands). want run script via node. i using spawn this, , works fine. except after 70 or commands, stops. readstream created spawn stops outputting data. there no errors, or far can see. if "ps x | grep curl" see happening, can see process id changing @ first, seems halt @ point , never starts again. process hangs. manually killing process doesn't let next 1 begin. also, process relates bash script still present, again, killing makes no difference. observations , things i've ruled out: using minimal resources running generated bash script on terminal works fine doesn't seem matter url curling (i.e. it's not application) i feel there daft missing, didn't know google figure out! i hoping run file if on terminal, appears node places kind of restriction stop running out

facebook redirect_uri not working for mobile -

i have facebook canvas app , i'm running both same code , same redirect_uri web , mobile, works without issue in web configuration mobile version doesn't. app responsive app, urls within facebook configuration identical. the method i'm using both generate url list<namevaluepair> qparams = new arraylist<>(); qparams.add(new basicnamevaluepair("client_id", facebookclientid)); qparams.add(new basicnamevaluepair("redirect_uri", "https://apps.facebook.com/customdomain")); qparams.add(new basicnamevaluepair("client_secret", facebookclientsecret)); qparams.add(new basicnamevaluepair("code", code)); uri = new uribuilder() .setscheme("https") .sethost("graph.facebook.com") .setpath("/oauth/access_token") .setparameters(qparams)

jquery - Unable to roll over date to 2015 -

i have script gets me date of lastmonth , current month , next month . see below $(document).ready(function () { var d = new date(); var monthnames = ["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"]; var pastmonth = monthnames[d.getmonth() - 1].tostring(); alert('past month: ' + pastmonth); var monthlymonth = monthnames[d.getmonth()].tostring(); alert('current month: ' + monthlymonth); var futuremonth = monthnames[d.getmonth() + 1].tostring(); alert('future month: ' + futuremonth); //error on here , not sure why }); i think problem adding month our current month , roll on new year 2015 , breaks. i have been reading few threads , cannot find answer this. broke entered december , has been working fine other 2014 mont

android - Change style of specific item in drop-down -

i have drop-down in action bar different categories , want highlight categories. how can make bold text of specific item of drop-down? spanned text = html.fromhtml("<b>bold text</b>"); submenu.add(0, 4, 0, text).seticon(r.drawable.top_menu_settings_icon); i hope code achieve purpose.

Live character count in notepad EditText android -

i have custom edittext notepad . in need show live character count can me started. lineedittext.java public class linededittext extends edittext { private rect mrect; private paint mpaint; int initialcount=10 @suppresslint("newapi") public linededittext(context context, attributeset attrs) { super(context, attrs); mrect = new rect(); mpaint = new paint(); mpaint.setstyle(paint.style.fill_and_stroke); mpaint.setcolor(color.parsecolor("#c0c0c0")); //set own color here /*initialcount=getminlines(); setlines(initialcount);*/ } @override protected void ondraw(canvas canvas) { //int count = getlinecount(); int height = getheight(); int line_height = getlineheight(); int count = height / line_height; if (getlinecount() > count) count = getlinecount();//for long text scrolling rect r = mrect; paint paint = mpaint; int baseline = getlinebounds(0, r);//first line

javascript - Fetch models from JSON.file and store it localstorage Backbone -

collection.fetch().done(function(){ console.log(collection); // fetchs models , print here collection.localstorage = new backbone.localstorage('localstorage'); console.log(localstorage); // storage {length: 0} }); the above code fetch data .json file , create models , prints in console.log. but have store in localstorage , when print localstorage in console shows empty. what want on page load data .json file using , store these models in localstorage , next time fetch data( i.e. models) localstorage not file. you'll need override collection's sync function place in logic first check cache fetch remote location , update cache subsequent requests pickup cache. var collection = backbone.collection.extend({ sync: function(method, collection, options) { var cache, data, dfd = $.deferred(), cacheid = "collectioncache"; switch (method) { case "read": // attempt cache cache = ses

Auto expand child when parent checked on treelist using javascript -

can teach me how expand child item on tree list when parent item checked in javascript? current,i had function on javascript check/unchecked parent item , child item. function fail auto expand child item when parent item checked. can lead me hand please? here javascript. var parenitemselected = false; function onclientnodeclicked(sender, args) { var currnode = args.get_item(); var childnodes = currnode.get_childitems(); var nodecount = currnode.get_childitems().length; var parentitem = currnode.get_parentitem(); if (parentitem) { parenitemselected = true; parentitem.set_selected(true); } if (currnode.get_selected()) { checkallchildren(childnodes, nodecount); } else { uncheckallchildren(currnode, childnodes, nodecount); } parenitemselected = false;

codeigniter - list message using ajax refresh -

hi want list emails using context io.but times returns 0 messages , show blank page.so decided using ajax. step1 :first take count of messages step2 : check if count>0 step 3: if count>0 =>list message step 4 : else again take count , repeat step 3 , 4 my code is, $(function() { var contid='<?php echo $_get['contextio_token'];?>'; $("#ajaxloader").html('<img src="<?php echo base_url();?>images/ajax-loader.gif" style="width:60px;">'); $.ajax({ type:"post", url:"<?php echo base_url();?>index.php/gmailcontrol/countcontext", data:"contxtid="+contid, success:function(result){ if(result>0) { viewcontextio(); } else { refreshcontext(); } }}); }); function refreshcontext(){ var contid='<?php echo $_get['contextio_token'];?>';