Notice: Welcome to TinyChan, an account has automatically been created and assigned to you, you don't have to register or log in to use the board, but don't clear your cookies unless you have set a memorable name and password. Alternatively, you can restore your ID. The use of this site requires cookies to be enabled; please cease browsing this site if you don't consent.

TinyChan

Topic: Hey On, I need another program to perform small transformations on hex strings

+FuckAlms !vX8K53rFBI9 years ago #48,416

albumart.pngAll it has to do it take the input in the top row form and re-arrange it to the bottom row form and output that. But the output needs to be some sort of gui popup box or something so I can copy the text to the clipboard instead of just writing an output file like the boners program does.

Also, the light blue lines represent points where a - needs to be inserted into the string.

(Edited 1 minute later.)


+Nugget Syntaxroll !Uvm54ORbmo9 years ago, 12 minutes later[T] [B] #525,148

what's the input format, string or raw data

·FuckAlms !vX8K53rFBI (OP) — 9 years ago, 8 minutes later, 21 minutes after the original post[T] [B] #525,149

@previous (Nugget Syntaxroll !Uvm54ORbmo)
string with spaces between each hex set

+Syntax9 years ago, 31 minutes later, 52 minutes after the original post[T] [B] #525,150

@OP
var input = "AF 5B 0A 7F FC 12 06 4C A5 4C 59 13 01 AD BF 29".split(' ');
console.log([input[3], input[2], input[1], input[0], '-', input[5], input[4], '-', input[7], input[6]].concat(input.slice(8,10)).concat(['-']).concat(input.slice(10)).join(''));

·FuckAlms !vX8K53rFBI (OP) — 9 years ago, 11 minutes later, 1 hour after the original post[T] [B] #525,151

@previous (Syntax)
I like this solution, but I'd still need the html code that it would be interacting with/through.

·Syntax9 years ago, 1 minute later, 1 hour after the original post[T] [B] #525,152

@previous (FuckAlms !vX8K53rFBI)
web console - CTRL + SHIFT + K
easy

·FuckAlms !vX8K53rFBI (OP) — 9 years ago, 11 minutes later, 1 hour after the original post[T] [B] #525,154

@previous (Syntax)
ah
one missed dash though after input[6]
var input = "AF 5B 0A 7F FC 12 06 4C A5 4C 59 13 01 AD BF 29".split(' ');
console.log([input[3], input[2], input[1], input[0], '-', input[5], input[4], '-', input[7], input[6], '-'].concat(input.slice(8,10)).concat(['-']).concat(input.slice(10)).join(''));

·Syntax9 years ago, 3 minutes later, 1 hour after the original post[T] [B] #525,155

@previous (FuckAlms !vX8K53rFBI)
indeed
<html>
<head>
  <title>teste</title>
  </head>
  <body>
    <script type="text/javascript">
      function convert(){
        var input = document.getElementById('input').value.split(' ');
        document.getElementById('output').value = [input[3], input[2], input[1], input[0], '-', input[5], input[4], '-', input[7], input[6], '-'].concat(input.slice(8,10)).concat(['-']).concat(input.slice(10)).join('');
      }
    </script>
    <input id="input"/><br/>
    <input id="output"/><br/>
    <button onclick="convert()">Convert</button>
  </body>
 </html>

(Edited 18 seconds later.)


·FuckAlms !vX8K53rFBI (OP) — 9 years ago, 3 hours later, 5 hours after the original post[T] [B] #525,156

@previous (Syntax)
Thanks.

Just in case I ever need to retrieve this, the final version...
<html>
  <head>
    <title>WM/WMCollectionID</title>
  </head>
  <body>
    <script type="text/javascript">
      function convert(){
        var input = document.getElementById('input').value.split(' ');
        document.getElementById('output').value = ['AlbumArt_{', input[3], input[2], input[1], input[0], '-', input[5], input[4], '-', input[7], input[6], '-'].concat(input.slice(8,10)).concat(['-']).concat(input.slice(10).concat(['}_Large'])).join('')
      }
    </script>
    <center>
      <h4>WM/WMCollectionID</h4>
      Input<br>
      <input id="input"/><br>
      <button onclick="convert()">Convert</button><br><br>
      Output<br>
      <input id="output"/>
    </center>
  </body>
</html>

(Edited 42 seconds later.)

·FuckAlms !vX8K53rFBI (OP) — 9 years ago, 4 minutes later, 5 hours after the original post[T] [B] #525,157

WM/WMCollectionID

Input



Output

·Nugget Syntaxroll !Uvm54ORbmo9 years ago, 9 minutes later, 5 hours after the original post[T] [B] #525,158

@previous (FuckAlms !vX8K53rFBI)
awesome stuff

·Syntax9 years ago, 6 minutes later, 5 hours after the original post[T] [B] #525,159

@previous (Nugget Syntaxroll !Uvm54ORbmo)
thanks - I wouldn't call myself a good Programmer but still am good with basic scripting/programming concepts.
Odd how the only Programming language I am any good at is FORTRAN and is still the only language of choice with Supercomputers

Its crazy - I use UNIX daily and always connect to my 5 Sun Solaris work stations. Turns out for Math where speed counts aka SUPERCOMPUTER its done in FORTRAN.

(Edited 1 minute later.)


+Anonymous D 9 years ago, 5 hours later, 10 hours after the original post[T] [B] #525,160

