Geekpedia
  • Tech
    • Tutorials
      • ActionScript
      • AI Coding
      • ASP
      • ASP.NET
      • C
      • CSS
      • C#
      • C++
      • Code
      • General
      • HTML
      • Java
      • JavaScript
      • PHP
      • Silverlight
      • SQL
      • Visual Basic
    • Software
      • Communications
      • Development
      • Internet
      • Linux
      • Microsoft
      • Security
      • Windows
  • Gear
  • Mobillity
  • Wellness
  • Knowledge Base
  • Media
    • Pictures
  • News
      • ActionScript
      • AI Coding
      • ASP
      • ASP.NET
      • C
      • CSS
      • C#
      • C++
      • Code
      • General
      • HTML
      • Java
      • JavaScript
      • PHP
      • Silverlight
      • SQL
      • Visual Basic
      • Communications
      • Development
      • Internet
      • Linux
      • Microsoft
      • Security
      • Windows
  • Gear
  • Mobillity
  • Wellness
  • Knowledge Base
    • Pictures
  • News
Shorten a string with complete words
Code Ruby
September 24, 2023November 3, 2023Nathan

Shorten a string with complete words

The Excerpt() function takes in a string and shortens it to the desired amount of characters, but without cutting into the middle of a word.

Discover
String Ends With Values in Array of Strings
C# Code
September 24, 2023November 3, 2023Nathan

String Ends With Values in Array of Strings

This simple method checks if a string ends with either of the values in an array of characters, and returns true if it does. Useful to add appropriate suffixes to words in standard form.

Discover
Check URL validity using JavaScript
Code JavaScript
September 24, 2023November 3, 2023Nathan

Check URL validity using JavaScript

The CheckValidUrl() function takes in an URL and checks whether or not it is valid by verifying it against a regular expression. Works for HTTP, HTTPS and FTP URLs.

Discover
Simple Interest Calculator Java Applet
Code Java
September 24, 2023December 12, 2023Nathan

Simple Interest Calculator Java Applet

A sample interest calculator, very basic in functionality, coded in Java and ready to be compiled and executed as a Java Applet.

Discover
Converting from binary to decimal and back
Code Python
September 24, 2023November 3, 2023Nathan

Converting from binary to decimal and back

A simple method for converting binary numbers to decimal, and a wise method for converting decimal numbers to binary (using hexadecimal in between.)

Discover
Retrieve PageRank using PHP
Code PHP
September 24, 2023November 3, 2023Nathan

Retrieve PageRank using PHP

This PHP code is designed to work on servers running the latest version of PHP as well, unlike most of the code samples on the web which will not work on many servers because of a checksum error.

Discover
Check If MySQL Table Exists
Code MySQL
September 24, 2023November 3, 2023Nathan

Check If MySQL Table Exists

How to check if a table exists in the current MySQL database, through running a simple query.

Discover
Initiate Download Using ASP.NET and VB.NET
ASP.NET Code
September 24, 2023November 3, 2023Nathan

Initiate Download Using ASP.NET and VB.NET

This function initiates a download of a file fetched from the server’s local system, all through ASP.NET and VB.NET.

Discover
Generate random password
C# Code
September 24, 2023November 3, 2023Nathan

Generate random password

This C# function returns a randomly generated password of the specified length. You can easily modify it to include only the characters you are interested in.

Discover
Check if HTTP connection to website is available
C# Code
September 24, 2023November 3, 2023Nathan

Check if HTTP connection to website is available

Sample code that uses a ConnectionAvailable() method to check whether the connection to an HTTP server went through or not. Can be used to check if a certain website is online as well as if Internet connection is available on the target machine.

Discover

Posts pagination

Previous 1 … 53 54 55 … 80 Next

Trending Posts

Mastering Linux Command Line: Your Essential Guide

Jan 4, 202415 min read
Read More

ES6 and Beyond: Modern JavaScript Features – Unlocking the Power of Web Development

Jan 4, 202417 min read
Read More

Mastering Object-Oriented Programming in C#: A Complete Guide

Jan 4, 202415 min read
Read More

Getting Started with PHP: A Beginner’s Guide

Jan 3, 202423 min read
Read More

Cyber Attacks: Latest Strategies to Protect Against Online Threats

Jan 3, 20249 min read
Read More
No Post Found
No Post Found
Image Not Found
Geekpedia is a knowledge-driven website offering fresh takes on tech, wellness, gear, and more — all through a thoughtful lens.
From coding tips to curated lifestyle content, it’s built for those who live smart, think sharp, and stay curious.
FOLLOW US
  • Social Image
  • Social Image
  • Social Image
  • Code
  • Gear
  • Generative AI
  • Knowledge Base
  • News
  • Contact Us
  • Work With Us
  • About Us
  • Affiliate Disclosure
  • FAQ
  • Advertisement
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions