Open your settings and click on the Calendar option. Now open your internet accounts on your mac. Generate your device user name and password. Click on Add Other Account
Open your settings and click on the Calendar option. Now open your internet accounts on your mac. Generate your device user name and password. Click on Add Other Account
Reason : You most likely have set the ownership permissions to 777 or something similar. .ssh folder must be set to 700. How to find out : Tail your logs. sudo tail -f /var/log/secure You can get warnings similar to this. Authentication refused: bad ownership or modes for directory /home/kmdarshan/.ssh. Solution : chmod 700 ~/.ssh chmod 600
Click advanced on the login screen, and select “Use Old authentication protocol”. You should be able to connect, without any issues.
my sample url => http://localhost/emp/api/v1/hello.json folder(emp) -> folder(api) -> folder(v1) -> method(hello.json) .htaccess file is placed in the folder V1 # Turn on the rewrite engine Options +FollowSymlinks RewriteEngine on # Request routing RewriteRule ^([a-zA-Z_-]*)\.(html|json|xml)?$ index.php?method=$1&format=$2 [nc,qsa] goto your httpd.conf file in your apache server : # AllowOverride controls what directives may be placed in
Life hacks..really useful ones
1. Download code igniter. 2. Make two copies. 3. Rename the one of the folders as codebase. 4. Create a new eclipse project with existing files as codebase. 5. Copy the below code : /** * @var CI_Config */ var $config; /** * @var CI_DB_active_record */ var $db; /** * @var CI_Email */ var $email;
grep -R “My happiness?” –include ‘*.php’ *
#!/bin/sh COMMON_DEFINED=yes KEXT_ID=com.protech.NoSleepKEXT_PATH=/System/Library/Extensions/NoSleep.kextPERF_PATH=/Library/PreferencePanes/NoSleep.prefPaneHELPER_PATH=/Applications/Utilities/NoSleep.app USER_SUDO_CMD=”” if [ “$SUDO_USER” != “” ]; then USER_SUDO_CMD=”sudo -u $SUDO_USER”else if [ “$USER” != “” ]; then USER_SUDO_CMD=”sudo -u $USER”fifi#!/bin/sh echo “Uninstalling 1.3.1”sudo true if [ “$COMMON_DEFINED” = “” ]; then source `dirname “$0″`/Common.shfi if [ -e “$HELPER_PATH” ]; then echo “Removing NoSleep.app…” ps aux|grep NoSleep.app|awk ‘{print $2}’|xargs kill &> /dev/null
diskutil list select your disk unmount your selected disk diskutil unmount /dev/disk2s1 dd if=generic-sdcard-v1.3.img of=/dev/disk2 bs=100m diskutil eject /dev/disk2 Your disk is written with an image.
c:\Program Files (x86)\7-Zip>7z.exe e -y “E:\work\test_2.zip” c:\VC8 7-Zip 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 Error: Cannot use absolute pathnames for this command’ Use the switch ‘x’ to fix this issue.
Execute the following command in WinDbg directory C: Program Files Debugging Tools for Windows (x86)> pdbcopy a.pdb b.pdb-vc6 the Old version of mspdb60.dll loaded the 6.00.8168.0 PDBCopy the requires at least version 6.20.9155.0 or one that implements PDB :: CopyToW2 Solution: install Win2003 SP1 DDK goto x86 directory, you will find the dll. 6.20.9155.0 it
Virtual function access (C++ only) The access for a virtual function is specified when it is declared. The access rules for a virtual function are not affected by the access rules for the function that later overrides the virtual function. In general, the access of the overriding member function is not known. If a virtual
$ svn checkout http://svn.example.com/repos/calc bigwc A bigwc/trunk/ A bigwc/trunk/Makefile A bigwc/trunk/integer.c A bigwc/trunk/button.c A bigwc/branches/ Checked out revision 340. $ cd bigwc $ svn copy trunk branches/my-calc-branch $ svn status A + branches/my-calc-branch $ svn commit -m “Creating a private branch of /calc/trunk.” Adding branches/my-calc-branch Committed revision 341. Easier way to create branch: $ svn
ls -alh will show everything in a directory with human-readable sizes.
Global setup: Download and install Git git config –global user.name “Your Name” git config –global user.email {username}@gmail.com Next steps: mkdir projectname cd projectname git init touch README git add README git commit -m ‘first commit’ git remote add origin git@github.com:{username}/{projectname}.git git push origin master
1) goto teamcity admin page. 2) download the visual studio plugin 3) install the plugin 4) open visual studio 5) click on the teamcity link 6) LOGIN AS SHOWN 7) click on remote run. It will show you if any modified files were found on the server. 8) Run on a selected agent.
Instead of creating a special html form to test inputs, you can use CURL to do it for you through command line. You will be saving time. ex: curl -F “email=test@test.com” -F “password=test” http://127.0.0.1/~folder/mypics/register.php in the above example i have two parameters, email and password. if it was a form, i would have two text
I wrote this tool to get the x and y coordinates of the screen. the source code and executable can be found here. http://www.kmdarshan.com/getxandy/getXandY.zip
[root@localhost root]# mysql ERROR 2002: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) [root@localhost root]# mysql -h 127.0.0.1 ERROR 2003: Can’t connect to MySQL server on ‘127.0.0.1’ (111) [root@localhost bin]# mysqld Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root! 051215 11:19:00 Aborting 051215
union foo { int a; // can’t use both a and b at once char b; } foo; struct bar { int a; // can use both a and b simultaneously char b; } bar; union foo x; x.a = 3; // OK x.b = ‘c’; // NO! this affects the value of x.a! struct
BUILD_TARGET_ARCH value ‘i64’ is not recognized (valid: x86 amd64 sparc32 sparc64 s390 s390x ppc32 ppc64 mips32 mips64 ia64 hppa32 hppa64 arm alpha). ./configure –disable-hardening –target-arch=??
Variadic Macros Variadic functions or functions taking a variable argument list are rather common in C. For example: int printf(const char * fmt,…); C99 also supports variadic macros. A variadic macro looks like this: #define Trace(…) printf( __VA_ARGS__) The ellipsis represents a macro’s variable argument list. The reserved __VA_ARGS__ name is used for traversing the
C:Program FilesOracleVirtualBox>VBoxManage setextradata global GUI/SuppressMe ssages remindAboutAutoCapture,confirmInputCapture,remindAboutMouseIntegrationOn, remindAboutWrongColorDepth This should basically do the trick. Also you can start vboxmanage.exe with the option –type=sdl with no warnings.
import os import glob,shutil os.chdir(“f:\docs\Foldername”) print os.getcwd() destdir = “F:\docs\Foldername” for f in os.listdir(destdir): finalpath=os.path.join(destdir, f) if os.path.isdir(finalpath): os.chdir(finalpath) copypath=”*.wmv” print os.getcwd() os.system (“xcopy /s %s %s” % (copypath, destdir)) ##for mov in glob.glob(finalpath+”\*.wmv”): ##shutil.copy(mov, destdir)
wrong issue in VC7 std::vector<map<string, string>>regIt; Solution put a space in between the arrows std::vector<map<string, string> >regIt; It will work.
add these header files #include #include #include #include using namespace std; It should fix the issues.
Q I have two views. One view needs to check if the other view has been instantiated yet—that is, if the pointer to it is valid. How do I test a pointer to see if it points to a valid class in memory? I tried setting the pointer to NULL, then checking to see if
c:program filesmicrosoft sdkincludemssip.h(66) : error C2146: syntax error : missing ‘;’ before identifier ‘DigestAlgorithm’ Add this header files #include #include #include
To use the vmxnet driver, restart networking using the following commands: /etc/init.d/networking stop rmmod pcnet32 rmmod vmxnet modprobe vmxnet /etc/init.d/networking start
You can now run VMware Tools by invoking “/usr/bin/vmware-toolbox-cmd” from the command line or by invoking “/usr/bin/vmware-toolbox” from the command line during an X server session. To enable advanced X features (e.g., guest resolution fit, drag and drop, and file and text copy/paste), you will need to do one (or more) of the following: 1.
The easiest way to back up your wordpress is through the XML export through the wordpress admin dashboard. you can easily import your xml files also through this. Also keep a backup of the content folder, if you have the wordpress installed on your own domain. This will help if you have crashes.
Install doxygen and graphviz Open doxygen Click on the expert button Select the DOT tab Scroll down select the DPt_PATH and put in the bin folder of the graphviz path Go back and open the doxy file and then generate the file. You must see the classes and docs.
You need to delete the entire build simulator folder in your project. This normally happens when you mix up two build simulators from different machines.
Goto tools->plugins->Activate J2ME Attaching screen shots below:
http://www.billposer.org/Linguistics/Computation/LectureNotes/Unicode.html
You would be getting this exception most times, if you run a jar from a batch file or normally clicking on it. The best way to run this, is by using this command: java -jar “%~dp0postIt.jar”
This can happen because: 1) You have declared a method in the header file, but not defined it. 2) This applies to the variables also. 3) Any symbols / slots in qt.
HERE is the link: [youtube http://www.youtube.com/watch?v=Sh58z-goVn4&fs=1&hl=en_US]
error: ‘fflush’ was not declared in this scope [Ubuntu 9.10] error: ‘fopen’ was not declared in this scope [Ubuntu 9.10] error: ‘fclose’ was not declared in this scope [Ubuntu 9.10] Use #include<cstdio.h> to solve this issue. This is a bug in ubuntu itself.
include header file #include <stdint.h> to solve this issue. This is a error in ubuntu itself.
SVN stands for sub version. SVN is a source control tool. This tool is used for tracking and maintaining a repository of your code and each and every minute changes made to it through the use of versions. You can use GUIs to access your SVN like tortoiseSVN and so on. But if you need
1) Note down the RSS feed URL of your website. 2) Goto http://www.oviappwizard.com 3) Enter the RSS feed URL 4) In the next step enter the Logo and Icons 5) sign up for the Nokia app website 6) Your Nokia APP is ready to go. This would really help, if you site deals with lot
Keywords you will need to know: fragmentation/defragmentationThe DB server which I use is Microsoft SQL Server Enterprise EditionSQL commands: select * from sys.dm_db_index_physical_stats(DB_ID(ecommerce_vh10),NULL,NULL,NULL,NULL) The above command will get you all the index values and descriptions in the database. But it shall give you only the object needed for verification of your indexes, but not the
I know how annoying it is. It sucks big time this tool developed by Microsoft which eats up all the memory on my computer. Even though its good to look for mails instantly on outlook, but it keeps increasing its memory usage. You can disable it at startup only by the following registry keys: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesWSearch
Put this as a scheduled task. ping -n 1 -w 500 yahoo.com if errorlevel 1 goto R1 if errorlevel 0 goto R0 :R0 goto R2 :R1 ipconfig /release ipconfig /renew :R2 echo “connected”
Standard C++ library is implemented in its own namespace “std”. Make sure to add the statement using namespace std; in the beginning of your program or to qualify each Standard C++ library identifier with namespace std, for example, std::cout.
check out the post here http://blog.compete.com/2010/02/17/we%E2%80%99re-number-two-facebook-moves-up-one-big-spot-in-the-charts/
Even though the below statement might sound similar, you will not be getting that they are equal, since white space is also counted as an extra character. The output would be they are not equal. if(GetMyName == GetMyName ) { printf(They are equal); }else { printf(They are NOT equal); } you can avoid such mistakes