SpaceX successfully launched its third flight to the International Space Station this morning carrying more than 1,200 pounds of cargo as part of the company?s ongoing orbital trucking contract with NASA. This morning?s launch was the first daytime launch of the Falcon 9 from Cape Canaveral, with the liftoff taking place at 10:10 a.m. EST.
Wired Top Stories
problem
All posts tagged problem
Carrying your iPhone in your pants pocket is great and convenient, except for when you want to discretely tap out a message or play a quick game of Tiny Wings, particularly if you’re on public transportation. Show your true dedication to your iPhone-wielding way of life with the DELTA415 Wearcom jeans from Alphyn Industries.
Among the software architects with a strong voice on conferences, twitter and in the blogosphere there is wide spread agreement that one should bet on evolutionary architecture.
Author: LauraMarie
Subject: Parsing Problem – Need some help
Posted: Sat May 26, 2012 1:49 pm (GMT -7)
Topic Replies: 2
I have been trying to figure out an elegant way to accomplish this but it has gotten ugly and still does not work.
This is the problem. I am using TM’s label plugin (which BTW is great) but the RGB color format does not use commas and expects 9 digits. So let’s say the user chooses 10,106,0 which has a HTML equivalent of #0A6A00. In order to use the RGB string in the label plugin it would expect a format of 010106000 which means 0 must be inserted ahead of any component color with less than 3 digits. Still with me?
So, I realize that I must first parse the string using the commas as the delimiter, then determine the length of each sub-string, subtract 3 – length and then insert the zeros needed. Finally take the three modified sub-strings and combine them for the desired result of 010106000.
Here is my code. Right now it is just running in a loop. I am not sure if you can nest a while action inside a controlled loop? Maybe there is a better approach to take? I would appreciate any wisdom you can offer.
| Code: |
|
StrParse "[PickedColor]" "," "[RGB]" "[N]" Loop "1" "[N]" "[X]" SetVar "[Y]" "3" While "[Y]" ">" "0" StrLen "[RGB][X]" "[Z]" Math "3 – [Z]" "0" "[Y]" If "[Y]" ">" "0" StrIns "0" "[RGB][X]" "1" "[RGB][X]" EndIf EndWhile EndLoop SetVar "[RGB]" "[RGB1][RGB2][RGB3]" |
Thanks. ![]()
_________________
My Current Project:
http://www.slideagent.com
Author: HPW
Posted: Sat May 26, 2012 2:52 pm (GMT -7)
Topic Replies: 1
When use of a plugin (hpwControl) is allowed:
| Code: |
|
StrParse "[PickedColor]" "," "[RGB]" "[N]" hpwStrPadLeft "[RGB1]" "0" "3" "[RGB1]" hpwStrPadLeft "[RGB2]" "0" "3" "[RGB2]" hpwStrPadLeft "[RGB3]" "0" "3" "[RGB3]" SetVar "[RGB]" "[RGB1][RGB2][RGB3]" |
_________________
Hans-Peter
Author: TinTin
Posted: Mon Apr 23, 2012 6:50 am (GMT -7)
Topic Replies: 2
thanks for the check on this, however I have changed the ID table / names but still same result… ![]()
Author: chromebandit
Posted: Sat Apr 21, 2012 5:56 am (GMT -7)
Topic Replies: 1
Make shure not using 0 bytes documents
Regards
_________________
Chromebandit
Author: minimonk
Subject: FTP Problem
Posted: Sat Apr 21, 2012 5:22 am (GMT -7)
Topic Replies: 0
Hello Just wondering if anyone else is having the same problem as me
I cant download a file from my server, I keep getting the message FILE NOT FOUND, I have tried using the absolute paths but still get the error, I also get the file cant be found when using the File Exist Command… It returns FALSE
But if i use file rename, then it works and renames the file
and i use the same path.
minimonk
Apple?s announcement of a dividend and stock buyback was a welcomed boon to already well rewarded shareholders. Yet to be addressed, however, is a critical issue that affects even more vital stakeholders ? its customers and developers. The rising chorus of complaints about fraud perpetrated through the App Store is a major risk for Apple?s golden status.
Author: 70mach1
Subject: Problem with Mouse Enter on a button
Posted: Fri Mar 02, 2012 4:43 pm (GMT -7)
Topic Replies: 4
I’ve got a test app with a set of three buttons that need to be ‘moused over’ from left to right within a time limit to activate a configure window.
They way I have it coded is:
- Mousing over button 1 starts a timer and enables button 2.
- Mousing over button 2 restarts the timer and enables button 3.
- Mousing over button 3 stops the timer and activates the config code.
- If the timer expires on button 2 or 3 then both buttons are disabled.
When I run the test program, it works as expected the first time I mouse over all three buttons. If I mouse over the buttons after that then the Mouse Over event for button 3 does not activate until I mouse over it twice. It does not see the first mouse over and the timer keeps running.
Below is a stripped down version of my test and I don’t see any errors in the code.
Any help/ideas?
————————————————————-
NBW Publication Source File
(C)1993-2011 NeoSoft Corp.
Title=Kiosk Test
Author=Me
Language=US
NeoBookVer=5.70
ScreenColors=16777216
ScreenWidth=320
ScreenHeight=200
BkndColor=0
ScreenAutoSize=Yes
LinkColor=16711680
WindowStyle=0
WindowOrder=0
WindowPos=0
WindowProps=29
BiDiMode=0
AllowESC=No
AllowPageUpDn=No
UseUpdateTimer=Yes
BypassPrintDlg=Yes
NoCtrlAltDel=Yes
NoPrintScrn=Yes
ReturnTime=60
ShapeTransColor=536870912
NoMultiInst=Yes
CompiledName=C:\Projects\Kiosk Test\Kiosk_Test.exe
CompileType=0
MediaType=0
FilesIncluded=1
FontsIncluded=2
FontsToCompile=|
CopyExternalFiles=No
SetupMedia=3
SetupInstDir=C:\MyProgram
SetupTitle=Setup
SetupColors=16711680|0|65535
Variables=[Date]¶[Datenum]¶[Txt_Pressed]¶
VersionMajor=1
VersionMinor=0
VersionRelease=0
VersionBuild=0
ReqExLevel=1
CustomFontName=Arial
CustomFontSize=9
CustomFontStyle=0
CustomCharset=1
CacheSize=30
ExtractOp=132
L_OK=OK
L_CANCEL=Cancel
L_YES=Yes
L_NO=No
L_CLOSE=Close
L_ERRORTITLE=Error
L_FINDTITLE=Find
L_FINDPROMPT=Find &What
L_FINDFIRST=&Find First
L_FINDNEXT=Find &Next
L_FINDERROR=Search text not found.
L_PWORDTITLE=Password required
L_PWORDMSG=Before continuing, you must first|enter the correct password.
L_PWORDPROMPT=&Password:
L_PWORDERROR=That’s not the right password!
L_MEDIAERROR=In order to play this type of file you must install|the appropriate multimedia hardware and/or|software.
L_INTERNETERROR=Unable to locate Internet Browser software.
L_ABORTFUNCTION=Do you want to cancel this function?
L_EXTRACTERROR=This file could not be extracted and cannot be played.
L_INSTDIRPROMPT=Please enter the drive and directory where you would like this program to be installed. To accept the default drive and directory, simply press Enter.
L_INSTFOLDERPROMPT=Do you wish to create a program folder?
L_INSTRUNPROMPT=Do you want to run
L_INSTDISKPROMPT=Please insert disk #
L_INSTDISKERROR=That’s not the correct disk, try again.
L_INSTGENERROR=The installation has terminated.
L_INSTEXITPROMPT=Do you really want to cancel the installation?
L_INSTWINTITLE=Setup
L_INSTPROGTITLE=Extracting Files…
L_SENDEMAIL=Sending Mail…
L_MAILSERVER=Please enter the name of your outgoing email server:
L_COPY=Copy to Clipboard
L_SELECTALL=Select All
L_DONWLOADFILE=Downloading: %s
L_PLEASEWAIT=Please wait…
TrayMenuBegin
MenuName=TrayOpen
MenuText=Open
MenuState=3
MenuKey=0
MenuAction=SetVar "[WindowState]" "Normal"
MenuName=TrayExit
MenuText=Exit
MenuState=3
MenuKey=0
MenuAction=Exit "" ""
MenuEnd
MasterPage
NewPage=New Page
PageStyle=0
PageColor=16777215
PageGradient1=16711680
PageGradient2=255
PageGradientDir=1
WallpaperStyle=0
EffectSpeed=0
ObjectType=3
Name=Btn1
X=0
Y=0
W=64
H=64
Anchor=0
Text=1 >
Align=2
ImageStyle=0
BevelWidth=0
XPTheme=Yes
ObjEnterAction=SetVar "[Btn01]" "On"¶EnableObject "Btn2"¶TimerStart "Timer1" "2000"
LineColor=0
LineWidth=0
LineStyle=0
FillColor=12632256
FillPattern=1
FillMode=Yes
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=3
ObjectType=3
Name=Btn2
X=96
Y=0
W=64
H=64
Anchor=0
Text=2 >
Align=2
ImageStyle=0
XPTheme=Yes
ObjEnterAction=TimerStop "Timer1"¶EnableObject "Btn3"¶TimerStart "Timer1" "2000"
ObjExitAction=DisableObject "Btn2"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
Enabled=No
TabOrder=2
ObjectType=3
Name=Btn3
X=194
Y=0
W=64
H=64
Anchor=0
Text=3 >
Align=2
ImageStyle=0
XPTheme=Yes
ObjEnterAction=TimerStop "Timer1"¶DisableObject "Btn2"¶DisableObject "Btn3"¶SetVar "[Action]" "Open Config"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
Enabled=No
TabOrder=1
ObjectType=15
Name=Timer1
X=-60
Y=12
W=32
H=32
Anchor=0
AutoStart=No
RunOnce=Yes
Interval=2000
ObjAction=DisableObject "Btn2"¶DisableObject "Btn3"
ObjectType=8
Name=Text5
X=56
Y=97
W=215
H=50
Anchor=0
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\margh720\margf720{\*\pnseclvl1\pnucrm\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl2\pnucltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl3\pndec\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl4\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{)}}}¶{\*\pnseclvl5\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl6\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl7\pnlcrm\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl8\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl9\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶\endnhere\sectdefaultcl{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs20\cf0 [Action]}}¶}
HMargin=4
VMargin=4
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
TabOrder=6
ObjectType=3
Name=PushButton5
X=104
Y=159
W=122
H=31
Anchor=0
Text=Clear
Align=2
ImageStyle=0
XPTheme=Yes
ObjAction=SetVar "[Action]" ""
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=5