Magento system.xml and 404 error when trying to access the configuration panel

If it’s the 404 in the Admin Console chrome, then your problem is a missing ACL role. Read this article on how to set one up. (self link) Also, after setting up your ACL role, you’ll need to clear out your Magento sessions. Magento caches specific roles in the session, and new sessions won’t be … Read more

Is there a way to not wait for a system() command to finish? (in c) [duplicate]

system() simply passes its argument to the shell (on Unix-like systems, usually /bin/sh). Try this: int a = system(“python -m plotter &”); Of course the value returned by system() won’t be the exit status of the python script, since it won’t have finished yet. This is likely to work only on Unix-like systems (probably including … Read more

cannot convert ‘std::basic_string’ to ‘const char*’ for argument ‘1’ to ‘int system(const char*)’

The type of expression ” quickscan.exe resolution 300 selectscanner jpg showui showprogress filename ‘”+name+”.jpg'” is std::string. However function system has declaration int system(const char *s); that is it accepts an argumnet of type const char * There is no conversion operator that would convert implicitly an object of type std::string to object of type const … Read more

Why fork() before setsid()

First of all: setsid() will make your process a process group leader, but it will also make you the leader of a new session. If you are just interested in getting your own process group, then use setpgid(0,0). Now for understanding the actual reason why setsid() returns EPERM if you already are process group leader … Read more

How to list out all Foreign Keys with “WITH NOCHECK” in SQL Server

The following will return the name of the foreign keys in the current database that are disabled i.e. WITH NOCHECK For SQL Server 2005/2008: select * from sys.foreign_keys where is_disabled=1 There was some discussion in the answer about the difference between disabled & not trusted. What’s below explains the differnce Here’s some code to clarify … Read more

How do I check if an app is a non-system app in Android?

PackageManager pm = mcontext.getPackageManager(); List<PackageInfo> list = pm.getInstalledPackages(0); for(PackageInfo pi : list) { ApplicationInfo ai = pm.getApplicationInfo(pi.packageName, 0); System.out.println(“>>>>>>packages is<<<<<<<<” + ai.publicSourceDir); if ((ai.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { System.out.println(“>>>>>>packages is system package”+pi.packageName); } }

Solving a linear equation

Cramer’s Rule and Gaussian Elimination are two good, general-purpose algorithms (also see Simultaneous Linear Equations). If you’re looking for code, check out GiNaC, Maxima, and SymbolicC++ (depending on your licensing requirements, of course). EDIT: I know you’re working in C land, but I also have to put in a good word for SymPy (a computer … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)