I need a way to print(and later on compare - but for now just print) characters 2 by 2 as in: I have a string of 1F190307091810 and I have to print out: 1F 19 03 04 09 18 10. I need this for Baudot code(I have segments of code given to me and I have to compare letters and numbers - together, two by two) If you don't understand something please ask(I know I explain this in a weird way).

Member Avatar
Member Avatar
+0 forum 8

Hi Team, I have a file which contain following data like BKP0000032183140217000019 053IGZYEVSDOX .........field 2....... field3.....field4..... BKP0000032284140217000019CCTP1220 ............... BKP0000032384140217000019CA ..................... each line has 5 fields Now using shell script i am trying to extract field 4 based on condition that line start with BKP and contain code 84 and CA or CC code grep -A12 " RFND " xfer_BSPDe | grep "^BKP" >file2.txt While read line do awk '{if((substr($1,12,2)==84) && (substr($1,26,2)=='CC' || substr($1,26,2)=='CA') ) print $4;else print "0"}' done<file2.txt it is printing 0 only . any help is appreciable.

Member Avatar
Member Avatar
+0 forum 3

Alright, so I am simulating a rice roll 100 times, repeatedly. It's getting some whack numbers for some reason, I can't find the problem in code. I have done some printing of the different variables and it seems fine, but I know theres something wrong. package com.github.geodox.dicerollingstats.main; import java.util.Arrays; import java.util.Random; /** * @author GeoDoX * * RollingStats.java */ public class RollingStats { private static Random rand; //Used for generating the roll private static int[] rolls; //Stores the roll counts private static int[] highestRolls; //Stores the highest roll counts public static void main(String[] args) { rand = new Random(); rolls …

Member Avatar
Member Avatar
+0 forum 14

I am developing a client server application in C#. I am sending from my server to client an object of `Student` type which I serialize on the server side and deserialize on client side. The serialization and deserialization are as follows : // server side serialization. Student s1 = new Student("Chuck","Noris"); BinaryFormatter binaryFormatter = new BinaryFormatter(); binaryFormatter.Serialize(writer.BaseStream, s1); // client side deserialization. 1.BinaryFormatter bin = new BinaryFormatter(); 2.Student s1 = (Student)bin.Deserialize(receive.BaseStream); 3.Console.WriteLine(s1.ToString()); and i get this error at runtime: >[A]ServerClient.Student cannot be cast to [B]ServerClient.Student. >Type A originates from 'Server, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in >the context 'Default' at location >D:\Faculty\Workspace\C#\ServerClient\ServerClient\Server.exe'. …

Member Avatar
Member Avatar
+0 forum 2

Alright so I was not sure exactly how to say this, but here is the idea. I have a graph or table I guess you could call that looks like this. [CODE] print ''' ----------------------------- | | | |x | | | |----------------------------- ''' [/CODE] Then I want to make a change to where x is for example moving it down twice. How would I go about this without having the first table appear?

Member Avatar
Member Avatar
+0 forum 8

The End.