The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,224 other subscribers

Archive for the ‘Stackoverflow’ Category

Converting an html dl (delimited list) on a page to a table from the Chrome console

Posted by jpluimers on 2022/09/14

A while ago, I wanted to convert the dl delimited list html element on a web page into a regular table so I could more easily reorder the data into cells.

So I ran the below bit of code in the Chrome Console after first putting the mentioned table with id here_table in the place where I wanted the table to be included:


<table id="here_table"></table>

view raw

_table.html

hosted with ❤ by GitHub


var arr = $("#delimitedList").children().map(function () {
return $(this).html();
}).get();
for (var i = 0; i < arr.length; i += 2) {
$('#here_table').append('<tr><td>' + arr[i] + '</td><td>' + arr[i + 1] + '</td></tr>');
}

For this script to work, you need jQuery, so yesterday I wrote Better, Stronger, Safer jQuerify Bookmarklet | Learning jQuery.

The code is based on [Wayback/Archive.is] Rebuild each definition list () as a table using JQuery – Stack Overflow (thanks [Wayback/Archive.is] easy!) with an important adoption instead of calling text() to get the textual dt and dd information, it uses html() so the original innerHTML is being preserved.

Some similar JavaScript pieces of code are at [Wayback/Archive.is] Turning HTML into a nested JavaScript array with jQuery – Stack Overflow.

Related:

–jeroen

Posted in Bookmarklet, Chrome, Development, Google, JavaScript/ECMAScript, jQuery, Pingback, Power User, Scripting, Software Development, Stackoverflow, Web Browsers, Web Development | Leave a Comment »

Why should I hire a software engineer if I can just copy and paste code from Stack Overflow?

Posted by jpluimers on 2020/03/19

Via [WayBack] Your cut and paste skills are in demand ##IL – Christoph Puppe – Google+:

–jeroen

Posted in Development, Pingback, Software Development, Stackoverflow | Leave a Comment »

Stack Exchange – stackoverflow OpenID

Posted by jpluimers on 2019/09/06

If you want to log into any stackoverflow/superuser/serverfault/stackexchange related network using their OpenID, then read the following from [WayBackStack Exchange:

Your Stack Exchange account, or StackID, is a reusable form of public identity that can be used to log in to any website that supports OpenID.

To log in to sites in the Stack Exchange network:

  • click the “Log In with Stack Exchange” button

To log in to websites that support OpenID:

  • enter the URL https://openid.stackexchange.com

–jeroen

Posted in Pingback, Power User, Stackoverflow | Leave a Comment »

Where does my git question go? – Programmers Meta Stack Exchange

Posted by jpluimers on 2018/11/20

StackOverflow / StackExchange is growing too large:

You’ve got a question about git. Its not uncommon, lots of people have questions about git. But where should the question be asked?

Source: Where does my git question go? – Programmers Meta Stack Exchange

–jeroen

Posted in Development, DVCS - Distributed Version Control, git, GitHub, Opinions, Pingback, Software Development, Source Code Management, SourceTree, Stackoverflow | Leave a Comment »

A Post-Mortem on the Recent Developer Story Information Leak – Meta Stack Overflow

Posted by jpluimers on 2018/03/27

I wish many other companies would disclose post mortem information like this: [WayBackA Post-Mortem on the Recent Developer Story Information Leak – Meta Stack Overflow

via: [WayBackInteresting and very appropriate top commenthttp://meta.stackoverflow.com/questions/340960/a-post-mortem-on-the-recent-developer-story-information-leak – This is why I Code – Google+

–jeroen

 

 

Posted in .NET, Delphi, Development, Pingback, Power User, Software Development, Stackoverflow | Leave a Comment »

 
%d bloggers like this: