Your Digital Media Has Never Looked So Good

Search found 315 matches

by RokuKC
Wed Apr 22, 2015 11:01 am
Forum: Roku Developer Program
Topic: Potential bug on StrI()
Replies: 4
Views: 864

Re: Potential bug on StrI()

by RokuKC
Fri Apr 17, 2015 9:55 am
Forum: Roku Developer Program
Topic: Variable limit
Replies: 27
Views: 2946

Re: Variable limit

TheEndless wrote:
FWIW, the stats command used to return information like this, which I actually found quite useful sometimes... sorry to see it go...


Feature restoration request noted.
by RokuKC
Wed Apr 15, 2015 10:16 am
Forum: Roku Developer Program
Topic: Sanitize special characters
Replies: 12
Views: 2324

Re: Sanitize special characters

... In my case I'm getting stuff out of ParseJSON . I've eventually just resorted to normalizing these characters on the backend as best as I can. Where are you getting the data string that you pass into ParseJSON from, and do you have an example you can share? Assuming the data comes from a web se...
by RokuKC
Tue Apr 14, 2015 1:56 pm
Forum: Roku Developer Program
Topic: Sanitize special characters
Replies: 12
Views: 2324

Re: Sanitize special characters

sonnykr wrote:
oh! I see.. thank you RokuKc and renojim! That solves my first issue.

Still unsure why roScreen does not render special chars


What font are you using?
by RokuKC
Tue Apr 14, 2015 12:10 pm
Forum: Roku Developer Program
Topic: Sanitize special characters
Replies: 12
Views: 2324

Re: Sanitize special characters

sonnykr wrote:
Make sure your .brs source code file is UTF-8 encoded if you are embedding non-7-bit ASCII characters, e.g. in string constants.


I tried Asc("ä") directly on Roku debugger console, and it returns 0 instead of the ASCII value.


The console only supports 7-bit ASCII.
by RokuKC
Tue Apr 14, 2015 11:11 am
Forum: Roku Developer Program
Topic: Sanitize special characters
Replies: 12
Views: 2324

Re: Sanitize special characters

Make sure your .brs source code file is UTF-8 encoded if you are embedding non-7-bit ASCII characters, e.g. in string constants. Otherwise, characters should generally be specified as Unicode code points. 132 (&h84) does not appear to be a printable Unicode codepoint. If you want 'ä' that would ...
by RokuKC
Tue Apr 07, 2015 3:41 pm
Forum: Roku Developer Program
Topic: System sounds added to roAudioResource!
Replies: 23
Views: 2619

Re: System sounds added to roAudioResource!

Thanks for the feedback. The feature request is noted.
by RokuKC
Tue Apr 07, 2015 11:02 am
Forum: Roku Developer Program
Topic: External Control changes?
Replies: 14
Views: 2135

Re: External Control changes?

Yes, I tried it without the HTTP as well and I get the same results. I'm running a 4200X - Roku 3 with software v6.2 build 3332. I'm opening a client to the IP address port 8060, if that's not correct please let me know. Did you try the command exactly as shown by Mark? I.e. no "HTTP/1.1\r\n&q...
by RokuKC
Tue Apr 07, 2015 10:55 am
Forum: Roku Developer Program
Topic: Apil 7 update bug POST
Replies: 3
Views: 770

Re: Apil 7 update bug POST

Yes, that appears to be the problem.

This should work:
printf "POST /keypress/Enter HTTP/1.1\r\n\r\n"' | nc " 192.168.1.199 " 8060
by RokuKC
Tue Apr 07, 2015 10:48 am
Forum: Roku Developer Program
Topic: Apil 7 update bug POST
Replies: 3
Views: 770

Re: Apil 7 update bug POST

I suspect the server is requiring CR-LF line endings now, instead of accepting LF-only line endings.

You might try using \r\n\r\n at the end instead of using an embedded newline constant.
by RokuKC
Mon Mar 30, 2015 10:45 am
Forum: Roku Developer Program
Topic: creepycrawler?
Replies: 11
Views: 2052

Re: creepycrawler?

... I thought that the hex constant &h was just a representative of a decimal intiger, as in &hFFFFFFFF = 4294967295 (http://sdkdocs.roku.com/display/sdkdoc/BrightScript+Language+Reference Section 3.3). Maybe I was completely wrong. Either way 4294967295 gives me a tinted red bitmap where &...
by RokuKC
Tue Mar 24, 2015 11:06 am
Forum: Roku Developer Program
Topic: creepycrawler?
Replies: 11
Views: 2052

Re: creepycrawler?

Wow i thinks i found an actual bug...errr Feature! yea thats it. OK. screen.Drawscaledobject( 620, 230, 2, 2, varr.but_off ) 'good So the scale params are supposed to be floats, natch but the above works. Until you add the ( i swear i saw it somewhere - recently documented alpha parameter) then it ...
by RokuKC
Mon Mar 23, 2015 11:25 am
Forum: Roku Developer Program
Topic: BuhByteArray
Replies: 25
Views: 3165

Re: BuhByteArray

Either way if Roku would like to add the ability to at least URLtransfer a bitmap thats - you know - already created - i won't stop them. I'd prefer, and have requested multiple times, the ability to create a PNG on the device from an roBitmap. The libraries are already there, so it shouldn't requi...
by RokuKC
Fri Mar 20, 2015 12:14 pm
Forum: Roku Developer Program
Topic: BuhByteArray
Replies: 25
Views: 3165

Re: BuhByteArray

Either one of you care to make a suggestion on how I might make it work? I'm not a PHP developer, but spurred by Mark's comment looked at PHP docs briefly... Looks like if you had to, on the server you could do $img = imagecreatetruecolor( $w, $h ) to allocate an image buffer, then walk over all th...
by RokuKC
Fri Mar 20, 2015 12:04 pm
Forum: Roku Developer Program
Topic: BuhByteArray
Replies: 25
Views: 3165

Re: BuhByteArray

KC - So is this php $im = imagecreatefromstring($data); expecting jpeg encoded data? Because you can do either imagejpeg(' ') or imagepng(' ') after this to make a file. I can only guess about the PHP code. FWIW your example good $data appears to be PNG file data. You might look into whether the se...