Posts

SAP ABAP - Handling with control tables -

my problem: i "loop" on table local structure named ls_eban.. and information must follow these instructions: ls_eban-matnr must be in zmd_scmi_st01 ( 1. control table (global) ) ls_eban-werks must be in zmd_scmi_st05 ( 2. control table (global) ) ls_eban-knttp must be in zmd_scmi_st06 ( 3. control table (global) ) i need selection clear , performant. have one, isn't performant @ all. my solution: select st01~matnr st05~werks st06~knttp zmd_scmi_st01 st01 inner join zmd_scmi_st05 st05 on st05~werks = ls_eban-werks inner join zmd_scmi_st06 st06 on knttp = ls_eban-knttp table lt_control st01~matnr = ls_eban-matnr , st01~bedarf = 'x' , st05~bedarf = 'x'. i have say, control tables doesn't have relation each other (no primary key , no secondary key). the first thing should not have select inside loop. instead of loop @ lt_eban ls_eban. select .... endloop. you s...

deployment - Best way to deploy Django app to OpenShift without downtime? -

i have been pushing new versions of django app openshift time now. @ first used general git push command. later on had add long running deploy commands. long story short took half hour complete deployment -> app unavailable. enabled jenkins , first push fails , app unavailable time. jenkins runs on 1 gear, creates new gear , have 4 gears running. (one paid, because jenkins not work , stays alive time) i've read hot deploy (page 40) might work without downtimes, afraid consistency(not sure read more it). so, there these 3 options how push openshift. there third party service might use? how push openshift minimize downtime , potentially number of gears used? i think you've pretty answered own question, go hot deployment if need continuous delivery on app. i'm not sure concerns consistency, if have them, use jenkins original ci purpose, , if ok, can push production using hot deployment. basically, i'd have such workflow: make changes , commi...

javascript - Unable to catch 401 status code with Angular HttpInterceptor -

i have created http response interceptor checks 401 status code. if code 401, supposed write in browser console, not work. doesn't seem catch it. app.js: 'use strict'; // declare app level module depends on views, , components var app = angular.module('myapp', []); app.factory('authhttpresponseinterceptor', ['$q', '$location', function ($q, $location) { return { response: function (response) { if (response.status === 401) { console.log("response 401"); } else { console.log("other response no 401"); } return response || $q.when(response); }, responseerror: function (rejection) { if (rejection.status === 401) { console.log("response error 401", rejection); } ...

ruby - Rails model attribute (a DateTime) has different value depending on how its called -

i using rails 4.2 , ruby 2.2.0. have model called ride has datetime attribute called start_time. when call ride.find(1803) , start_time shown january 9th. when call ride.find(1803).start_time , returns start_time on january 9th. how possible , how fix it? here's full code ran in console: irb(main):028:0> ride.find(1803) => #<ride id: 1803, start_time: "2016-01-09 00:00:00", end_time: nil, created_at: "2016-01-05 16:55:44", updated_at: "2016-01-05 20:35:38", user_id: 29, ride_type: nil, horse_id: nil, notes: "", available_to_ride_additional_horses: nil, admin_approved: false, weekday: nil, unavailable_to_ride: false, time_range_dropdown: "morning", rider_name: "matti fisher", rider_last_name: "fisher", rider_first_name: "matti", edited_at: nil, requested_time: "2016-01-09 19:30:00"> irb(main):029:0> ride.find(1803).start_time => fri, 08 jan 2016 19:00:00 est -05:00 ...

c# - Build MVC6 / ASP.Net 5 project in x86 mode -

Image
i'm working on new mvc6 / asp.net 5 project using vs2015, sp1. i'm trying configure childcarefamilyprotal project build in x86 mode. mvc6 project. can select x86 platform platform dropdown. after save configuration , reopen it, platform "any cpu" note - have build in x86 due existing dll's cannot change. below screen shot of configuration manager. open properties childcarefamilyportal, navigate build tab, , select x86 platform target. should take care of problem.

android - How to dynamically define name of R.drawable -

this question has answer here: how image drawable folder in android? 4 answers is there way generate r.drawable.... name on fly? want set background image dynamically generated name ( usable r.drawable.example_graphic ) so want find way assign string $abc -> btn.setbackgroundimage(r.drawable.$abc); i don't want create new drawable, want use existing one. yes. drawables constants @ compile time: know exists. so, in application object, create map: public static final map<string, integer> named_resources; static { map<string, integer> m = new hashmap<string, integer>(); m.put(key1, r.drawable.abc); m.put(key2, r.drawable.def); // ... named_resources = collections.unmodifiablemap(m); } now can: btn.setbackgroundimage(application.named_resources.get($abc));

xml parsing - Jquery object innerHTML working in Firefox but not IE? -

in summary have xml string use jquery find children of specific node. these children , values used build html select box , append webpage. the xml <!--- node level !--> <salutation restricted="no" type="dropdownbox" tooltip="select title customer" required="yes" size="6"> <value>mr</value> <value>sir</value> <value>mrs</value> <value>miss</value> <value>lord</value> </salutation> the code function dropdownbuilder( xml, element, id ) { // find node specific name , children selection = $("<div>" + xml + "</div>").find(element).children(); console.log( selection ); // generate select box var selectbox = "<select id=\"" + id + "\"> "; ( var j = 0; j < select...