WPF DataGrid is very slow to render

Are you have: Enabled VirtualizingStackPanel.VirtualizationMode for a Grid? if not – try to set. Set VirtualizingStackPanel.IsVirtualizing=”true” for DataGrid Wrapped up a Grid by a StackPanel container? If yes – try to remove. Wrapped up a Grid by an external ScrollViewer control? If yes – try to remove. One more point, could you bind whole items … Read more

Integrate MuPDF Reader in an app

I don’t know how to do this in Windows using cygwin, because I’m using Ubuntu for the development. But I think the procedure should be the same. Download the file mupdf-0.9-source.tar.gz here: http://code.google.com/p/mupdf/downloads/list?q=source Download the file mupdf-thirdparty.zip Extract the sources. By default they will be extracted to the folder: mupdf-0.9/ Extract the file mupdf-thirdparty.zip into … Read more

Ruby on Rails – Render JSON for multiple models

One way you could do this is to create a hash with the objects you want to render, and then pass that to the render method. Like so: respond_to do |format| format.json { render :json => {:moulding => @moulding, :material_costs => @material_costs }} end If the models aren’t associated through active record, that’s probably your … Read more

visibility:hidden vs display:none vs opacity:0

While all 3 properties make an element’s box seem invisible, there are crucial differences between them: Property Painted In layout Stacking context Pointer events Keyboard events opacity: 0; No Yes New Yes Yes visibility: hidden; No Yes Varies No No display: none; No No Varies No No The “Painted” column indicates if the browser will … Read more

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