Posts

linux - Jenkins builds failing with a missing file error even though the file is there -

i have jenkins server running , have couple of builds working. however, morning when tried add 1 kept failing error - [test.gov] $ /bin/sh -xe /tmp/hudson7055290339554583413.sh + ./opt/jenkins/build.sh /tmp/hudson7055290339554583413.sh: line 2: /opt/jenkins/build.sh: no such file or directory build step 'execute shell' marked build failure the shell script @ path , has name. if make ./opt/jenkins/build.sh still fails same error. command have in "execute shell" section in "command" text box /opt/jenkins/build.sh . tried ./opt/jenkins/build.sh well. the script on centos system btw. this script trying run - echo "git pull" cd /var/www/path/for/my_website/docroot/ git checkout master git pull echo "change ownership apache" chown -r apache:apache * echo "running drush commands" drush updb -y #drush fra -y drush cc often "build.sh: no such file or directory" error means shebang line within buil...

There is an error "unfortunately, my application has stopped" when i run my program in android studio -

i got error when run program in android studio. message error below : 10-22 19:13:54.831 3478-3478/com.example.natasya.myapplication e/androidruntime: fatal exception: main 10-22 19:13:54.831 3478-3478/com.example.natasya.myapplication e/androidruntime: process: com.example.natasya.myapplication, pid: 3478 10-22 19:13:54.831 3478-3478/com.example.natasya.myapplication e/androidruntime: java.lang.runtimeexception: unable start activity componentinfo{com.example.natasya.myapplication/com.example.natasya.myapplication.mainactivity}: java.lang.illegalargumentexception: invalid provider: null 10-22 19:13:54.831 3478-3478/com.example.natasya.myapplication e/androidruntime: @ android.app.activitythread.performlaunchactivity(activitythread.java:2416) 10-22 19:13:54.831 3478-3478/com.example.natasya.myapplication e/androidruntime: @ android.app.activitythread.handlelaunchactivity(activitythread.java:2476) 10-22 19:13:54.831 3478-3478/com.example.natasya.myapplication e/androidrunt...

jquery - Bootstrap carousel not working on business catalyst hosted site -

i used same code below in dreamweaver. in local hosted environment, works fine. however, if put same code in business catalyst server, cannot show images. <!doctype html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <!-- latest compiled , minified css --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> <script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script> ...

Android TextView Padding with a drawable background in xml -

Image
so... a known android issue setting drawable background textview in conjunction setting padding (e.g. paddingleft ) work if background set before padding . far (and annoying). but, if want via .xml (and not programmatically)? :( ideas? here want: but no matter paddingleft set, nothing changes. i'm positive should work, maybe it's layout bug? here (very simplified) layout: <relativelayout android:layout_width="match_parent" android:layout_height="match_parent" > <button android:id="@+id/call" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparenttop="true" android:layout_alignparentleft="true" android:layout_alignparentstart="true" android:background="@drawable/call_btn" android:paddingleft="@dimen/desired_left_padding" android:paddingstart="@dimen/desir...

Calling Python Functions from Java (Without Jython, because it is too slow.) -

i need able call python functions java, , return of functions, should primitives only. i don't need access java objects in python or other stuff that. but, of all, need speed. need able load script @ start of application , call functions @ different time-intervals, can tiny (30-40 times per second). that's main-reason why don't think jython work me: has kinds of stuff don't need, , incredibly slow. so, constraints/requirements have: needs fast i need call python functions , result the script should loaded once do guys know way call python functions in pre-loaded script (so script not have loaded again , again each function call)? (ps: not think duplicate searched quite lot , links found did not answer question (for example calling python in java? ) ) you write jni code embed cpython interpreter. you write python program run daemon (or web service or whatever) , connect via sort of networking. intentionally vague here since such broad question...

html - Responsive Adsense ad unit won't display at 320x50 px -

i have responsive adsense ad unit serve footer on responsive web site. using media queries, described in adsense documentation, in order set height/width @ different screen widths. here's css: <style> @media (min-width: 320px) { .adslot-desktop { width: 320px; height: 50px; display: inline-block; } } @media (min-width: 500px) { .adslot-desktop { width: 468px; height: 60px; display: inline-block; } } </style> and here's html: <ins class="adsbygoogle adslot-desktop" data-ad-client="xxxxx" data-ad-slot="xxxxxx" data-ad-format="auto"></ins> at screen widths on 500px, expected 468x60 ad. however, below 500px, i'm getting 320x100 ad. why not giving me 320x50 ad appear i'm specifying? i think you'll need remove data-ad-format , because data-ad-format smart sizing : we calculate required size dynamicall...

How to passing vars to an Angular ui-modal template -

i tried out lot of, doesn't works. code runs not show vars "title" , "text" in modal. this code: // in controller: $confirm({title: "error", text: "test"}, { templateurl: "alertmodal") .then(function() { }); <!-- template --> <script type="text/ng-template" id="alertmodal"> <div class="modal-header"> <h3 class="modal-title">title: {{title}}</h3> </div> <div class="modal-body"> text: {{text}} </div> <div class="modal-footer"> <button class="btn btn-warning" type="button" data-ng-click="cancel()">cancel</button> </div> </script> the model triggered xml-request, want use service.