By default, in Cheyenne, the header size limit for a post request is 102’400.
If you want to ajust this limit you can define the post-mem-limit parameter in the global context or in a specific webapp.
For example, to double the initial limit in the httpd.cfg, :
default [%index.html %index.rsp]
Get rid of graphic boot on Linux with a few modifications in grub configuration : Continue reading “Boot Linux in text console”
Default mysql client behaviour is to show column names and grid when returning results but how to get rid of this decorations ? Continue reading “mysql client : don’t show columns names and grid”
Just in case you absolutely have to insert a date in MySQL that does’nt exist, eg 2014-02-30, you can run MySQL server in a special mode that authorizes such dates :
MySQL will only check that the month is in the range from 1 to 12 and the day is in the range from 1 to 31.
see Mysql DOC
A few days ago, I started to have a very disturbing “Not permitted” message when trying to mount a usb disk from Thunar. The only way I found was to pmount the disk : not as intuitive as just clicking the disk on Thunar.
But after some googling, I found where was the real problem : udisk, who is responsible of mounting disks, uses polkit to know if I have the right to mount, or not, external disk. So, if you have the same problem, follow this steps :
sudo nano /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy
(use your favorite text editor in place of nano)
Then, look for the section with “udisks2.filesystem-mount”, inside you’ll have a “defaults” section with interesting stuff :
Now, replace all “auth_admin*” by “yes” to give access for every user, like this :
Save your modifications. Forget this annoying message !
- In Windows, create a certificate via Start > All Programs > Microsoft Office > Microsoft Office Tools > Digital Certificate for VBA Projects
- In Microsoft Outlook, open the VB editor and copy/paste the code below
- Replace firstname.lastname@example.org and save
- Click on Tools > Digital Signature
- Click on [Choose] and select your certificate
- Click OK, then save and close the VB editor
- Create the Outlook rule with [run a script] as action and select your macro
- That’s all folks !
Private Const TO_EMAIL As String = "email@example.com"
Sub ForwardAllEmail(theMail As MailItem)
On Error GoTo EndSub
Dim mailObj As Outlook.MailItem
Dim item As Outlook.MailItem
Set mailObj = Application.Session.GetItemFromID(theMail.EntryID)
Set item = mailObj.Forward
Set item = Nothing ' Set variables to null to prevent memory leaks
Set mailObj = Nothing
MsgBox "Error: " & Err.Description
A few months ago, I read an article about brain training by learning a new language : very interesting story about William Alexander who failed to learn french but strenghten his brain trying to.
But this is not the subject of this post. As I finished to read the article, I tried to reach William Alexander’s website and was redirected to a crappy chineese online store. I immediately thought he was hacked and after reading the page source code, I find this piece of script :
var language = navigator.browserLanguage?navigator.browserLanguage:navigator.language;
document.location.href = 'http://www.line-kopi.com';
What’s going on here ? The code checks the browser language and redirects to the fraudulent site only if the language is anything other than english ! So, every time some non-english dude complains to William about this problem, William tries the site and accesses it successfully and just forget about it… The malicious code can stay here for months, with just a little trick but very annoying result !
And for the record, I, of course, alerted William and he removed the malicious code …