How to use dcast function to transform my dataset

How to use dcast function to transform my dataset question : I have a very big dataset. It consist more than 10 million records. It is very difficult to use this much of dataset to apply any algorithm. So, that I trying to restructure this dataset. In my dataset, so many records are … Continue reading “How to use dcast function to transform my dataset”

How to change the locale of a formatted date in Powerpoint VBA

How to change the locale of a formatted date in Powerpoint VBA question : in a powerpoint vba application I want to format a date according to the current spell-check language (which may or may not be the same as the system locale language). e.g. Locale is German(Austria) but the document is in … Continue reading “How to change the locale of a formatted date in Powerpoint VBA”

How to get unique id of a mouse

How to get unique id of a mouse question : I want to get a unique id of a mouse provided that every mouse brand is the same in a laboratory. I have tried using WMIC to get device attributes. My VBS script is this: strComputer = “.” Set objWMIService = GetObject(“winmgmts:” & … Continue reading “How to get unique id of a mouse”

Add new record to Telerik RadGrid

Add new record to Telerik RadGrid question : I have the following Telerik RadGrid, which I’m using in C#: <MasterTableView Width=”100%” EditMode= “InPlace” ClientDataKeyNames=”menuID” CommandItemDisplay= “Top”> <Columns> <telerik:GridBoundColumn DataField=”Name” HeaderText=”Name” SortExpression=”Name” UniqueName=”Name”></telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName=”Type” HeaderText=”Type”> <ItemTemplate> <asp:TextBox ID=”Type” Text='<%# DataBinder.Eval(Container.DataItem, “Type”) %>’ runat=”server”></asp:TextBox> </ItemTemplate> <EditItemTemplate> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName=”List” HeaderText=”List”> <ItemTemplate> <asp:CheckBox ID=”List” … Continue reading “Add new record to Telerik RadGrid”

Getting form field names on Submit when form is user control

Getting form field names on Submit when form is user control question : I am slowly, piece by piece learning what I am doing with ASP.NET I’ve created the beginnings of my new web application, but I am often coming up against the issue that ASP.NET renames elements IDs or in the case … Continue reading “Getting form field names on Submit when form is user control”

How to use StringVar and display the value inserted in a Tkinter Entry?

How to use StringVar and display the value inserted in a Tkinter Entry? question : Scenario is something like this:- I created a label named as Username and created a Entry as entry1 withe the code like below. And I created another label Label2 where I want to display the same value inserted … Continue reading “How to use StringVar and display the value inserted in a Tkinter Entry?”

Django Rest Framework – DELETE ajax call failure due to incorrect CSFR token

Django Rest Framework – DELETE ajax call failure due to incorrect CSFR token question : I’m trying to use the django rest framework to to easily handle some models as restful resources. this is the code that I have: Django: 1.7.1 Django REST Framework: 2.4.4 jQuery: 2.1.1 # models.py class DocumentNodeTemplate(MPTTModel): “”” “”” … Continue reading “Django Rest Framework – DELETE ajax call failure due to incorrect CSFR token”

sorting json arrays in json array using angular js

sorting json arrays in json array using angular js question : I have json array in the following format, $scope.data = [{ “values” : [[“2 Day”, 103.89], [“NextDay”, 107.41], [“Ground”, 428.75]], “key” : “FedEx” }, { “values” : [[“Ground”, 117.8], [“NextDay”, 10], [“2 Day”, 15]], “key” : “UPS” }] I need to sort … Continue reading “sorting json arrays in json array using angular js”

Best way to drag Sprites that are attached via SKPhysicsJoints?

Best way to drag Sprites that are attached via SKPhysicsJoints? question : I’m having trouble moving sprites that are attached via an SKPhysicsJoint. I have a touchesMoved method that looks like this: – (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint positionInScene = [touch locationInNode:self]; CGPoint previousPosition = [touch previousLocationInNode:self]; … Continue reading “Best way to drag Sprites that are attached via SKPhysicsJoints?”

Struts rendering my table wrong

Struts rendering my table wrong question : Can someone Tell me, why my Table is rendered the wrong way? <table class=”ListingTable”> <thead> <tr> <th style=”border-left-style: hidden;”>ProjectName</th> <th>CustomerID</th> <th>Leader</th> <th>DeadLine</th> <th>Status</th> <th style=”border-right-style: hidden;”></th> </tr> </thead> <tbody> <s:iterator value=”projectMaps” status=”Statusindex”> <tr> <td><s:property value=”Name” /></td> <td><s:property value=”CustomerID” /></td> <td><s:property value=”Leader” /></td> <td><s:property value=”DeadLine” /></td> <td><s:property … Continue reading “Struts rendering my table wrong”

iOS Missing Push notification Entitlement warning [duplicate]

iOS Missing Push notification Entitlement warning [duplicate] question : This question is an exact duplicate of: iOS Push Notifications Apple Email [duplicate] In our app we don’t use push notification, we did not enable the push notification in identifier. we create the distribution profile with disable push notification … Continue reading “iOS Missing Push notification Entitlement warning [duplicate]”

Cross domain content loading with javascript

Cross domain content loading with javascript question : Ok, here’s the problem: The remote site needs to pull complex html page content from other domain. Iframe solution is not good enough because of the problem with determining the page height, and cross domain ajax is not allowed on IE browsers. There is JSONP … Continue reading “Cross domain content loading with javascript”

Inplace string replacement in C

Inplace string replacement in C question : Write a function void inplace(char *str, const char pattern, const char* replacement, size_t mlen) Input:str: a string ending with . the input indicates that we need an inplace algorithm. pattern: a letter. replacement: a string. mlen: the size of the memory holds the string str starts … Continue reading “Inplace string replacement in C”

App crash because of auto lock in iphone?

App crash because of auto lock in iphone? question : My app is crashing because of the auto-lock setting time is 2 min and my web-serevice is taking time more than 2 min. if time goes over 2 min then my app crashed every time. but i don’t want to set the auto-lock … Continue reading “App crash because of auto lock in iphone?”

VB.NET How to make a custom system time (real-time) [closed]

VB.NET How to make a custom system time (real-time) [closed] question : So Im stuck here on my project in VB.Net . I wanted to make a user defined date time function that is not dependent on the system time Ive tried to search on the net but they only gave me how … Continue reading “VB.NET How to make a custom system time (real-time) [closed]”

Calculating GPA in awk?

Calculating GPA in awk? question : What I would like the code below to do is parse a file with lines similar to CSC3320,SYSTEM LEVEL PROGRAMMING,3,1,A CSC3210,ASSEMBLY LEVEL PROGRAMMING,3,1,B and calculate the GPA based off of the equation sum of grade * credit hours / sum of credit hours. I attempt to do … Continue reading “Calculating GPA in awk?”

Merge two datatable in to one datatable and remove duplicate as per single column

Merge two datatable in to one datatable and remove duplicate as per single column question : I have two datatable, say T1 and T2. Following are the columns in both table: 1) Filename, 2) Size, 3) PATH, 4) rank, 5) DocTitle, 6) HitCount Now, I need to merge table T1 and T2 but … Continue reading “Merge two datatable in to one datatable and remove duplicate as per single column”

