Is this an okay practice or an acceptable way to use PHP's error suppressing?
if (isset($_REQUEST['id'] && $_REQUEST['id'] == 6) {
echo 'hi';
}
if (@$_REQUEST['id'] == 6) {
echo 'hi';
}
hello
i want to work with 2 queue in the module where i change my pointer to them
therefore i need to use :
//declartion
wait_queue_head_t **currentQ;
DECLARE_WAIT_QUEUE_HEAD (readWaitQ1);
DECLARE_WAIT_QUEUE_HEAD (readWaitQ2);
if(condition){
currentQ = &readWaitQ1;
}else{
currentQ = &readWaitQ2;
}
but i get incorrect type for wake_up…
What are the advantages and differences between the below two coding styles...
public void HelloWorld () {
private string _hello;
public string Hello {
get
{
return _hello;
}
set
{
_hello = value;
}
}
}
or
public…
ubuntu 11.10 32bit. Setup a dovecot imap server. Using Thunderbird on a different ubuntu machine (64bit) to access imap server. Everything else is fine, except I can not compact the deleted email in inbox, which is stored at /var/mail/username. Checking mail.log and I see this error message:
Apr 3 00:10:11 autumn dovecot: imap(username):…
I'm hoping someone can explain this to me like I'm 5, because I've been struggling with this for hours and simply cannot understand what I'm doing wrong.
I've written a Camera class for my 2.5D game. The intention is to support world and screen spaces like this:
The camera is the black thing on the right. The +Z axis is upwards in that…
hello friends,
I have created the application in which I have to use 3D map Action Script class in mxml file to display a map in form. that is in tab navigator last tab.
My ActionScript 3D map class is(FlyingDirections):-
package src.SBTSCoreObject
{
import src.SBTSCoreObject.JSONDecoder;
import com.google.maps.InfoWindowOptions;
…
i need to know how to pass everything after the .php part in this link
"http://wreckedclothing.net/help/view.php?e=john@wreckedclothing.net&t=985559"
to a iframe on the same page. "hosted on the same site"
like this
"<iframe>
src="http://www.wreckedclothing.net/help.php?e=john@wreckedclothing.net&t=985559"
…
This post was a dump of the following code (without the highlights). No question, just a dump. Please update this q. with a real question to have it reopened. You (the asker) risk to be flagged as spammer (if not already) and a bad reputation. This is a q/a site, not a site to promote your own code libraries.
package facers {
import…
Brief question about partition layout. I use an SSD for /, /boot, /usr, & /home partitions. I'd like to move /var to a mechanical disk to minimize writes to the SSD. I'm mainly concerned about maximizing drive life rather than maximizing performance (although I obviously wouldn't want to cripple my server).
My mechanical disks…
My main disk is an SSD so in order to preserve its lifetime by reducing writes I followed some advice and made /var/spool a ram disk by adding this line to /etc/fstab:
tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0
Later I configured postfix because I have a RAID array on my system and mdadm wants to send me email…
I need to encrypt the folder /var/www/test.
The folder contains PHP files. The goal it to prevent any user to read the php content AND if the HD is mounted on another computer, the /var/www/test should be encrypted AND if computer booted up without any user logged I would like anyone to be able to access data in /var/www/tests.
…
/var/log/messages, /var/log/syslog, and some other log files use a timestamp which contains an absolute time, like Jan 13 14:13:10.
/var/log/Xorg.0.log and /var/log/dmesg, as well as the output of $ dmesg, use a format that looks like
[50595.991610] malkovich: malkovich malkovich malkovich malkovich
I'm guessing/gathering that…
In some of my projects, I keep a var or a lib folder for runtime output and
external libraries. To keep my prompt rather short, I have the export
PROMPT_DIRTRIM=3 option in my .bashrc.
This works very well for most paths, but as soon as I have a /var in there, it
goes nuts like this (for ~/Projects/someproject/var/gfx):
…
I am running out of space in the /var partition. I have plenty of space in my /home partition. How do I shrink the /home partition to make more space for the /var partition?
I have read some blogs that say to use the GParted Live CD. As a new user, I'm not quite sure if this is the ideal route. What is the best way to…
I have mailserver configure using dovecot+postfix+mysql and it was runnig fine in the server(Ubuntu Server). But during last week it stopped working correctly. It doesn't send email. When I try to telnet localhost smtp I'm connecting successfully but when I do mail from:<steve@example.com> and hit Enter it hangs…
I have installed lamp on Ubuntu 12.04.
I try to access /var/www but it doesn't allow me to do anything as it says I don't have permissions.
I have tried:
1.
gksudo nautilus - which works but its very inconvenient way of doing things.
2.
sudo adduser ryan www-data
sudo chown -R www-data:www-data /var/www
sudo chmod…
I am getting a 403 when i access http://mayfieldafc.local/ upon looking in the apache logs i am getting
[Wed Nov 16 12:32:59 2011] [error] [client 127.0.0.1] Symbolic link not allowed or link target not accessible: /var/www
I have what i believe to be the correct permissions set on /var/www. hutber can create and…
After upgrading to 12.04, I had to reinstall the LAMP stack. Then I brought all my www project folders from a pen drive to the /var/www folder (using sudo nautilus, and dragging the files in there).
Now I cannot make any changes to the files/directories within /var/www.
Perhaps this changed with the backup copies I…
I had to reinstall the entire OS a little while ago and I have been trying to reinstall all of the programs I had before but I got a bit a of a problem now. I was trying to download dropbox from synaptic but it cannot finish the process and as a result I cannot update anything anymore. The line that comes out is:
…
linux lubuntu
HD4000
intel ivy-bridge
8gb 1600 ram.
I am getting a duplicate entry error message from synaptic package manager
and it says the problem is there. I am wondering a few things:
What this directory is.
Whether it safe to simply delete the offending duplicates from there.
Whether this is a useful new…
Latebinding is a common term among VB6.0 programmers. C# was always strongly typed. But in 3.x version they introducded var keyword which suporting dynamic binding. But not late binding. After 4.0 relese they came up with dynamic keyword. This fully supporting late binding. Below explaining the difference between…
Possible Duplicate:
Use of var keyword in C#
I have ReSharper, which is a pretty good tool to remind me of some good programming practices..
for example it always recommends that I use the most narrowed convention I can use when passing variables to functions (such as recommending IEnumerable instead of…
I've tried it all (removing all the packages associated with MySQL) but keep getting stuff like this:
Preconfiguring packages ...
(Reading database ... 142196 files and directories currently installed.)
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.63-0ubuntu0.11.10.1_amd64.deb) ...
ERROR: There's…
I'm unfortunately having an unknown error with my php file. (for joomla 1.5)
I don't seem to get what's wrong.
This is my entire code, with an apparent error on line 84. Would appreciate some feedback, thanks.
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
if ( !…