Manage PlItems

You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done.

Advanced Search
Displaying 121-130 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
128PythonKonsolenverwaltungEinlesen Konsoleneingabeyourname = raw_input('What\'s your name? ')View Update Delete
198BatchKonsolenverwaltungEinlesen Konsoleneingabe@echo off SET mydir=%CD% set /p number=search this number?: echo %number% > "%mydir%\lastnumbersearched.txt" echo dir/b/s *%number%*.* echo. echo. dir/b/s *%number%*.* echo. echo. pause View Update Delete
125PythonEncoding / DecodingDatei nach Base64 encodierenmyfile = 'myDoc.pdf' ReturnValue = open(myfile).read().encode("base64") # in ReturnValue ist nun der Base64-StringView Update Delete
126C#Encoding / DecodingDatei nach Base64 encodierenmyfile = "myPDF.pdf"; string ReturnValue = ""; if (System.IO.File.Exists(myfile)) { using (FileStream BinaryFile = new FileStream(myfile, FileMode.Open)) { BinaryReader BinRead = new BinaryReader(BinaryFile); byte[] BinBytes = BinRead.ReadBytes(Convert.ToInt32(BinaryFile.Length)); ReturnValue = Convert.ToBase64String(BinBytes); BinaryFile.Close(); } }View Update Delete
123PL/pgSQLDatum, ZeitAlter zu gegebenen Datum ermittelnselect age({ts '1983-08-21 17:25:00'})View Update Delete
121PL/pgSQLDatum, ZeitMonat aus Datum extrahieren-- http://www.postgresql.org/docs/9.1/static/functions-datetime.html select extract(month from now())View Update Delete
122T-SQLDatum, ZeitMonat aus Datum extrahierenSELECT MONTH(GETDATE())View Update Delete
156PL/pgSQLDatum, ZeitMonat aus Datum extrahieren-- You get the local name for the spoken month name SELECT to_char(now(), 'TMMonth') -- results in german to "Januar" or "Dezember" (= "January", "December")View Update Delete
231MySQLDatum, ZeitMonat aus Datum extrahierenSELECT extract(month from now()) AS Month; SELECT extract(month from '2014-07-01') AS Month; -- 7View Update Delete
120PL/pgSQLStringsString in Dezimal konvertieren-- Da im Deutschen das Trennzeichen für eine -- Dezimalstelle ein Komma ist, muss dieses erst -- gegen einen Punkt ersetzt werden select cast(replace(cast('12.12' as varchar(10)),',','.') as numeric(12,2))View Update Delete