Profile

Cover photo
nitin niraj
Worked at Student
Attended DAV PUBLIC SCHOOL GANDHINAGAR
Lives in pune
209 followers|155,174 views
AboutPostsVideos

Stream

nitin niraj

Discuss  - 
 
I am using odbc.pyd (C:\\Python27\\lib\\site-packages\\win32\\odbc.pyd'). Now what I want that in my python code where I am doing my connection as 
 con = odbc.odbc("%s/%s/%s" % (settings.DSN, settings.UID, settings.PW)) I want to add one more parameter for UTF-8. But if i do that my program  fails and gives the error. I  want to implement UTF-8 with this connection. Any help would be appreciated.
1
Judah Devasahayam's profile photo
Add a comment...

nitin niraj

Discuss  - 
 
I am having a small question. Suppose I am having a list. X  = [1, 3, 4]
Now what i did is y = X. Then I did X.append(5).  The value of both x and y will change.  Is there any way i should stop the value of y from changing.
3
Bryan James's profile photoAlexandru Dragoescu's profile photoJoshua Underwood's profile photoSriram S's profile photo
11 comments
 
one another way I can think of is: 
y = X[:]

A quirky way I guess.. but it works.. 
Add a comment...

nitin niraj

Need Help (QnA)  - 
 
I am using slim framework for creating api. I am using PDO for database related thing. My code are working fine when I am working on my local machine. But when I upload my code on cpanel I am getting following error.
ERROR: SQLSTATE[42000] [1044] Access denied for user 'frien312_abhi'@'localhost' to database 'frien312_chdb_dev'
Fatal error: Call to a member function prepare() on a non-object in /home/abc/public_html/api1/user.php on line 71. 

Now I am not sure what is the exact error? I don't know how to check if the connection is getting established or there are some other error which is causing this. Any help would be appreciated.
2
Anubhav Singh's profile photonitin niraj's profile photoKarsten Wegmeyer's profile photo
4 comments
 
nevertheless is the following error an indicator for missing code!
Add a comment...

nitin niraj

CentOS-6  - 
 
Hi All, 
I am getting an error as follows:
PHP Warning:  pspell_save_wordlist(): pspell_save_wordlist() gave error: The file "/etc/dictionaries/evergreenlegal/custom-dict-en.pws" can not be opened for writing. in /var/www/html/spellchecker/classes/PSpell.php on line 58

I am logged in as root user. The file permission is as follows if i do ls -l filename
-rwxrwxrwx 1 root root 0 Feb 24 05:42 custom-dict-en.pws
Please do let me know what i am missing. Any help would be appreciated. Thanks in advance.
1
Mike Chen's profile photoWilliam Leemans's profile photo
2 comments
 
Smells like selinux.
Add a comment...

nitin niraj

CentOS-6  - 
 
I am using CentOS 6.6 as my virtual machine. Now I want to access the Lamp server of CentOS in my windows 7. I can ping the ip of CentOS in my windows machine but if i open the same ip in browser it doesn't open. I have tried making changes in httpd.conf but there was no help. 

Any help on this will be appreciated. Thanks in advance.
1
1
Rodd Clarkson's profile photonitin niraj's profile photo慕冬亮's profile photogiuseppe cotugno's profile photo
9 comments
 
First ,check your VM , and is your vm network good! Then ,check your firewall , and close it for test! 
Add a comment...

nitin niraj

Need Help (QnA)  - 
 
Hello , 
I have problem with aspell. I have installed php in CentOS. Then I installed aspell 0.60. The problem which I am facing is i don't find aspell in PHP module list. If I do which aspell    i get /usr/bin/aspell

but if I do php -m. I am not getting this . Because of this my Spell checker is not working. Any help would be appreciated. Thanks in advance
1
Itoshiki  Mikoto 糸色 命, Mairuzu マイルズ “Despair Ponies”'s profile photo
 
Check that the config is symbolic link in the etc php
Add a comment...
In his circles
245 people
Have him in circles
209 people
barun kumar's profile photo
Manish Tayade's profile photo
ashutosh verma's profile photo
Apoorva Srinivasan's profile photo
Shwet Solanki's profile photo
Vishwanathan Iyer's profile photo
Rajashekhar v's profile photo
Parinitha Rao's profile photo
Shilpa Choudhary's profile photo

nitin niraj

Discuss  - 
 
Hi I am working on DBCS (double byte character set). My Python version is 2.7 . The issue which I am currently facing is of encoding of characters. My python program all of a sudden started failing. So what I am thinking now is to convert my python 2.7 to utf-8 because by default the encoding for python 2 is ascii. So my question is what will be the result(pros and cons) of this? Is there anything which I should keep in mind while doing this. Any help would be appreciated. Thanks in Advance.
2
1
Will Beddow's profile photoPaula Merns's profile photoBruce Slaton's profile photo
2 comments
 
Characters take a little more space in memory but if you aren't doing a lot of intense data operations it shouldn't matter for performance.
Add a comment...

nitin niraj

Discuss  - 
 
I am working on reportlab API with Python. I want to have a circle instead of ticks on category and value axis on charts. I am unable to do so any help would be appreciated. Thanks in advance.
1
Add a comment...

nitin niraj

Learning Resource (non-newb)  - 
 
Hi All, 
I am getting an error as follows:
PHP Warning:  pspell_save_wordlist(): pspell_save_wordlist() gave error: The file "/etc/dictionaries/evergreenlegal/custom-dict-en.pws" can not be opened for writing. in /var/www/html/spellchecker/classes/PSpell.php on line 58

I am logged in as root user. The file permission is as follows if i do ls -l filename
-rwxrwxrwx 1 root root 0 Feb 24 05:42 custom-dict-en.pws
Please do let me know what i am missing. Any help would be appreciated. Thanks in advance.
1
Kendall Holm's profile photoJeremy Streich's profile photoNils Biesalski's profile photo
5 comments
 
I guess the directory can not be listed (execute flag) by www-data
Add a comment...

nitin niraj

Need Help (QnA)  - 
 
Hi I am having this issue with PHP in CentOS.
reload the page to get source. Basically what I am trying to do is I am accessing a url in my PHP file. For example.
spellchecker_rpc_url:'127.0.0.1/spellchecker'. I getting a 500 error and then it states "reload the page to get source.".

Thanks in advance . Any help would be appreciated.
1
Rohit Singh Rana's profile photo
 
make sure ur directory permission 777 if not then use chmod for that and all is well ! :)
Add a comment...

