How can Delphi ‘string’ literals have more than 255 characters?

why did not delphi give any error saying the length is beyond 255 for myExtremlyLongString? You have your answer a bit down in the text in section Long String (AnsiString). In current versions of Delphi, the string type is simply an alias for AnsiString, So string is not limited to 255 characters but a string … Read more

How to know the size of a variable in MATLAB

I wrote a simple convenience function to handle just this problem. Usage is: >> x = ones(1000); >> ByteSize(x) 7.63 Mb I run R2007a, so the problem of Java objects not returning sizes may have been fixed in subsequent releases. Here’s the code: function ByteSize(in, fid) % BYTESIZE writes the memory usage of the provide … Read more

Bootstrap 3: Reduce height of list-group-item in list-group

If you are using bootstrap 4 then solution is easy, no need to write any new class. We can use py-0/py-1/py-2/py-3/py-4 class according to your need with LI element: <ul class=”list-group”> <li class=”list-group-item py-2″ ng-repeat=”i in filters”> {{i}} </li> </ul> Where property is one of: m – margin p – padding Where sides is one … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)