 |
 |
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
i want to do a project on sms based Remote Server Monitoring System For Corporate Data Centers.anybody here can help me out
|
|
|
|
 |
Hello,
Vimeo comes with a feature where I can link to specific point in the video by adding #t=0m31s
where m is minute and s is second Video Settings on Vimeo[^]
I have got a video links in a table within iframes. For example -
<iframe src="https://player.vimeo.com/video/1915023434?title=0&byline=0&portrait=0&color=025891?api=1&player_id=vimeo-player-1" width="629" height="356" id="vimeo-player-1" name="vimeo" frameborder="0" data-progress="true" data-seek="true" data-bounce="true" webkitAllowFullScreen mozallowfullscreen allowFullScreen title="Test Video"></iframe>
Now in order to jump to specific point in the video and to make sure it remains within iframe, I have tried following ways but problem is it only works one time and second time, nothing happens.
Option 1 -> Target=framename
<a href="https://player.vimeo.com/video/1912345234#t=0m51s" target="vimeo">[0.51]</a>
<a href="https://player.vimeo.com/video/1912345234#t=1m38s" target="vimeo">[1.38]</a>
<a href="https://player.vimeo.com/video/1912345234#t=5m47s" target="vimeo">[5.47]</a>
2nd option via JS appending src with querystring
<a style="cursor: pointer; " onclick="insert('0m51s');"> [0.51]</a>
<div class="spacer10"></div>
<a style="cursor: pointer; " onclick="insert('1m38s');">[1.38]</a>
function insert(time) {
var myFrame = $('#vimeo-player-1');
var url = $(myFrame).attr('src') + '#t=' + time;
holder = document.getElementById('iframe-holder'),
frame = holder.getElementsByTagName('iframe')[0];
frame.style.display = "block";
frame.src = url;
document.getElementById('container').insertBefore(holder, null);
$("#vimeo-player-1").hide();
if(myFrame.location!=url&&url!=location.href)
myFrame.location.replace(url);
}
Both the options just work one time on 2nd click or even if I click on the same link again it doesn't work.
Any pointers?
Thanks
|
|
|
|
 |
I am working with legacy code in an old project, can someone please point me to a good tutorial on how to turn a regular Web Service into a RESTful Web Service.
I have found plenty of tutorials for creating RESTful Services using WCF but very few tutorials for RESTful Web Service.
Of the ones I did find, the explanation for what makes the web service RESTful is either missing or not very well explained.
modified 2 days ago.
|
|
|
|
 |
So...google is a friend:
http - What exactly is RESTful programming? - Stack Overflow[^]
There are a few pre-baked solutions for it. As I generally work the MS stack, the two that jump to my mind are WebAPI2 and Nancy. The core component, though, is that the server does not maintain state (or session) information for the client, each connection is treated as an atomic operation.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
 |
I have integrate G+ but it's get error while the URl will redirect to the dashboard can anyone help me???
|
|
|
|
 |
Possibly, but not without information on exactly what the problem is and where it occurs in your code.
|
|
|
|
 |
Hi,
I have employee evaluation for and it's populating the data from database and for every element of the evaluation there is a to choose the employee rating.
I want to know how can I implement this? How to name it? will all have same name?
here is my code:
prepare('CALL sp_web_get_employee_evaluation_elements_by_guid(:param_employee_evaluation_guid)');
$mysql_query->bindParam(':param_employee_evaluation_guid', $evaluation_guid, PDO::PARAM_STR);
$mysql_query->execute();
if ($mysql_query->rowCount() <= 0)
{
exit(header("Location: index.php"));
}
while($mysql_row = $mysql_query->fetch()) {
?>
ID:
Element
Rating :
<select name="cboRating" id="cboRating" data-native-menu="false" required>
<option value="">[Select..]</option>
prepare($mysql_rating_category_command);
$mysql_rating_category_query->execute();
while($mysql_rating_category_row = $mysql_rating_category_query->fetch())
{
?>
<option value="<?php echo $mysql_rating_category_row["evaluation_rating_category_id"]; ?>"><?php echo $mysql_rating_category_row["evaluation_rating_category_name"]; ?></option>
<?php } ?>
</select>
</td>
Thanks,
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|
 |
That seems fine, where did you get suck?
If the rating has been provided then you can simply fetch the record for rating (fetch that column in MySQL) and render it in HTML. There is no need for select at all, otherwise if you want to provide updating of it too, then still create a rating select, but chose selected attribute for a special one that was selected by user.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
 |
Some of you know that I have been trying forever to get a simple SignalR app hosting on my server.
According to the docs[^] you can Self Host, which appears to be a simple console app - not sure how THAT would work on a server), and also in a Windows Service (?? Would you install a Windows Service on you server just to do this?)
Yet the docs pages says NOTHING about hosting in IIS, and any progress you make towards it is the result of hours of Googling. I have been through DOZENS of web pages & blogs about how to get it hosted in IIS. Yet I have not found a single page that actually shows or walks you through creating a SignalR server app and installing it on IIS. Some of you have pointed me to a few pages, but they fall short.
I finally came across a page about creating a Web Deploy Package[^] and I was able to copy the package to my server and install it in IIS using Deploy=>Import Application... IIS reported that it was successful.
So I then attempted to connect using:
http://my.ip.address.:myport
which gives ma a directory listing, which leads me to believe that it's hosted OK.. But when I try to connect in my code I get ""StatusCode: 404, ReasonPhrase: 'Not Found'...."
If I include the Hub name in the url using http://76.91.83.141/MyHub I get "An error occurred while sending the request. Unable to connect to the remote server"
At this point I am BEGGING anyone who has gotten this working in IIS to please help. This CAN'T be that EFFING hard. WTF am I doing wrong????
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
 |
