Posts

visual studio 2012 - Change the licensed to name in VisualStudio -

i'm having trouble being able change "licensed to" in visual studio 2012. if publish app it's coming out "hp" , needs me. found article online steps don't seem logical. can me this? here article found: http://blog.brouwer.pro/2012/09/how-to-change-licensed-to-name-for-visual-studio-2012/ the problem step 2 in registry don't have "username" , step 4 don't know (replace placeholder own username) any amazing!!! if username value not exist in registration , you'll need create yourself. just create new string value, , set value name. the "(replace placeholder own username)" means replace {your_user} in given path user name. for example if user name 'superior', navigate c:\users\superior\appdata\roaming\microsoft\visualstudio\11.0

iphone - C++ code performance drop in iOS device -

i have implemented c++ code, , have run on windows machine. execution time takes around 220 milliseconds. ran same code on ios device (ipad), takes 1 second execution time. what reason? how can achieve same performance on ios device? there way increase performance of c++ code on such device? what ways increase performance of c++ code in ios? i suppose average windows machine lot more powerful ipad many tasks. that said, use instruments (part of xcode) profile code , see it's spending of time, maybe optimisations ipad become clear.

ruby on rails - Comments system : Hstore with normal association VS simple attributes with polymorfic association -

i create small social network share photos , videos , events: photos table attributes : title, description, name videos table attributes : title , description , name, runtime events table attributes : title, description, date_begining, date_end as can see there duplication between tree tables, not important @ all. so each model (photo, video, event) should have possibility add comments , i'm using postgresql , simple way use polymorfic association , think can use hstore , treat of them (photo, video, event) single model (for example share) contains common attributes , add properties column shares table : shares ( title:string, description:string, name:string, properties:hstore) with that, think don't need polymorfic association , , can add simple relation between share , comment models : class share < activerecord::base has_many :comments end class comment < activerecord::base belongs_to :share end my question here best method (faste...

javascript - jQuery Masked Input plugin not working on form input? -

i'm trying use masked input plugin on 1 of datatables editor fields (#dte_field_phone). reason, mask isn't being applied code: $('#dte_field_phone').mask('(999) 999-9999'); i'm calling mask after table , editor initialized, yet still nothing. ideas on may doing wrong? html: <div class="dte_field_input" data-dte-e="input"> <input id="dte_field_phone"></input> <div class="dte_field_error" data-dte-e="msg-error" style="display: none;"></div> <div class="dte_field_message" data-dte-e="msg-message"></div> <div class="dte_field_info" data-dte-e="msg-info"></div> </div> jquery: jquery(function ($) { $( document ).ready(function (e) { var editor = new $.fn.datatable.editor({ "ajaxurl": "../wp-content/plugins/contacts/php/table.wp_contacts...

java - How to select the field value if field in all child records are the same -

i don't know if i'm wording question correctly, here goes. this web application using java, oracle, hibernate. i have 2 tables in 1 (items) many (tasks) relationship. items item_id name active_status etc tasks task_id item_id active_status progress_status etc the item's status made of statuses of of tasks. here's logic... if item status canceled or on hold...return item active status if there no tasks, return completed if tasks active , not superseded, then ...return not started if tasks not started ...return completed if tasks completed ...return on hold if tasks on hold otherwise return started i want using sql , map field in hibernate mapping file. i've tried many things on past several days, , can't seem work. tried grouping records , if 1 record found, return status. i've used decode, case, etc. here few examples of things i've tried. in second example 'not single group group function' error. ...

c# - Clearing canvas has a delay -

below code simple app draws rectangle on canvas in window , takes screen shot of app using copyfromscreen function when key pressed. before called however, call canvas.children.clear(). expect resultant image not have rectangle in it, does. seems actual rectangle image isn't removed canvas when function called time after. i tried putting in system.threading.thread.sleep(1000); after clear() call rectangle stays on screen full second well. it's getting removed after key press function finishes, there way remove before copyfromscreen call? to run need add reference system.drawing. xaml code <window x:class="canvastest.mainwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="mainwindow" width="210" height="240" keydown="keypressed"> <window.background> <solidco...

java - How to find dynamically allocated JMX port when port is 0 -

for java application when jmx enabled , port set 0, port dynamically allocated: -dcom.sun.management.jmxremote.port=0 what best way find out port allocated? managed find out using ps , pfiles on solaris, hoping there simpler why find (programmatically) also there better way assign dynamic jmx ports java applications on same box , keep track of them?