back soft

مطالب مرتبط با «side» در back soft | نویسنده: استخدام کار

Matlab function in Simulink - retain previous non-zero input value

Vote count: 0 I have a Matlab function block in Simulink that receives 2 inputs and processes it to generate an output. During the course of the simulation, at some time points, one of the inputs is zero. I'd like to use the most recent non-zero input to the function whenever that particular input value is zero. How can I achieve this? I tried creating a persisent variable that updates to most recent non-zero input value but that doesn't seem to work. asked 10 secs agoarun Let's block ads! بخوانید...

ادامه مطلب

Android MapView in ListView Headeris is not calling onTouchEvent

Vote count: 0 I have a ListView where I add a Google Map MapView into the header view, below is the code on how I do that: vListViewTrips.addHeaderView(vMapHeaderView, null, false); The map is shown and works but the map does not handle any gestures when its being touched even though all gestures are anebled by: googleMap.getUiSettings().setAllGesturesEnabled(true); Based on some searches that I did I tried to extend MapView and override the public boolean dispatchTouchEvent(final MotionEvent motionEvent) but still the onTouchEvent of the MapView is never called. Here is the code: @Override public boolean dispatchTouchEvent(final MotionEvent motionEvent) { System.out.println("asfdasfdgsafd")...

ادامه مطلب

Listing Chrome users from outside Chrome

Vote count: 0 Chrom(ium) supports the creation of multiple users. These users end up having Profile folders created. For example, /User Data/Default, /User Data/Profile 1. How do I programmatically obtain the list of Chrome users as well as their respective profile directories. At first I thought it was just parsing through the App Data/Local/Google/Chrome/User Data folder but it seems to be storing the information somewhere else, as deleting a Profile, e.g., Profile 1, causes it just to be created and the user is still listed. asked 20 secs agotofutim Let's block ads! بخوانید...

ادامه مطلب

How to print Javascript order of code execution by line numbers [No Debugging]

Vote count: 0 In my Node.JS code, i wanted to know some of my asynchronous code execution without debugging (debugging could interrupt my asynchronous cals) application by printing out all filename: line numbers, in order of code execution. As of now, i'm using DEBUG=* npm start to see debug logs on express. But, it's not giving enough information i'm looking for. Is there any better way or module to achieve this? asked 1 min agoPrasad.CH Let's block ads! بخوانید...

ادامه مطلب

Handel namespace defined between two tags inside body - xslt

Vote count: 0 The xml : JL-C JOB Lakhs The xslt :...

ادامه مطلب

Getting null value instead of Id when using custom AuthorizeAttribute

Vote count: 0 I call this action method using an ajax call: [AuthorizeCheckCreator] [HttpPost] [OutputCache(Location = OutputCacheLocation.None, NoStore = true)] public ActionResult Delete(Guid id) { // code.... retu Content("ok"); } I have created a custom AuthorizeAttribute for checking permission of the user (I wanted to make sure whether the user is owner the record or not): public class AuthorizeCheckCreatorAttribute : AuthorizeAttribute { public IRequest RequestService { get; set; } protected override bool AuthorizeCore(HttpContextBase httpContext) { RequestCheckUserViewModel request; if (httpContext.Request.IsAjaxRequest()) { var ajaxId = JsonConvert.DeserializeObject(System.Text.Enco...

ادامه مطلب

Can we have Google Now type search in our app?

Vote count: 0 Is it possible to integrate google now features in our app? Basically I want a text or speech result for the voice search within the app. So far the closest thing I have found is RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE This basically launches the Google Now screen on top of the app and responds back with the voice feedback as Google Now does. I haven't found any way yet to listen in background and get the speech result or text result which can be converted into speech by TTS engine. asked 17 secs agoAmit Let's block ads! بخوانید...

ادامه مطلب

NullReferenceException inside Exceptional logging

Vote count: 0 I’m replacing Elmah with Exceptional, but having an issue. It works fine if the exception is thrown inside my web project or if the error is a 404 (The controller for path '/blah/blah' was not found or does not implement IController). But if I throw an exception from within one of my referenced projects that’s not my web project, then Exceptional throws an error when attempting to log. The following error and stacktrace only gets displayed in the console. The error gets swallowed at that point and doesn't get logged anywhere. One of the beauties of open-source, is that I can see the code that’s throwing the exception, but no idea why… Exception thrown: 'System.ArgumentException...

ادامه مطلب

How to add a side menu with NativeScript + Angular 2 project?

Vote count: 0 i'm whiling to know how to add a side menu on my current NativeScript + Angular 2 project, I know that has a side menu template, but i started it as blank project and i'm wonder how to add this feature. asked 31 secs agoBenevides Lecontes Let's block ads! بخوانید...

ادامه مطلب

Angular 2 set form model value inside other custom directive

Vote count: 0 For example I have following input field inside some bigger form: Input field has formControlName directive for form model and one custom directive for manually setting value with jquery datepicker: import { Directive, ElementRef, AfterViewInit } from "@angular/core"; declare var jQuery:any; @Directive({ selector: "[bootstrapDatepicker]" }) export class BootstrapDatepicker implements AfterViewInit { private el: HTMLElement; constructor(el: ElementRef) { this.el = el.nativeElement; } ngAfterViewInit() { jQuery(this.el) .datepicker() .on("changeDate", function(e) { // ??? }.bind({el: this.el})); } } After i choose date from datepicker, input value is visually changed, but form mo...

ادامه مطلب

Jasmine test for method call inside Ajax on Dom element

Vote count: 0 I am completely new to Jasmine and not sure if I am approaching this correctly. I want to test that the DataTable() method is called on my table dom element. This should occur on successful ajax responses. However, it is initialized inside an ajax call and I'm not sure how to test this. The javascript function that makes the ajax call is updateResults(). Here's what I've tried. describe('#ajax', function () { var leaderboards, spyOnAjax; var formActionUrl = '/jasmine_test_url'; beforeEach(function () { setFixtures('' + '' + '' + '' + '' + ' ' + ''); leaderboards = new LeaderBoards($('div.lb-container')[0]); spyOnAjax = spyOn($, 'ajax').and.callThrough(); leaderboards.updateResu...

ادامه مطلب

Duplicate items gridview inside expendablelistview

Vote count: 0 i need to show 2 column textview using gridview inside expandablelistview.But when i select group one the child item retu many duplicate item.I want to remove the duplicate items.I've tried to find a solution but i am caot find the solution.How can i solve this? Expandable Adapter public class Expendable_Adapter extends BaseExpandableListAdapter { private Context _context; TableLayout tableLayout; //private List _listDataHeader; // header titles private List _listDataHeader; // child data in format of header title, child title //private HashMap _listDataChild; private List _listDataChild; Listlistchild; public Expendable_Adapter(Context context, List listDataHeader, List listCh...

ادامه مطلب

Check for true inside a while within foreach

Vote count: 0 I am having a hard time wrapping my head around something that seems simple. I am checking for features associated with a product in my table of products. Then I want to output the features for all the products associated with each store. The problem is when I do a while loop inside my foreach I end up with multiple outputs of the same feature (I only want to list each feature once) foreach($facilities as $facility){ while($rates->loop_all()){ $feat_arr = $rates->get_features_as_array(); If(($feat_arr['bubbles']) == TRUE){ $bubvar = 'bubbles'; }else{ $bubvar = ''; } If(($feat_arr['suds']) == TRUE){ $sudvar = 'suds'; }else{ $sudvar = ''; } } echo $bubvar; echo $sudvar; } My resu...

ادامه مطلب

Box shadow not showing on both sides

Vote count: 0 I use this css code for box shadow but I get only on the top and bottom Look like this div#blog-pager { border-radius: 2px; -webkit-box-shadow: 0 0 3px rgba(0,0,0,.35); -moz-box-shadow: 0 0 3px rgba(0,0,0,.35); box-shadow: 0 0 3px rgba(0,0,0,.35);} this css style don't have shadow style #blog-pager{background:#fff;clear:both;width:auto;padding:20px;line-height:normal;position:relative;display:block;text-align:right;overflow:visible;margin:20px 0 5px 0} I don't know if this code above affect the code I added This is my blog : Blog asked 11 secs agoyoussef elmajbri Let's block ads! بخوانید...

ادامه مطلب

MapView does not load properly inside fragment. Strange behaviour on Google PLay services 9.4.0

Vote count: 0 I am using MapView inside a fragment. Now it does not load. (Or to be precise, it loads but it does not load. Yes, its weird, pics attached.) Here is the code : @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_home, container, false); mapView = (MapView) view.findViewById(R.id.mapview); // Gets the MapView from the XML layout and creates it mapView.onCreate(savedInstanceState); // Gets to GoogleMap from the MapView and does initialization stuff mapView.getMapAsync(this); } And on MapReady, I do this : @Override public void onMapRead...

ادامه مطلب

Variable doesn't work inside JQuery scroll function

Vote count: 0 my goal is to create and display variable which will record scroll position. While the scroll function seems to be working (for example i can alert a message inside it) but when I add a scroll_pos variable it just stops working. I have followed this tutorial https://www.youtube.com/watch?v=AwgODLLSgwU but i don't understand what's wrong with my code. I use...

ادامه مطلب

UITextView inside a UIScrollView in xamarin

Vote count: 0 I have created a contentview and in my pcl and in the IOS renderer I have created the below scrollview and textview, but I don't see anything in the page [assembly: ExportRenderer(typeof(SthotramView), typeof(SthotramViewRenderer))] namespace Sthotraani.iOS.CustomControls { public class SthotramViewRenderer:ViewRenderer { UITextView utv; UIScrollView usv; protected override void OnElementChanged(ElementChangedEventArgs e) { base.OnElementChanged(e); if (e.NewElement == null) retu; if (e.OldElement == null) { var sthotramView = Element as SthotramView; if (sthotramView.IsNotNull()) { utv = new UITextView(); utv.Selectable = false; utv.Editable = false; utv.Font = UIFont.FromName...

ادامه مطلب

C Program to find if two words are anagrams (my code inside)

Vote count: 0 The program prompts the user to type two words stored in two different arrays. If the words are anagram it would print "Anagram", if not it'd print "Not Anagram". I made an array for all the alphabet letters, letter 'a' is stored as {1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...} filling in he whole array of letters. Then I compared both arrays, to determine if they are the same word I substracted each letter and if they are 0 (cancel out each other) they are Anagrams. Here's my code so far, I'm not sure what I'm doing wrong. I'm pretty sure there's something wrong in the Boolean function. #include #include #include void read_word(int counts[26]) { int i; char ch; printf("Enter a...

ادامه مطلب

why private part of a class is considered as interface?

Vote count: 0 I'm reading Grady Booch's book third edition. In page 94, Booch said that: We can furthur devide the interface of a class into four parts: Public: a declaration that is accessible to all clients Protected: a declaration that is accessible only to the class itself and its subclasses Private: a declaration that is accessible only to the class itself Package: a declaration that is accessible only by classes in the same package I can understand why protected declaration can be considered a interface, becuase subclasses of a class is this class's client, too. But I don't understand why the private declaration can be considered as interface. Please enlight me. asked 28 secs agoUniFre...

ادامه مطلب

Ionic2 how to prompt an alert with checkbox inside?

Vote count: 0 Using Ionic2 and angular2: I want to show an alert box, inside which a text along with checkbox - to ask for user if he/she agree to the statement. Please help!! asked 39 secs agoAnkit Maheshwari Let's block ads! بخوانید...

ادامه مطلب