Skip to main content

Posts

Apache Beam

First code in Apache Beam word count example: Word count .java file-> package com.test.training; import org.apache.beam.sdk.Pipeline; import org.apache.beam.sdk.io.TextIO; import org.apache.beam.sdk.options.PipelineOptions; import org.apache.beam.sdk.options.PipelineOptionsFactory; import org.apache.beam.sdk.transforms.Count; import org.apache.beam.sdk.transforms.DoFn; import org.apache.beam.sdk.transforms.Filter; import org.apache.beam.sdk.transforms.FlatMapElements; import org.apache.beam.sdk.transforms.MapElements; import org.apache.beam.sdk.transforms.ParDo; import org.apache.beam.sdk.values.KV; import org.apache.beam.sdk.values.PCollection; import org.apache.beam.sdk.values.TypeDescriptors; public class BasicWordCountWithExplaination { public static void main(String[] args) { // Create a PipelineOptions object. This object lets us set various execution     // options for our pipeline, such as the runner you w...
code Snippets What will be the output of the following programs? ???? //static var 1.int x = 10;    static int y = x; //infinite loop     2.  for (i = 1; i != 10; i += 2)    {      printf ( " hi " );    } 3.int i = 20,j;      i = ( printf ( "Hello" ), printf ( "dear... " ));      printf ( "%d" , i);
AlphaGo: AlphaGo is a computer program that plays the board game Go. It was developed by  Alphabet Inc. 's  Google DeepMind  in London.  Google made history when its DeepMind-designed AI beat Go world champion Lee Se-dol  not just once but twice .
code in cpp: //something new....... #include<stdio.h> int main() { int a,b,c; printf("%d",scanf("%d%d%d",&a,&b,&c)); return 0; } output :3 //thank yo
Ways to avoid spam mail() using PHP 1. Add this into your code    $headers .= "Reply-To: The Sender <vishakharrumale@gmail.com>\r\n";    $headers .= "Return-Path: The Sender <vishakharrumale@gmail.com>\r\n";    $headers .= "From: The Sender <senter@sender.com>\r\n";   2. OR add this into your code     $mail->addReplyTo('vishakharrumale@gmail.com', 'v');     $mail->addCC('vishakharrumale@gmail.com','cc');     $mail->addBCC('vishakharrumale@gmail.com','bc'); ***Note: Option 2 is simple and effective so use this...this will work***                                                         Thank You
How to run lex yacc programs on win 10 In short: For Lex steps to run: lex lex7.l gcc lex.yy.c a     For YACC steps to run: lex simple_compound.l yacc -d simple_compound.y gcc lex.yy.c y.tab.c a                          A.Lex 1. download flex for windows http://flex-windows-lex-and-yacc.software.informer.com/2.5/ 2. install it locatin:  C:\Flex Windows\ 3.open cmd 4.You need to change location as follows:  cd C:\Flex Windows\EditPlusPortable 5. Steps to run : lex lex7.l gcc lex.yy.c a Output : Word Count : 13 Char Count : 80 Line Count : 7 codes : lex7.l %{ /* *Program to count no of characters, words and lines */ #include<stdio.h> #include<string.h> int c=0,w=0,l=0; %} %% [\t ]+              /* ignore whitespace */ [a-zA-z]+  ...