I am getting started with Entity Framework 4, and I an creating a demo app as a learning exercise. The app is a simple documentation builder, and it uses a SQL CE store. Each documentation project has its own SQL CE data file, and the user opens one of these files to work on a project.
The EDM is very simple. A documentation project is comprised…
By perfectly good sql query, I mean to say that, inside WebMatrix, if I execute the following query, it works to perfection:
SELECT page AS location, (len(page) - len(replace(UPPER(page), UPPER('o'), ''))) / len('o') AS occurences, 'pageSettings' AS tableName FROM PageSettings WHERE page LIKE '%o%'
UNION
SELECT pageTitle AS location,…
I just want to make sure I'm understanding the documentation correctly. If I add System.Data.SqlServerCe as a reference in my Visual Studio 2008 project, compile it, and copy the contents of the "bin\Release" directory to a Windows machine that has the latest version of the .NET framework, will it just work? Or do I need to do…
I have an old Moto Q that I would like to change the default alarm sound in the Calendar function. Right now, it seems to pick up the Alarm4.mid file in the Windows directory, which is embedded in ROM, so the filenames can't be changed. Is there a way to change the file pointer in the Calendar function to another file or is…
Hi - as I said, a complete beginner question here. I'm currently working my way through "Accelerated C++" and just came across this in chapter 3:
// invariant:
// we have read count grades so far, and
// sum is the sum of the first count grades
while (cin >> x) {
++count;
sum += x;
}
The authors follow…
I'm using a PHP script to read an RSS feed in my Flex 4 app. The script works when I put the url of the feed in the actual script, but I can't get it to work when I try to send the URL as a parameter from a HTTPService in Flex. Can anyone tell me what I'm doing wrong?
Here is the HTTPService from Flex 4 that I'm using:
…
I just cant find a workarround for this, please help
my config.rb in location $PROJECT_HOME/assets/www/theming
dir = File.dirname('..Path_to_project_home..\assets\www\theming\config.rb')
load File.join(dir, '..', 'lib', 'touch', 'resources', 'themes')
sass_path = dir
css_path = dir
environment =…
I'm using a PHP script to read an RSS feed in my Flex 4 app. The script works when I put the url of the feed in the actual script, but I can't get it to work when I try to send the URL as a parameter from a HTTPService in Flex. Can anyone tell me what I'm doing wrong?
Here is the HTTPService from Flex 4 that…
I'm using Cygwin with GCC, and ultimately I want to read in a file of characters into a vector of characters, and using this code
#include <fstream>
#include <vector>
#include <stdlib.h>
using namespace std;
int main (int argc, char *argv[] )
{
vector<char> string1();
…
'SOUP.IO' is not providing any api. So Iam trying to use 'PHP Curl' to login and submit data through PHP.
Iam able to login the website successfully(through cUrl), but when I try to submit data through cUrl, it gives me error of 'invalid user'.
When I tried to analysed the code and website, I came to…
I have installed WAMP and running PHP scripts on localhost. I have enabled cURL. Here is my code.
<?php
function updateTwitter($status)
{
// Twitter login information
$username = 'xxxxx';
$password = 'xxxxx';
// The url of the update function
$url =…
Hey guys, I have been trying to limit the bandwidth with PHP.
Can you please help here? I can't get the download rate to be limited with PHP.
Thanks a million!
function total_filesize($url) {
$ch = curl_init();
curl_setopt($ch,…
login to a website using curl php
I have tried
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.sitename.com");
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch,…
We use Postfix on our CentOS 6 machine, having the following configuration. We use PHP's mail() function to send rudimentary password reset emails, but there is a problem.
As you will see, mydomain and myhostname is correctly set, afaik.
…
I'm trying to configure a VPN tunnel between an Android device running 4.1 and a Fedora 17 Linux box running strongSwan 5.0. The device reports that it is connected and strongSwan statusall returns that there is an IKE SA, but doesn't…
I'm trying to install SQL Server CE 4 on a WinXP Pro SP3 machine. I double-click on the file and absolutely nothing happens. There is nothing in the event viewer and the only effect I can see is the addition of an empty, randomly…
Trying to diagnose an issue using PHP to cURL to an Internet location on a RedHat Linux server.
cURL is installed and working, and:
<?php var_dump(curl_version()); ?>
shows all the correct information in the output. …
I am trying to make a REST request to a external webserver by using this code
<?php
$user = 'USER';
$pass = 'PASS';
$data = "MYDATA"
$ch = curl_init('URL');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch,…
Hi folks,
i am getting the image that is in base64 encoded format.
I need to decode it.
i am writing the code for decoding is
+ (NSData *) base64DataFromString: (NSString *)string {
unsigned long ixtext, lentext;
…
Hello! I've got a strange startup error for Zend Server CE - it's probably easy to fix, but I don't have much experience with Zend Server!
I'm running the latest OSX 10.6.6 and the latest Zend Server CE for Mac.
When I…
My Windows CE Netbook connects to wireless network at work but can't connect at home.
I tried it at work just to test that the WiFi on the Netbook does actually work and it was fine (if a bit slow)
It can see the…
I'm using the app "Fiddler" to debug a GET attempt to a website via PHP cURL. In order to see the cURL traffic I had to specify that the cURL connection use the Fiddler proxy (see code below).
$ch =…
In PHP, I'm using curl to send a delete to the fb graph api - and yet I'm getting the following error;
{"error":{"type":"GraphMethodException","message":"Unsupported delete request."}}
The code…