Gt+shut+down+the+atoms+gt+do+you+ev.jpgfor those wondering if the South is going to rise again..

TITAN...twenty seven TRILLON calculations per second..

located where....oh about thirty mins down the street from me..
pic is response to people who think the South is less than superior..
Oh...and same place computer sits is where the bombs that made Japan bow down in WWII were produced..

also close in Tennessee...home of Jack Daniels..

honorable mention: Tn native Andrew Jackson...twenty dollar bill..

·Nugget Syntaxroll !Uvm54ORbmo9 years ago, 17 minutes later, 10 hours after the original post[T] [B] #525,161

@previous (D)
oh hey look, 50yo living with mommy talking nonsense gibberish again

+Anonymous E9 years ago, 1 hour later, 12 hours after the original post[T] [B] #525,169

@525,157 (FuckAlms !vX8K53rFBI)
> function convert(){
> var input = document.getElementById('input').value.split(' ');
> document.getElementById('output').value = ['AlbumArt_{', input[3], input[2], input[1], input[0], '-', input[5], input[4], '-', input[7], input[6], '-'].concat(input.slice(8,10)).concat(['-']).concat(input.slice(10).concat(['}_Large'])).join('')
> }
>
> WM/WMCollectionID
> Input
>
> Convert
> Output

Neat

·Anonymous E9 years ago, 1 minute later, 12 hours after the original post[T] [B] #525,170

@525,159 (Syntax)

Most programming jobs are shipped off to India and you gotta train your replacement--called Digging Your Own Grave.

·Anonymous D 9 years ago, 5 minutes later, 12 hours after the original post[T] [B] #525,173

@525,161 (Nugget Syntaxroll !Uvm54ORbmo)
What in that post is gibberish..

Please post contributions your neighberhood has made...come on...On...do it..

(Edited 26 seconds later.)


+Anonymous F9 years ago, 58 minutes later, 13 hours after the original post[T] [B] #525,176

@previous (D)
What contribution have you made to your neighborhood Gaybert?

Nothing, Nada, zilch, zero....

By the way, how's the job applications coming?

+Anonymous G9 years ago, 7 minutes later, 13 hours after the original post[T] [B] #525,177

@525,173 (D)

What are you on about, m8?

·Anonymous D 9 years ago, 18 minutes later, 14 hours after the original post[T] [B] #525,178

@525,176 (F) see:

@525,173 (D)

+Anonymous H9 years ago, 3 hours later, 17 hours after the original post[T] [B] #525,187

@previous (D)

See @525,176 (F) and answer the questions.

+Anonymous I9 years ago, 31 minutes later, 17 hours after the original post[T] [B] #525,188

@525,160 (D)

The south is bad, and you should feel bad.

·Nugget Syntaxroll !Uvm54ORbmo9 years ago, 3 hours later, 21 hours after the original post[T] [B] #525,195

@525,173 (D)
See? This post WAS Fuckalms asking for programming help
I and your ex-bud Syntax was offering pro help
and you -I'm damn sure you know no jack shit about writing a piece of code, ever- jack in, saying unrelated drunken bullshit
and viola now the whole thread is derailed
Yeah, good job ruining a legit thread here big boy, now go tell your mommy she'd be proud

·Anonymous D 9 years ago, 11 minutes later, 21 hours after the original post[T] [B] #525,198

@previous (Nugget Syntaxroll !Uvm54ORbmo)
you've derailed nearly every damn thread I've made for over a year withe your hateful spasticity..

·Nugget Syntaxroll !Uvm54ORbmo9 years ago, 29 seconds later, 21 hours after the original post[T] [B] #525,199

@previous (D)
speak for yourself

·Anonymous D 9 years ago, 3 minutes later, 21 hours after the original post[T] [B] #525,200

@previous (Nugget Syntaxroll !Uvm54ORbmo)
wtf is that..

everyone knows Im right about that..

·Nugget Syntaxroll !Uvm54ORbmo9 years ago, 52 seconds later, 21 hours after the original post[T] [B] #525,201

@previous (D)
everyone knows Im right

·Anonymous F9 years ago, 1 minute later, 21 hours after the original post[T] [B] #525,202

@525,200 (D)
Gaybert, you'd derail your moms wet dream.

·Anonymous D 9 years ago, 19 seconds later, 21 hours after the original post[T] [B] #525,203

@525,201 (Nugget Syntaxroll !Uvm54ORbmo)
well your shit ran off everyone but about three or for people from here...so..

·Anonymous F9 years ago, 1 minute later, 21 hours after the original post[T] [B] #525,204

@previous (D)
Your constant crying and bitching ran everyone off Gaybert.

Denial is not a river in Egypt.

(Edited 41 seconds later.)


·Nugget Syntaxroll !Uvm54ORbmo9 years ago, 2 seconds later, 21 hours after the original post[T] [B] #525,205

@525,203 (D)
Again speak for yourself
oh wait your shit ran off ABSOLUTELY EVERY FUCKING ONE

Start a new topic to continue this conversation.
Or browse the latest topics.

:

You are required to fill in a captcha for your first 5 posts. Sorry, but this is required to stop people from posting while drunk. Please be responsible and don't drink and post!
If you receive this often, consider not clearing your cookies.



Please familiarise yourself with the rules and markup syntax before posting.