« first day (1167 days earlier)      last day (2950 days later) » 

user5981182
1:03 AM
Talking about Tasks ... @KendallFrey, I use to design my services to have a private method and an async version of that method which is public and calls the private methods like this : Task.Run(() => PrivateMethod); is that good practice ?
 
1 message moved from C#
 
 
5 hours later…
5:58 AM
 
6:20 AM
1 message moved from [Tech Gossips ](chat.stackoverflow.com/rooms/59481/tech-gossips)
 
 
5 hours later…
11:08 AM
am a beginner,how i can call this fuction with button


function update()
{
var textarea = window.editbox.document.f.ta;
var d = dynamicframe.document;

if (old != textarea.value) {
old = textarea.value;
d.open();
d.write(old);
d.close();
}
 
1 message moved from JavaScript
 
11:28 AM
.
 
 
2 hours later…
1:48 PM
@rlemon .perc::after {
content: '%';
vertical-align: top;
font-size: 25%;
}
 
1 message moved from JavaScript
 
@rlemon .perc::after {
content: '%';
vertical-align: top;
font-size: 25%;
}
 
1 message moved from JavaScript
 
2:09 PM
Hi i need some help with some javascript
I'm trying to work out the distance between two postcodes
<script>


var x = getDistanceFromLatLonInKm(52.482799000000000, -2.000643000000000, 52.48463500000000, -1.980759000000000);

function getDistanceFromLatLonInKm(lat1, lon1, lat2, lon2){
  console.log(lat1, lon1, lat2, lon2);
var distanceFromSpecificPoint = getDistanceFromLatLonInKm.bind(null, 52.486637, -1.890952);

  var R = 6371; // Radius of the earth in km
  var dLat = deg2rad(lat2 - lat1); // deg2rad below
  var dLon = deg2rad(lon2 - lon1);
  var a =
    Math.sin(dLat / 2) * Math.sin(dLat / 2) +
 
3 messages moved from JavaScript
 
@rlemon can you help me with this ?
 
2:28 PM
 
2 messages moved from Java::chat ><> & Chips
 
1 message moved from C#
 
 
3 hours later…
6:00 PM
'use strict';

const db = require('../database');

var PricePlan = db.connection.define('price_plan', {
name: {
type: db.Sequelize.STRING(30),
allowNull: false
},
description: {
type: db.Sequelize.TEXT('medium'),
allowNull: false
},
price: {
type: db.Sequelize.DECIMAL(10, 2)
}
});

module.exports = PricePlan;
 
1 message moved from JavaScript
 
6:46 PM
var lol = document.querySelector("#test");
if(lol.length >= 5) {
document.write("Your caratter are most 5");
}
else {
document.write("Yoru caratter aren't most 5");
}
 
1 message moved from JavaScript
 
var lol = document.querySelector("#test");
if(lol.length >= 5) {
document.write("Your caratter are most 5");
}
else {
document.write("Yoru caratter aren't most 5");
}
 
1 message moved from JavaScript
 
Wut?
 
7:11 PM
var lol = document.querySelectorAll("#test"); //put a <input type="text" id="test" />
var test = "Hello";
//put a variable for contain Hello and make the comparison
if(lol.length != test) //Comparison {
document.write("Your word isn't Hello");
}
else {
document.write("Your word is Hello");
}
 
1 message moved from JavaScript
 
7:50 PM
 
1 message moved from SO Close Vote Reviewers
 
 
1 hour later…
8:59 PM
"
0
down vote
C# application must have at least one class with Main method, so that execution can begin from it. Application can have plenty of classes, but only one class with only one Main method is required.

C# library does not have to have a Main method."
 
user47589
1 message moved from C#
 
user5992646
10:55 PM
███████▓█████▓▓╬╬╬╬╬╬╬╬▓███▓╬╬╬╬╬╬╬▓╬╬▓█
████▓▓▓▓╬╬▓█████╬╬╬╬╬╬███▓╬╬╬╬╬╬╬╬╬╬╬╬╬█
███▓▓▓▓╬╬╬╬╬╬▓██╬╬╬╬╬╬▓▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
████▓▓▓╬╬╬╬╬╬╬▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
███▓█▓███████▓▓███▓╬╬╬╬╬╬▓███████▓╬╬╬╬▓█
████████████████▓█▓╬╬╬╬╬▓▓▓▓▓▓▓▓╬╬╬╬╬╬╬█
███▓▓▓▓▓▓▓╬╬▓▓▓▓▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
████▓▓▓╬╬╬╬▓▓▓▓▓▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
███▓█▓▓▓▓▓▓▓▓▓▓▓▓▓▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
█████▓▓▓▓▓▓▓▓█▓▓▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
█████▓▓▓▓▓▓▓██▓▓▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬██
█████▓▓▓▓▓████▓▓▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬██
████▓█▓▓▓▓██▓▓▓▓██╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬██
 
1 message moved from JavaScript
 

« first day (1167 days earlier)      last day (2950 days later) »