So I have a local URL like http://localhost:8090/feed1.ffm with live video stream in it. I need to send it over TCP to http://222.22.22.22:8090/feedReciver how to do such thing in WPF, C#?
Currently I am migrating MSSQL to MYSQL.I am using the MySQL ODBC 3.51 driver to connect to mysql using odbc connectivity.I have telugu language charectors stored in the table.They are not showing properly while using the mysql odbc driver, but they are showing up properly while using the sqlserver odbc driver.
Here is my connetion string
Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=dbtest; User=user1;Password=mysql;Option=3;CharSet=utf8;
Please suggest a solution to fix this.
def mailTo(subject,msg,folks)
begin
Net::SMTP.start('localhost', 25) do |smtp|
smtp.send_message "MIME-Version: 1.0\nContent-type: text/html\nSubject: #{subject}\n#{msg}\n#{DateTime.now}\n", '[email protected]', folks
end
rescue => e
puts "Emailing Sending Error - #{e}"
end
end
when the HTML is VERY large I get this exception
Emailing Sending Error - 552 5.6.0 Headers too large (32768 max)
how can i get a larger html above max to work with Net::SMTP in Ruby
I have this XML at http://localhost/file.xml:
<?xml version="1.0" encoding="utf-8"?>
<val:Root xmlns:val="http://www.hw-group.com/XMLSchema/ste/values.xsd">
<Agent>
<Version>2.0.3</Version>
<XmlVer>1.01</XmlVer>
<DeviceName>HWg-STE</DeviceName>
<Model>33</Model>
<vendor_id>0</vendor_id>
<MAC>00:0A:DA:01:DA:DA</MAC>
<IP>192.168.1.1</IP>
<MASK>255.255.255.0</MASK>
<sys_name>HWg-STE</sys_name>
<sys_location/>
<sys_contact>
HWg-STE:For more information try http://www.hw-group.com
</sys_contact>
</Agent>
<SenSet>
<Entry>
<ID>215</ID>
<Name>Home</Name>
<Units>C</Units>
<Value>27.7</Value>
<Min>10.0</Min>
<Max>40.0</Max>
<Hyst>0.0</Hyst>
<EmailSMS>1</EmailSMS>
<State>1</State>
</Entry>
</SenSet>
</val:Root>
I am trying to read this from my c# code:
static void Main(string[] args)
{
var xmlDoc = new XmlDocument();
xmlDoc.Load("http://localhost/file.xml");
XmlElement root = xmlDoc.DocumentElement;
// Create an XmlNamespaceManager to resolve the default namespace.
XmlNamespaceManager nsmgr = new XmlNamespaceManager(xmlDoc.NameTable);
nsmgr.AddNamespace("val", "http://www.hw-group.com/XMLSchema/ste/values.xsd");
XmlNodeList nodes = root.SelectNodes("/val:SenSet/val:Entry");
foreach (XmlNode node in nodes)
{
string name = node["Name"].InnerText;
string value = node["Value"].InnerText;
Console.Write("name\t{0}\value\t{1}", name, value);
}
Console.ReadKey();
}
}
Problem is that the node is empty. I understand this is a common newbie problem when reading XML, still not able to solve what I am doing wrong, probably something with the Namespace "val" ?
I've got some EL code inside of a JSP tag. The line starts as follows:
<c:if test="${pageContext.request.serverName eq \'localhost\'}">
Eclipse throws up an error on this, saying:
Unable to analyze EL expression due to lexical analysis error
I'm unsure what this even means. Is this an eclipse bug? Am I mixing EL and the JSTL tags incorrectly?
I have a Fitnesse test that I want to run twice. Once in firefox and once in ie. The test is below. The problem I am having is that only the second test is being executed by fitnesse
!define COMMAND_PATTERN {%m %p}
!define TEST_RUNNER {dotnet2\FitServer.exe}
!****>Global Variables
!define testUrl {http://localhost:1516/Web.App/Login.aspx}
*****!
!define browserToUse (IE)
!include -c -seamless .FrontPage.LoginTests
!define browserToUse (FireFox)
!include -c -seamless .FrontPage.LoginTests
A friend of mine asked to create a static website and I found that making such site using Sinatra is a pure joy. I just wrote all my routes like this:
get '/index.html' do
haml :index
end
get '/app.css' do
sass :app
end
....
So I was able to use layouts, and haml and sass to put site together quickly.
To create the static site I used
wget -r -l2 http://localhost:4567
Which did work pretty well, but I imagine there is a better way to create a static site from a Sinatra code?
I'm using the following to render the_tags() in Wordpress 2.9.2, currently developing a theme on localhost:
<?php the_tags('<ul class="postmetadata"><li>','</li><li>','</li></ul>'); ?>
and would like to have same -near-semantic- output from the_category(), which doesn't seem obviously attainable (having looked at the relevant codex page).
I would like to do redirect to login when current session end and that config must be working at any View and Controller.
///My current code in Global.asax
protected void Session_End(object sender, EventArgs e)
{
Session.Abandon();
//GetPath() is getting currently path
// eg. http://localhost/mymvcproject
Response.Redirect(PATH.GetPath() + "User/LogOn");
}
Hi, I'm new at ruby and I would like to ask you guys if there's something that could improve my Ruby code. Here's my script:
#!/usr/bin/ruby -w
require 'mysql'
dbh = Mysql.real_connect('localhost', 'db_user', 'password', 'db_table')
tables = dbh.query('show tables')
tables.each do |table|
puts "#{table}" + " (" + "#{table}".length.to_s + ")"
end
I'd love to hear your comments. Thanks in advance
I am trying to do the following in JavaScript:
var gete = document.getElementById;
But I am getting the following error (From FireBug's Console):
uncaught exception: [Exception... "Illegal operation on WrappedNative prototype object" nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame :: http://localhost:8080/im_ass1/ :: anonymous :: line 15" data: no]
Now obviously I can wrap the function as follows:
var gete = function (id) {
return document.getElementById(id);
};
But what is the reason I'm getting the above exception when assigning the function to another name?
hello,
i have such a sparql query:
select ?s ?p ?o from <http://localhost:8890/DAV/ranking> where {
{<http://seekda.com/providers/cdyne.com/PhoneNotify> so:hasEndpoint ?s.
?s ?p ?o} union
{<http://seekda.com/providers/cdyne.com/PhoneNotify> ?p ?o}
}
but i need a graph query (construct ord describe). unfortunatly i have no clue about how to use unions in construct or describe queries.
please help me
best regards
simon
I am using xampp on localhost and when I use _SERVER["REMOTE_ADDR"] it returns ::1 (also does this in phpinfo()). Why does it do this? I want it to return a normal ip address like 127.0.0.1. My operating system is windows vista.
I have a web app that is using the 3.5 framework. I wanted to know how can I detect what webhost is rendering the page.
If the server is localhost, then send email notification to [email protected]
If the server is QA, then send email to [email protected]
Thanks
Sample code:
$html = file_get_contents('http://www.google.com');
echo $html;
It works on localhost. But after uploading to the webserver, it gives me a warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution. If I replace the domain name with google's IP address, it gives a warning: failed to open stream: Connection timed out.
And ini_get("allow_url_fopen") return 1.
Hi,
I'm running through the Ruby on Rails tutorial at http://guides.rubyonrails.org/getting_started.html (adjusting where appropriate for Google's App Engine). All is well up till section 6.3: when I try to click "New Post", I get the following error:
Internal Server Error (500)
Request Method: GET
Request URL: http://localhost:8080/500.html
access denied (java.io.FilePermission /dev/urandom read)
It works fine when I upload the application to Google's App Engine; it's just on my development machine (OS X 10.6) that it doesn't work.
Thanks in advance.
Hi, is there a way to use Grails in "exploded" mode on tomcat in order to make individual changes in a running application (like a gif) without having to regenerate the entire war and upload it ?
Something like adding an xml file in tomcat's conf/Catalina/localhost that points to an exploded grails application ?
Thanks in advance.
On Windows 7, from reading hginit.com, it seems like it is very easy to set up a Mercurial server?
mkdir repo
cd repo
hg init
hg serve
and that's it? Now http://localhost:8000 is the server. It seems that it is quite a bit harder to set a Git server up, either for Cygwin and mysysGit? Git for sure will make it simpler, maybe just not at this moment...
Hi,
I'm using latest version of Xampp on 64bit Win7.
The problem is that, when I use mysql_connect with "bool $new_link" set to true like so:
mysql_connect('localhost', 'root', 'my_password', TRUE);
script execution time increases dramatically (about 0,5 seconds per connection, and when I have 4 diffirent objects using different connections, it takes ~2 seconds).
Is setting "bool $new_link" to true, generally a bad idea or could it just be some problem with my software configuration.
Thank you.
Hi all,
i'm trying to make SwfUpload working. In some cases, I've a strange behaviour.
So I would like to inspect the flows sended and received by the flash component. And I've tryed to use fiddler to do that, but I can't capture data comming from flash or going to flash.
Is there a way to do that ?
(note, i'm working on http://localhost with php)
Thanks in advance for any help
Hi guys,
I'm getting angry - I cant run the emulator (under vista x64).
I still get the following error:
Starting emulator in execution mode
* Error *
Failed to connect to device 2!
Reason:
Emulator 2 terminated while waiting for it to register!
BUILD FAILED (total time: 26 seconds)
I was trying to change the port to 1999, localhost to ip address and such stuff. Do you have any ideas what to do?
Thank you in advance!
Cheers
You can see from the comments on this page that people are having trouble loading images on a server, but they load ok on localhost.
Do you have any idea why this would not work? The page and control appear ok otherwise, just no images. Someone must have figured this out by now?
I'm using webrick (the built-in ruby webserver) to serve .rhtml
files (html with ruby code embedded --like jsp).
It works fine, but I can't figure out how to access parameters
(e.g. http://localhost/mypage.html?foo=bar)
from within the ruby code in the .rhtml file.
(Note that I'm not using the rails framework, only webrick + .rhtml files)
Thanks