App-V 5.x Interview Questions.


What is the use of Package Accelerator
App-V Package Accelerators enable application packaging easily and automatically without monitoring the application installation while following a step-by-step recipe.
What does Package Accelerator contains
It contains the following types of files

·         DeploymentConfig and UserConfig XML files.

·         Manifest file

·         Any files created by the app at time of sequencing containing customizations etc. that are not provided by the installation files

·         Files necessary for the virtual environment and streaming optimization

What type of installation files not supported by App-V Package Accelerator
Self extracting executable installation files are not supported.
Can powershell be used to create the Package Accelerator
yes
Can powershell be used to create the App-V Package using Package Accelerator
yes, Powershell needs to run in elevated privilege.
How App-V Package Converter works
It is a powershell script

— Work in Progress —

JQuery: Sample: simple Jigsaw Puzzle


<!DOCTYPE html>
<html>
<head>
<title>test</title>
<style>
div {
display: block;
width: 100px;
height: 100px;
/*background-color: orange;*/
border: 1px solid orange;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
float: left;
}
#countdown{
display:block;

width: 5em;
height: 2em;
margin-right: auto; margin-left: auto;
text-align: center;

}
</style>

</head>
<body>
<div style=”width: 100%; height: 420px;”>

<div style=”width: 410px; height: 410px; background: url(us3.JPG);” >
<div style=”background:url(us3.JPG); background-position: -200px -100px ;”></div>
<div style=”background: url(us3.JPG); background-position: -100px 0 ;”></div>
<div style=”background: url(us3.JPG); background-position: 0 -300px ;”></div>
<div style=”background: url(us3.JPG); background-position: -100px -200px ;”></div>
<div style=”background: url(us3.JPG); background-position: 0 -100px ;”></div>
<div style=”background: url(us3.JPG); background-position: -100px -300px ;”></div>
<div style=”background: url(us3.JPG); background-position: -200px 0 ;”></div>
<div style=”background: url(us3.JPG); background-position: -300px -200px ;”></div>
<div style=”background: url(us3.JPG); background-position: 0 0 ;”></div>
<div style=”background: url(us3.JPG); background-position: -200px -200px ;”></div>
<div style=”background: url(us3.JPG); background-position: -300px -100px ;”></div>
<div style=”background: url(us3.JPG); background-position: -100px -100px ;”></div>
<div style=”background: url(us3.JPG); background-position: -200px -300px ;”></div>
<div style=”background: url(us3.JPG); background-position: -300px 0 ;”></div>
<div style=”background: url(us3.JPG); background-position: 0 -200px ;”></div>
<div style=”background: url(us3.JPG); background-position: -300px -300px ;”></div>
</div>

<div style=”width: 410px; height: 410px; align:center; float: right;”>
<p>
Arrange the blocks in this block
</p>
</div>
</div>

<div id=”countdown” style=”left: 50%; “> </div>

<button style=”width: 10em”>start</button>

<script src=”js/jquery-1.9.1.min.js” ></script>
<script src=”js/jquery-ui.min.js”></script>
<script>
var select = false;
var count = 120;
$().ready(function(){
$(“.block”).hide();
})
$(“button”).click(function(){
$(“.block”).show();
setInterval(function(){
count = count -1;
$(“#countdown”).text(count);
}, 1000);
});
$(“.block”).mousedown(function(e) {
var element = this;
var x= e.pageX – this.offsetLeft;
var y = e.pageY – this.offsetTop;
if (select == false){
select = true;
$(window).bind(“mousemove”, function(e1){
$(element).css({
“position” : “absolute”
});
$(window).css({
“-webkit-user-select” : “none”
});
$(element).css({
“left” : (e1.pageX – x) + “px”
});
$(element).css({
“top” : (e1.pageY – y) + “px”
});

})
}else{
$(window).unbind(‘mousemove’);
select = false;
}
});
</script>
</body>
</html>

CSS: Rotate text 270Degree


  <style>
    .Rotate-90
    {
        display: block;
        position: absolute;
        right: -5px;
        top: 15px;
        -webkit-transform: rotate(-90deg);
        -moz-transform: rotate(-90deg);
    }
</style>
<!–[if IE]>
    <style>
     .Rotate-90 {
      filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
      right:-15px; top:5px;
     }
    </style>
    <![endif]–>

  <!– end CSS–>

JQuery: FadeOut-FadeIn


body{
font-family:Arial,sans-serif;
margin: 0px;
padding:0;
}
.container {
height: 400px;
width: 100%;
float: left;
clear: both;

}

.right {

float: right;

}

.left {
/*behavior: url(pie/PIE.htc);*/
-webkit-border-radius: 5px;
-webkit-border-top-right-radius: 0;
-moz-border-radius: 5px;
-moz-border-top-right-radius: 0;
border-radius: 5px;
border-top-right-radius: 0;
border: 6px solid orange;
height: 400px;
overflow: auto;
padding: 1em;
float: none; /* not needed, just for clarification */
background: #e8f6fe;
/* the next props are meant to keep this block independent from the other floated one */
width: auto;
overflow: hidden;
}

.tabItems{
height: 2.5em;
vertical-align: middle;
display:table-cell;
vertical-align:bottom;
/* background-color: #6699FF; */
float: left;
width: 9em;
cursor: pointer;
}
.tabItems:hover{
color: white;
height: 2.5em;
vertical-align: middle;
-webkit-border-top-left-radius: 10px;
-webkit-border-top-right-radius: 10px;
-moz-border-top-left-radius: 10px;
-moz-border-top-right-radius: 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
background-color: #FF8300;

}

#mymenu{
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-top-right-radius: 5px;
-moz-border-bottom-right-radius : 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
border-right: 6px solid orange;
border-top: 6px solid orange;
border-bottom: 6px solid orange;
border-top-left-radius: 0;
width: 9em; float: left; margin: 0;
}

.clearfix:after {
content: “.”;
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}

.clearfix {
display: inline-block;
}

#menu{
display: table;

height:2.5em;

text-align: center;
clear:both;

margin: 0;
padding:0;

background-color: #FFDBB5;

width: 100%;float: none;
/*border: 1px solid green;*/
}
#content1{
/* Firefox */
height: 400px;
display: block;
-webkit-border-bottom-right-radius: 15px;
-webkit-border-bottom-left-radius: 15px;
-moz-border-bottom-right-radius : 15px;
-moz-border-bottom-left-radius : 15px;
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;
border: 5px solid #FF8300;
box-sizing:border-box;
margin: 0;
padding:0;
position: relative;

}

$().ready(function(){
$(“#menu > dd”).hide();
$(“#menu > dt”).addClass(“tabItems”);

$(“.tabItems”).on(“click”, function(){
var tab = $(this);
var cont = $(“#content”);
cont.fadeOut(“fast”,function() {
cont.html($(tab).next().html());
cont.fadeIn(“slow”);
});
});
})

This is a test

<!–

–>

MJ

section 1

Property Values

Value Description Play it
none The element will not be displayed at all Play it »
box (or flex-box) The element is displayed as a block-level flex container box  
block The element is displayed as a block-level element (like paragraphs and headers) Play it »
flex The element is displayed as a block-level flex container box  
inline This is default. The element is displayed as an inline-level element
(like span)
Play it »
inline-block The element is placed as an inline element (on the same line as adjacent content), but it behaves as a block element
inline-flex The element is displayed as an inline-level flex container box  
inline-table The element is displayed as an inline-level table  
list-item The element is displayed as a list-item, which means that it has a bullet in front of it Play it »
table The element is displayed as a table
table-caption The element is displayed as a table caption
table-cell The element is displayed as a table cell
table-column The element is displayed as a table column
table-column-group The element is displayed as a table column group (like <colgroup>)
table-footer-group The element is displayed as a table footer row group
table-header-group The element is displayed as a table header row group
table-row The element is displayed as a table row
table-row-group The element is displayed as a table row group
inherit The value of the display property will be inherited from the parent element


test123

section 2
Johri, Mayank 10:48 PM
section 3
this is section three
section 4
this is section four
left content flexible width

Tips: HTML/JQuery: Accessing parent functions


I wanted to call parent function from another html file (test1.html) which is viewed inside the index.html. My problem was that  when someone clicks any link in test1.html, they do not open inside index.html but instead were as standalone page, so to over come this issue i added a function test() in test.html which will redirect the output of the licked link inside index.html. The code of both the files is below.

I created a index.html

<!DOCTYPE html>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<meta http-equiv=”Content-Language” content=”hi”>
<link href=”css/tags.css” rel=”stylesheet” type=”text/css”>
<link href=”css/styles.css” rel=”stylesheet” type=”text/css”>
<base />
<!– target=’contentFrame’ –>
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js”></script&gt;

<script>
     $(document).ready(function(){
        loadNewPage(‘test.html’);
     });
  </script>

<script>
    function loadNewPage(temp) {
        $(‘#content’).load(temp);
    }

</script>

</head>
<body style=”background: #880601;”>
    <div id=”test”/>
    <div id=”content”     style=”width: 100%; height: 100%; background: white;”></div>

</body>
</html>

and test1.html

<html>
<head>
<!– target=’contentFrame’ –>
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js”></script&gt;
<script>
    function test(){
        parent.loadNewPage(“test1.html”);
    }
</script>

</head>
<body>
ttesta
    <a onclick=”test(); return false;” href=””>test1</a>
    <a href=”google.html”>test1</a>
</body>
</html>

 

Tips: FreeBasic: CopyFolder


#Include once "dir.bi"
#Include once "file.bi"
#Include Once "string.bi"
#include once "ext/strings/strsplit.bi"
#Include Once "win/shlobj.bi"

sub copyfolder(dirName as string, dstdir as string)
    const attrib_mask = fbDirectory  or fbNormal Or fbHidden Or fbSystem or fbReadOnly or fbArchive
    dim as uinteger out_attr
    dim fileName as string
    dim absname as String
    
    fileName = Dir(dirName + "\*", attrib_mask, out_attr)
    print "fileName >>>> " + fileName
    Do Until Len(fileName) = 0 '' loop until Dir returns empty string
        If (fileName <> ".") And (fileName <> "..") Then '' ignore current and parent directory entries
     
            absName = dirName & "\" & fileName
            '
            If out_attr And fbDirectory Then
                dim d as string
                d = right(absName,Len(absName) - InStrRev(absName, "\"))
                Print "d = " + d        
                Print "absName =" + absName                
                dstDir = dstDir + "\" + d 
                Print "DST = " + dstdir
                
                SHCreateDirectoryEx(0,StrPtr(dstDir),0)
                copyfolder(absName, dstDir )
            Else
                dim d as String
                d = right(absName,Len(absName) - InStrRev(absName, "\"))
                SHCreateDirectoryEx(0,StrPtr(dstDir),0)
                FileCopy(absName, dstdir + "\" + d)
                Print "file: " + absName + " DST: " + dstDir
            End If
        End If
      fileName = Dir(out_attr)
    Loop
end sub

Compile juce dll using code::block and mingw.


  1. Import solution from “Build\VisualStudio2008_DLL”
  2. add liboleaut32; libshell32.a; libole32.a; libvfw32.a; libwinmm.a; libwininet.a;libws2_32.a; libdsound.a; libwsock32.a; libwldap32.a; libkernel32; libopengl32.a; libglu32.a; libuuid.a; librpcrt4.a; libgdi32.a; libcomdlg32.a; libversion.a; libdsound.a; libshlwapi.a  in library.
  3. add  “#ifndef _WIN32_WINNT
    #define _WIN32_WINNT 0x0501
    #endif” when you get “error: ‘getaddrinfo’ was not declared in this scope”  error while compiling.
  4. Set -mach=i586 in compilation option.
libwininet.a
libdsound.a
libole32.a
libwinmm.a
libgdi32.a
libuuid.a
libshell32.a
libvfw32.a
librpcrt4.a

Bug: Zune: File fails to sync with Zune


When I first got zune for myself, I was very happy that for only $90 I am getting 30GB Zune, but in few days only i found that it is not for persons like me, who like freedom and simplicity.

Anyway one of the biggest problem I found was that Zune can not be sync’ed on Linux because Microsoft forgot that there might be people (like me) who might not have Windows as Operating System.

TIPS: Most Important Calls From The RunDll32.exe & Shell32.Dll …


Most Important Calls From The RunDll32.exe & Shell32.Dll …
RUNDLL32.EXE shell32,SHFormatDrive’,sw_normal
Module Command Result
main.cpl rundll32.exe shell32.dll,Control_RunDLL main.cpl @2 displays the Printers Folder (including Add Printer
rundll32.exe shell32.dll,Control_RunDLL main.cpl @3 displays the Fonts Folder in Explorer view
rundll32.exe shell32.dll,Control_RunDLL main.cpl @ displays Power Management Properties
Modem.cpl rundll32.exe shell32.dll,Control_RunDLL modem.cpl,,add Runs the Add New Modem wizard
Mmsys.cpl rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0 displays the Multimedia/Audio property page
rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,1 displays the Multimedia/Video property page
rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,2 displays the Multimedia/MIDI property page
rundll32.exe shell32.dll,Control_RunDLLmmsys.cpl,,3 Multimedia/CD Music property page
rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,4 displays the Multimedia/Advanced property pag
rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl @1 displays the Sound Properties page
Netcpl.cpl rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl displays the Networks properties, Configuration tab
Odbccp32.cpl rundll32.exe shell32.dll,Control_RunDLL odbccp32.cpl displays the ODBC32 Data Source Administrator propertie
Shell32.dll rundll32.exe shell32.dll,OpenAs_RunDLL {drive:\path\filename} displays the application/file "Open With" dialog
Password.cpl rundll32.exe shell32.dll,Control_RunDLL password.cpl displays the Passwords properties, Change Passwords tab
Powercfg.cpl rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl displays the Power Management properties, Power Schemes tab
Intl.cpl rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0 displays the Regional Settings property page
rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,1 displays the Numbers property page
rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,2 displays the Currency property page
rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,3 displays the Time property page
rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,4 displays the Date property page
Divers RUNDLL.EXE rnaui.dll,RnaWizard Dial-Up Network connection wizard
RUNDLL.EXE shell,shellexecute Open Explorer window
sysdm.cpl,InstallDevice_Rundll Hardware Installation wizard
RUNDLL.EXE user,cascadechildwindows Cascade all windows
RUNDLL.EXE user,MessageBeep default beep sound
RUNDLL.EXE user,repaintscreen same as F5 in an Explorer window
RUNDLL.EXE user,setcursorpos cursor is set to the upper left
RUNDLL.EXE user,SwapMouseButton swapping mouse buttons
RUNDLL.EXE user,tilechildwindows Tile all windows
RUNDLL.EXE user,wnetconnectdialog Map Network drive
RUNDLL.EXE user,wnetdisconnectdialog Unmap Network drive
RUNDLL.EXE user,ExitWindows Exit Windows
RUNDLL.EXE user,ExitWindowsExec Restart Windows
RUNDLL32.EXE rnaserv,CallerAccess start Dial-Up Server
RUNDLL32.EXE shell32,Control_RunDLL start Control Panel
RUNDLL32.EXE shell32,Control_RunDLL X "X" = any CPL filename
RUNDLL32.EXE shell32,OpenAs_RunDLL "Open with" dialog box
RUNDLL32.EXE shell32,ShellAboutA About in an Explorer window
RUNDLL32.EXE shell32,SHExitWindowsEx X Exit Windows, where these values apply for X:
1: Exit Windows
2: Reboot PC
4: Close all applications
8: Exit Win and turn-off ATX-compatible PC
0: Restart Windows shell
-1: Restart Explorer
RUNDLL32.EXE shell32,SHFormatDrive "Format Disk" dialog box
RUNDLL.EXE krnl386.exe,exitkernel Exit Windows without prompting