User menu

Home » Blog 63

Blog 63

Blog 63

Run drupal 7 cron manually

Dec
25

I have found setting up manual drupal 7 cron little difficult and had to try many different combinations. I was trying it on cPanel and following format finally worked. Turnout that the the get parameter cron_key was the problem. When we use cron setup, we cannot pass get parameter using "yourUrl?cron_key=something", but use "yourUrl cronKey=something". So, try this:

php /home/<username>/public_html/cron.php cron_key=something

Posted By shahgm read more

Some handy code for C# / .NET

Dec
12

check connection:

conn.Open();

var canOpen = conn.State == ConnectionState.Open;

Console output for website project

System.Diagnostics.Debug.WriteLine("You are here...");

 

 

Posted By admin read more

Display message to users on logout in drupal

Oct
19

Whenever you are implementing login functionality in Drupal, you will come across this issue where you want to display confirmation message to users upon logout. There is a drupal API which get called upon logout, but you can never use 'drupal_set_message()' there. I dont know exact reason behind this, but it seems like drupal is destroying something when logging out and this request to set message will never get passed. So, as an alternative i have found following way to achieve this functionality(In your custom module, add following codes):

Posted By shahgm read more

List of questions to ask at the end of job interview

Oct
15

One question always bothers me is, in interview if given an opportunity to ask questions at the end, should i ask? and What kind of questions. I have found very good link which talks about it and provide list of questions that one can ask at the end of interview.

Here are 9 great questions you can use or make your own on your next job interview. Obviously they're generic and should be tailored based on circumstances:

1) Who would make the ideal candidate for this position?

Posted By shahgm read more

Drupal drag and drop menu not working - FIXED

Oct
09

I have had a problem where i can select item, it highlights, but doesnt move. So, upon digging into this problem, i found that it is very small issue, but can freak you out if not fixed properly. When you force drupal to combine several JavaScript files, you might see DrupalTemporaryStreamWrapper::stream_open" call failed in file_create_htaccess() error(s) depending on how you have organized your system. Lets come to point and do the following optimization as i found these helpful:

Posted By shahgm read more

My first blog

Oct
09

Hello world!

This is my first blog and i am testing look and feel of my blog. Please bear with me while i am adding more stuff and functionality for users and guest users as well.

 

Thanks,

(Gaurav Shah)

Posted By shahgm read more

Pages