« first day (3794 days earlier)      last day (1141 days later) » 

2:04 AM
 
 
8 hours later…
9:43 AM
posted on March 02, 2021 by Scott Hanselman

I spend so much time at the command line using the Windows Terminal. Then I spend a ton of time using git at the command line. But then I ALT+TAB over to GitHub and mess around in the browser. Why have I been sleeping on the GitHub CLI? - there's a command line interface for GitHub! I installed with "winget install GitHub.cli" but you can get it from https://cli.github.com if you like. Then

 
 
1 hour later…
11:12 AM
<div class="d-flex flex-row" style="justify-content: space-between;">
	<form asp-action="Index" asp-controller="Alerts" method="get" style="width: 30%;">
		<div class="form-group">
			<div class="d-flex flex-row input-group">
				<input class="form-control" name="id" placeholder="Enter ID" type="number" />
				<input id="submit-button" class="btn btn-secondary"
					   style="background-color: blueviolet;" type="submit" value="Search" />
			</div>
		</div>
	</form>
	<a asp-action="Overview" id="overview-button" class="btn btn-light">Overview</a>
How do I modify this code, so that the search string gets preserved across searches?
 
 
2 hours later…
1:13 PM
Hello friends!
[kesarling] used js
[kesarling] Now am facing a different problem
\[**[kesarling](https://discord.gg/PNMq3pBSUe)**] (for the chat room):
<script type="text/javascript">
const urlParams = new URLSearchParams(window.location.search);
const searchString = urlParams.get('id');
</script>

<form asp-action="Index" asp-controller="Assets" method="get" style="width: 30%;">
<div class="form-group">
<div class="d-flex flex-row input-group">
<input id="searchField" class="form-control" name="id" type="number" />
<input class="btn btn-secondary" style="background-color: blueviolet; width: 20%;"
 
 
3 hours later…
4:40 PM
OK this is probably simple but I am missing something fundamental, when I convert it to int I get the right value

> 0000 0110 0001 1011 0000 1010 1111 1111 = 102435583

When I reverse it and convert I get the wrong value

> 1111 1111 0101 0000 1101 1000 0110 0000 = 4,283,488,352

why? what basic thing am I missing here to understand it
test code https://ideone.com/x13g4G
Right
102435583 => 4283488352
Wrong
102435583 => -16114938
 
 
4 hours later…
8:50 PM
Bytes do strange things when you reverse them?
 

« first day (3794 days earlier)      last day (1141 days later) »