Posts

gruntjs - Adding a task with in a task in a gruntfile -

i have gruntfile below: concat: { options: { banner: '<%= banner %>', stripbanners: true }, one: { src: ['src/**/*.js'], dest: 'dist/<%= pkg.name %>_ac.js' }, two: { src: ['/types/**/*.js'], dest: 'dist/<%= pkg.name %>_lib.js' }, all: { } },..... , on now if register task like: grunt.registertask('basic', ['concat:all']); i want both 1 , 2 run. how shall add option in all: { // need add here include 1 , 2 both? } no need add target if you're registering task point 2 targets. do: grunt.registertask('basic', ['concat:one', 'concat:two']); otherwise if you're intending on concatenating files 1 , 2 do: grunt.initconfig({ concat: { one: { src: ['src/**/*.js'], ...

network programming - SIP Over TCP versus SIP over UDP [ SIP: Session Initiation Protocol ] -

what difference between sip on udp , sip on tcp? what sip on tcp means? means: sip on tcp means both sip , underlying rtp protocol use tcp or run sip on tcp , udp rtp ? which one? "sip on tcp" means "send sip messages on tcp stream". sip largely transport protocol agnostic, same protocol can run on sctp, dtls, , on. from user's perspective there's no difference. from perspective of using sip stack/writing sip application, there's little difference: sip on udp implements various reliability mechanisms (resend+backoff starters). the session descriptions may use rtp media streams, sdp not tied using rtp. may use plain tcp streams if wish, or other protocol (provided there's way of describing protocol in sdp, , useful clients understand transport protocol, of course). rtp transport protocol usually runs on udp (because timeliness more important in real-time transport protocol reliability), can run on tcp (p...

java - how does a compiler knows which class need to be serialize -

if declare class serializable, how compiler know class needs serialized using serializable keyword. public class domain implements comparable<domain>, serializable{ } compiler not serialize class, need write code write/ read object output stream. if class trying serialize not implementing interface, jvm throw run time error. as marked class seriablizable implementing serializable interface, jvmwill treat serializable class. serialzable marker interface, means there no method need implemented when add interface class. marker interfaces treated specially jvm, flag class serializable.

c++ - Widgets within a QGraphicsScene -

i'm trying add qgraphicsview(qcolordialog) widget onto palette dialog, qgraphicsscene corresponding qcolordialog widget blank , of great if readers me correct mistake. qt-4.8.4-linux(centos) the graphicsview widget included in pallettedialog clrwidget::clrwidget(qwidget *parent) : qgraphicsview(parent) { sethorizontalscrollbarpolicy(qt::scrollbaralwaysoff); setverticalscrollbarpolicy(qt::scrollbaralwaysoff); setframestyle(qframe::noframe); setscene(new qgraphicsscene(this)); _dialog = new qcolordialog(); _dialog->setoption(qcolordialog::nobuttons, true); setminimumsize(_dialog->size()); setmaximumsize(_dialog->size()); qgraphicsproxywidget *proxywidget = new qgraphicsproxywidget(); proxywidget->setwidget(_dialog); //scene()->additem(proxywidget); //scene()->setscenerect(proxywidget->geometry()); scene()->addwidget(_dialog); scene()->setscenerect(_dialog->geometry()); } palettedialog constructor pale...

sql server 2008 - Problems In Connection String with different Users in System for Windows Authentication -

hi connection string: windows authentication: <add name="strconnection" connectionstring="data source=murali\sqlexpress;initial catalog=ecowhisk28113;integrated security = true" providername="system.data.sqlclient;"/> i run applications in system's administrator means working correctly same application run in system's users means error. 'cannot open database "ecowhisk28113" requested login. login failed. login failed user 'murali\murali'. ' i want know whether connection string error or system settings problem... please solve bug.... thanks..... you need login ssms , grant users accessing database proper permissions database. can check opening ssms connecting sql server expanding security folder right click on logins , create new login 'murali\murali'and add new login access ecowhish28113 database. depending on type of access required need add login database roles in db well. ...

if statement - Smart job board top menu items restriction for user -

i'm working on smart job board script customization. here thing: i want restrict menu item guest , job seaker i'm writing follow script not working. {if $globals.current_user.group.id != "jobseeker"} {if $globals.current_user.group.id != "guest"} <li><a href="{$globals.site_url}/search-resumes/" >[[search resumes]]</a></li> {/if} {/if} can tell me i'm going wrong ? i forgot check weather user logged in or not. following code helped me hide menu item in smart-job-board {if $globals.current_user.logged_in} {if $globals.current_user.group.id != "jobseeker"} {if $globals.current_user.group.id != "guest"} <li><a href="{$globals.site_url}/search-resumes/" >[[search resumes]]</a></li> {/if} {/if} {/if} this helped me hide menu item.

node.js - How do I format jade forms? -

i'm trying refactor app use jade instead of ejs running problems setting login form. here's original form in ejs: <% if (message) { %> <p><%= message %></p> <% } %> <form class="form-horizontal" action='/login' method="post" id="loginform"> <fieldset> <div id="legend"> <legend class="">login</legend> </div> <div class="control-group"> <!-- username --> <label class="control-label" for="username">username</label> <div class="controls"> <input type="text" id="username" name="username" placeholder="" class="input-xlarge"> </div> </div> <div class="control-group"> <!-- password--> <label class="control-label"...