I get the following errors:
error: missing terminating " character
and
error: stray `\' in program
In this line of C code:
system("sqlite3 -html /home/user/.rtcom-eventlogger/el.db \"SELECT service_id, event_type_id,free_text, remote_uid FROM Events WHERE remote_uid=\'%d\' ORDER BY start_time DESC;\" > lol.html", nr);
"nr" is a integer variable.
I have gone over this so many times but are totally stuck of finding a solution.
EDIT: The errors is the ouput while compiling with gcc if I didn't make that clear.
Hi, i want to have pre-made list of most common OSes in my DB and all non default to be listed as other. Problem is i don't know what OSes called in Request.Browser object.
List i want to have WinXP, Vista, Win7, Linux, MacOS and other...
Do any of you know what are exact names of these OSes in Request.Browser.Platform or where i can get list of values from ?
Issue: the primary key of the base table is named differently than the the key in the fk table.
Subsonic 3 does not know how to handle that, which is fine, its beta. So I was going to change the Html.ControlFor logic to just grab the table and use the pkname from that:
var fk = db.FindTable(col.ForeignKeyTo.FriendlyName);
However the .ForeignKeyTo is null. Where in the templates does that ITable get populated?
I read the specs on http://api.jquery.com/jQuery.ajax/
and found that depending on the dataType, scripts are automatically evaluated for every response. Is it then possible to force jQuery not to evaluate the script parts of the response?
Hello there,
I am looking to add the Google Map API to my own website, but I would like to also include the "My Maps" feature which allows a user to import a .gpx, or .kml file and display the data on the map.
Obviously it is possible to add just a standard interactive Google Map to a website but is the import fuction possible?
Thanks
I'm new to Scheme -- the functional programming language and I like it a lot for its first-class/higher-order functions. However, my data comes from a COM source with an object-oriented API.
I know Scheme and COM belong to different programming paradigms, but I'm wondering if there is any interface or a way for Scheme to connect to a COM source? Thanks.
Hi,
In Kohana V3 is it possible to return result set as an array() or any method exists?
For example:
$user = DB::select('*')->from("users")->where('username', '=', $username);
If method is there,then it is possible to get password like
echo $user->password;
Is it possible without ORM? Please suggest.
I want to call the Windows API OpenProcess function on another process running on the machine. Will this always cause the file whose process I am opening to be write locked? Or does it depend on the access rights I request?
Hi,
Can Entity Framework create incremental SQL scripts for updates? (or would you need to do this in a separate database tool)
(i.e. for my application updates I need to package the DB upgrade script that gets applied after download - windows forms type app)
I'm thinking of creating a multi-tenant app using MongoDB. I don't have any guesses in terms of how many tenants I'd have yet, but I would like to be able to scale into the thousands.
I can think of three strategies:
All tenants in the same collection, using tenant-specific fields for security
1 Collection per tenant in a single shared DB
1 Database per tenant
The voice in my head is suggesting that I go with option 2.
Thoughts and implications, anyone?
I want to automate a process after user have made a payment.
1) User enter details on forms and submit, the session will pass unique ID to paypal
2) After user complete the paypal payment, unique ID is then pass back to my server for the script to read and register into db.
How do I do that?
I am wondering whether it is possible to use relative XPath expressions in libxml2.
This is from the javax.xml.xpath API and I would like to do the similar thing using libxml2:
Node widgetNode = (Node) xpath.evaluate(expression, document, XPathConstants.NODE);
With a reference to the
element, a relative XPath expression
can now written to select the
child element:
XPath xpath = XPathFactory.newInstance().newXPath();
String expression = "manufacturer";
Node manufacturerNode = (Node) xpath.evaluate(expression, **widgetNode**, XPathConstants.NODE);
Hi
I am trying to create Yahoo messenger client in Android, and i got Openymsg api to implement that.This is small snippet of my code
Session session=new Session();
session.login("Email Id", "password");
But this code is throwing UnknownHost Exception in "scs.msg.yahoo.com".I dont know how to fix this.If any body knows it please help me.
In Windows 2008R2, in Resource Monitor in the Disk Acitivity section I can see the number of bytes read from/written into files. How can I do this in a programatic manner, prefferably using C# (or Win32 API)? I have looked into WMI and various performance counters, however I cannot figure out if there is something which suits my needs.
I would like to add custom attributes to a MySQL table which I can read via php.
These attributes are not to interfere with the table itself - they are primarily accessed by php code during code generation time and these attributes HAVE to reside in the DB itself.
Something similar in concept to .NET reflection.
Does MySQL support anything like this?
Thanks.
Hello,
I am using Google Docs in my project using its API.
I am loading docs in modal window iframe using http://fancybox.net/ a jquery plugin
It works fine but when in Google Docs Save and Close button is press, it closes the iframe and redirects the current page to Google Docs, So is there any way I can prevent the redirection to Google Docs and just close the modal window?
Thank You.
Hi,
I've a query that works well with the NH 3.0 LINQ Provider but not with the QueryOver API.
I got a "could not resolve property : Profile.Customer.CustomerId" Exception
var query = Session.QueryOver<Suggest>()
.Where(p => p.Profile.Customer.CustomerId == customerId)
.And(p => p.Job.Customer.CustomerId != customerId);
var total = query.RowCount();
Any help ?
Thanks.
I'm working on a JSF 2.0 project using Mojarra, PrimeFaces and Tomcat 6.x.
I need to use c:forEach for some primefaces component like dynamic number of p:tab but i have problem with the c:forEach. All the other tag of JSTL work nice.
I have the following error :
java.lang.NoClassDefFoundError:
javax/servlet/jsp/jstl/core/LoopTagStatus
I use the following xmlns:c="http://java.sun.com/jsp/jstl/core", i tried to replace with xmlns:c="http://java.sun.com/jstl/core" but nothing display with the second.
This is the exact version of lib:
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.0.2-FCS</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.0.4-b03</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<version>2.2</version>
</dependency>
How i can fix it ?
I can give more specific information if needed.
Hi,
Can Entity Frame create incremental SQL scripts for updates? (or would you need to do this in a separate database tool)
(i.e. for my application updates I need to package the DB upgrade script that gets applied after download - windows forms type app)
I am using the mingw(4.4.0) compiler that is included with QT4 and my IDE is netbeans 6.9.
i noticed that i can't find netcon.h when i try to include it.I need netcon.h because i need some kind of API to bring up/down a network adapter,and after some googling i found that netcon.h is most commonly used.
Linking netcon.h directly from the microsoft sdk produces lots of errors.Or is there some other library to alows me to reset an adapter, or i had to visual C++ completely to solve this problem?
Hi
I am using google check out in my project. It is in sandbox mode. I am using Xml api check out , When i click google button in my page , i got an error message like
" An error had ocurred:
HTTP Status: 400:
Error message:
No seller found with id 623746024295438 "
What is thie , Actually , i have that merchant Id and Key ,, Please help me urgently
Working on a Data Warehouse project, the guy that gave us the tutorial advised that we stick to using SQL queries over defining a lot of data flow transformations, citing points like it'll consume a lot of memory on the ETL box so we'd rather leave the processing to the DB box. Is this really advisable? Where's the balance between relying on GUI tools over executing a bunch of SQL scripts on your Integration package?
And honestly, I'd like to avoid writing SQL queries as much as I can.
Hi ,
i am very new to xml and c++.
i want to validate xml against xsd using c++ api.can any one gimme any tutorial link? or sample program.i don want to do using msxml as its works in windows and visual studio.
i tried to use xerces and libxml but i have failed.now i am trying using tinyxml.
please help me to validate xml against xml schema using c++(not vc++,should work in cross platform)
regards,
manu
Including DISTINCT to an SQL query that also uses ORDER BY CAST(thecolumn AS int) as shown here seems to remove that sorting functionality.
Any reason these cant work together?
(Using sqlite with the C api)
Thanks.
EDIT:
Started with -
sprintf(sql, "SELECT DISTINCT rowX FROM TableX Order By Cast(rowX As int) LIMIT 150 OFFSET %s;", Offset);
rowX is Type CHAR(5)