undocumented-behavior

How to customize the background of an App Designer figure?

自闭症网瘾萝莉.ら 提交于 2021-01-27 06:53:12
问题 I'd like to attach a logo or change the whole background of an App Designer uifigure . How can this be done? 回答1: If you want to set a solid background color for the entire figure , there exists a documented way to do this, e.g.: % When creating a new uifigure: fig = uifigure('Color',[R G B]) % if the uifigure already exists: fig.Color = [R G B]; If you want to change the background color of just some region , you can add a uipanel with no title or border ( uipanel(...,'BorderType','none',

How do I discover all available properties when using a jQuery UI widget?

∥☆過路亽.° 提交于 2020-02-08 03:13:33
问题 I have recently found that there are additional properties for some jQuery UI widgets that work, but are not documented. For example, when providing the buttons property on a jQuery UI 1.11.4 dialog box, I can use sub-properties like id and autofocus , neither of which are listed in the official documentation. $("#myDialog").dialog({ title: "Do the thing?" buttons: [ { text: "Yes", id: "dialogBtnYes", click: function () { $(this).dialog("close") } }, { text: "No thanks", id: "dialogBtnNo",

Matlab debug: skip next line without execution

混江龙づ霸主 提交于 2020-01-15 10:23:29
问题 Questions: (full description of problem is below) Does anyone have a suggestion on how to trick Matlab into skipping a line or several lines of code? (mex / java / rewriting some internal Matlab features?) Does anyone know where db* code files may be located (if exist)? There are several functions in Matlab that allow flow-control while debugging / running a program: dbstop , dbcont , dbstep , etc... I was trying to find a db* function that would skip the next line in a Matlab script, dbskip

Linux (GLNXA64) using mxCreateUninitNumericMatrix R2013b

孤街醉人 提交于 2020-01-02 23:16:03
问题 In one MEX file, I created an output matrix with the command (working fine): plhs[0] = mxCreateNumericMatrix((mwSize)destLen, 1, mxUINT8_CLASS, mxREAL); For speedup I wanted to use the dynamic memory uninitialized, which lead me to the undocumented command: plhs[0] = mxCreateUninitNumericMatrix((mwSize)destLen, 1, mxUINT8_CLASS, mxREAL); working also very fine within Win32 and Win64. Using exactly the same code within my Linux environment leads to the following warning from compiler: warning:

How to customize App Designer figures in more ways than officially documented?

人盡茶涼 提交于 2019-12-29 04:57:26
问题 A recently published article in UndocumentedMatlab, mentions that App Designer figures are actually web pages using the Dojo Toolkit. This means we could theoretically manipulate the HTML DOM directly to achieve certain UI customizations that are otherwise unavailable. Below is an example of an App Designer figure definition, as appears in the .m file generated by the App Designer (on MATLAB R2016a): classdef domDemo < matlab.apps.AppBase % Properties that correspond to app components

Is safe ( documented behaviour? ) to delete the domain of an iterator in execution

折月煮酒 提交于 2019-12-23 12:50:03
问题 I wanted to know if is safe ( documented behaviour? ) to delete the domain space of an iterator in execution in Python. Consider the code: import os import sys sampleSpace = [ x*x for x in range( 7 ) ] print sampleSpace for dx in sampleSpace: print str( dx ) if dx == 1: del sampleSpace[ 1 ] del sampleSpace[ 3 ] elif dx == 25: del sampleSpace[ -1 ] print sampleSpace 'sampleSpace' is what I call 'the domain space of an iterator' ( if there is a more appropriate word/phrase, lemme know ). What I

How does task manager elevate without UAC Prompt?

允我心安 提交于 2019-12-21 04:12:53
问题 This has been on my mind for sometime. I can open task manager by pressing Ctrl + Shift + Esc and on the second tab (Processes), I can easily press Alt + S -- Show processes from all users to elevate my task manager without any prompts whatsoever . And voila, I have a powerful tool to play with. I've been unable to find any documents explaining this and I'm very curious about how this feat is achieved; since the button should actually ask for a prompt but does not. 回答1: What you are

Controlling the Alarm icon in status bar

邮差的信 提交于 2019-12-17 09:55:24
问题 This question relates to Android versions pre-Lollipop. For Lollipop API, check related question: Lollipop API for controlling the Alarm icon in status bar I would like to know how to turn on / off the system Alarm icon in the status bar as shown in this image: From what I understand about the system, and what I've read in the past, it is controlled by the built in system alarm clock app. And 3rd party apps have no control over it on an unrooted device. There is no reason we should be able to

How to properly display TeX strings in axes' datatips? (MATLAB hg2)

孤者浪人 提交于 2019-12-02 04:28:58
问题 I have recently tried to run an old piece of code (written on hg1) on a new version of MATLAB (2015a) that has hg2. I used to be able to do the following (according to the "gnovice-Amro" method): function output_txt = customDatatip(~,event_obj) % Display the position of the data cursor % obj Currently not used (empty) % event_obj Handle to event object % output_txt Data cursor text string (string or cell array of strings). hFig = ancestor(event_obj.Target,'figure'); %// I don't trust gcf ;)

How to properly display TeX strings in axes' datatips? (MATLAB hg2)

谁都会走 提交于 2019-12-02 02:38:49
I have recently tried to run an old piece of code (written on hg1) on a new version of MATLAB (2015a) that has hg2. I used to be able to do the following (according to the " gnovice - Amro " method): function output_txt = customDatatip(~,event_obj) % Display the position of the data cursor % obj Currently not used (empty) % event_obj Handle to event object % output_txt Data cursor text string (string or cell array of strings). hFig = ancestor(event_obj.Target,'figure'); %// I don't trust gcf ;) pos = get(event_obj,'Position'); output_txt = {['\lambda: ',num2str(pos(1)*1000,4) 'nm'],... ['T(