×
Kategorien

ColdFusion

🔍

Find Prime Numbers fast with AKSTest with JAVA

ColdFusion  Javascript |

The AKSTest class is a Java implementation of the Agrawal-Kayal-Saxena (AKS) primality test. The AKS test is a deterministic algorithm for determining whether a given number is prime or composite. It is considered to be an efficient algorithm for large numbers, and it is also a general algorithm, meaning it can be applied to any positive integer, not only numbers in a specific range. [code lang="java"] import java.math.BigInteger; public class AKSTest { public static boolean...

Array Ring Stack with Coldfusion/Lucee

ColdFusion |

A ring array, also known as a circular array, is a data structure that behaves like an array but the elements are connected in a circular fashion. In other words, the last element of the array is followed by the first element, forming a loop. Here’s an example of how you can implement a ring array for Coldfusion: [code lang="html"] < cfset stack = []> < cfset stackSize = 5> < cfset push(" Vater" )> < cfset push(" Mutter" )> < cfset...

Tomcat Lucce Permission 640 instead of 644

ColdFusion |

For a project with an upload, I had a permission problem. Lucce set the file permission to 640 after an upload, which in my case led to a "Permission denied". I decided to implement the UMASK in Tomcat. In the file: /tomcat/bin/catalina.sh the value: UMASK="0027" to: UMASK="0022" Tomcat/Lucce writes folders with 755 and files with 644...

ColdFusion Installation: Error while loading shared libraries

ColdFusion |

Der Folgende Fehler kann beim installieren von JRun/ Coldfusion bei neueren Linuxversionen auftreten: Preparing to install... Extracting the JRE from the installer archive... Unpacking the JRE... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory dirname: error while loading shared libraries: libc.so.6:...

User IP mit Cloudflare, Varnish und Lucee/ Coldfusion unter Tomcat

Allgemein  Apache  ColdFusion  Varnish |

Ich benutze im Moment eine sehr proxylastige Konfiguration für eine sehr gut besuchte Webseite. Dabei geht es über zwei Proxyserver zum eigentlichen Ziel. Cloudflare (Global Proxy1) -> Varnish ( Local Proxy1) Cloudflare dient als Application Firewall und als CDN. Zu dem habe ich die Möglichkeit schnell und automatisiert auf ein Backup System zu routen. Feine Sache! Varnish habe ich vor allem im Einsatz für Chats die über Websockets laufen. Damit kommt Varnish prima klar. Ich kann so...

Java.lang.NullPointerException beim JRun Administrator

ColdFusion |

Hatte die Tage "java.lang.NullPointerException" Fehlermeldungen beim Aufrufen des JRun Administrators. Als mehrere Server davon betroffen waren wurde ich etwas stutzig und ging der Meldung auf dem Grund. Die Lösung war ganz einfach wie auch überraschend. Ich hatten den Mozilla Firefox um den UserAgent erleichtert. Da schein der JRun Admin nicht ganz mit klar zukommen. Nachdem der UserAgent Eintrag wieder anständige Daten lieferte lief die JRun Console wieder ohne Probleme. User Agent in...

ColdFusion „ Graphing service is not available“

ColdFusion |

ColdFusion startet nicht unter Linux Wer Coldfusion MX7 installiert und die Fehlermeldung " Graphing service is not available "* bekommt sollte zuerst checken ob in der jvm.config der Wert "-Djava.awt.headless=true" unter der jvm.arg Liste gesetzt ist. Ansonsten muss! das X-System noch auf der Linux Maschine installiert sein. Wer nicht das ganze X installieren will der kann folgende Pakete installieren um Adobe's ColdFusion doch noch zum arbeiten zu bewegen:...

301 Redirect mit ColdFusion

ColdFusion |

Coldfusion 301 Umleitung realisieren Eine 301 Moved permanently Umleitung ist mit ColdFusion schnell realisiert. ColdFusion Redirect 301 PHP Redirect 301 Natürlich kann man so auch einfach ein 302...

ColdFusion Scope Typen

ColdFusion |

The following table describes ColdFusion scopes: Scope Description Variables (local) The default scope for variables of any type that are created with the cfset and cfparam tags. A local variable is available only on the page on which it is created and any included pages (see also the Caller scope). Form Contains variables passed from a Form page to its action page as the result of submitting the form. (If you use the HTML form tag, you must use method="post".) For more...

HTTP Multipart Post mit Java

ColdFusion |

Oder wie man mit Java Dateien posten kann Wer automatisiert Dateien zu seinen Server senden möchte, hat es unter Windows nicht ganz einfach. Für das Versenden einer Datei über Port 80 hat Windows leider nichts an Bord. Ein kleines Java Programm was über DOS einfach angesprochen werden kann ist aber schnell umgesetzt. Hier ein Beispiel für ein POST einer test.jpg zu einen entfernten Server: /** * @author Günter Dillenberg * Upload  multipart/form-data via HTTP POST */ import...