I have tried with this code to access sms from mobile. BUt , port detecting error.
Please check it.
SerialPort _serialport = new SerialPort("COM4", 115200);
_serialport.Parity = Parity.None;
_serialport.DataBits = 8;
_serialport.StopBits = StopBits.One;
_serialport.Handshake = Handshake.XOnXOff;
_serialport.DtrEnable = true;
_serialport.RtsEnable = true;
_serialport.NewLine = Environment.NewLine;
_serialport.Open();
_serialport.Write("AT" + System.Environment.NewLine);
Thread.Sleep(1000);
_serialport.WriteLine("AT+CMGF=1" + System.Environment.NewLine);
Thread.Sleep(1000);
_serialport.WriteLine("AT+CMGL=\"ALL\"\r" + System.Environment.NewLine);
Thread.Sleep(3000);
MessageBox.Show(_serialport.ReadExisting());
|
|
|
|
 |
You need to check which port your device connects at. Also, make sure to install the device drivers on your machine, Windows requires drivers to run the devices. If things get more interesting, and you just have to read the messages then you can use a web service in the network and keep pushing the SMS details to the PC. Android – Listen For Incoming SMS Messages - Stack Overflow[^], read this and use the function to push the data to server for sending to PC. You may use PC as server.
Serial Comms in C# for Beginners[^]
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
 |
<pre lang="vb"><pre lang="vb"><pre lang="vb">
|
|
|
|
|
 |
<input id="rdo1" type="radio" name="rdoTest" value="Hello" />
<input id="rdo2" type="radio" name="rdoTest" value="World" />
<var id="test1" onchange="alert('2');">Test Value</var>
$(document).ready(function () {
$('[name=rdoTest]').change(function () {
$('#test1').text($('[name=rdoTest]:checked').val());
});
$('#test1').change(function () {
alert($('#test1').text());
});
});
My code here but nothing happened
|
|
|
|
 |
The <var> element doesn't seem to raise the change event on its own. You'll need to trigger it manually:
$('#test1').text($('[name=rdoTest]:checked').val()).change();
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
 |
But <var> raise the event on click or mouseover
|
|
|
|
 |
Yes, but it doesn't raise the change event.
The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user.
<var> is not one of the elements that fires the change event.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
 |
please send me the code for parsing the excel sheet information and do GET, PUT and POST REQUEST dynamically.
Thanks and regards prathamesh
|
|
|
|
 |
Short answer: No.
Longer answer: These forums are here to answer technical questions related to code that you have written, not to do your work for you.
|
|
|
|
 |
Hi,
Urgently I need your inputs for our project which is using AngularJS 2 in MVC 5.
I want to choose the below grids in AngularJS 2 for the functionalities such as Bulk upload, Grid with tree view(insert single row), Exporting and Nested Grid.
• ag-grid
• ng2-grid
• angular2
• handsontable
Suggest me which one will be efficient and flexible and inputs for other grids are also welcome.
Please let me know if you have any samples or links for the same.
|
|
|
|
 |
Try Prime ng.
It is good and has a lot of sample code.
PrimeNG[^]
PrimeNG DataTable Samples[^]
I am using it since last 8 months. Its cool and open source.
Life is a computer program and everyone is the programmer of his own life.
|
|
|
|
 |
i like hide one note behinde photo to after when i want use jquery to show it but i have problem to fix it note behinde photo...can you see it in
|
|
|
|
 |
Please clarify your question.
Life is a computer program and everyone is the programmer of his own life.
|
|
|
|