Snippets Collections
Private blockchains might not grab headlines like public ones, but in enterprise operations, they’re gold. A Private Blockchain Development Company tailors solutions where access is controlled, privacy is high, and performance is optimized. These blockchains are perfect for internal processes, consortium networks, or sensitive data sharing. The right company ensures your private network is secure, scalable, and fully integrated into your existing infrastructure.
Instituto Promotor de la Innovación para la transparencia y la Participación
G73956559
Avenida Escultor Antonio Campillo N23
30007
Spain
EJE CENTRAL: Arquitectura Unificada con Organización de Snippets
Para implementar las "carpetas", necesitamos un nuevo concepto clave: una tabla para las categorías (categories) y una relación con la tabla de snippets (snippets).
Relación Arquitectónica (Nivel Doctorado):
• Entidad Nueva: Category (Tu Carpeta).
• Relación: Uno a Muchos. Una Category puede tener muchos Snippets, pero cada Snippet pertenece a una única Category.
• Implementación: Añadiremos la llave foránea category_id a la tabla snippets.

--------------------------------------------------------------------------------
PASO A PASO: PROYECTO UNIFICADO CON CARPETAS Y TARJETAS
FASE 1: Configuración Base, Base de Datos y Autenticación
1.1. Creación del Proyecto Único
Creamos nuestro proyecto principal.
# 1. Crear el proyecto Laravel (única vez)
composer create-project laravel/laravel snippet-org-master
cd snippet-org-master
1.2. Configuración de PostgreSQL
Adaptamos el archivo .env para la conexión con PostgreSQL, siguiendo la adaptación necesaria para el entorno.
# Archivo .env
DB_CONNECTION=pgsql 
DB_HOST=127.0.0.1 
DB_PORT=5432 
DB_DATABASE=snippets_db_organizado 
DB_USERNAME=tu_usuario_pgsql 
DB_PASSWORD=tu_clave_pgsql
1.3. Vistas y Autenticación (Login / Registro con Formularios)
Instalamos Laravel UI para obtener las vistas de scaffolding (login y registro) y preparar el proyecto para formularios HTML.
# 1. Instalar el paquete de interfaz
composer require laravel/ui

# 2. Generar vistas de autenticación (Login/Registro) y layouts
php artisan ui bootstrap --auth 

# 3. Compilar los assets para estilos
npm install
npm run dev
Al hacer esto, las rutas de login y register ya están en routes/web.php y usan el sistema de sesiones, crucial para la parte de formularios.
1.4. Modelos y Migraciones (¡La Nueva Estructura!)
Necesitamos dos modelos y dos migraciones: Category y Snippet.
A. Modelo y Migración de Category (La Carpeta)
php artisan make:model Category -m
Definición de la Migración categories:
// database/migrations/..._create_categories_table.php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::create('categories', function (Blueprint $table) {
            $table->id(); 
            // NAME: Nombre de la carpeta (ej: 'Scripts Python', 'Queries SQL')
            $table->string('name', 100)->unique(); 
            $table->string('description')->nullable(); // Opcional
            $table->timestamps(); 
        });
    }
    // ...
};
B. Modelo y Migración de Snippet (Con Llave Foránea)
Creamos el modelo Snippet e inmediatamente modificamos la migración para añadir la llave foránea category_id.
php artisan make:model Snippet -m
Definición de la Migración snippets:
// database/migrations/..._create_snippets_table.php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::create('snippets', function (Blueprint $table) {
            $table->id(); 
            
            // Llave Foránea: Conexión con la tabla 'categories'
            $table->foreignId('category_id') 
                  ->constrained() // Crea la restricción automática
                  ->onDelete('cascade'); // Si borras la carpeta, se borran los snippets.

            $table->string('title', 255); 
            $table->text('code'); 
            $table->string('language', 50); 
            $table->timestamps(); 
        });
    }
    // ...
};
C. Ejecución de la Migración
# Ejecutamos las dos migraciones en PostgreSQL
php artisan migrate
1.5. Configuración de Relaciones en los Modelos
En los modelos, definimos las relaciones para que Laravel sepa cómo están conectadas las "carpetas" y los "snippets" (Nivel Doctorado - Eloquent ORM).
// app/Models/Category.php
// ...
use Illuminate\Database\Eloquent\Relations\HasMany;

class Category extends Model
{
    protected $fillable = ['name', 'description'];

    // Una categoría tiene muchos snippets (1:N)
    public function snippets(): HasMany
    {
        return $this->hasMany(Snippet::class);
    }
}
// app/Models/Snippet.php
// ...
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Snippet extends Model
{
    protected $fillable = ['title', 'code', 'language', 'category_id'];

    // Un snippet pertenece a una categoría (N:1)
    public function category(): BelongsTo
    {
        return $this->belongsTo(Category::class);
    }
}

--------------------------------------------------------------------------------
FASE 2: Implementación de la API REST (JSON)
La API debe ser capaz de aceptar y validar el nuevo campo category_id.
2.1 Creación del Controlador API
php artisan make:controller Api/SnippetApiController --resource
2.2 Lógica API ()
En la lógica store y update, la validación es clave: debemos asegurar que el category_id sea requerido y que realmente exista en la tabla categories.
// app/Http/Controllers/Api/SnippetApiController.php

// ... (Imports: Request, Validator, Snippet, Category) ...

public function store(Request $request)
{
    $rules = [
        'title' => 'required|string|max:255', 
        'code' => 'required|string', 
        'language' => 'required|string|max:50',
        
        // ¡Validación Mejorada para la carpeta!
        'category_id' => 'required|exists:categories,id|integer', 
        // 'exists:categories,id' asegura que el ID de la categoría exista en la tabla 'categories'.
    ];

    $validator = Validator::make($request->all(), $rules);
    
    if ($validator->fails()) {
        return response()->json(['status' => 400, 'errors' => $validator->errors()], 400); 
    }

    $snippet = Snippet::create($request->all());

    return response()->json(['status' => 201, 'message' => 'Creado', 'data' => $snippet], 201);
}

public function index()
{
    // Cargar la relación para obtener el nombre de la carpeta en la respuesta JSON
    $snippets = Snippet::with('category')->get(); 

    // Ahora el JSON incluirá el nombre de la categoría del snippet.
    return response()->json(['status' => 200, 'data' => $snippets], 200);
}
// ... (Otros métodos CRUD devolviendo JSON) ...
2.3 Rutas de la API
// routes/api.php
use App\Http\Controllers\Api\SnippetApiController;

