Am newbie in X cart.
How load customer/service_head.tpl in Xcart and not included,I can't saw that file in skin/customer folder.Is there any process to run that file display in x cart?Am So confused don't know what's wrong.
Please Give me Solution.
The file is located here
./skin/common_files/customer/service_head.tpl
The file is loaded from the file like
skin/your_skin_name/customer/home.tpl: {include file="customer/service_head.tpl"}
or from
skin/common_files/customer/home.tpl by default
Try our 'Webmaster mode' feature
https://demo.x-cart.com/demo_goldplus/admin/editor_mode.php
https://help.x-cart.com/index.php?title=X-Cart:Using_Webmaster_mode
Related
[Project]
FileName=sjkabljt
Name=sukablyat
Type=1
Ver=2
ObjFiles=
Includes=
Libs=
PrivateResource=
ResourceIncludes=
MakeIncludes=
Compiler=
CppCompiler=
Linker=
IsCpp=1
Icon=
ExeOutput=
ObjectOutput=
LogOutput=
LogOutputEnabled=0
OverrideOutput=0
OverrideOutputName=
HostApplication=
UseCustomMakefile=0
CustomMakefile=
CommandLine=
Folders=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=0
CompilerSettings=0000000000000000101000000
UnitCount=1
[VersionInfo]
Major=1
Minor=0
Release=0
Build=0
LanguageID=1033
CharsetID=1252
CompanyName=
FileVersion=
FileDescription=Developed using the Dev-C++ IDE
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=
AutoIncBuildNr=0
SyncProduct=1
[Unit1]
FileName=files\siplasplas\sukablyat.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
this is what i get after i open the .cpp file....the file was supposed to get 10 numbers into a[x]; then display them from x+1 to x+10 and then from x+10 to x+1
after that make the sum of all the numbers, and then locate the min and max number....after the program was written i tested it and it all worked...then clicked the top left corner icon and clicked SAVE FILE AS, after that i entered a name and pressed enter while i saved it to desktop to upload it to my schools homework site...so is there anyway to get the code out of this file, or will i have to re write all the lines D: ?
The file you're providing us with is apparently a .dev file, used by Dev-C++. It is used for projects, like Visual C++'s .vcxproj or (sort of) a Makefile used with g++. http://www.file-extensions.org/dev-file-extension-dev-c-project-file
Somehow you saved that .dev file over your source .cpp file. When you overwrite a file, the old version is gone. You'll be well advised to keep backup copies (I copy the entire folder with all its files) in case something strange like this happens again. Sorry you lost your code.
As has been stated in the comments, there is no way to recover the code now that the file has been overwritten/was not saved correctly.
I have a python web2py app uploaded at PythonAnywhere. App is working fine. I want to read a csv file placed in a folder along with my app and import it into mysql table. When I try to read that CSV file, I get the error saying "[Errno 11] Resource temporarily unavailable".
I am new to python as well as PythonAnywhere and I couldn't understand this issue and can't figure it out how can I overcome this error and read a csv file successfully at server?
Note: I can run this code successfully on my local machine.
What I am doing is this:
path = '/home/user123/web2py/files/'
file_ = path+filename
print file_
with open(file_, "r") as f_obj:
reader = csv.reader(f_obj)
fields = reader.next()
print fields
self.create_new_table(tablename, fields)
Will appreciate any help in this regard.
Thanx in advance.
I opened server.log file in Web tab and found out that the print statement "print fields" was causing the error .... It tried to print all the column names and at the mid of those column names, it produced this error and stopped execution. I removed such print statements which were trying to print long statements and the error was gone!
It seems to be limit in print or something else similar to this, dont know exactly!
I would like to run LIWC (installed in my Mac) within a python 2.7 script.
I have been reading about subprocess (popen and check_output seem the way to go), but I do not get the syntax for:
opening the program;
getting a text file to be analysed;
running the program;
getting the output (analysis) and storing it in a text file.
This is my first approach to subprocess, is this possible?
I appreciate the suggestions.
EDIT
This is the closest to implementing a solution (still does not work):
I can open the application.
subprocess.call(['open', '/file.app'])
But cannot make it process the input file and get an output one.
subprocess.Popen(['/file.app', '-input', 'input.txt', '-output', 'output.txt'])
Nothing comes out of this code.
EDIT 2
After reading dozens of posts, I am still very confused about the syntax for the solution.
Following How do I pipe a subprocess call to a text file?
I came out with this code:
g = open('in_file.txt', 'rb', 0)
f = open('out_file.txt', 'wb')
subprocess.call(['open', "file.app"] stdin=g, stdout=f)
The output file comes out empty.
EDIT 3
Following http://www.cplusplus.com/forum/unices/40680/
When I run the following shell script on the Terminal:
cat input.txt | /Path/LIWC > output.txt
The output txt file is empty.
EDIT 4
When I run:
subprocess.check_call(['/PATH/LIWC', 'PATH/input.txt', 'PATH/output.txt'])
It opens LIWC, does not create an output file and freezes.
EDIT 5
When I run:
subprocess.call(['/PATH/LIWC', 'PATH/input.txt', 'PATH/output.txt'])
It runs LIWC, creates an empty output.txt file and freezes (the process does not end).
The problem with using 'open' in subprocess.call(['open', "file.app"] stdin=g, stdout=f) is that it requests that a file be opened through a service, and doesn't directly attach it to your python process. You'll need to instead use the path to LIWC. I'm not sure that it supports reading from stdin, though, so you might need to even pass in the path to the file you'd like it to open.
I'm trying to open a local file using QDesktopServices::openUrl under ubuntu, it appears to use gvfs-open .If the file name is correct, then the PDF pops up .
If the file name is wrong, of course gvfs-open does not manage to open the file.However,the return value of the function is true. That is, the function does not detect that the PDF failed to open the file.
What should I do to get the correct result of opening?
Any help will be appreciated
You can detect if file exists with QFile::exists
before calling openUrl()
I've spent all night researching this without a solution.
I'm trying to verify the digital signature of a file in the drives folder (C:\Windows\System32\drivers*.sys) pick whatever one you want. I know that the code is correct because if you move the file from that folder to C:\ the test works.
WinVerifyTrust gives error 80092003
http://pastebin.com/nLR7rvZe
CryptQueryObject gives error 80092009
http://pastebin.com/45Ra6eL4
What's the deal?
0x80092003 = CRYPT_E_FILE_ERROR = An error occurred while reading or writing to the file.
0x80092009 = CRYPT_E_NO_MATCH = No match when trying to find the object.
I'm guessing you're running on a 64-bit machine and WOW64 file system redirection is redirecting you to syswow64\drivers, which is empty. You can disable redirection with Wow64DisableWow64FsRedirection().
if you right click and view properties of file can you see a digital signature? most likely your file is part of a catalogue and you need to use the catalogue API to extract the cert from cert DB and verify it.