Posts

How could I view absent and present with unique color code in winform C# gridview -

i have table(payroll_attendancestatus) contains 4 columns ====================================== statusid | status | shortname | color ====================================== 01 | present| p | yellow 02 | absent | | red ======================================= from above mentioned table used mark day wise attendance table (payrollmarkattendance)and contains values ==================================================== markid | employee_code | statusid | datetime ==================================================== 1 | 001 | 01 | 2016-06-11 2 | 002 | 02 | 2016-06-11 ==================================================== for view using pivot table , code pivot table select * (select [employeename] ,[employee_code] ,[shortname], datename(m, [datetime])as [month] ,day([datetime]) [dayvalue] [view_payrollmarkattendance]) composite pivot (max([shortname]) [dayvalue] in ([1], [2], [3], [4],[5]...

pip - Installing extra_requires with tox -

if want install requirements package being tested tox it? e.g. if testing package called websauna , want instal websauna[test] instead of websauna in tox.ini: [testenv] extras = test documentation

c# - ASP Label Replace new line -

Image
hello have label in project gets text database because label not support multline method need convert new lines tried using tweetlabel.text.replace(environment.newline, "<br />") not work. i'l add images showing problem. string.replace() returns new string. doesn't change string put method. therefore tweetlabel.text.replace() on own nothing. need change to: tweetlabel.text = tweetlabel.text.replace(environment.newline, "<br/>");

javascript - Preventing blank input not working -

i'm trying prevent blank input on editable list item, i'm using same code use somewhere else reason not working. i have: if(foldername == "" || foldername == " " || foldername.charat(0) == " "){ $(this).remove(); } it removing item if not type anything, though if enter blank space doesn't call remove. strange thing using exact same code in different area , it's working fine. here full function: $(document).on('focusout', '#folders li', function(){ //add class when lose focus/shorten name if long var foldername = $(this).text(); $('#folders li').removeattr('contenteditable'); $('#folders li').removeclass('active-tab'); $(this).addclass('active-tab'); if(foldername.length > 15){ $(this).attr('title', $(this).text()); shortfoldername=foldername.substring(0,15) + '...'; $(this).text(shortfoldername);...

javascript - Cancelling the anchor when clicking on a div inside the anchor -

Image
i have anchor element in html: <a class="info-tiles tiles-inverse has-footer" href="somepage.html?id=15"> <div class="tiles-heading"> <div class="pull-left">it department - hosting environment</div> </div> <div class="tiles-body"> <div class="nav-justified" style="font-size: small;">started: 19-05-2015 07:00</div> <div class="btn btn-sm btn-default pull-right">ae</div> <div class="btn btn-sm btn-default pull-right">pj</div> <div class="btn btn-sm btn-default pull-right">sl</div> </div> <div class="tiles-footer"> <div class="progress"> <div class="progress-bar progress-bar-info" style="width: 20%"></div> </div> </div> </a> this code renders this: the behavior ok ...

javascript - How does this callback call work in Node.js with mongo .find call -

models/category.js var mongoose = require('mongoose'); // category schema var categoryschema = mongoose.schema({ title: { type: string }, description: { type: string }, created_at: { type: date, default: date.now } }); var category = module.exports = mongoose.model('category', categoryschema); // categories module.exports.getcategories = function(callback, limit) { category.find(callback).limit(limit).sort([['title', 'ascending']]); } routes/categories.js var express = require('express'); var router = express.router(); category = require('../models/category.js'); router.get('/', function(req, res, next) { category.getcategories(function(err, categories) { if (err) res.send(err); res.render('categories', { title: 'categories', categories: categories }); }); }); router.post('/add', function(req,res) { res.send('form...

integer - Is there a way to determine the size of BLAS IDAMAX function? -

i determine size of integer function idamax in blas fortran library. can either 4-bytes (i32lp64 model) or 8-bytes (ilp64). knowing size can determine overall integer declaration (integer*4 or integer*8) in prebuild blas library. the problem sizeof(*idamax_(&n, dx,&incx)) of program below returning 4, though expect 8 mkl-integer*8 blas. any comments, please ? #include <stdio.h> void main() { extern * idamax_(); // external fortran blas function idamax int n=2; int incx=1; //long n=2; long incx=1; double dx[2]; dx[0]=1.0; dx[1]=2.0; printf("sizeof(n)=%i\n",sizeof(n)); printf("sizeof(*idamax_(&n, dx, &incx))=%i\n",sizeof(*idamax_(&n, dx,&incx)) ); // still returns 4 !!! //printf("sizeof(idamax_(&n, dx, &incx))=%i\n",sizeof(idamax_(&n, dx, &incx)) ); // idamax call crashes wrong integer sizes - mkl, gnu ibblas.a ! same fortran idamax_(&n, dx, &incx); } your code not determining functi...