// (Opcional: Agregar middleware de autenticación con token si se usa Sanctum, como se mencionó)
Route::resource('snippets', SnippetApiController::class)
    ->only(['index', 'store', 'show', 'update', 'destroy']);

--------------------------------------------------------------------------------
FASE 3: Implementación WEB (Formularios y Vistas en Tarjetas)
Usaremos el generador CRUD para las categorías y luego para los snippets, para obtener rápidamente los formularios.
3.1 Instalación del Generador CRUD
composer require ibex/crud-generator --dev
php artisan vendor:publish --tag=crud
3.2 Generación del CRUD de CATEGORIES (Las Carpetas)
Necesitas un CRUD para crear, editar y eliminar las carpetas/categorías.
# Creamos el CRUD para las carpetas
php artisan make:crud categories
Esto genera las vistas y el controlador CategoryController.php para gestionar tus carpetas.
3.3 Generación del CRUD de SNIPPETS
# Creamos el CRUD para los snippets
php artisan make:crud snippets
Nota Importante: El generador crea el controlador web (SnippetController) y las vistas, pero deberás modificar manualmente el formulario de creación (create.blade.php) y edición (edit.blade.php) para incluir un campo de selección (<select>) que liste las categorías disponibles.
3.4 Rutas Web (Protegidas)
Añadimos las rutas de los dos recursos en routes/web.php y las protegemos con el middleware auth.
// routes/web.php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\SnippetController; 
use App\Http\Controllers\CategoryController; 

Auth::routes(); 
Route::get('/', [App\Http\Controllers\HomeController::class, 'index'])->name('home');

Route::middleware('auth')->group(function () {
    // 1. CRUD de Carpetas/Categorías
    Route::resource('categories', CategoryController::class);

    // 2. CRUD de Snippets
    Route::resource('snippets', SnippetController::class);
});
3.5 Mejora de Vistas: Visualización en Tarjetas
El generador CRUD generó una tabla simple. Para mostrar el código como tarjetas bonitas, debes editar la vista principal: resources/views/snippets/index.blade.php.
Objetivo (Nivel Avanzado): Remplazar el HTML de tabla por un loop que use la estructura de tarjeta (asumiendo que Bootstrap está instalado por el paso 1.3).
Ejemplo Esquemático de Modificación de Vistas:
{{-- resources/views/snippets/index.blade.php --}}

@extends('layouts.app') 

@section('content')
    <div class="container">
        <h1>Mis Snippets Organizados</h1>
        <a href="{{ route('snippets.create') }}" class="btn btn-primary mb-3">Crear Nuevo Snippet</a>
        
        <div class="row">
            {{-- Iteramos sobre la lista de snippets --}}
            @foreach ($snippets as $snippet)
                <div class="col-md-4 mb-4">
                    {{-- Estructura de Tarjeta (Card) --}}
                    <div class="card shadow">
                        <div class="card-header bg-primary text-white">
                            {{ $snippet->title }} 
                            <span class="badge bg-secondary float-end">{{ $snippet->language }}</span>
                        </div>
                        <div class="card-body">
                            {{-- Mostramos el nombre de la carpeta/categoría --}}
                            <p class="card-text text-muted small">
                                Carpeta: <strong>{{ $snippet->category->name }}</strong>
                            </p>
                            
                            {{-- Vista previa del código (limitada) --}}
                            <pre class="bg-light p-2 rounded small overflow-auto" style="max-height: 100px;">
                                <code>{{ Str::limit($snippet->code, 150) }}</code>
                            </pre>

                            <a href="{{ route('snippets.show', $snippet->id) }}" class="btn btn-sm btn-info">Ver Detalle</a>
                            <a href="{{ route('snippets.edit', $snippet->id) }}" class="btn btn-sm btn-warning">Editar</a>
                            
                            {{-- Formulario para eliminar (como se muestra en el ejemplo CRUD) --}}
                            <form action="{{ route('snippets.destroy', $snippet->id) }}" method="POST" class="d-inline">
                                @csrf
                                @method('DELETE')
                                <button type="submit" class="btn btn-sm btn-danger" onclick="return confirm('¿Seguro?')">Eliminar</button>
                            </form>
                        </div>
                    </div>
                </div>
            @endforeach
        </div>
    </div>
