How do I decode the value (eg. 10i) in the signatureMessageFragment?

{‘findTransactionsObjects’: {‘trytes’: [TryteString(b’PBRBWBICLBNBCCLBRBACLBUBACSBOBCBNBKBBCHCMBTBZBSBCCHCOBLBCCZBYBKBNBVB9CZBLBRBGCGCACACBC9CNBICRBLBXBDCLBTBYBYBXBSBCCICYBCBLBACBCVBXBNBRBACCCVBYBYBUBUBKBECXBICZBSBICTBQBHCNBUBECICTBFC999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999SQGACXMNQCXHIAQPHIYCSW9XDWRHVSXZTM9YRQABHRIPGNYLBDQOWWRVQFLMUIN99NQYFOSIWSOURQAFWA99999999999999999999999999POTRYFEE9999999999999999999UHJJWZD99999999999C99999999UYEEOGQFTAEQFHGYYGSPBFSBUXDIG9XINSZGOHXAFSGWCITRLYNALCSGCC99BZFIUXLXYCGYLVDLPCRDBKPGHEJAVYTBLZXK9OBJYDEZDMMCDAB9NALHJPKHSIALKLCYVIVYEISOYLQJBEGLAOWDDBUEDYSCS99999HOJVMKPLQRIZAOAMSCHNEYDAVKHGOEEIWUAHTVDAGPPGV9YUOQACHDFGMCXLVZYTE9IGRJYSQZRYIG999ENTRYFEE9999999999999999999MQUPC9PLE999999999MMMMMMMMMATIFLCTLPYCILDPJTLLEJYETPEO’)], ‘duration’: 0}}

All topic

Adress reuse with zero value transactions

If I send multiple zero value transactions from address A, containing several messages to broker a deal, is it safe to (re)use that address later on for a payment (to settle the deal)?

All topic

To find p-value of compounds (pairwise)

I have next SNPs data.frame structure

> str(SNPs)
'data.frame':   1703 obs. of  4 variables:
 $ group: Factor w/ 2 levels "A","B": 1 1 1 1 1 1 1 1 1 1 ...
 $ rs1  : Factor w/ 3 levels "D/D","I/D","I/I": 1 1 2 3 3 2 1 1 1 1 ...
 $ rs2  : Factor w/ 3 levels "a/a","a/b","b/b": 3 3 2 3 3 2 2 3 3 2 ...
 $ rs3  : Factor w/ 3 levels "G/G","G/T","T/T": 2 1 2 1 1 3 1 1 2 1 ...
 ...other rs

> head(SNPs)
  group rs1 rs2 rs3 ...other rs
1     A D/D b/b G/T
2     A D/D b/b G/G
3     A I/D a/b G/T
4     A I/I b/b G/G
5     A I/I b/b G/G
6     A I/D a/b T/T

For example, I noticed that rs5 4b/4a and rs6 G/G in group A very often occur together (see below). In group B they very often occur together too. So I want to know – is it statistical regularity or not.

I can create table with all pairs in both groups

> SNPs$rs5_rs6 <- paste(SNPs$rs5, SNPs$rs6)
> tmp <- table(SNPs$rs5_rs6, SNPs$group)
> tmp

              A   B
  4a/4a G/G   1  20
  4b/4a G/G  31  83
  4b/4a G/T  14  51
  4b/4a T/T   1   0
  4b/4b G/G  37 106
  4b/4b G/T  35 119
  4b/4b T/T  11  31

So, now I need compare (find p-value) group A and group B: 4a/4a G/G in group A vs 4a/4a G/G in group B, 4b/4a G/G in group A vs 4b/4a G/G in group B, 4b/4a G/T in group A vs 4b/4a G/T in group B and etc. Only this pairs/

How can I do that?
I need p-values for all

> tmp

              A   B
  4a/4a G/G   1  20 - p-value?
  4b/4a G/G  31  83 - p-value?
  4b/4a G/T  14  51 - p-value?
  4b/4a T/T   1   0 - p-value?
  4b/4b G/G  37 106 - p-value?
  4b/4b G/T  35 119 - p-value?
  4b/4b T/T  11  31 - p-value?

All topic

Claim value and detectability of infringement

In days of yore, mechanical inventions had physical embodiments and patent infringements were visible to the eye.

Fast forward to the age of information where methods and devices to solve problems with computers and information, where infringement is not readily visible. For example, the infringement upon a hypothetical method-claim, that is developed for a 3-letter government, agency probably does not have infringement detection ‘visibility’: think of it like a target having a radar cross section or radar signature.

That being said, if a claim does not have infringement detection ‘visibility’, does the claim ultimately contribute to the value of the patent? Are there any best practices strategies regarding the subject matter to improve visibility?

All topic

I have a LEGO minifigure and I’m trying to determine the value of it

I have a minifigure and I am trying to determine it’s value – I’d like to know whether it’s worth holding on to it for longer, or if I would get a reasonable price for it now.

All topic

Can I see Stack and Heap value/addresses from this simple C# program process?

I am studying reading dumped memory image and analyzing it with volatility.

I wrote this c# program and I was hoping to see the analyzed data from Volatiliy

