^

Top 20

Best Article Listing

[405][APIs / Youtube]
This Links will guide you to your Youtube Thumbnail:https://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpghttps://img.youtube.com/vi/<insert-youtube-video-id-here>/hqdefault.jpghttps://img.youtube.com/vi/<insert-youtube-video-id-here>/mqdefault.jpghttps://img.youtube.com/vi/<insert-youtube-video-id-he... To see full entry click on the link above!
[378][HTML]
Examples of HTML Forwarding and Page RefreshingRefresh the Page after 15 seconds<meta http-equiv="refresh" content="15">Redirection after 3 Seconds<meta http-equiv="refresh" content="3; url=http://url.com/">Redirect immidiately<meta http-equiv="refresh" content... To see full entry click on the link above!
[291][MySQL / Simple Operations]
Delete with Condition:DELETE FROM tablename WHERE a = 1;Delete all entries in a table:DELETE FROM tablename;... To see full entry click on the link above!
[280][Networking / IpTables]
USE WITH OWN RISK - ALL FIREWALL RULES WILL BE DELETED#!/bin/shiptables -Fiptables -Xiptables -t nat -Fiptables -t nat -Xiptables -t mangle -Fiptables -t mangle -Xiptables -P INPUT ACCEPTiptables -P FORWARD ACCEPTiptables -P OUTPUT ACCEPT... To see full entry click on the link above!
[257][Android-Java / Hints]
This may fix this error ---javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x6abff398:Failure in SSL library, usually a protocol error error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure (external/openssl/ssl/s23_clnt.c:7440x684dfce0:0x00000000)Add this to your C... To see full entry click on the link above!
[252][Android-Java / Hints]
Passing the parameterIntent intent= new Intent(mContext,Activity.class);intent.putExtra("test","value"));Get valueIntent intent=getIntent();msg_textview.setText(intent.getStringExtra("test"));... To see full entry click on the link above!
[236][Android-Java / Hints]
This is Example for Internet PermissionsAndroid Manifest XML (for every Permissoin u need one of this fitting block)    <!-- Declare Use Of Internet -->        <uses-permission android:name="android.permission.INTERNET"/>Java Content:if (ContextCompat.checkSel... To see full entry click on the link above!
[229][HTACCESS]
Enter this in your Websites .htaccess main directory to let the server redirectHTTP404 Errors or misc to a specified site.ErrorDocument 400 /error/400.phpErrorDocument 401 /error/401.phpErrorDocument 403 /error/403.htmlErrorDocument 404 /error/404.phpErrorDocument 500 /error/405.php This is just an example where for 404 e... To see full entry click on the link above!
[229][Android-Java / Hints]
Here a simple Download Manager Class. Use like this:  DownloadManager DM = new DownloadManager();  DM.init(....);  DM.execute();Here the Class:import android.os.AsyncTask;import java.io.File;import java.io.FileOutputStream;import java.io.InputStream;import java.io.PrintWriter;import java.net.Http... To see full entry click on the link above!
[224][Android-Java / Hints]
In Constructorsuper.onCreate(savedInstanceState);// Disable ScreenshotsgetWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);setContentView(R.layout.activity_main);... To see full entry click on the link above!
[222][HTACCESS]
If you put this in your htaccess, the server will forward all request from HTTP to HTTPS(with all details after the domain included like get variables)It will also rewrite all www.yourdomain.de requests to yourdomain.de.So its not possible to create 2 sessions on the same website.Replace yourdomain.de with your own domain which is needed.... To see full entry click on the link above!
[214][Android-Java / File Operations]
Write a File in Android to Internal Storage from Stringvoid writeFile(String data, Context context, String filename) throws IOException { OutputStreamWriter outStream = new OutputStreamWriter(context.openFileOutput(filename, Context.MODE_PRIVATE)); outStream.write(data); outStream.close();}... To see full entry click on the link above!
[206][Android-Java / XML Styling]
<FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" app:layout_constraintTop_toBottomOf="@+id/main_topbar"> <VideoView android:id="@+id/videoViewMain" android:layout_width="match_parent" android:layout_heig... To see full entry click on the link above!
[200][Astrodynamics / Equation]
For an object in space in a perfect circular orbit around another object (should be rare) the equation to calculate velocity of the orbiting object is:Scientifical designations:v = Velocity in m/sG = Gravitational Constantr = Radius in MetersM = Mass of the Central Body in kgAnimation of an object orbiting another object i... To see full entry click on the link above!
[196][SEO / Sitemap]
This is the Mail Layout of a sitemap.xml File<?xml version="1.0" encoding="UTF-8"?><urlset      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"      ... To see full entry click on the link above!
[192][C-Sharp / Hints]
 Here the code to get the current Directory!string path = Directory.GetCurrentDirectory();See more detailed Info here:https://docs.microsoft.com/de-de/dotnet/api/system.io.directory.getcurrentdirectory?view=netcore-3.1  ... To see full entry click on the link above!
[177][PHP / URL Request Handling]
 Modify your HTaccess File like this if index.php is your main php File:RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php?i=$1 [L,QSA]  For example, if the user enters the URL yourdomain.ending/wiki/testcategorieyou can fetch the ... To see full entry click on the link above!
[169][Penetration-Testing / Denial Of Service]
A forkbomb is a denial of service bash command that blocks the server, duo to high cpu load.The script is creating a recursive function and is infinitly launching itself - so the system will be blocked.Usefull for testing vHosts which are sharing ressources if high load is affecting other hosts.(Thats the only thing that i could figure out ... To see full entry click on the link above!
[167][C-Sharp / Hints]
If SSL Connections fail with Security Protocol Error, this code in Main Function could do the trick!            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls                   ... To see full entry click on the link above!
[166][Android-Java / File Operations]
Here the code to display a video in a videoView element.VideoView videoview = findViewById(R.id.VIDEOVIEWID);Uri uri = Uri.parse(STRING PATH TO FILE);MediaController mediaController = new MediaController(this);mediaController.setAnchorView(videoview);videoview.setMediaController(mediaController);videoview.setVideoUR... To see full entry click on the link above!

This Website is using Session Cookies for Site Functionality and AWStats.
Radio