@endsection
Al incorporar estas modificaciones, tu proyecto unificado estará completo: los datos se guardan en PostgreSQL con una estructura de organización (categorías), la API sirve JSON con la relación cargada, y la interfaz web presenta la información de manera visualmente atractiva mediante tarjetas.
ExchangeRateHelper::exchRate(PayrunGlAccounts.EmploymentCategory,systemdateget());
// exchrate for USD = 375 must / 100 
{
	"blocks": [
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":x-connect: :star: Boost Days - What's on this week in Brisbane! :star: :x-connect:",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Happy Monday Brisbane! \n\nWe’ve got an exciting week ahead as the *Hackathon* kicks off across Xero! :xero-hackathon:\n\n*See below for what's in store:* 👇"
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":calendar-date-20: *Monday, 20th October*"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":coffee: Enjoy free coffee and cafe style beverages from our Cafe partner *Industry Beans*.\n\n:burger: *Hackathon Lunch :* Provided by *Data Burger* from *12.00pm* in the *Kitchen*\n:massage:*Wellbeing*: Pilates at *SP Brisbane City* is bookable every Monday "
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":calendar-date-22: *Wednesday, 22th October*"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":coffee: *Café Partnership:* Enjoy coffee and café-style beverages from our cafe partner, *Industry Beans*..\n\n:croissant: *Morning Tea:* Provided at 9.00am in the *Kitchen*."
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":brain: *Brainstorming Booths + Breakout Spaces*\n\nThe following spaces have been reserved for Hackathon teams to collaborate and create:\n• TBC\n• TBC"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":apple: :juicebox: *Snacks + Juices*\n\nKeep your creativity flowing! Healthy snacks and juices will be available in the *Kitchen* throughout the week."
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "*What else :heart:*\n\nStay tuned to this channel, and make sure you’re subscribed to the <https://calendar.google.com/calendar/u/0/r?cid=eGVyby5jb21fbXRhc2ZucThjaTl1b3BpY284dXN0OWlhdDRAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ/|*Hawkes Bay Social Calendar*> for all upcoming events."
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Let’s power up, Hawkes Bay! ⚡\n\nLove,\nWX :party-wx:"
			}
		}
	]
}
{
	"blocks": [
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":x-connect: :star: Boost Days – What’s on this week in Melbourne !:star: :x-connect:",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Hey Melbourne,\nWe’ve got an exciting week ahead as the *Hackathon* kicks off across Xero! :xero-hackathon:\n\n*See below for what’s in store:* 👇"
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":calendar-date-22: *Wednesday, 22nd October*"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":coffee: *Xero Café* – Café-style beverages and sweet treats.\n:pumpkin::apple: *Barista Special* – Halloween Iced Latte\n:burger: *Hackathon Boost Lunch* - Enjoy delicious *Bot Burgers* from *12.00pm* in the *Wominjeka Breakout Space, Level 3*. Menu in the :thread: \n\nCome together with fellow Hackers, share ideas, and fuel up for the days ahead."
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":calendar-date-23: *Thursday, 23rd October*"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":coffee: *Xero Café* – Café-style beverages and sweet treats.\n:cookie: *Sweet Treats* – Choc Chip Cookies & Caramel Slice\n:breakfast: *Boost Breakfast* – Provided from *8:30am* in the *Wominjeka Breakout Space, Level 3*."
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":brain: *Brainstorming Booths + Breakout Spaces*\n\nThe following spaces have been reserved for Hackathon teams to collaborate and create:\n• Wominjeka Breakout Space and The project space on Level - 3 (Tuesday - Thursdsay)."
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":apple: :juicebox: *Snacks + Juices*\n\nKeep your creativity flowing! Healthy snacks and juices will be available in the *Level 3 kitchen* throughout the week."
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":speech_balloon: *Stay Connected*\n\nJoin <https://join.slack.com/share/enQtOTY1NTEzNTcwODQ3MC1lYTI0Njg1M2MxY2ZlODE5ODdlOWNkMmI2NmY2YTViOTc2NGQ0OWQ5ZjU1ZjA2NzJkODY5NjM2ODM2NDE4OTQ0 /|*#xero-hackathon*> for global updates, inspiration, and stories from other offices."
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "*What else :heart:*\n\nStay tuned to this channel, and make sure you’re subscribed to the <https://calendar.google.com/calendar/u/0/r?cid=Y19xczkyMjk5ZGlsODJzMjA4aGt1b3RnM2t1MEBncm91cC5jYWxlbmRhci5nb29nbGUuY29t /|*Melbourne Social Calendar*> for all upcoming events."
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Let’s power up, Melbourne! ⚡\n\nLove,\nWX :party-wx:"
			}
		}
	]
}
import java.io.IOException;
import java.util.StringTokenizer;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;

public class WordCount {

    // Mapper Class
    public static class TokenizerMapper
            extends Mapper<Object, Text, Text, IntWritable> {

        private final static IntWritable one = new IntWritable(1);
        private Text word = new Text();

        public void map(Object key, Text value, Context context)
                throws IOException, InterruptedException {
            StringTokenizer itr = new StringTokenizer(value.toString());
            while (itr.hasMoreTokens()) {
                word.set(itr.nextToken());
                context.write(word, one);
            }
        }
    }

    // Reducer Class
    public static class IntSumReducer
            extends Reducer<Text, IntWritable, Text, IntWritable> {

        private IntWritable result = new IntWritable();

        public void reduce(Text key, Iterable<IntWritable> values, Context context)
                throws IOException, InterruptedException {
            int sum = 0;
            for (IntWritable val : values) {
                sum += val.get();
            }
            result.set(sum);
            context.write(key, result);
        }
    }

    // Driver code
    public static void main(String[] args) throws Exception {
        Configuration conf = new Configuration();
        Job job = Job.getInstance(conf, "word count");
        job.setJarByClass(WordCount.class);
        job.setMapperClass(TokenizerMapper.class);
        job.setCombinerClass(IntSumReducer.class);
        job.setReducerClass(IntSumReducer.class);
        job.setOutputKeyClass(Text.class);
        job.setOutputValueClass(IntWritable.class);
        FileInputFormat.addInputPath(job, new Path(args[0]));
        FileOutputFormat.setOutputPath(job, new Path(args[1]));
        System.exit(job.waitForCompletion(true) ? 0 : 1);
    }
}
guía paso a paso para configurar el sistema

Aquí tienes una guía paso a paso para configurar el sistema ZKBioAccess basada en la información oficial y práctica para su uso:

Guía paso a paso para configurar ZKBioAccess
1. Requisitos iniciales
Instala ZKBioAccess en un servidor Windows con especificaciones recomendadas: CPU dual core, 4GB RAM mínimo, 10GB disco mínimo.

Conecta el servidor a la red local donde estarán los dispositivos (lectores biométricos, cámaras).

2. Preparación de los dispositivos físicos
Configura la dirección IP de los dispositivos para que estén en el mismo segmento de red que el servidor. Por ejemplo: lector biométrico ZK-EFACE10 o panel ZK-INBIO260.

Establece en cada dispositivo la dirección IP y puerto del servidor ZKBioAccess (por defecto, puerto 8881).

3. Añadir dispositivos al software
Entra al software ZKBioAccess desde la interfaz web.

Para dispositivos de asistencia:

Ve a Attendance > Attendance Device > Authorized Device > Search para buscar y añadir dispositivos.

Para dispositivos de control de acceso:

Ve a Access > Device > Search para encontrar y añadir dispositivos automáticamente.

4. Configurar departamentos y usuarios
En el módulo Personnel, crea la estructura organizacional con departamentos y subdepartamentos.

Añade empleados con sus datos personales, fotos y credenciales biométricas o tarjetas RFID.

Puedes configurar diferentes tipos de biometría (huella, rostro, tarjeta).

5. Configurar permisos y horarios de acceso
En el módulo Access Control, asigna a cada usuario puertas y horarios en los que pueden acceder.

Configura políticas avanzadas de seguridad como Anti-passback para evitar que se comparta acceso entre usuarios.

Define reglas específicas para cada puerta y grupo de usuarios.

6. Configuración de video vigilancia (opcional)
Si tienes cámaras conectadas, añade los dispositivos al módulo Video Management.

Configura grabación, monitoreo en tiempo real y detección de eventos como movimiento o reconocimiento facial.

Relaciona eventos del control de acceso con acciones de cámaras para notificaciones o alarmas.

7. Supervisión y reportes
Supervisar el sistema en tiempo real desde la interfaz web.

Generar reportes detallados de asistencia, accesos, eventos y alarmas.