namespace CSharpEx1
    class Program
        static void Main(string[] args)
            int numberA = 12345;
            string textA = "This is Message";
            var someClassA = new SomeClassA();
            Console.WriteLine("Something printed here");

        class SomeClassA
            private int _numberB;
            private string _textB;

            public SomeClassA()
                _numberB = 67890;
                _textB = "Another Message";


I would like to be able to see: numberA, textA, numberB and textB

I hope I was clear, thanks for any direction

All topic

Disassembly – Why the CMP instruction is multiplying by 2 the value being compared

I’ll get right to the point, I have a crack me program, that is a program with a password inside that needs to be found so that you can complete the challenge.

I easily found the cmp instruction with the password, but the numeric password was multiplied by 2.

in the program does not have anything to multiply or divide the password, then this must be caused by something else

so I had to get the hexadecimal value of the password convert to decimal and divide by 2 to have the real password.

here is the cmp instruction:


0x961DB0 / 2 is the password.
EBP-C has the password.

I would like to know why the password has been multiplied by 2 in this cmp instruction.


A photo of the Source Code, I do not have it without being in the photo.


Thank you very much in advance.

All topic

Should I pad zero or mean value in a convolution neural network? What about reflective padding?

In convolution layers, sometimes you need to pad some (usually 1 or 2 pixel) 0s at the edges of the original image before applying your convolution kernel (filter).

However, 0 has different meanings.

In the case of 0 – 255 gray scale images, 0 means black.

In the case of normalized images ( minus mean then divided by std), 0 is the mean value.

Should I always pad 0, or should I sometimes pad mean value ?

If in some cases I should pad mean value, what are those cases?


And when should I use reflective padding?

Further more, is reflective padding always better than zero padding?

All topic

taking value of servive into view of Component IN Angular

I want to display the service into the view of component
for now I have fetched the data of service from and print it in the console ,
But I want to store the same data int he variable or Array and I want to dispaly it into the view of the component

I am putting the details of the code below


import { Http } from '@angular/http';
import {Injectable} from '@angular/core';
import { map } from 'rxjs/operators';
export class CodeCountryService {

  constructor(private http: Http) { }

  getData() {
    return this.http.get('').pipe(map(
     (response) => response.json()

      (data) => console.log(data)


I made a module countryCode.ts

export interface IcounrtyCode {

    code: string;
    country: string;


import { Component, OnInit } from '@angular/core';
import { CodeCountryService } from '../services/Contrycode.service';
import {IcounrtyCode} from '../module/countryCode';

  selector: 'app-code-country',
  templateUrl: './code-country.component.html',
  styleUrls: ['./code-country.component.css']
export class CodeCountryComponent implements OnInit {

  counrtyCode: IcounrtyCode[];

  constructor(private _CodeCountryService: CodeCountryService) { }

  getData() {


  ngOnInit() {
   this.counrtyCode =  this._CodeCountryService.getData();



I want to fetch the data and display it to the view of the component

But I am getting error in file code-country.component.ts while initializing counrtyCode in ngOnInit() function

error is ->

[ts] Type ‘Subscription’ is not assignable to type ‘IcounrtyCode[]’.
Property ‘length’ is missing in type ‘Subscription’.

All topic

how to solve value error while grouping dataframe

My goal is to group the dataframe based on the column['quantity'] in the below dataframes

my dataframe :

  ordercode             quantity
PMC21-AA1U1FBWBJA           1
PMP23-GR1M1FB3CJ            1
PMC11-AA1U1FJWWJA           1
PMC11-AA1U1FBWWJA+I7        2
PMC11-AA1U1FJWWJA           3
PMC11-AA1L1FJWWJA           3

  ordercode             quantity
PMC21-AA1U1FBWBJA           1
PMP23-GR1M1FB3CJ            1
PMC11-AA1U1FJWWJA           1
PMC11-AA1U1FBWWJA+I7        2

  ordercode             quantity

My coding:

df = pd.DataFrame(np.concatenate(df.apply(lambda x: [x[0]] * x[1], 1).as_matrix()), 
df['quantity'] = 1
df['group'] = sorted(list(range(0, len(df) // 3, 1)) * 4)[0:len(df)]
df = df.groupby(['group', 'ordercode']).sum()

With the above coding I got my result in df as below.

  Group    ordercode                quantity
    0       PMC21-AA1U1FBWBJA           1
            PMP23-GR1M1FB3CJ            1
             PMC11-AA1U1FJWWJA          1
            PMC11-AA1U1FBWWJA+I7        1
    1      PMC11-AA1U1FBWWJA+I7         1
            PMC11-AA1U1FJWWJA           3
    2      PMC11-AA1L1FJWWJA            3

In group0 & group1 the total values (1+1+1+1=4)(1+3=4)(i.e keeping the max vale of quantity as 4). In group2 we can see that no values to add so the group is formed by the left over(here it is 3).in group0 & group1 we can see that PMC11-AA1U1FBWWJA+I7‘s value splits.

No problem in it.

In df1 & df2 its showing value error.

in df1:

value error: length of values does not match length of index
 raise Value error('length of value does not match length of index')

in df2:

 value error:need at least one array to concatenate.

I could understand that my df2 is empty and has no index. I used pd.Series but again the same error.

how to solve this problem?

All topic