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 21-30 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
135T-SQLSecurityZugriff auf DB-Tabellen für Schema/Package gewährenGRANT UPDATE,INSERT,SELECT,DELETE ON SCHEMA :: schema_test TO user_testView Update Delete
134SSISFallunterscheidungWenn-Dann Abfrage' Using IF(IIF) logic in Derived Column (LEN(TRIM(Test)) > 0 ? SUBSTRING(Test,1,5) : NULL(DT_WSTR,5))View Update Delete
202PHPFallunterscheidungTernary operator$testVar = "OK"; $resultVar; $resultVar = $testVar=="OK" ? true : false; // same as if-else construction if ($testVar == "OK") { $resultVar = true; } else { $resultVar = false; };View Update Delete
204PythonFallunterscheidungTernary operatorthisVar = "OK" resultVar = False # [on_true] if [cond] else [on_false] resultVar = True if thisVar == "OK" else False // same as if-else construction if (thisVar == "OK"): resultVar = True else: resultVar = FalseView Update Delete
242Bash ScriptFallunterscheidungWenn-Dann AbfrageVAR1=1 VAR2=2 if [ "$VAR1" -eq "$VAR2" ]; then echo "true"; else echo "false"; fi # falseView Update Delete
248PowerShellFallunterscheidungTernary operator## Example from here: https://www.kongsli.net/2012/02/23/powershell-another-alternative-to-ternary-operator/ $thisVar='OK' $resultVar = @{$true=1;$false=2}[$thisVar -eq 'OK'] // same as if-else construction if ($thisVar -eq 'OK') { $resultVar = 1; } else { $resultVar = 2; }View Update Delete
76PythonNetzwerk, EmailEmail versenden# Found at (and little modified): http://www.semi-legitimate.com/sls/blog/37-quick-notes/62-command-line-smtp-from-python #!/usr/bin/python import smtplib, sys if len(sys.argv) != 5: print "You must call me like:" print " mailme from to subject msgfile" sys.exit() fromadr = sys.argv[1] toadr = sys.argv[2] subject = sys.argv[3] msgfile = sys.argv[4] try: f = open(msgfile) msg = f.read() except: print "Invalid Message File: " + msgfile sys.exit() m = "From: %s To: %s Subject: %s X-Mailer: My-Mail " \ % (fromadr, toadr, subject) smtpserver="mysmtp.lan" loginuser="Marty_McFly" loginpwd="DeLorean" smtp = smtplib.SMTP() smtp.connect(smtpserver) smtp.login(loginuser, loginpwd) smtp.ehlo() smtp.sendmail(fromadr, toadr, m+msg) smtp.close() View Update Delete
131PHPNetzwerk, EmailEmails mit pop3 lesen// Orginal von http://www.sebastianviereck.de/php-pop3-mails-aus-postfach-auslesen/ $mailserver="pop.foo.de"; $port="110/pop3"; $user="name@foode"; $pass="foo"; getEmailsImap($mailserver, $port, $user, $pass); //open connection to mailbox, read all unread mails function getEmailsImap($mailserver, $port, $user, $pass) { $imap = imap_open( "{" . $mailserver . ":" . $port . "}INBOX", $user, $pass ); if ($imap) { echo "Connected\n"; $check = imap_mailboxmsginfo($imap); echo "Date: " . $check->Date . "<br />\n" ; echo "Driver: " . $check->Driver . "<br />\n" ; echo "Unread: " . $check->Unread . "<br />\n" ; echo "Size: " . $check->Size . "<br />\n" ; $totalrows = imap_num_msg($imap); //iterate through all unread mails for ($index = 0; $index < $totalrows; $index++) { $header = imap_header($imap, $index + 1); //get mail subject dump("<h1>".$header->subject."</h1>"); //get mail sent date $prettydate = date(DateTime::ISO8601 , $header->udate); dump( $prettydate ); //get email author $email = "{$header->from[0]->mailbox}@{$header->from[0]->host}"; dump( $email ); //get mail body dump( imap_body($imap, $index + 1)); } //close connection to mailbox imap_close($imap); return true; } else { dump("Can't connect: " . imap_last_error()); return false; } } function dump($var) { echo "<pre><div align='left'>"; print_r($var); echo "</div></pre>"; }View Update Delete
127MumpsKonsolenverwaltungEinlesen KonsoleneingabeWRITE !,"What's your name? " READ yournameView Update Delete
128PythonKonsolenverwaltungEinlesen Konsoleneingabeyourname = raw_input('What\'s your name? ')View Update Delete