Configurar envíos automáticos de notificaciones por correo en eventos críticos (alertas, accesos bajo coacción, etc).

8. Mantenimiento y seguridad
Programa copias de seguridad automáticas de la base de datos.

Gestiona usuarios administradores con diferentes niveles de acceso.

Actualiza el software regularmente para contar con mejoras y nuevas funcionalidades.

Este flujo básico te permitirá tener operativo el sistema ZKBioAccess para control de acceso y asistencia en tu organización usando dispositivos ZKTeco compatibles.

¿Quieres que te brinde ejemplos detallados de alguna de estas etapas (por ejemplo, cómo añadir un dispositivo o crear un usuario)? ¿O prefieres que te oriente con la configuración avanzada de seguridad o integración de video vigilancia?

{
	"blocks": [
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":xero-hackathon: :xero-hackathon: :xero-hackathon: Get Ready Xeros: Hackathon is BACK! :xero-hackathon::xero-hackathon::xero-hackathon:",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Hey Xeros! *Brisbane*\n\nOur October Hackathon kicks off next week starting on *Monday 20 to Friday 24 October*.\n\n:battery: The theme is *“Power up with AI, and unlock customer delight!”*\n\nThis Hackathon is all about powering up our customers and our Xeros through AI, innovation, and connection."
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "*Here’s what we’ve got lined up for the week:*"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":croissant: *Hackathon Boost Lunch on Monday 20th October at 12pm*\n*Theme:* The Data Burger \nJoin us for a shared meal in the *Kitchen* to connect with fellow Hackers, recharge, and get inspired."
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":brainstorm: *Brainstorming Booths and Breakout Spaces*\nDedicated Hackathon spaces have been booked to support your collaboration and creative sessions.\n\n:teamworkhands1: *Hackathon Breakout Space* - All Hands space"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":apple: *Snacks and Juices*\nKeep those ideas flowing with snacks and juices available in the *kitchen* to Hackathon participants all week."
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":speech_balloon: *Stay Connected*\nJoin the conversation in <https://join.slack.com/share/enQtOTY1NTEzNTcwODQ3MC1lYTI0Njg1M2MxY2ZlODE5ODdlOWNkMmI2NmY2YTViOTc2NGQ0OWQ5ZjU1ZjA2NzJkODY5NjM2ODM2NDE4OTQ0 /|*#xero-hackathon*> to stay up to date, share ideas, and see what’s happening globally."
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Let’s power up, Xeros! :zap: \nLove,\nWX :party-wx:"
			}
		}
	]
}
STEP 1: Launch Hive

Open the Terminal in Cloudera and type:

hive


You should see:

Logging initialized using configuration in /etc/hive/conf/hive-log4j.properties
Hive>

STEP 2: Create or Use a Database
SHOW DATABASES;
CREATE DATABASE IF NOT EXISTS company;
USE company;


Confirm:

SELECT current_database();

STEP 3: Create a Table

Create a simple table to hold employee data.

