Position set toast
So I defined Toast later: http://bbcascadescode.tumblr.com/post/45727262914/a-toast-to-the-imagetogglebutton
And I see that you can move the position of the toast to the help: https://developer.blackberry.com/cascades/reference/bb__system__systemtoast.html#function-setpositio...
But where should I call this function? I've tried a few things and nothing seems not to work, to feel like I'm missing something obvious here
In all of my code toast position is fixed and not dynamically changed then it is perhaps the question that you run in.
attachedObjects: [ SystemToast { id: qmlToast position: SystemUiPosition.TopCenter } ]
You may need to use
import bb.system 1.0
(this is in my code, but I don't know if it is related to the toast or something else)
Tags: BlackBerry Developers
Similar Questions
-
How to add text to the file .ai and position set, font, size and color
I want to put multiple lines of text (individually) in .ai file and set the size, font, color, and position for each.
Preference text should have the origin at a single point (rather than being framed)
Hope someone can help out me.
Thank you in advance.
Hi zblj,
This should also work in CS6
var redCMYK = new CMYKColor(); redCMYK.cyan = 0; redCMYK.magenta = 100; redCMYK.yellow = 100; redCMYK.black = 0; var aText= app.activeDocument.textFrames.add(); aText.top = -150; aText.left = 50; aText.textRange.size = 30; aText.textRange.characterAttributes.fillColor = redCMYK; aText.textRange.characterAttributes.textFont = textFonts.getByName("MyriadPro-Regular"); aText.contents = "Your Text"; redraw();
You can find many other properties textrange, executives of related texts and character in the OMV ExtendScript Toolkit.
Have fun
-
How to add a field to a position set in a Manager?
Hello programmers.
I need help with something I do not understand how to do it.
So the idea is that I have a file where lines are read and become labels in the app, but I want to reverse the order in which they appear (the last being set on top, so). No idea how I might accomplish this?
Thanks for your help, will not forget... Bravo!
Utilisez.Insert (...) instead of de.add (...) when you add the fields.
-
How to determine the size of the binary file data set
Hi all
I write specific sets of data in table in a binary file, by adding each time so the file grows a set of data for each write operation. I use the set file position function to make sure that I'm at the end of the file each time.
When I read the file, I want to read only the last 25 data sets (or numbers). To do this, I thought using the position set file to set the file position where it was 25 sets of data from the end. Math easy, right? Apparently not.
Well, as I was collecting data file size as I began the initial tet run, I find the size of the file (using file order size and get number of bytes so) as the size increases the same amount every time. My size and the format of my data being written is the same every time, a series of four numbers double precision.
I get increments are as follows, after the first write - 44 bytes, after 2nd - 52 bytes, 3 - 52 bytes, bytes 44 4th, 5th - 52 bytes, 6 - 52 bytes, 7th - 44 bytes and it seems to continue this trend in the future.
Why each write operation would be identical in size of bytes. This means that my basic math for the determination of the poistion of correct file to read only the last 25 sets of data won't be easy, and if somewhere along the line after I've accumulated hundreds or thousands of data sets, what happens if the model changes.
Any help on why this occurs or on a working method, all about the problem would be much appreciated.
Thank you
Doug
-
reset the encoder position different stepper
I have a step by step (with encoder) engine connected to a NI 7350 motion controller. The encoder and the stepper have different number per revolution.
I am trying to reset the engine to a zero position, count value is different for the stepper and encoder, with the Position.vi 'reset' under the control of the path, but it seems that I can only put them on the same value. How is it?
-ray
You have the option to add a secondary feedback.
However, you can read next article. As long as you set the parameters in MAX, he should be able to do the calculations in the background with respect to the commands that you send to the engine. And then by setting the value of the primary feedback is not really a problem.
For example let's say that we use the example in the article (1000 steps/rev and counts/rev encoder 2000) you start at position 0, provide an order of 100, it will make the 2:1 calculation and stop the drive motor once it has 200 impulses of the encoder. Let's say you want to make of this new 'home' position, set you to 0 and from there. If you set it to 0, say 150, which corresponds to 150 steps the engine or 300 counts of the encoder.
In summary if you set the account/rev and steps/rev, Max the associated values order you will be in terms of engines. LabVIEW will make the calculation of the rate required to stop on the County of appropriate encoder.
-
Hello
I would like to know your suggestions on how I can solve this task:
I have a file to each 7 settings can be written. each parameter is separated using '; '. so I have:
A; B; C; D; E; F; G
first six parameters are integers that can be incremented. I have to write a function that will allow me the right parameter is added another number. So, if I want to add 4 to the parameter 3rd I do an update on the third parameter: C + 4 and write again to the file, so I'll take:
A; B; C + 4; D; E; F; G
My problem is that I can't solve the position setting. OK, by example-i use DataBuffer, I can "setPostion" and write from this, but... what happens if my number will get bigger? First, he takes a position (nominal example: 1), but after a few updates, it will get bigger and take three positions (rated example: 120). the parameter can crush the room of another parameter.
can anyone suggest me how can I solve it? I hope that I have just described clearly what is my problem...
I'll be really gratefull for all the ideas!
Kind regards
OK, I solved my problem. Here is my code in case someone needs something similar:
public void addToLog(int _where, FileConnection _fc, int _data, String _dataToday){ try{ _dis = _fc.openDataInputStream(); _stringBuffer = new StringBuffer(); int _c; while( (_c = _dis.read()) != -1 ){ _stringBuffer.append((char)_c); } _dis.close(); String _string = _stringBuffer.toString(); String _search = ";"; String _result = ""; int _i; int _j = 0; String[] _arr = new String[7]; do{ _i = _string.indexOf(_search); if( _i != -1 ){ _result = _string.substring(0, _i); _arr[_j] = _result; _j++; _result = _string.substring(_i + _search.length()); _string = _result; } }while( _i != -1); //update _arr[_what] = String.valueOf(_data); _stringBuffer = new StringBuffer(); //convert to string, add ";" between every item for(int _a = 0; _a < _arr.length; _a++){ _stringBuffer.append(_arr[_a]); _stringBuffer.append(";"); } _dos = _fc.openOutputStream(); _db = new DataBuffer(); _db.writeChars(_stringBuffer.toString()); _dos.write(_db.getArray(), 0, _db.getArray().length); _dos.flush(); _dos.close(); }catch(Exception e){ } }//end of addToLog() method
hope it will be useful for someone.
Kind regards!
-
Problem in the establishment of the IPs of various NICs through Set-OSCustomizationNicMapping
I need to create multiple VMs to Linux from a few different models and I would use a customization specification profile. The VM model has 3 NIC in 3 different VLANS, the 3rd is not suppposed to have a default gateway (which is not my main problem). Cloning via vCenter works, after I provide the IPs 3 virtual machine is cloned correctly.
However, this script, I try this code:
$custSpec = get-OSCustomizationSpec "D1 RedHat | New-OSCustomizationSpec-name "xyz".
$custSpec | Get-OSCustomizationNicMapping | Game-OSCustomizationNicMapping - IpMode UseStaticIP-position 1 IP address - 10.70.236.99 - mask subnet 255.255.255.0 - DefaultGateway 10.70.236.1
$custSpec | Get-OSCustomizationNicMapping | Game-OSCustomizationNicMapping - IpMode UseStaticIP-position 2 - IpAddress 10.70.237.99 - mask subnet 255.255.255.0 - DefaultGateway 10.70.237.1
$custSpec | Get-OSCustomizationNicMapping | Game-OSCustomizationNicMapping - IpMode UseStaticIP-position 3 - IpAddress 10.10.10.99 - mask subnet 255.255.255.0 - DefaultGateway 10.10.10.1
$custSpec | Get-OSCustomizationNicMappinggives some problems with PowerCLI 4.1U1. The first Set-OSCustomizationNicMapping command sets the IP address correctly, but the 2nd and the 3rd gives:
Game-OSCustomizationNicMapping: 14/04/2011-16:23:10 Set-OSCustomizationNicMapping the Posiotion of the object property has changed. This property represents a portion of the Id of the object, so this operation is ambiguous. Please get the new object and run the operation.
At line: 1 char: 74
+ $custSpec | Get-OSCustomizationNicMapping | Game-OSCustomizationNicMapping < < < < - IpMode UseStaticIP-position 2 - IpAddress 10.70.237.99 - mask subnet 255.255.255.0 - DefaultGateway 10.70.237.1
+ CategoryInfo: ResourceUnavailable: (:)) [game-OSCustomizationNicMapping], VimException)
+ FullyQualifiedErrorId: Client20_ObjectVersionService_VerifyIsCurrentVersion_ExpiredObject, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetOSCustomizationNicMappingand the profile of customization is set to:
SpecId Position IPMode IPAddress DefaultGateway
------ -------- ------ --------- --------------
XYZ 1 UseStaticIP 10.70.237.99 10.70.237.1
XYZ 2 UseStaticIP 10.10.10.99 10.10.10.1
XYZ 3 UseStaticIP 10.10.10.99 10.10.10.1When there are:
SpecId Position IPMode IPAddress DefaultGateway
------ -------- ------ --------- --------------
XYZ 1 UseStaticIP 10.70.236.99 10.70.236.1
XYZ 2 UseStaticIP 10.70.237.99 10.70.237.1
XYZ 3 UseStaticIP 10.10.10.99 10.10.10.1Why it gives the above errors and that's why changing the IPs incorrectly?
Thanks in advance.
Hello
This behavior is by design. Here is the explanation:
Cause:
1. misuse of command
' Set-OSCustomizationNicMapping - Position' sets the posiotion of the nic past mapping object.
The following call assigns consecuently the posiotion three objects to map nic 1:
$custSpec | Get-OSCustomizationNicMapping | Game-OSCustomizationNicMapping - IpMode UseStaticIP-position 1 IP address - 10.70.236.99 - mask subnet 255.255.255.0 - DefaultGateway 10.70.236.1
2 locking mechanism
So lets have the mapping objects following nic
1 mappingA
2 mappingB
3 mappingC
If you keep the reference to A and B and change the posiotion c and 1st then the references of the A and B will expire and you will no longer be able to edit them with this old references. The reason behind this is the unique identifier of A and B, we know is their position and this ID has changed--they became the 2nd and 3rd. So to change the old references with bad identifiers may cause problems only. That's why we have implemented the locking mechanism and you have to get the nic mapping objects to change.
Solution:
$custSpec | Get-OSCustomizationNicMapping | où {$_. {Position - eq 1} | Game-OSCustomizationNicMapping - IpMode UseStaticIP - IpAddress 10.70.236.99 - mask subnet 255.255.255.0 - DefaultGateway 10.70.236.1
$custSpec | Get-OSCustomizationNicMapping | où {$_. {Position - eq 2} | Game-OSCustomizationNicMapping - IpMode UseStaticIP - IpAddress 10.70.237.99 - mask subnet 255.255.255.0 - DefaultGateway 10.70.237.1
$custSpec | Get-OSCustomizationNicMapping | où {$_. {Position - eq 3} | Game-OSCustomizationNicMapping - IpMode UseStaticIP - IpAddress 10.10.10.99 - mask subnet 255.255.255.0 - DefaultGateway 10.10.10.1I hope this will help.
Thank you
Nedko
-
Once again, back to sqlplus and Oracle, so thanks in advance.
I use ' NULL value '0' ' to print a zero when I have a null value.
The problem I have is that the '0' which is printing does not work
seem to behave like other column values (which are numbers).
set the position
set echo on
NewPage Set 1
set pagesize 55
set linesize 66
FW_STREAM_NAME FORMAT a20 column
column RIGHT JUSTIFY SUM (TOTAL_RECORDS) FORMAT 9 999
-value NULL ' 0'
SELECT FW_STREAM_NAME, SUM (TOTAL_RECORDS) BL_STATISTICS_FILE where created_timestamp between
To_date('20100826000000','yyyymmddhh24miss') AND
GROUP to_date('20100826235900','yyyymmddhh24miss') BY FW_STREAM_NAME
and here is the result:
APPLES12345 2 810
ORANGES3456 36
BANANAS12456 16
PEARS6789 0
CHERRIES 131
Everything is aligned except my special column, where sqlplus has replace the null with
a '0' as I asked him to.
How can I get to match with the rest of the entries digital column?
Thank you
MitchOne way would be to do in SQL not in SQL * more
SELECT FW_STREAM_NAME, nvl(SUM(TOTAL_RECORDS),0) from BL_STATISTICS_FILE WHERE created_timestamp between TO_DATE('20100826000000','yyyymmddhh24miss') AND TO_DATE('20100826235900','yyyymmddhh24miss') GROUP BY FW_STREAM_NAME
-
I love the fisheye effect in FCP X
is it possible to have the hang of the effect on the screen or any movement affect the screen?
Use keyframes to move the effect on the axis X and Y:
Some effects have a control icon, move as desired add keyframes:
This control to the browser screen is for the Fisheye effect.
Set a keyframe, move the playback cursor as desired, pass the control to the screen to a new position, set another keyframe.
Al
-
How to add data to a text file?
Hello
I want to add data to a previously created text file. When I used writing text file.vi. It replaces previous data.
Try to use the function "set position in the file" (file e/s palette, advanced functions) before writing the data.
either open the file, position set to finish, write the data, close the file.
Ian
-
Understanding on the 9505 FPGA VI speed control
I was able to quickly use the 9505 Servo Drive example for closed loop control of position on the FPGA, but I can't find how to change the code to take in charge the speed control (which I need to another axis). I'm doing my changes on the FPGA VI itself rather than on the side of RT Softmotion.
Here are the questions I have:
If I use the PI speed loop with my speed and a set arbitrary control speed, I see the speed stabilizes (engine power seems uniform), but I can't correlate with the other speed reference that a larger number is faster. Speed (from the loop of the encoder) seems collating in values from 0 to 2 just on my FPGA VI (I do not understand the units, but I see my position change on my collation of encoder in thousands of pulses per second). Why are they so different/how I have adapted my encoder speed correctly?
Using just the delivery example 9505 Servo Drive (position control), how to set the speed of moving of the FPGA code (in interactive mode)?
Hello
Speed is defined through position set points. Control of the speed in the screw RT does not actually send speed commands to the reader, but sends position set points at a known rate. Given that the position set points are sent at a constant rate, an effective speed can be calculated.
A method to do so via the FPGA would synchronize a loop in your FPGA code for the analytical engine, which has a known rate. Once this is done, you can calculate the actual speed of the engine.
-Erik S
-
Battery writing TIFF: frames move to the right
Hello
I get individual frames of a video camera and write it in a binary file (TIFF stack). The individual images are captured in a loop For.
The problem is that in the Tiff file, images are gradually moved further and further to the right to each image in the stack. The parts that move away from the image on the left ocurr.
The images do not move before their entry in the writing of binary VI. I probed this remodelling in 320 x 256 table table and feeding it into the 'picture in picture' and then it showed.
Maybe the "current position" setting moves to the next picture in the TIFF stack, but also the position of the image in the frame?
I've included a screenshot of VI.
Dennis
Finally found. For writing binary VI, ' Prepend array or string size? ' should be set to FALSE.
I also tried file 2 IMAQ [TIFF] VI - according to the documentation he can't stand stacks image (or "MultiPage images").
-
How can I catch a wave and measure asymmetric peak?
A profilometer using the topology of a deposited material surface can be measured. I want to design a program to read in the raw data of these profiles files and then perform an analysis that will extract the distribution in the heights of peaks/troughs and the distances between the peaks. Reading data, manipulation of tables and producing output/plots files with that I'm fine but the problem I have are as to what analysis tools can be used on these asymmetric waveforms. I was thinking about a form any signal processing technique, but I'm not sure. I have attached a profile example for one of my samples to give an idea of what I am working with...
If it is representative enough of your data, I would first take stabbed using the detector tip a LabVIEW VI (Signal Processing-> operation of signals). There not much noise at all relative to the size of your pics (if we talk only about those visible here), so you could just smooth out your data with a Savitsky-Golay function (or such) to exit the small move of random noise, offset all of your points to make positive, set a width value and the crest of the reasonable threshold and get there.
Now, if you have a huge hollow as in the file you sent, you may miss a lot of pics (even once, I don't know what are your criteria for a 'Summit'). If that happens, I would say looking at data upside down to find your valleys as reverse 'summits '. At this point, you can go right back, connect the valleys with lines and subtract these points from your data to a pseudo-base and run the VI Ridge detector again (you probably can go much more sensitive with your adjustment of threshold because you took most of drifting in the very long term). You should have now identified all of your points of peak and Valley on axis X. return the original data to determine the heights of peaks with some basic algorithm you want to use (linear between valleys, Bézier curves, etc.).
That's how I would attack it generically. But it's a very common situation in probably all science and engineering fields. Isn't there some geological no - power of data standard method generally agreed criteria for your problem?
Cameron
-
Basic binary file not read unless placed in the Exact Format, it is from?
OK, check this. This just makes no sense to me. First, you will need to run it and create two files. You will get an error at the close. Now... Here's what makes no sense to me. If you enable the disabled diagram and read this file, you can watch how the file is read and interpreted data. How is it different and not causing no not a mistake? I took the U8 and changed its original format of Boolean Array [8] and received an error message. Which means that the data has been read as a U8 at some point. But... for any reason, cannot be read and displayed as a U8. What is happening with this? What I don't understand?
Freeshape wrote:
Huh... no reading and writing. Read or write. Gotcha.
Not quite. It is hence is the file pointer.
The file pointer is where in the file will be read or written, according to what you are doing then. When you write to a file, the file pointer is set to be directly after what you just wrote. When you write a new file, the file pointer is at the end of the file. When you try to read when the file pointer is at the end of the file, an attempt to read at the end of the file is located. But there is that nothing so he could read it. As a result, you get an end of file error.
So if you added a file position set to set the file at the beginning of the file pointer, you can read your byte without error.
-
Can someone tell me why I can't use the Position "Set Datalog' return to overwrite existing records in a circular buffer?
Thank you
Matt
Maybe you are looking for
-
iPassword extension does not install
I downloaded the 1Password for Firefox extension. But when I try to install it on Firefox 3.6.13 I get an error message. Don't know what I'm doing wrong and I want to use 1Pass with Firefox. It works fine on Safari 5 and OS x 7.2 so...? I downloaded
-
What about error 126 & 1068? Cannot use scanner or printer.
I keep getting notes saying 'the service is not running' went to 'services' and enabled the number of items that seem appropriate, but I seem to be missing some key service module.
-
its really slow gains. I want to run faster and be more afficent
its really slow connection... It's just not as fast on foot beds like he used to be.
-
Windows Media Player 11 stops playing after 2 songs (Vista). How to fix?
When I play music ripped in Windows Media Player 11, it will play 2 songs and then stops. I just hit > | , it will play the next 2 songs and stops. I have Vista Home Premium 32-bit. I thought of reinstalling Media Player, but which would eliminate al
-
PRODUCT of Z2 XPERIA NUMBER and SERIAL NUMBER
Hi all, I want to record my camera with sony, but I don't know where is the serial number and product number please help me.