SQL Server – Inserting default values bcp

SQL Server – Inserting default values bcp question : In SQL Server, how to insert default values while using bcp command? Scenario is from the below table, while running bcp command, column ‘sno’ is identity column, where values should increment automatically by 1, data for values column should come from datafile and values … Continue reading “SQL Server – Inserting default values bcp”

Internally in Java primitive booleans are treated like -1?

Internally in Java primitive booleans are treated like -1? question : The other day in a forum I was having a discusion about primitive booleans data types. And one guy said that in ALL languages true internally (or natively) is treated like -1. Is this really the case? PD: We were specially talking … Continue reading “Internally in Java primitive booleans are treated like -1?”

jQuery overlapping images during transition (trying to make background transition)

jQuery overlapping images during transition (trying to make background transition) question : I’m trying to make a background transition between images, but I have this problem, the image appears to be on top on everything during the transition, and covers the fields and buttons. Then it goes behind them again. I have a … Continue reading “jQuery overlapping images during transition (trying to make background transition)”

How to make dynamic text bold having tag in listview?

How to make dynamic text bold having tag in listview? question : I’m developing an application in which I’m parsing JSON data and fixing the result in the listview. In JSON response I’m getting the following response: { “searchdata”: { “webresult”: [ { “title”: “<b>Android</b>”, “desc”: “Discover a new flavor of Jelly Bean … Continue reading “How to make dynamic text bold having tag in listview?”

Changing images on hover

Changing images on hover question : I am trying to change images on hover,i put the default image at size 108×100 and the image that was suppose to change into on hover is at size 161×143 but when i hover image does change but instead of enlarge it gets even smaller. Here is … Continue reading “Changing images on hover”

Redimming a 2d array throws type mismatch

Redimming a 2d array throws type mismatch question : I was working on a solution to another question of mine when I stumble across this helpful question and answer. However implementing the answer given by Control Freak over there throws me a Type Mismatch error as soon as I exit the function and … Continue reading “Redimming a 2d array throws type mismatch”