CREATE TABLE employees (
  id INT,
  name STRING
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
TBLPROPERTIES ("skip.header.line.count"="1");

STEP 4: Create a CSV File

Exit Hive (type exit;) and in the terminal run:

cd /home/cloudera/
gedit employees.csv


Paste the data below:

id,name
101,satvik
102,rahul
103,rishi
104,nithish


Save and close the file.

STEP 5: Load Data into the Hive Table

Reopen Hive:

hive
USE company;
LOAD DATA LOCAL INPATH '/home/cloudera/employees.csv' INTO TABLE employees;


Check the data:

SELECT * FROM employees;


✅ Output:

101	satvik
102	rahul
103	rishi
104	nithish

STEP 6: Create a Hive UDF (Java File)

Exit Hive and go back to terminal.

Create a new Java file:

gedit CapitalizeUDF.java


Paste the code:

import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.Text;

public class CapitalizeUDF extends UDF {
    public Text evaluate(Text input) {
        if (input == null) return null;
        String str = input.toString().trim();
        if (str.isEmpty()) return new Text("");
        String result = str.substring(0, 1).toUpperCase() + str.substring(1).toLowerCase();
        return new Text(result);
    }
}


Save and close.

STEP 7: Compile the Java File

In the terminal:

javac -classpath $(hadoop classpath):/usr/lib/hive/lib/* -d . CapitalizeUDF.java


If successful, it won’t show any error and will create a .class file.

STEP 8: Create a JAR File
jar -cvf CapitalizeUDF.jar CapitalizeUDF.class


Check:

ls


You should see:

CapitalizeUDF.java  CapitalizeUDF.class  CapitalizeUDF.jar

STEP 9: Add JAR to Hive

Open Hive again:

hive
USE company;
ADD JAR /home/cloudera/CapitalizeUDF.jar;


You’ll get:

Added resources: /home/cloudera/CapitalizeUDF.jar

STEP 10: Create a Temporary Function
CREATE TEMPORARY FUNCTION capitalize AS 'CapitalizeUDF';

STEP 11: Use the Function
SELECT id, capitalize(name) AS capitalized_name FROM employees;
Installing kafla tgz file:
https://archive.apache.org/dist/kafka/0.8.2.2/kafka_2.10-0.8.2.2.tgz
Copy using win scp
Stop zookeeper:
sudo service zookeeper-server stop
Steps:
1. Terminal 1: Start Zookeeper
cd ~/kafka_2.10-0.8.2.2
bin/zookeeper-server-start.sh config/zookeeper.properties
2. Terminal 2: Start Kafka broker
cd ~/kafka_2.10-0.8.2.2
bin/kafka-server-start.sh config/server.properties
3. Terminal 3: Create a topic
cd ~/kafka_2.10-0.8.2.2
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --
partitions 1 --topic events-topic
Checking if topic is created or not:
bin/kafka-topics.sh --list --zookeeper localhost:2181
4. Terminal 4: Start Kafka producer
cd ~/kafka_2.10-0.8.2.2
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic events-topic
# Type messages like: hi, hello, event1
5. Terminal 5: Start Kafka consumer (optional to verify messages)
cd ~/kafka_2.10-0.8.2.2
bin/kafka-console-consumer.sh --topic events-topic --from-beginning --zookeeper
localhost:2181
6. Terminal 6: Create and run Spark Streaming subscriber
gedit spark-socket-consumer.py
spark-submit --master local[2] spark-socket-consumer.py
spark-socket-consumer.py
from pyspark import SparkConf, SparkContext
from pyspark.streaming import StreamingContext
# Setup Spark
conf =
SparkConf().setAppName("SocketKafkaForwardConsumer").setMaster("local[2]")
sc = SparkContext(conf=conf)
ssc = StreamingContext(sc, 2) # 2-second batch interval
# Listen to socket (Kafka messages will be forwarded to this socket later)
lines = ssc.socketTextStream("localhost", 9999)
def process(rdd):
 count = rdd.count()
 if count > 0:
 print("received & count: {} records in this batch".format(count))
 for i, record in enumerate(rdd.take(10)):
 print("[{}] {}".format(i, record))
 else:
 print("no records in this batch")
lines.foreachRDD(process)
ssc.start()
ssc.awaitTermination()
Common HDFS Commands

| *1. Copy file to HDFS*             | hdfs dfs -put /home/cloudera/localfile.txt /user/cloudera/   
| *2. Copy file from HDFS*           | hdfs dfs -get /user/cloudera/localfile.txt /home/cloudera/   
| *3. List directories/files*        | hdfs dfs -ls /user/cloudera/                                 
| *4. Display file contents*         | hdfs dfs -cat /user/cloudera/localfile.txt                   
| *5. Create a directory*            | hdfs dfs -mkdir /user/cloudera/newdir                         
| *6. Remove directory/file*         | hdfs dfs -rm -r /user/cloudera/newdir                         
| *7. Count number of files*         | hdfs dfs -count /user/cloudera/                               
| *8. Merge files*                   | hdfs dfs -getmerge /user/cloudera/folder/* /home/cloudera/merged.txt
| *9. Concatenate two files in HDFS* | hdfs dfs -cat /user/cloudera/file1.txt /user/cloudera/file2.txt | hdfs dfs -put - /user/cloudera/merged.txt

| *10. Find checksum*                | hdfs dfs -checksum /user/cloudera/localfile.txt               
%%configure -f
{
    "conf": {
        "spark.jars": "s3://memob-scripts/allpings/references/postgresql-42.7.7.jar"
    }
}

function custom_sp_wpspro_transient_expiration( $expiration ) {
    return 30 * MINUTE_IN_SECONDS;
}
add_filter( 'sp_wpspro_transient_expiration', 'custom_sp_wpspro_transient_expiration' );
//para cualquier campo usar:
'headerOptions' => ['style' => 'text-align:center;'],
'contentOptions' => ['style' => 'text-align:center; width:2%; vertical-align:middle;'],
//para casos donde el campo venga del modelo 
$columns[] = [
        'attribute' => 'nombre_proyecto',
        'label' => 'Nombre del Proyecto',
        'headerOptions' => ['style' => 'text-align:center; width:10%;text-color:white;'],
        'contentOptions' => ['style' => 'text-align:center; vertical-align:middle;'],
        'value' => function ($data) {
            // Encoded to avoid XSS, then insert line breaks cada 40 caracteres
            $name = Html::encode($data->nombre_proyecto);
            return nl2br(wordwrap($name, 40, "\n", true));
        },
        'format' => 'raw',
    ];
 // para casos donde se use la funcion listar
 'id_indicador' => [
        'attribute' => 'id_indicador',
        'label' => 'Indicador',
        'headerOptions' => ['style' => 'text-align:center;'],
        'contentOptions' => ['style' => 'text-align:center; width:2%; vertical-align:middle;'],
        'filter' => app\models\Indicadores::listAcuatico(),
        'value' => function ($data) {
            $s = app\models\Indicadores::find()->where(['id_indicador' => $data->id_indicador])->one();
            if (!$s) {
                return '';
            }
            // Encoded to avoid XSS, then insert line breaks cada 20 caracteres
            $name = Html::encode($s->nombre_indicador);
            return nl2br(wordwrap($name, 40, "\n", true));
        },
        'format' => 'raw',
    ],
   
   
[https://www.uniccm.com/course/postgraduate-professional-diploma-in-leadership-coaching-and-mentoring]
{
	"blocks": [
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":xero-hackathon: :xero-hackathon: :xero-hackathon: Get Ready Xeros: Hackathon is BACK! :xero-hackathon::xero-hackathon::xero-hackathon:",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Hey *Melbourne* Xeros\n\nOur October Hackathon kicks off next week starting on *Monday 20 to Friday 24 October*.\n\n:battery: The theme is *“Power up with AI, and unlock customer delight!”*\n\nThis Hackathon is all about powering up our customers and our Xeros through AI, innovation, and connection."
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "*Here’s what we’ve got lined up for the week:*"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":burger: *Hackathon Boost Lunch on Wednesday 22nd October at 12pm*\n*Theme*: Build your own Bot burger :robot:\nJoin us for a shared meal in the *Wominjeka Breakout Space* to connect with fellow Hackers, recharge, and get inspired."
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":brainstorm: *Brainstorming Booths and Breakout Spaces*\nDedicated Hackathon spaces have been booked to support your collaboration and creative sessions.*\n\n:teamworkhands1: *Hackathon Breakout Space* - Level 3 Wominjeka Breakout Space \n:bulb: *Brainstorming Booths* - Level 3 - Fitzgerald meeting room"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":apple: *Snacks and Juices*\nKeep those ideas flowing with snacks and juices available in the *Level 3 kitchen* to Hackathon participants all week."
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":speech_balloon: *Stay Connected*\nJoin the conversation in <https://join.slack.com/share/enQtOTY1NTEzNTcwODQ3MC1lYTI0Njg1M2MxY2ZlODE5ODdlOWNkMmI2NmY2YTViOTc2NGQ0OWQ5ZjU1ZjA2NzJkODY5NjM2ODM2NDE4OTQ0 /|*#xero-hackathon*> to stay up to date, share ideas, and see what’s happening globally."
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Let’s power up, Xeros! :zap: \nLove,\nWX :party-wx:"
			}
		}
	]
}
If you need reliable and secure proxies for your online projects, check out Proxy4Free — a professional provider offering residential, static residential, datacenter, and unlimited proxies. With 90 million of IPs from over 220 countries, Proxy4Free helps users access global data safely and efficiently.

Our residential proxies come from real household IPs, ensuring high anonymity and low detection — perfect for web scraping, SEO tracking, ad verification, and market research. Datacenter proxies deliver high-speed performance for bulk tasks, while static residential proxies offer stable long-term connections.

All proxies support HTTP and SOCKS5 protocols and can be easily managed through a user-friendly dashboard and API for rotation and access control.

Whether you’re a marketer, developer, or data analyst, Proxy4Free gives you the flexibility, speed, and privacy you need for success.

 Visit www.proxy4free.com
 to explore more!
{
	"blocks": [
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":Star: :x-connect: Boost Days: What's on this week :x-connect: :Star:"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Good morning Brisbane, \n\n See below for what's on this week!"
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":calendar-date-13: Monday, 13th October",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "\n :meow-coffee: *Café Partnership*: Enjoy free coffee and café-style beverages from our Cafe partner *Industry Beans*.\n\n :Lunch: *Lunch*: provided from *12pm* in the kitchen.\n\n:massage:*Wellbeing*: Pilates at *SP Brisbane City* is bookable every Monday!"
			}
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":calendar-date-15: Thursday, 15th October",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "\n\n :meow-coffee: *Café Partnership*: Enjoy free coffee and café-style beverages from our Cafe partner *Industry Beans*. \n\n:lunch: *Morning Tea*: provided from *9am* in the kitchen!"
			}
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":calendar-date-17: Friday, 17th October",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "\n\n :Drink: *Social*: Wind down for the week with drinks & Nibbles from *3pm-4pm*"
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Stay tuned to this channel for more details, check out the <https://calendar.google.com/calendar/u/0?cid=Y19uY2M4cDN1NDRsdTdhczE0MDhvYjZhNnRjb0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29t|*Brisbane Social Calendar*>, and get ready to Boost your workdays!\n\nLove,\nWX Team :party-wx:"
			}
		}
	]
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace val2
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ValidationSettings.UnobtrusiveValidationMode = UnobtrusiveValidationMode.None;
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                Label1.Text = "Valid Email and Phone";
            }
        }
    }
}


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="val2.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            Email:
            <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" ErrorMessage="Enter a valid email" ForeColor="Red" ValidationExpression="^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$"></asp:RegularExpressionValidator>
        </div>
        Phone:
        <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPhone" ErrorMessage="Enter a valid phone number" ForeColor="Red" ValidationExpression="^\d{10}$"></asp:RegularExpressionValidator>
        <p>
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Submit" />
        </p>
        <asp:Label ID="Label1" runat="server" Text="Status"></asp:Label>
    </form>
</body>
</html>
using System;

public class Employee
{
    public string Name { get; set; }
    public int EmployeeID { get; set; }
    public double Salary { get; set; }

    public virtual void CalculateSalary() {}

    public virtual void Display()
    {
        Console.WriteLine($"Name: {Name}");
        Console.WriteLine($"Employee ID: {EmployeeID}");
        Console.WriteLine($"Salary: {Salary}");
    }
}

public class FullTimeEmployee : Employee
{
    public double BasicSalary { get; set; }
    public int NumberOfDays { get; set; }
    public double HRA { get; set; }
    public double DA { get; set; }

    public override void CalculateSalary()
    {
        Salary = (BasicSalary * NumberOfDays) + HRA + DA;
    }
}

public class PartTimeEmployee : Employee
{
    public double DailyWages { get; set; }
    public int NumberOfDays { get; set; }

    public override void CalculateSalary()
    {
        Salary = DailyWages * NumberOfDays;
    }
}

class Program
{
    static void Main()
    {
        FullTimeEmployee fte = new FullTimeEmployee
        {
            Name = "John",
            EmployeeID = 10001,
            BasicSalary = 500,
            NumberOfDays = 20,
            HRA = 1500,
            DA = 900
        };
        fte.CalculateSalary();
        Console.WriteLine("Full Time Employee Details:");
        fte.Display();
        
        Console.WriteLine();

        PartTimeEmployee pte = new PartTimeEmployee
        {
            Name = "Jane",
            EmployeeID = 20002,
            DailyWages = 300,
            NumberOfDays = 15
        };
        pte.CalculateSalary();
        Console.WriteLine("Part Time Employee Details:");
        pte.Display();

        Console.ReadLine();
    }
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace smtp1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            try
            {
                // Create the email
                MailMessage mail = new MailMessage();
                mail.To.Add(TextBox1.Text);  // Recipient email (from input)
                mail.From = new MailAddress("helloeventplanner2025@gmail.com");
                mail.Subject = TextBox2.Text; // Subject from input
                mail.Body = TextBox3.Text;    // Body from input

                // Configure SMTP
                SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);
                smtp.Credentials = new System.Net.NetworkCredential(
                    "helloeventplanner2025@gmail.com",
                    "lmrpnnsvmdlhexxp" // Gmail App Password
                );
                smtp.EnableSsl = true;

                // Send email
                smtp.Send(mail);

                Label1.Text = "✅ Email sent successfully!";
            }
            catch (Exception ex)
            {
                Label1.Text = "❌ Error: " + ex.Message;
            }
        }
    }
}












<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="smtp1.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            To&nbsp;&nbsp;
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <br />
            Sub
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            <br />
            Body
            <asp:TextBox ID="TextBox3" runat="server" Height="129px" Width="255px"></asp:TextBox>
            <br />
            <br />
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Send" />
        </div>
        <asp:Label ID="Label1" runat="server" Text="Status"></asp:Label>
    </form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;



namespace TASK11
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            try
            {
                MailMessage mail = new MailMessage();
                mail.To.Add(TextBox1.Text);
                mail.From = new MailAddress("youremail@domain.com"); // Replace with your email
                mail.Subject = TextBox2.Text;
                mail.Body = TextBox3.Text;

                SmtpClient smtp = new SmtpClient();
                smtp.Host = "smtp.gmail.com"; // Replace with your SMTP server
                smtp.Port = 587; // Replace with SMTP port
                smtp.Credentials = new System.Net.NetworkCredential("username", "password"); // Replace with your credentials
                smtp.EnableSsl = true;
                smtp.Send(mail);
                Label4.Text = "Email sent successfully!";
            }
            catch (Exception ex)
            {
                Label4.Text = "Error: " + ex.Message;
            }
        }
    }
    }
using System;


class Employee
{
    public string Name { get; set; }
    public int EmployeeID { get; set; }
    public double Salary { get; protected set; }

    public Employee(string name, int id)
    {
        Name = name;
        EmployeeID = id;
    }

    public virtual void DisplayDetails()
    {
        Console.WriteLine("Employee ID: " + EmployeeID);
        Console.WriteLine("Name: " + Name);
        Console.WriteLine("Salary: " + Salary);
    }
}


class FullTimeEmployee : Employee
{
    public double BasicSalary { get; set; }
    public int NumberOfDays { get; set; }
    public double HRA { get; set; }
    public double DA { get; set; }

    public FullTimeEmployee(string name, int id, double basicSalary, int numberOfDays, double hra, double da)
        : base(name, id)
    {
        BasicSalary = basicSalary;
        NumberOfDays = numberOfDays;
        HRA = hra;
        DA = da;
    }

    public void CalculateSalary()
    {
        Salary = (BasicSalary * NumberOfDays) + HRA + DA;
    }

    public override void DisplayDetails()
    {
        base.DisplayDetails();
        Console.WriteLine("Employee Type: Full-Time");
        Console.WriteLine("Basic Salary: " + BasicSalary);
        Console.WriteLine("Number of Days: " + NumberOfDays);
        Console.WriteLine("HRA: " + HRA);
        Console.WriteLine("DA: " + DA);
        Console.WriteLine();
    }
}


class PartTimeEmployee : Employee
{
    public double DailyWages { get; set; }
    public int NumberOfDays { get; set; }

    public PartTimeEmployee(string name, int id, double dailyWages, int numberOfDays)
        : base(name, id)
    {
        DailyWages = dailyWages;
        NumberOfDays = numberOfDays;
    }

    public void CalculateSalary()
    {
        Salary = DailyWages * NumberOfDays;
    }

    public override void DisplayDetails()
    {
        base.DisplayDetails();
        Console.WriteLine("Employee Type: Part-Time");
        Console.WriteLine("Daily Wages: " + DailyWages);
        Console.WriteLine("Number of Days: " + NumberOfDays);
        Console.WriteLine();
    }
}

class Program
{
    static void Main()
    {
        FullTimeEmployee fte = new FullTimeEmployee("Abhi", 101, 1000, 20, 500, 300);
        fte.CalculateSalary();
        fte.DisplayDetails();

        PartTimeEmployee pte = new PartTimeEmployee("Abh", 102, 500, 15);
        pte.CalculateSalary();
        pte.DisplayDetails();
    }
}

using System;
using System.Threading;
class Program
{
    public delegate int MathOperation(int a, int b);
    public static int Add(int a, int b)
    {
        Thread.Sleep(2000); 
        return a + b;
    }
    static void Main(string[] args)
    {
        Console.WriteLine("Main Started");
        MathOperation add = Add;
        Console.WriteLine("\nSynchronous call:");
        int syncResult = add(5, 3);
        Console.WriteLine($"Synchronous result: {syncResult}");
        Console.WriteLine("\nAsync call using BeginInvoke:");
        IAsyncResult asyncResult = add.BeginInvoke(20, 20, null, null);
        Console.WriteLine("Main thread continues to run...");
        int asyncResultValue = add.EndInvoke(asyncResult);
        Console.WriteLine($"Asynchronous result: {asyncResultValue}");
        Console.WriteLine("Main Ended");
    }
}
site1.master 

<!DOCTYPE html>
<html>
<head runat="server">
<title>College Info</title>
</head>
<body>
<form runat="server">
<div style="background-color:lightblue; padding:10px;">
<h1>My College</h1>
<a href="Home.aspx">Home</a> |
<a href="About.aspx">About</a>
</div>
<hr />
<asp:ContentPlaceHolder ID="MainContent" runat="server"></asp:ContentPlaceHolder>
<hr />
<footer>© 2025 My College</footer>
</form>
</body>
</html>

content pages: home
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<h2>Welcome to My College</h2>
<p>We offer B.Tech and M.Tech courses in CSE, ECE, and ME.</p>
</asp:Content>

content page: about
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<h2>About Our College</h2>
<p>Established in 2001, our college provides quality technical education.</p>
</asp:Content>
using System;
class Program {
    static void Main() {
        Console.Write("Enter number: ");
        int n = int.Parse(Console.ReadLine());
        int min = 9;
        while(n > 0) {
            int d = n % 10;
            if(d < min) min = d;
            n /= 10;
        }
        Console.WriteLine("Smallest digit: " + min);
    }
}
using System;
using System.Linq;
class Program {
    static void Main() {
        Console.Write("Enter string: ");
        string str = Console.ReadLine();
        var maxChar = str.GroupBy(c => c)
                         .OrderByDescending(g => g.Count())
                         .First().Key;
        Console.WriteLine("Max Occurring: " + maxChar);
    }
}
using System;
class Program {
    static void Main() {
        Console.Write("Enter number: ");
        int n = int.Parse(Console.ReadLine()), count = 0;
        while(n != 0) {
            int d = n % 10;
            if(d % 2 == 1) count++;
            n /= 10;
        }
        Console.WriteLine("Odd digits: " + count);
    }
}
using System;
class Program {
    static void Main() {
        Console.Write("Enter string: ");
        string str = Console.ReadLine();
        Console.Write("Enter start and length: ");
        int start = int.Parse(Console.ReadLine());
        int length = int.Parse(Console.ReadLine());
        string sub = str.Substring(start, length);
        Console.WriteLine("Substring: " + sub);
    }
}
using System;
using System.Text;
class Program {
    static void Main() {
        string str = "hello";
        Console.WriteLine(str.ToUpper());
        Console.WriteLine(str.Replace('l','x'));
        StringBuilder sb = new StringBuilder(str);
        sb.Append(" world");
        Console.WriteLine(sb.ToString());
        sb.Remove(0,2);
        Console.WriteLine(sb);
        sb.Insert(0, "hi ");
        Console.WriteLine(sb);
    }
}
using System;
class Program {
    static void Main() {
        Console.Write("Enter string: ");
        string str = Console.ReadLine();
        int count = str.Count(c => "aeiouAEIOU".Contains(c));
        Console.WriteLine("Vowels: " + count);
    }
}
using System;
class Program {
    static void Main() {
        Console.Write("Enter a number: ");
        int n = int.Parse(Console.ReadLine()), sum = 0;
        while(n > 0) {
            sum += n % 10;
            n /= 10;
        }
        Console.WriteLine("Sum: " + sum);
    }
}
using System;
class Program {
    static void Main() {
        Console.Write("Enter a number: ");
        int n = int.Parse(Console.ReadLine());
        int rev = 0;
        while(n > 0) {
            rev = rev * 10 + n % 10;
            n /= 10;
        }
        Console.WriteLine("Reversed: " + rev);
    }
}
using System;
using System.Linq;
class Program {
    static void Main() {
        Console.Write("Enter string: ");
        string str = Console.ReadLine();
        string rev = new string(str.Reverse().ToArray());
        Console.WriteLine(str == rev ? "Palindrome" : "Not palindrome");
    }
}
using System;
class Program {
    static void Main() {
        Console.Write("Enter terms: ");
        int n = int.Parse(Console.ReadLine());
        int a=0, b=1, c;
        for(int i = 0; i < n; i++) {
            Console.Write(a + " ");
            c = a + b;
            a = b;
            b = c;
        }
    }
}
star

Sat Oct 18 2025 11:40:09 GMT+0000 (Coordinated Universal Time) https://psmdigitalagency.com.au/dental-digital-marketing/

@psmmarketingau

star

Sat Oct 18 2025 08:54:31 GMT+0000 (Coordinated Universal Time) https://appticz.com/taxi-booking-app-development

@davidscott

star

Sat Oct 18 2025 06:19:59 GMT+0000 (Coordinated Universal Time) https://aksharindustries.com.au/solar-panel-mounting-brackets/

@aksharindustrie

star

Fri Oct 17 2025 13:43:21 GMT+0000 (Coordinated Universal Time) https://www.mohamedboclet.com/formation-mind-mapping/

@Eden

star

Fri Oct 17 2025 11:17:42 GMT+0000 (Coordinated Universal Time) https://alpharive.com/blockchain-development

@Becca #c++ #c#

star

Fri Oct 17 2025 10:49:40 GMT+0000 (Coordinated Universal Time) https://shayonalogistics.com.au/ecommerce-fulfilment/

@shayonaaus

star

Fri Oct 17 2025 10:17:52 GMT+0000 (Coordinated Universal Time) https://innosoft.ae/sports-betting-app-development-company/

@Olivecarter #sportsbetting software development company

star

Fri Oct 17 2025 07:35:49 GMT+0000 (Coordinated Universal Time) https://www.amperesolar.com.au/solar-panels-rockingham/

@amperesolar

star

Thu Oct 16 2025 15:35:35 GMT+0000 (Coordinated Universal Time) https://kahoot.recurly.com/account/invoices/9163858

@ismaelnovo

star

Thu Oct 16 2025 14:58:36 GMT+0000 (Coordinated Universal Time)

@jrg_300i #yii2

star

Thu Oct 16 2025 11:45:10 GMT+0000 (Coordinated Universal Time)

@MinaTimo

star

Thu Oct 16 2025 08:52:34 GMT+0000 (Coordinated Universal Time) https://bettoblock.com/sports-betting-software-development/

@johnstone #sportsbetting software development company

star

Thu Oct 16 2025 04:34:46 GMT+0000 (Coordinated Universal Time)

@FOHWellington

star

Thu Oct 16 2025 03:07:50 GMT+0000 (Coordinated Universal Time)

@FOHWellington

star

Wed Oct 15 2025 18:01:26 GMT+0000 (Coordinated Universal Time)

@exam2

star

Wed Oct 15 2025 13:45:02 GMT+0000 (Coordinated Universal Time)

@jrg_300i #yii2

star

Wed Oct 15 2025 12:01:24 GMT+0000 (Coordinated Universal Time) https://appticz.com/how-to-build-a-dating-app-like-tinder

@davidscott

star

Wed Oct 15 2025 09:36:46 GMT+0000 (Coordinated Universal Time) https://innosoft-group.com/sportsbook-software-providers/

@johnstone #sportbetting software provider

star

Wed Oct 15 2025 03:54:37 GMT+0000 (Coordinated Universal Time)

@FOHWellington

star

Tue Oct 14 2025 18:50:09 GMT+0000 (Coordinated Universal Time)

@rcb

star

Tue Oct 14 2025 18:48:31 GMT+0000 (Coordinated Universal Time)

@bdaplab2025 #python

star

Tue Oct 14 2025 18:47:16 GMT+0000 (Coordinated Universal Time)

@bdaplab2025

star

Tue Oct 14 2025 06:56:26 GMT+0000 (Coordinated Universal Time)

@Saravana_Kumar #postgres

star

Tue Oct 14 2025 05:30:21 GMT+0000 (Coordinated Universal Time)

@Pulak

star

Mon Oct 13 2025 18:21:47 GMT+0000 (Coordinated Universal Time)

@ddover

star

Mon Oct 13 2025 15:14:35 GMT+0000 (Coordinated Universal Time)

@jrg_300i #yii2

star

Mon Oct 13 2025 14:37:30 GMT+0000 (Coordinated Universal Time) https://www.uniccm.com/course/postgraduate-professional-diploma-in-leadership-coaching-and-mentoring

@bubbleroe

star

Mon Oct 13 2025 11:26:39 GMT+0000 (Coordinated Universal Time) https://www.addustechnologies.com/blog/chicken-road-clone-script

@brucebanner #clone #javascript

star

Mon Oct 13 2025 11:08:10 GMT+0000 (Coordinated Universal Time) https://medium.com/coinmonks/what-is-nft-staking-and-how-it-works-96650af544d1

@LilianAnderson #nftstaking #passiveincomecrypto #defirewards #blockchainearning #cryptoinvestment

star

Mon Oct 13 2025 06:58:32 GMT+0000 (Coordinated Universal Time)

@FOHWellington

star

Mon Oct 13 2025 06:30:19 GMT+0000 (Coordinated Universal Time)

@proxy4free #proxy4free

star

Sun Oct 12 2025 22:19:47 GMT+0000 (Coordinated Universal Time)

@FOHWellington

star

Sun Oct 12 2025 18:27:44 GMT+0000 (Coordinated Universal Time)

@vplab2025 #c#

star

Sun Oct 12 2025 18:04:07 GMT+0000 (Coordinated Universal Time)

@vplab2025 #c#

star

Sun Oct 12 2025 17:53:16 GMT+0000 (Coordinated Universal Time)

@vplab2025 #c#

star

Sun Oct 12 2025 17:37:00 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:34:48 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:22:45 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:19:03 GMT+0000 (Coordinated Universal Time)

@robo

star

Sun Oct 12 2025 17:10:31 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:10:07 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:09:46 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:09:25 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:09:03 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:08:40 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:08:20 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:07:54 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:07:32 GMT+0000 (Coordinated Universal Time)

@final

star

Sun Oct 12 2025 17:06:35 GMT+0000 (Coordinated Universal Time)

@final

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension