|
Hi
Please do not send me private email. If you have a question ask here so that others can get benefit out of it too.
Cheers
|
|
|
|
|
The last line of your previous message implies that you are prepared to offer personal assistance.
|
|
|
|
|
Richard MacCutchan wrote: previous message implies that you are prepared to offer personal assistance.
No not really. I think he/she got an assignment/project in his School/University and obviously he was not paying attention in all those lectures, so he does not know where to start from and obviously the question for him seems to be alien at this minute and am sure clock is ticking and now all he is bothered about is final product to submit and get pass grade.
My idea is to first train him on how to make sense of the question, what all he can try before asking question here and when he tried enough then what is the best possible manner to ask question here or any other tech forums. If he is running out of time, it's better to fail and then stand up rather than giving up so early and relying on someone else's work.
So all in all, I am not going to work for him but yes if he wants I can put him in a right direction and obviously for similar reason, I ignored his private email and ask him to reply on this thread.

|
|
|
|
|
cp-andy wrote: Sure, let me know how can I help you. That seems a pretty clear indication that you are offering personal help.
|
|
|
|
|
Ok, is there anything wrong in that?
As they say knowledge increases when you share.
|
|
|
|
|
No, but it is reasonable for the OP to assume you are offering to provide some level of personal help, rather than just telling him/her to clarify their question.
|
|
|
|
|
Help doesn't mean that am happy to take on discussion off the forums.
|
|
|
|
|
Blimey this is hard work. I am not talking about what you meant, I am talking about what a questioner (whose first language is probably not English) thinks you are offering.
|
|
|
|
|
haha ok thanks for explaining what he must have thought.
|
|
|
|
|
Hello,
Following code helps in navigating to particular point in vimeo videos (by adding #t=0m0s to querystring). It is working absolutely fine on firefox but not on other browsers.
Can anyone point why and point me to right direction. Thanks
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<iframe src="https://player.vimeo.com/video/191602887" width="629" height="356" id="vimeo-player-1" name="vimeo"></iframe>
<style>
iframe{
display: none;
width:629px;
height:356px;
margin:0 0 10px;
}
</style>
<div id="container"></div>
<div id="iframe-holder">
<iframe src="" id="frame"></iframe>
</div>
<a style="cursor: pointer; " onclick="insert('0m51s');">[0.51]</a>
<div class="spacer10"></div>
<a style="cursor: pointer; " onclick="insert('1m38s');">[1.38]</a>
<script>
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);
}
</script>
Thanks
modified 25-Nov-16 7:14am.
|
|
|
|
|
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 22-Nov-16 20:56pm.
|
|
|
|
|
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
modified 14-Jul-17 15:54pm.
|
|
|
|
|
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 !~
|
|
|
|
|
I tried below code but getting:
SELECT is not an array
although my html output is showing correct result like this:
<tr>
<td style="padding: 10px;">
<h1>Work Performance</h1>
<p>Efficient execution of duties.</p>
<select name="cboRating[4613]" id="cboRating[4613]" data-native-menu="false" required>
<option value="">[Select..]</option>
<option value="1">Outstanding</option>
<option value="2">Exceeds Expectations</option>
<option value="3">Meets Expectations</option>
<option value="4">Needs Improvement</option>
<option value="5">Unsatisfactory</option>
</select>
</td>
</tr>
<tr>
<td style="padding: 10px;">
<h1>Technical Knowledge and Skill</h1>
<p>Mastery of job knowledge and skills required to perform the duties of the position.</p>
<select name="cboRating[4614]" id="cboRating[4614]" data-native-menu="false" required>
<option value="">[Select..]</option>
<option value="1">Outstanding</option>
<option value="2">Exceeds Expectations</option>
<option value="3">Meets Expectations</option>
<option value="4">Needs Improvement</option>
<option value="5">Unsatisfactory</option>
</select>
</td>
</tr>
here is my code:
if (is_array( $_POST['cboRating']))
{
foreach($_POST['cboRating'] as $key=>$value)
{
echo "Key : " . $key . "<br><br>";
echo "value : " . $value . "<br><br>";
}
}
else
{
echo "SELECT is not an array";
}
Technology News @ www.JassimRahma.com
|
|
|
|
|
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
|
|
|
|