nitin niraj

CentOS-7  - 
 
I am using php in centos 7. If i run a file as 127.0.0.1/abc.php it is working fine but if I do 127.0.0.1/folder_name which consist of index.php it throws error You dont have persmission to access folder_name. May I know what possible mistake I am making and how to rectify that.
1
Jason DeTiberus's profile photoScott Hsu's profile photoLuca Mastrobuono's profile photoMario Gamboa's profile photo
12 comments
 
Check the owner of the folder is Apache and the group also after have that is going to work
Add a comment...

nitin niraj

Beginners  - 
 
I have to make an array with the following format [ [a1, b1], [a2, b2]] but instead of this I am getting [ [a1, 'b1'], [a2, 'b2']]. Following is my code.

 for (var d in data) {
       for (var x=0;x<data[d].length;x++){
           lineChartData.push(parseFloat(data[d][x]));
       }
   }
   category = category.filter(Number);
   lineChartData = lineChartData.filter(Number);
   
   var finalData = [];
   lineChartData.shift();

This part gives me lineChartData =[1, 2, 3, 4, ];

This part gives me 
 for(var i=0; i<category.length;i++){
     finalData.push([category[i],parseFloat(lineChartData[i]).toFixed(2)]);
   }
finalData = [ [1, '2'], [2, '3']]
I want it like this finalData = [ [1, 2], [2, 3]]

Any help would be appreciated. Thanks in advance
1
Matthieu Desmons's profile photonitin niraj's profile photoChristian Buchmüller's profile photoDavid Ford (FirefighterBlu3)'s profile photo
4 comments
 
just a "+" still leads to ambiguous typing. i'm in the habit of 0+ ...
Add a comment...
People
In his circles
245 people
Have him in circles
209 people
barun kumar's profile photo
Manish Tayade's profile photo
ashutosh verma's profile photo
Apoorva Srinivasan's profile photo
Shwet Solanki's profile photo
Vishwanathan Iyer's profile photo
Rajashekhar v's profile photo
Parinitha Rao's profile photo
Shilpa Choudhary's profile photo
Education
  • DAV PUBLIC SCHOOL GANDHINAGAR
Basic Information
Gender
Male
Apps with Google+ Sign-in
Work
Employment
  • Student
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
pune
Previously
ranchi
Links