|
honey the codewitch wrote: I bet a lot of Spanish people speak English you would lose the bet
Foreign languages are not that extended in Spain, at least not in my generation. I am a huge exception on this.
Maybe the younger people? But I would still not bet on it, because the probability of losing is high.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Fair enough.
Real programmers use butterflies
|
|
|
|
|
Just noticed: every Christmas Day falls on one of the few days the angle is at 180 degrees (clockwise from North).
Couldn't find another reference (off the top).
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Colour me confused!
The Solar Azimuth Angle hits 180° everyday at local noon, in the Northern hemisphere outside the tropics.
The Solar Right Ascension on Christmas day is around the 18hr:15min:00sec mark, with 00:00:00 hitting on the vernal equinox in the following year.
???
|
|
|
|
|
And me ...
Wikipedia: The solar azimuth angle is the azimuth angle of the Sun's position. This horizontal coordinate defines the Sun's relative direction along the local horizon,
So unless the earth rotates but skips a bit in the middle just to be annoying, 180o will occur every day in the Northern hemisphere.
Or is this a "40% of your sick days were on Monday and Friday!" type wind up?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I dint need no Wikipedia!
I first used a sextant when I was 8 years old, and was proficient by the time I was 11. Before the age of satnav, I took a year off to go sailing after 4 war-torn years in Baghdad, and wrote a full astro-nav program - a complete ephemeris for sun, moon, the four navigational planets and the 58 navigational stars, plus Polaris - for the HP25C in HP BASIC, and I am just now putting the finishing touches to it for Android and Windows as a retirement project, although I sold my last boat a couple of years ago - 15 metres is a bit much for single-handing at my age!
This stuff is as natural to me as left and right!
... now the sun - it rises in the ... er ... wes east, doesn't it?
Don't blame me - it's lock-down fever!
|
|
|
|
|
I'm pretty sure it rise in the sky, but after that it all gets a little hazy ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
There was a time when I understood all that stuff, and could use a sextant to check.
|
|
|
|
|
According to the NOAA, you're confused.
For China, for example, the "solar azimuth" hits 180 in 2020 on 4/15, 6/13, 9/1, and 12/25.
(The north pole doesn't rotate).
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
modified 28-Nov-20 13:35pm.
|
|
|
|
|
Well, I'm even more confused now.
The NOAA definition of Solar Azimuth, from their website:
NOAA wrote:-
azimuth and elevation - an angular coordinate system for locating positions in the sky. Azimuth is measured clockwise from true north to the point on the horizon directly below the object. Elevation is measured vertically from that point on the horizon up to the object. If you know the azimuth of a constellation is 135° from north, and the elevation is 30°, you can look toward the southeast, about a third of the way up from the horizon to locate that constellation. Because our planet rotates, azimuth and elevation numbers for stars and planets are constantly changing with time and with the observer's location on earth..
Gerry Schmitz wrote: The north pole doesn't rotate
The North Pole definitely rotates - if it didn't, nothing else would, and there would be one sunrise and sunset through the whole year, assuming the earth's rotational stasis with reference to the plane of the ecliptic.
Sudden thought - you're not a flat-earther, are you?
|
|
|
|
|
A senior citizen I know has a contract for Geek Squad, and while trying to get a minor issue resolved by a Geek via remote control, the connection dropped out, and now clicking on any icon comes back with a message like "blah blah not found".
What the h3ll is Geek Squad service worth if it ends up making the problem worse?
|
|
|
|
|
You are complaining to the wrong people.
|
|
|
|
|
It's not quite as bad as it originally seemed. The Geek was trying to get Google Chrome updated, and the connection cut off, causing this issue. Still, the Geeks should know how to deal with this situation.
|
|
|
|
|
I found myself with nothing to do this week, so I decided to make a concerted effort to repair the significant code loss I suffered back in May/2020 with respect to my entity factory app. I think I'm happy once again with the model generation, so I figured I'd post some code the app generated for me.
For those that have forgotten, EntityFactory will generate model (and optionally viewmodel) classes based on the selected table, view, and stored procedure (SQL server). What makes this app more functional than the ADO code generator is that it will generate an object for any stored proc that returns data, regardless of the method by which the data is returned (the ADO code generator refuses to work with stored procs that return data with dynamic sql, and re-generating code doesn't work in a number of spectacular ways). In the sample below, I turned on the generation of crud properties, just to exercise that part of the code. All of the code below was generated based on the returned schema for the indicated database source object. Processing took less than a second.
/==================================================================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
namespace Models
{
public partial class EntityAlerts
{
#region entity properties
[Key]
public int ID { get; set; }
public string AlertName { get; set; }
public string AlertTitle { get; set; }
public string AlertMsg { get; set; }
public DateTime AlertStartDate { get; set; }
public DateTime AlertExpireDate { get; set; }
public int AlertType { get; set; }
public int AlertClassLevel { get; set; }
public string AlertApps { get; set; }
public string ActionName { get; set; }
public string ControllerName { get; set; }
public DateTime DateAdded { get; set; }
public int AddedByUMSUserID { get; set; }
#endregion entity properties
#region database properties
public string CRUDGet
{
get
{
return "SELECT [ID], [AlertName], [AlertTitle], [AlertMsg], [AlertStartDate],"
+" [AlertExpireDate], [AlertType], [AlertClassLevel], [AlertApps], [ActionName],"
+" [ControllerName], [DateAdded], [AddedByUMSUserID] FROM [dbo].[Alerts]"
+" WITH(NOLOCK);";
}
}
public string CRUDUpsert
{
get
{
return "UPDATE [dbo].[Alerts] SET [AlertName] = @AlertName , [AlertTitle] ="
+" @AlertTitle , [AlertMsg] = @AlertMsg , [AlertStartDate] = @AlertStartDate ,"
+" [AlertExpireDate] = @AlertExpireDate , [AlertType] = @AlertType ,"
+" [AlertClassLevel] = @AlertClassLevel , [AlertApps] = @AlertApps , [ActionName]"
+" = @ActionName , [ControllerName] = @ControllerName , [DateAdded] = @DateAdded"
+" , [AddedByUMSUserID] = @AddedByUMSUserID WHERE [ID] = @ID;"
+" IF @@ROWCOUNT = 0"
+" INSERT INTO [dbo].[Alerts] ( [AlertName] , [AlertTitle] , [AlertMsg] ,"
+" [AlertStartDate] , [AlertExpireDate] , [AlertType] , [AlertClassLevel] ,"
+" [AlertApps] , [ActionName] , [ControllerName] , [DateAdded] ,"
+" [AddedByUMSUserID]) VALUES ( @AlertName , @AlertTitle , @AlertMsg ,"
+" @AlertStartDate , @AlertExpireDate , @AlertType , @AlertClassLevel ,"
+" @AlertApps , @ActionName , @ControllerName , @DateAdded , @AddedByUMSUserID);";
}
}
public string CRUDDelete
{
get
{
return "DELETE FROM [dbo].[Alerts] WHERE [ID] = @ID;";
}
}
#endregion database properties
}
}
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Bravo! especially for the UPSERT part.
But it would be even more interesting if it could also generate PostgreSQL code!
|
|
|
|
|
RickZeeland wrote: Bravo! especially for the UPSERT part.
That's actually configurable - you can tell the app not to combine the insert and update parts.
RickZeeland wrote: But it would be even more interesting if it could also generate PostgreSQL code!
I'm going to leave that as an exercise for another programmer. Besides that, you can easily inherit the generated class, and override the CRUD properties to support your own kind of chaos.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Quote: support your own kind of chaos I already have enough chaos at hands thank you!
Should really try harder to work with NHibernate as that's what has been chosen as the standard where I work, but till now have been able to avoid implementing it in the projects I work on.
Also I should do some DevOppy things with Docker, but it seems to make no sense to use Docker with Windows, it's clearly a Linux thing
|
|
|
|
|
Thankfully, nobody on our team is enamoured with ORMs of any description. I can really understand the desire to have some of your more tedious code auto-magically generated, but ORMs impose to many proprietary ideas about how things should work, and how you should work with them, and it's often more tedious to find out how to get around those ideas than it is just to crank out your own code. This tool leans more towards the "crank out your own code" crowd. Even the viewmodel generator allows you to specify your own implementation of INotifyPropertyChanged and IDataErrorinfo (it provides my own implementation as a default, but the user can change it).
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I think I would get flayed if I posted that much code in the lounge.
Congratulations to you.
Real programmers use butterflies
|
|
|
|
|
Be careful what you say about JSOP, he's very dangerous
|
|
|
|
|
In American Texas, code poster flays you
|
|
|
|
|
I don't see the problem with posting the output from a code generator, as long as you don't pose a question about it in the message. At that point, you're simply showing the output of an application. If anyone gives you grief, let me know - I'll set 'em straight.
Note - I purposely chose a table that only has a few returned columns.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I don't either, personally. I appreciated your comment, as I am a fan of code generation.
Real programmers use butterflies
|
|
|
|
|
JSOP is a special case, a bit like OG, the Richards and you for that matter. People who contribute so much to the site that they have and deserve carte blanche. It is very rarely abused.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
That's fair. I try not to abuse the forum myself but I'm a weirdo and social decorum is not always my best strength, even online. Even among other developers.
Real programmers use butterflies
|
|
|
|
|