Thursday, 29 November 2012

Sanjeev Yadav



Latest News
1 hr ago
Since democracy is obviously failing there is a need to find another form of government.
1 hr ago
Forcing developer to think on how to write more lean code and maybe use multiple function instead of multiple copy/paste!
1 hr ago
Building apps that behave like humans is hard.Building ones that see the world and interpret it like we do is even harder – it’s because of this...
1 hr ago
This is the first (zeroth) post in a series on getting started using MonoGame to create a Windows 8 Store game. Unless you want to spend the money...
1 hr ago
I’ve been a little late to the NuGet bandwagon.Overall I am really happy with the service that NuGet provides. It is not all smooth sailing...
Sanjeev Yadav

To give you an example, here are some parts of our “rofx-xcode” build script




include("$(Train)/ci2.train"); // Shared stuff specific to RemObjects' CI2

var versionNumber = ci2_GetVersionNumberFromGlobalIni("ROFX");
var sharedRofxWin = ci2_FindClosestSharedFolder("rofx-win"); // find closest/latest "rofx-win" build to copy stuff from
export("CIVersionNumber", versionNumber);

log("sharedRofxWin is in "+sharedRofxWin);

//...

run("Source/RemObjectsSDK.train");
run("Source/DataAbstract.train");
run("Source/TwinPeaks.train");

function buildTrial(_project, _targetBase, _sdk)
{
    xcode.rebuild(_project, { configuration: "Trial", target: _targetBase+" for OS X", sdk: "macosx",          destinationFolder: "./Bin" });
    xcode.rebuild(_project, { configuration: "Trial", target: _targetBase+" for iOS",  sdk: "iphoneos",          destinationFolder: "./Bin/iOS" });
    xcode.rebuild(_project, { configuration: "Trial", target: _targetBase+" for iOS",  sdk: "iphonesimulator", destinationFolder: "./Bin/iOS" });
}

buildTrial("Source/RemObjectsSDK/RemObjectsSDK.xcodeproj", "RemObjects SDK");
buildTrial("Source/DataAbstract/DataAbstract.xcodeproj", "Data Abstract");

// ...

xcode.rebuild("Tools/DASchemaModeler/DASchemaModeler.xcodeproj", { configuration: "Release",  destinationFolder: "./Bin" });
xcode.rebuild("Tools/DASchemaModeler/DASchemaModeler.xcodeproj", { configuration: "AppStore", destinationFolder: "./Bin" });

// ...

file.copy("Release/*", env["CIReleaseFolder"]);


Among other things, you see this script calls run() on “DataAbstract.train”, which is a subscript that we actually ship with the product, so customers can run it standalone if they want to rebuild DA from source. The console output of “DataAbtract.train” while it is running might look something like this:




Dream:Source mh$ train DataAbstract.train 
RemObjects Train - JavaScript-based build automation
Copyright (c) RemObjects Software, 2012. All rights reserved.
script(da.train) {     
  function buildDAProject(Data Abstract for OS X, macosx) {     
    xcode.rebuild(DataAbstract/DataAbstract.xcodeproj, [object Object]) { }   
    xcode.rebuild(DataAbstract/DataAbstract.xcodeproj, [object Object]) { }   
  } function buildDAProject
  function buildDAProject(Data Abstract for iOS, iphoneos) {     
    xcode.rebuild(DataAbstract/DataAbstract.xcodeproj, [object Object]) { }   
    xcode.rebuild(DataAbstract/DataAbstract.xcodeproj, [object Object]) { ...

Wednesday, 21 November 2012

ASP.NET (Spinner)


Spinner..



<!doctype html>
 
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>jQuery UI Spinner - Default functionality</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
    <script src="/resources/demos/external/jquery.mousewheel.js"></script>
    <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css" />
    <script>
    $(function() {
        var spinner = $( "#spinner" ).spinner();
 
        $( "#disable" ).click(function() {
            if ( spinner.spinner( "option", "disabled" ) ) {
                spinner.spinner( "enable" );
            } else {
                spinner.spinner( "disable" );
            }
        });
        $( "#destroy" ).click(function() {
            if ( spinner.data( "ui-spinner" ) ) {
                spinner.spinner( "destroy" );
            } else {
                spinner.spinner();
            }
        });
        $( "#getvalue" ).click(function() {
            alert( spinner.spinner( "value" ) );
        });
        $( "#setvalue" ).click(function() {
            spinner.spinner( "value", 5 );
        });
 
        $( "button" ).button();
    });
    </script>
</head>
<body>
 
<p>
    <label for="spinner">Select a value:</label>
    <input id="spinner" name="value" />
</p>
 
<p>
    <button id="disable">Toggle disable/enable</button>
    <button id="destroy">Toggle widget</button>
</p>
 
<p>
    <button id="getvalue">Get value</button>
    <button id="setvalue">Set value to 5</button>
</p>
 
 
</body>
</html>

FOR ASP.NET (Draggable)

Enable draggable functionality on any DOM element. Move the draggable object by clicking on it with the mouse and dragging it anywhere within the viewport.




<!doctype html>
 
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>jQuery UI Draggable - Default functionality</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
    <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css" />
    <style>
    #draggable { width: 150px; height: 150px; padding: 0.5em; }
    </style>
    <script>
    $(function() {
        $( "#draggable" ).draggable();
    });
    </script>
</head>
<body>
 
<div id="draggable" class="ui-widget-content">
    <p>Drag me around</p>
</div>
 
 
</body>
</html>

FOR Tooltipe in ASP.NET....



<!doctype html>
 
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>jQuery UI Tooltip - Default functionality</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
    <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css" />
    <script>
    $(function() {
        $( document ).tooltip();
    });
    </script>
    <style>
    label {
        display: inline-block;
        width: 5em;
    }
    </style>
</head>
<body>
 
<p><a href="#" title="That's what this widget is">Tooltips</a> can be attached to any element. When you hover
the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.</p>
<p>But as it's not a native tooltip, it can be styled. Any themes built with
<a href="http://themeroller.com" title="ThemeRoller: jQuery UI's theme builder application">ThemeRoller</a>
will also style tooltips accordingly.</p>
<p>Tooltips are also useful for form elements, to show some additional information in the context of each field.</p>
<p><label for="age">Your age:</label><input id="age" title="We ask for your age only for statistical purposes." /></p>
<p>Hover the field to see the tooltip.</p>
 
 
</body>
</html>



Wednesday, 7 November 2012

hello friends


I’m Sanjeev Yadav from Lucknow. Have Completed B.tech degree in Information Technology and currently working in Software Company. 
Here I’m available for you anytime for support like Asp.net, Sql,Linq,Stored Procedure etc.
So, connect with me and enjoy the life.