Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

optimization

c# How to optimize repeated codes on inline if statement

September 4, 2022 by Magenaut

I use a model class to create an object. My code works well but it has code repeat. imagine this code below: ModelA objectA = new ModelA { x = A-B <= 0 ? 0 : A – B, y = C – D > 0 ? C-D : int.MinValue }; This code below creates … Read more

Categories ASP.NET, Q&A Tags asp.net, c#, conditional-operator, model-view-controller, optimization Leave a comment

Minify Html output of ASP.NET Application

September 2, 2022 by Magenaut

What are the ways by which we can reduce the size of the HTML Response sent by an asp.net application?

Categories ASP.NET, Q&A Tags asp.net, minify, optimization, performance Leave a comment

Jqgrid 3.7 does not show rows in internet explorer

September 2, 2022 by Magenaut

I’m testing with ASP.NET and Jqgrid 3.7, in firefox it works fine but in IE it does not show any row in the grid.

Categories ASP.NET, Q&A Tags asmx, asp.net, jqgrid, json, optimization Leave a comment

Completely remove ViewState for specific pages

August 31, 2022 by Magenaut

I have a site that features some pages which do not require any post-back functionality. They simply display static HTML and don’t even have any associated code. However, since the Master Page has a <form runat="server"> tag which wraps all ContentPlaceHolders, the resulting HTML always contains the ViewState field, i.e:

Categories ASP.NET, Q&A Tags asp.net, optimization, viewstate Leave a comment

gzip compression in Windows Azure Websites

August 31, 2022 by Magenaut

Is it possible to Enable gzip compression on a simple Azure Website?
If so how can it be done?
Is there anything to take under consideration when applying gzip on Azure Websites?

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, azure, gzip, optimization Leave a comment

How do I prevent NGEN from rebasing my code (negatively affecting performance)?

August 26, 2022 by Magenaut

I simply want to speed up my .NET-base client side app and am considering NGEN-ing the code.

Categories ASP.NET, Q&A Tags .net, asp.net, ngen, optimization, rebase Leave a comment

Customized Paging With Repeater And SQL

August 25, 2022 by Magenaut

I’ve been looking for a good tutorial to teach me how to make a customized Paging control with a simple DataBound control like Repeater to implement a high performance paging feature.

Categories ASP.NET, Q&A Tags asp.net, c#, optimization, performance, sql Leave a comment

I have written this function to get the size of a string, can it be optimized?

August 23, 2022 by Magenaut

I don’t want to use python functions to calculate but I want to implement a function myself. The problem comes when the chain is very long. The program starts to take about 5 minutes.

Categories Python, Q&A Tags optimization, python, size, string Leave a comment

making multiple request at the same time with the module requests and print the output on excel(python)

August 22, 2022 by Magenaut

Hi this is quite a complicated question
From this script:

Categories Python, Q&A Tags excel, json, optimization, python, python-requests Leave a comment

A weighted version of random.choice

August 22, 2022 by Magenaut

I needed to write a weighted version of random.choice (each element in the list has a different probability for being selected). This is what I came up with:

Categories Python, Q&A Tags optimization, python Leave a comment
Older posts
Page1 Page2 … Page4 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress