Posts

Showing posts from 2010

radius - Linking with OpenSSL fails with Heartbleed security advisory even after upgrading it -

radius - Linking with OpenSSL fails with Heartbleed security advisory even after upgrading it - while running radius server in debugging mode using command radiusd -x, got problem the error shown below: refusing start libssl version openssl 1.0.1f 6 jan 2014 (in range 1.0.1 - 1.0.1f). security advisory cve-2014-0160 (heartbleed) more info see http://heartbleed.com the installed openssl version shown below: openssl 1.0.1g 7 apr 2014 eventhough installed/updated openssl 1.0.1g, got error called heartbleed. stucked in problem ,could 1 help me out of this??? it's not picked installed version. you'll need re-run configure , recompile (if building form source). verify other versions have been removed, or pass --with-openssl-include-dir --with-openssl-lib-dir configure specify explicit paths. the debian packages 3.0.4 have patches check right debian packaged version, , alter config files ignore check. openssl radius heartbleed-bug

Huber loss function parameter in GBM R package -

Huber loss function parameter in GBM R package - i'm using gbm bundle regression problem. test huber loss function. can utilize "huberized" value distribution. however, how set cutting border parameter? maybe missed somewhere in help. r gbm

Out Of Memory Error Android ImageViews -

Out Of Memory Error Android ImageViews - okay, in app have multiple imageviews each holding .png icon. right there 7... , yet app, @ random intervals, crash anr dialog (app not responding) , throws exception: 10-08 00:14:15.528 32732-32732/com.antechdevelopment.notificationreminders e/androidruntime﹕ fatal exception: main process: com.antechdevelopment.notificationreminders, pid: 32732 java.lang.outofmemoryerror @ android.graphics.bitmapfactory.nativedecodeasset(native method) @ android.graphics.bitmapfactory.decodestream(bitmapfactory.java:677) @ android.graphics.bitmapfactory.decoderesourcestream(bitmapfactory.java:507) @ android.graphics.drawable.drawable.createfromresourcestream(drawable.java:872) @ android.content.res.resources.loaddrawable(resources.java:3024) @ android.content.res.resources.getdrawable(resources.java:1586) @ android.app.applicationpackagemanager.getdefaultactivityicon(applicationpackagemanager.java

matlab - Creating a Bar Graph where each Bar is a Histogram -

matlab - Creating a Bar Graph where each Bar is a Histogram - i'm creating line plot, y value of each point average value of vector i. x value of each point i. i want visualise distribution of numbers in each vector, preferably on same graph. is there way can create bar graph, each bar, i, colorbar, representing histogram of vector i. want end 20 or bars, each beingness histogram. or if there improve way visualise numerous histograms on single plot, i'd hear it. i solved problem using dan's solution. took histogram of each vector (with specific bin intervals), , stored them in 2d matrix (each column finish histogram). displayed image() (don't have access imshow). i did have mess around axis labels though, image() function plotting according coordinates of 2d matrix, rather values in original vectors. fixed calls set(gca,'yticklabel/ytick'). had set ydir 'normal' rather 'reverse'. think image() flipping it. matlab his

php - laravel 4 routing to controller -

php - laravel 4 routing to controller - i'm missing on laravel routing. here's route: route::controller('admin', 'admincontroller', array('only' => array('index'))); here's controller: // admincontroller.php class admincontroller extends basecontroller { /** * @return response */ public function index() { homecoming 'admin!'; } } when visit /admin 404 error. i'm not sure why! expect admin! you should rename index() method getindex() when using route::controller php laravel

jquery - Pass values in a textarea and radio input via $.ajax -

jquery - Pass values in a textarea and radio input via $.ajax - i'm getting undefined error in ie8 on textarea , radio button when seek pass them via ajax. i've commented below next field i'm trying pass on send mail service php file. think need right syntax. this jquery/ajax code... var coverletter = $("textarea#coverletter").val(); $.ajax({ type: 'post', url: 'phpmailer/sendmyform.php', data: { name: $('#name').val(), from: $('#email').val(), role: $('#role').val(), message: $('#coverletter').val(), //textarea subject: $('#workfor').val() //radio button //cv: $('#cv').val(),//file upload

css - Set max height of Adsense responsive ad unit -

css - Set max height of Adsense responsive ad unit - i had 2 x (300x250) adsense advertisement units in right side bar of site i have made site responsive , replaced these advertisement units adsense responsive advertisement units. the problem have adsense serving 2 x (300x600) advertisement units. adsense tos state can serve 1 (300x600) advertisement unit per page the max width getting picked adsense responsive advertisement units. but when seek , set max-height of parent div 250px, limit number of 300x600 ads per page, max-height gets ignored , adsense still displays 300x600 has else encountered problem , if so, how did manage set max-height of responsive advertisement unit? thanks in advance, kes you alter data-ad-format="auto" data-ad-format="rectangle" . (see advanced features > horizontal shape example.) i think should not define height ( max-height ) on parent div . ad height (automatically) determined adsbygoogle.

javascript - jQuery code does not work in Safari for Windows -

javascript - jQuery code does not work in Safari for Windows - i have written code below in javascript file: $( document ).ready(function() { $("#fbhtmlimage .image_thumb").live('click',function(){ $(this).parent().find("label").click(); }); $("#dropboximagecontent .image_thumb").live('click',function(){ $(this).parent().find("label").click(); }); $("#instagramfrm .image_thumb").live('click',function(){ $(this).parent().find("label").click(); }); }); it working fine in browsers including safari mac. same code not working in safari windows. i have tried, $( document ).ready(function() { $(document).on("click","#fbhtmlimage .image_thumb",function() { $(this).parent().find("label").click(); }); $(document).on("click","#dropboxcontent .image_thumb",function() { $(this).parent().find("label").click(); }); $(

MySQL retrieve results based on matching percentage or limit -

MySQL retrieve results based on matching percentage or limit - i working on project people can search on dimensions. we have next table structure: product table: width length height people can search db giving illustration next dimensions: 300x200x250 what want sort result based on best match. exact dimensions found in db have 100% match. not want find results 100% match illustration 310x200x250 or 300x220x260 fine, except match percentage lower. we want allow results match of 90% or more or limit of 50 results. the basic query of course of study simpel: select * products length >= 300 , height >= 200 , height >= 100 and(formule calculate match higher 90% or max of 50 results. any on how can give me force in right direction how solve percentage part , max limit part. kind regards, erwin you can seek this class="lang-sql prettyprint-override"> select *, ceil((300/ width * 0.333 + 200/ length * 0.333 +

discrete mathematics - Prove or Disprove quantifiers (propositions logic) -

discrete mathematics - Prove or Disprove quantifiers (propositions logic) - what approach can take solve these question: prove or disprove next statements. universe of discourse n = {1,2,3,4,...}. (a) ∀x∃y,y = x·x (b) ∀y∃x,y = x·x (c) ∃y∀x,y = x·x. the best way solve such problems first think them until you're confident can either proven or disproven. if can disproven, have disprove statement provide counterexample. instance, b, can think of counterexample y=2. there no number x in n n*n = 2. thus, there counterexample, , statement false. if statement appears true, may necessary utilize axioms or tautologies prove statment. instance, known 2 integers multiplied produce integer. hopefully plenty of approach going. logic discrete-mathematics quantifiers

php - Duplicate records are allowed in table with two primary keys -

php - Duplicate records are allowed in table with two primary keys - i have table "userdetails" in 2 columns namely "emailid" , "userid" set primary key. don't key violation sql engine when seek insert duplicate values in table. how debug this? screenshots : you don't have 2 primary keys, have composite primary key 2 columns considered primary key. this means both columns together must unique. current screenshot shows while 2 records have same email, respective rows have different userid's, primary (composite) key unique between two, because both emailid , userid not same between 2 records. read more composite keys here edit: i'm not exclusively you're trying accomplish, guess want userid primary key, , have emailid unique field. php mysql sql

Titanium alloy check box creation label is not showing -

Titanium alloy check box creation label is not showing - i need create check box in app. same reason have installed native check box widget next link http://gitt.io/component/checkbox after installation when run app, result follows, but need show options check box. not able add together alternative label text check boxes. can 1 help me how add together options text check box. i need output similar follows, please help me how do that. or other best alternatives.please.. i guess need view element contains checkbox , corresponding label. this: <view id="yourouterview" layout="vertical"> <!-- other stuff --> <view id="checkboxcontainerview" layout="horizontal"> <checkbox /> <label id="yourlabel" /> </view> </view> please utilize checkbox code properly, couldn't set in because did not provide code. possible utilize inner view witho

javascript - Verify if snippet is installed -

javascript - Verify if snippet is installed - in order utilize products google analytics or kissmetrics have install snippet of javascript. these sites allow come in url in order check if snippet has been correctly install. what best way check? (the way can see parse page source doesn't seems super efficient, specially if snippet behind authenticated page) thanks, javascript ruby code-snippets

html - Check if one or multiple checkboxes is selected -

html - Check if one or multiple checkboxes is selected - i have list of checkboxes signing newsletter saves multiple values. when user selects 1 or multiple checkboxes need (hidden) checkbox selected automatically , saved database. problem don't know how automatically hiddensetting checkbox selected? <div class="col-us-6 col-xs-3"> <div class="checkbox"> <label> <input type="checkbox" name="section[]" value="2317|2325|2333|2341|2349|2374|2399|2424"<?php if (@in_array(2317, $member_values['section'])) echo ' checked="checked"'; ?>> alternative 1 </label> </div> </div> <div class="col-us-6 col-xs-3"> <div class="checkbox"> <label> <input type="checkbox" name="section[]" value="2318|2326|2334|2342|2350|2375|2400|2425"<?p

javascript - How to know when a specific div is hidden when page scroll up or down -

javascript - How to know when a specific div is hidden when page scroll up or down - i have div element in html page located @ position 1200px top,now when user scroll page downwards or , div element showing user javascript function should phone call . , when 1 time again page scrolled up/down div not visible function must called. use jquery... snippet: var $yourdiv = $('.your-div'); $(window).scroll(function(){ if ($(this).scrolltop() > 1200) { $yourdiv.fadein(); } else { $yourdiv.fadeout(); } }); api references: http://api.jquery.com/scroll/ http://api.jquery.com/scrolltop/ http://api.jquery.com/fadein/ http://api.jquery.com/fadeout/ example: http://jsfiddle.net/gilla/rqz86z3u/2/ javascript jquery html css

python - converting types of repeated list elements -

python - converting types of repeated list elements - i have list of lists , know each type of elements [str, str, str, int, int, int, str, int] . have convert function guesses type: def convert(val): constructors = [int, str] c in constructors: try: homecoming c(val) except valueerror: pass how possible replace convert function, because know type of each element (please see below total code)? from __future__ import absolute_import, division, print_function itertools import groupby info = [["test", "a", "b01", 828288, 1, 7, 'c', 5], ["test", "a", "b01", 828288, 1, 7, 't', 6], ["test", "a", "b01", 171878, 3, 7, 'c', 5], ["test", "a", "b01", 171878, 3, 7, 't', 6], ["test", "a", "b01", 871963, 3

How to change mediaType for a view in Controller - Spring MVC -

How to change mediaType for a view in Controller - Spring MVC - i have implemented content negotiation using http://spring.io/blog/2013/05/11/content-negotiation-using-spring-mvc. i have controller providercontroller & views in controller appended .action in web.xml <servlet-mapping> <servlet-name>provider</servlet-name> <url-pattern>*.action</url-pattern> </servlet-mapping> and if view needs rendered in html, utilize format query parameter (ex: renderhtml.action?format=html). how render page in format without using format query parameter? p.s : using spring 3.0. can't utilize produces annotation. thanks edit : viewresolver configuration in provider-servlet.xml <bean id="viewresolver" class="org.springframework.web.servlet.view.contentnegotiatingviewresolver"> <property name="favorparameter" value="true" /> <property name="parametername&q

sonarqube - error in ant sonar build -

sonarqube - error in ant sonar build - i new sonar , stuck error tried things possible sorting error soln provided still wont fix. checked sonar properties per it seems fine kindly help. logs below: d:\khushboo\repository\voice_br_cdv_gateway-1406\_voicegateway-1406\app\voicegateway>ant sonar -dworkspace=..\workspace.xml -dworkshop.home=d:\oracle\middleware1workshop_10.3 -dworkshop.lib.dir=..\workshop-lib -dwl.home=d:\oracle\middleware1\wlserver_10.3 buildfile: d:\khushboo\repository\voice_br_cdv_gateway-1406\_voicegateway-1406\a pp\voicegateway\build.xml sonar: [sonar:sonar] apache ant(tm) version 1.9.2 compiled on july 8 2013 [sonar:sonar] sonar ant task version: 2.0 [sonar:sonar] loaded from: file:/d:/jdevkhus/apache-ant-1.9.2/lib/sonar-ant-task-2.0.jar [sonar:sonar] sonar work directory: d:\khushboo\repository\voice_br_cdv_gateway- 1406\_voicegateway-1406\app\voicegateway\.sonar [sonar:sonar] sonar server: http://localhost:9000 [sonar:sonar] 17:03:25.745 info - load

Split MySQL column value to words and insert -

Split MySQL column value to words and insert - i have simple task do. have long text in db column , need break long text words , set each word table, lets fts_words : (id int, wrd varchar[255]) . can't find split() or explode() in mysql , mysql examples. found stupid "look-for-each-delimeter-substring-and-insert-each" solutions. is there block functions in mysql help me or more elegant cycle solution? mysql split full-text-search explode

How can I create a simple time-based notification for Google Glass? -

How can I create a simple time-based notification for Google Glass? - i'm working on alarm app, @ times (e.g. 7pm, 10:30am), glass should alert user. think work creating live card, don't know how create 1 @ time , can't find online dealing this. ideas? you can @ timer gdk sample project on google glass github repository. to give more alarm functionality, can utilize calendar class (java.util.calendar). google-glass

Retrieve field groups from SharePoint CSOM -

Retrieve field groups from SharePoint CSOM - i want retrieve existing field groups (from root) , display them in dropdown list. i'm using code retrieve columns (and display grouping they're belonging to): var web = clientcontext.web; fieldcollection rootfields = web.fields; clientcontext.load( rootfields, fields => fields .include(field => field.group) ); clientcontext.executequery(); foreach (field _fields in rootfields) { fieldslist.add(new selectlistitem { text = _fields.group }); } this shows few hundred groups (duplicates ofc), want narrow downwards few groups exist, , sort out duplicates. or there way this? you can via linq: distinct sort duplicates out of result. var results = rootfields.tolist().select(field => field.group).distinct();

What would cause a `mysql` command ran by Jenkins to use use `root` as its user? -

What would cause a `mysql` command ran by Jenkins to use use `root` as its user? - i have jenkins build job uses several "execute shell" build steps. shells run bash script contains several calls mysql command. the execute shell task looks like: ./run-mysql-scripts.sh ${mysql_host} ${other_parameter} ... the bash scripts contain several calls like: mysql -h $1 < somescript.sql the username not specified scripts , should inferred uses jenkins@jenkinsserver mysql credentials. has worked year. builds have started generating errors script attempting utilize root mysql user: error 1045 (28000): access denied user 'root'@'jenkinsserver' (using password: no) this has me baffled. when adding whoami command jenkins job returns jenkins , job running jenkins user. when login jenkins user , execute same commands job runs expected, using jenkins@jenkinsserver mysql auth. my recollection occurred when setting jenkins (about year ago)

ember.js - Layout for a group of Ember routes without affecting URL -

ember.js - Layout for a group of Ember routes without affecting URL - let's have next router: router.map(function() { this.route('intro'); this.route('about'); this.route('terms-of-use'); }); what want have parent template routes about , terms-of-use without modifying path, like: router.map(function() { this.route('intro'); this.route('some-layout', /* 0 length path options */) { this.route('about'); this.route('terms-of-use'); } }); i considering putting flag on applicationcontroller , using in application template show different stuff intro , other routes. create mess. then possible utilize custom base of operations route class about , terms-of-use overriden rendertemplate simulate parent template. wouldn't nice, configuration of template nesting spread across whole application. it seems optimal in router, possible? my current solution flag on applicationcontroller

javascript - How Do You Know How To Initialize A Script? -

javascript - How Do You Know How To Initialize A Script? - 2 questions: 1) how know how initialize script? code in spot in js file, have create initializing code scratch, etc? 2) why don't have "activate"/initialize jquery script? other scripts i'm using required activating, why jquery.js doesn't require internal script going? just trying wrap head around concept, in advance! in web page, javascript loaded , executed via html tags of: <script src="scriptfile"></script> or inline with <script> ... code here ... </script> in both/either cases, javascript loaded/found executed top of source way bottom in order found. there no "initialization" of javascript might found in, say, java or c. there no equivalent of main() function in: class x { public static main(string args[]) { .... } } in javascript code starts "executing" top. it not uncommon see javascript code

java - i am trying to sent sms through serial port event listener but i am grtting this error NoSuchPortException -

java - i am trying to sent sms through serial port event listener but i am grtting this error NoSuchPortException - week before code working after formating scheme giving nosuchportexception while trying send sms connect nokia c3 cell phone via usb error log as enter code here`info: server startup in 17344 ms +919032055002 null problem here in getting port number javax.comm.nosuchportexception port id : null @ javax.comm.commportidentifier.getportidentifier(commportidentifier.java:105) @ com.gces.sms.serialconnection.openconnection(serialconnection.java:73) @ com.gces.sms.sender.send(sender.java:68) @ com.gces.sms.smsclient.run(smsclient.java:38) @ java.lang.thread.run(unknown source) in sms client & msg : null java.lang.nullpointerexception @ com.gces.sms.serialconnection.openconnection(serialconnection.java:90) @ com.gces.sms.sender.send(sender.java:68) @ com.gces.sms.smsclient.run(smsclient.java:38) @ java.lang.thread.run(unknown source) and code here packa

android - Swipe down to refresh Material Design -

android - Swipe down to refresh Material Design - i've been looking around implementation of new material design swipe downwards refresh on recyclerviews loading circle coming downwards actionbar, new gmail app. haven't found similar yet, swiperefreshlayout+recyclerview examples. know how this? you can utilize swipetorefresh view provided in appcombat back upwards library: compile 'com.android.support:appcompat-v7:21.0.0' here's how can utilize in combination recyclerview <android.support.v4.widget.swiperefreshlayout android:id="@+id/swipe_refresh_layout" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.recyclerview android:id="@+id/list" android:layout_width="match_parent" android:cliptopadding="false" android:layout_height="match_parent" android:padding

express checkout - Using reference transaction with Paypal Standard -

express checkout - Using reference transaction with Paypal Standard - i want utilize reference transactions using paypal. using paypal standard. didn't find documentation of paypal using paypal standard. found using express checkout. in reference transaction documentation, there given requirement creating billing understanding between client , merchant. so there way of using reference transactions purely using paypal standard without using other method in of steps. reference transactions can performed via api's.so,it not possible reference transaction in paypal payment standard. part of express checkout flow. paypal express-checkout

javascript - Keep div overlay relative to background image regardless of window size -

javascript - Keep div overlay relative to background image regardless of window size - i want overlay text on background image background-size: cover . problem here how maintain overlay div @ same position, relative background image, regardless of window's size? here's fiddle play around: http://jsfiddle.net/resting/2yr0b6v7/ so want position word eye on eye of cat, regardless of window size. css or js solutions both welcomed. edit: added js alternative i convinced done css , gave up, remembered new(ish) css units vh , vw.... jsfiddle css html, body{ height: 100%; width: 100%; } .cat { height: 100%; width: 100%; position: relative; background:url(http://placekitten.com/g/800/400) no-repeat center center / cover; } .place-on-eye { position: absolute; color: #fff; margin:0; } @media (min-aspect-ratio: 2/1) { .place-on-eye { bottom: 50%; left: 46.875%; margin-bottom: 1.25vw; } }

inheritance - Java 8 -- interfaces with default methods vs abstract classes -

inheritance - Java 8 -- interfaces with default methods vs abstract classes - i'm trying come finish reply to: "why/when utilize abstract class rather interface." and looking verification/suggestions on following. an reply is, "to provide implementation of it. before concrete classes come in define specific types, abstract class, typically right below interface in inheritance hierarchy (as in many of examples in java apis) implements , pins downwards mutual aspects of construction interface defines. another reason utilize abstract class there clear logical hierarchy among types. abstract class has utilize organize hierarchy while forcing, beingness abstract class rather concrete one, instantiation of objects on concrete classes downwards below in hierarchy defined , meaningful." then, in context, comes q: "since java 8, interfaces can define default method implementations. why wouldn't wri

regex - How to make only the first character in each word uppercase in Perl -

regex - How to make only the first character in each word uppercase in Perl - this question has reply here: how can capitalize first letter of each word in string in perl? 9 answers i have string containing uppercase words , want create first letter of each word uppercase or convert first character lowercase. i've been messing around regex while , can't right. my $str = "foobar foobar"; $str =~ s/(\s+)/\u\l$1/g; print $str; output foobar foobar check ucfirst , lc in perldoc. regex string perl

javascript - Rails 4: Passing a local variable to a js.erb file from a partial containing a form_for helper -

javascript - Rails 4: Passing a local variable to a js.erb file from a partial containing a form_for helper - how pass local variable form_for helper js file? i have next file called _subscribe.html.erb <%= form_for @subscription, :url => {:controller => "subscriptions", :action => "create"} |f| %> <div><%= hidden_field_tag :group_id, group.id %></div> <%= f.submit "subscribe", class: "btn btn-primary subscribe_btn" %> <% end %> the grouping local variable gets passed block form , works (html until now). want turn ajax phone call added remote: true form , added file create.js.erb subscriptions folder: $("#new_subscription").html("<%= escape_javascript(render('subscriptions/unsubscribe', locals: { group: grouping } )) %>") and subscriptions controller create action: def create @subscription = current_user.subscriptions.create(:group_id

eclipse - Import Android project not select 'copy project into workspace' error -

eclipse - Import Android project not select 'copy project into workspace' error - i have problem importing android project eclipse in 3 scenario: i have clone android project bitbucket , synchonized eclipse workspace successfully! project raise many error. then remove project , using import function in android (file>import project). import project repo , check 'copy project workspace', awesome! project work perfectly. then testing again. utilize import function , not check on 'copy project workspace', oh no, project maintain error scenario 1. we've had issue - however, face in p4 scm. i guess problem same, anyway - project may not detected android project. first create new android project. now, go navigator in eclipse ( window -> show view -> navigator ) , open .project file - re-create it's contents , paste in (imported) project's .project file. should prepare it. make sure create required changes (the project

dom - Dynamically updating PayPal currency and amount feilds using javascript function -

dom - Dynamically updating PayPal currency and amount feilds using javascript function - i trying dynamically update amount , currency value fields in next paypal purchase form based on radio button selection using function below. unable pass currency , amount values form. grateful if advise script error is. the form: <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" name="f" id="f"> <input name="audio-book" type="radio" class="sum" value="54.95" checked="checked" /> nz$ 54.95 <input name="audio-book" type="radio" class="sum" value="43.95" /> au$ 43.95 <input name="audio-book" type="radio" class="sum" value="45.00" /> us$ 45.00 <input name="audio-book" type="radio" class="sum" value="34.95" /> eu€

ios - splitViewController showDetailViewController without animation? -

ios - splitViewController showDetailViewController without animation? - i wondering if it's possible show detail view controller without animating in (sliding window right). i'm expecting there sort of animated boolean parameter, seems there isn't. this have: [self.splitviewcontroller showdetailviewcontroller:detailviewcontroller sender:self]; am missing here? or there no way this? two options: utilize delegate load view controller instead. need implement splitviewcontroller:showdetailviewcontroller:sender: method. alternatively, (though docs seem discourage this) assign new detailviewcontroller splitviewcontroller's viewcontrollers property directly: nsarray *vcarray = @[self.splitviewcontroller.viewcontrollers[0],detailviewcontroller]; self.splitviewcontroller.viewcontrollers = vcarray; technically should check ensure existing viewcontrollers array has 2 elements first. ios ipad cocoa-touch uisplitviewcontroller presentviewcontroll

javascript - Tablesorter and automatic sorter digit? -

javascript - Tablesorter and automatic sorter digit? - i have lot of table using tablesorter on website , i'm looking way sort "sorter: 'digit' column have specific classname : "class="note". i know of header : $(".tablesorter").tablesorter({ headers: { 0: { sorter: 'digit' } // column number, type } }); but there generic way html : <th class="{sorter: 'digit'}">note</th> or classname <th class="note">note</th> somewhere in javascript this $(".tablesorter .note").tablesorter() ... ? because column "note" sometime 3rd column, sometime 5th etc. i inquire because without "digit" order specified, tablesorter not know how sort numbers ... here united nations jsfiddle show mean : http://jsfiddle.net/2cmuy39l/ thank you. if using fork of tablesorter, can accomplish @ to the lowest degree 2 different ways: add

javascript - Send two forms with ajax one submit button -

javascript - Send two forms with ajax one submit button - i have tho forms on 1 page (one generated 1 service cant alter it). need when sumbit form1 firstly send ajax sec form after send sec form send first form. seek way: $('#form1').submit(function(event) { var = (this); event.preventdefault(); $.ajax({ type:"post", url: "/wp-admin/admin-ajax.php", data: $('#form2').serialize(), success:function(data){ this.unbind('submit').submit(); } }); }); the problem is, cant send first form after sec one. ajax ends width success, first form not send. thanks help two things : $.ajax() returns promise, can chain .then(fn) , can create life easier regard meaning of this . form.submit() not retrigger form's submit handler, hence don't need un

c# - How to Programmatically Code-Sign an executable with a PFX (Bouncy Castle or Otherwise) -

c# - How to Programmatically Code-Sign an executable with a PFX (Bouncy Castle or Otherwise) - i trying determine best method code-signing executable using bouncy castle, managed code, or un-managed code c#. since capicom deprecated, imagine 1 of signersign methods mssign32.dll best way go if needs done unmanaged. this reply (http://stackoverflow.com/a/3952235/722078) seems close, produces .p7m file, which, while appearing right size, not run correctly (obviously renamed .exe before running). the solution given question-asker here (api/library replace signtool.exe) seemed promising , managed, tom canham mentions in comments below, "it appears signing enveloped messages. authenticode -- code-signing signtool -- different, why exe doesn't run after signing." receive same error tom when sign using either question-asker's solution or referenced bouncy castle solution. the alternative have not attempted yet given here (http://stackoverflow.com/a/6429860/722