TDM

0

votes
0

answer
5

views

signalR - web socket connectionData: [] after connection start in ASP.Net MVC

My current application has an online voting process this was previously build feature using signalR older version - 1.1.4 & that online feature working perfectly in older version but later we did some .net version upgrade and we decide to upgrade signalR too. so we upgraded it to 2.0.3 to do this I...
TDM
1

votes
1

answer
872

views

How to check Azure Network Security Group outbound IP Allowed or not?

I have few problems regarding Azure Network Security Group. Currently I'm using Azure App Services to publish my website and in Azure, App Services, Network Side Controlled By NSG such as inbound and outbound security and other things. I'm working with sagepay payment gateway.they asked me to do fol...
TDM
1

votes
2

answer
708

views

create batch file based on date in file name and move files

I have a large number of excel files with filenames that all end in a timestamp that looks like this: examplefile_2018_08_24_110222.xlsx I would like to move all of these files based on the month and year of the timestamp, but I would like the folder name to be the previous month. So for the above e...
tdm
1

votes
2

answer
54

views

SQL Server OVER() clause not behaving as expected

I'm using the OVER() clause to get the running total of payments based on account number and the date the payment was made. I'm then subtracting that running total from the current balance to determine the balance after each transaction was made SELECT no_, amount, SUM(amount) OVER(PARTITION BY no_...
tdm
1

votes
1

answer
58

views

Angular Drop Down 2 way DataBind

I've got an issue with Angular 6 dropdown data binding... This is very basic app & this is for my self study. Its simple.I have separate web api end point to get data & insert data at the moment. its simple student data. & This is my angular view. When user click right side student grid Edit.then re...
TDM
1

votes
2

answer
1.5k

views

Adding and opening a PDF file to an Xcode project in Swift

I'd like to know how to open a PDF file that's stored in my Xcode project in OS X Preview. It doesn't have to be Preview, just the default program that opens PDFs on the user's computer. I'm making a reading program. I'm working with Swift 2 with Xcode 7 and I'm making an OS X Cocoa application. Tha...
TDM
6

votes
1

answer
2.5k

views

How do I add settings to my cocoa application in swift?

I'm pretty new to programming in Swift, and I'd like to know if there is an easy way to add settings/preferences to my Cocoa application in Swift. If possible, I'd like a step by step guide. I mostly want to know how you store the user's preferences on disk and the code part. In my current code it w...
TDM
5

votes
2

answer
90

views
1

votes
2

answer
3.5k

views

Conditional mapping to new objects with a Java Stream

I have a stream of objects (a List) and want to create new objects from that stream, to be inserted into a Set. However, two or more objects in the incoming List may hash to the same Key in the Set, in which case I want to append a String from the nth List object to the one already in the Set instea...
tdm
3

votes
2

answer
560

views

Asp.net MVC4 Parallel Programming for multiple API calls

I have a few problems regarding ASP .NET MVC 4 Parallel Programming. I want to use Parallel programming, because of receive data from multiple API calls at same time. Here are some small examples RootObjectRS fairsearchRS1 = new RootObjectRS(); RootObjectRS fairsearchRS2 = new RootObjectRS(); RootO...
TDM
13

votes
1

answer
3.9k

views

Restore cursor position after changing contenteditable

There is html like this: Some text here And content of div should dynamicly highlight some words while user types e.g make something like: Some text here highlight it $(document).ready(function () { var input = $('#textarea').on('input', function (event) { var newText = input.text().replace('highlig...
Tdm
3

votes
1

answer
693

views

CDI producer method for data model

I'd like to be able to @Inject a data model backing a RichFaces 4 ExtendedDataTable, but it requires an EntityManager to do its work. The EntityManager's queries need to know the Class, of course, and I'd rather not pass that into method calls (in this case the methods are not called by my code); id...
tdm
2

votes
3

answer
129

views

sum() not working as expected

I have a query that pulls the monthly income of individuals. What I would like to get the sum of their different incomes (2 jobs, pension, etc). Since they are monthly values I also need to multiply by 12 to get their total yearly income select DISTINCT f.monthly * 12 as [Income] FROM Money WHERE I...
tdm
1

votes
2

answer
33

views

how to separate and sum 2 columns based on condition

I'm doing a select statement and I have a column I would like to separate into 2 columns based on their type, and then get the sum of the amounts grouped by an ID I want all the gold and platinum types in one column, and all the silver and bronze in a 2nd column, then summed and grouped by the ID so...
tdm
14

votes
4

answer
5.6k

views

Code Signature Invalid

Recently, I wasn't able to run some of my apps in Xcode. They would build, then quit without showing up. So I tried going into the Debug folder and starting the app manually. I ended up getting an error report from macOS telling me that the exception type was 'Code signature invalid'. I also ran a t...
TDM
2

votes
4

answer
2.8k

views

How can I disable the close button?

I need some help with figuring out how to disable/hide the close, minimize, and resize buttons in OS X Cocoa and Swift 2. Here's the code I tried. I know it's for the Title Bar, but I thought I'd try it anyway: self.window.titleVisibility = NSWindowTitleVisibility.Hidden; Does any one know how to do...
TDM
2

votes
1

answer
76

views

VisualSVN on Windows Azure Virtual Machine

Any one have a idea about setup visual svn on microsft azure and access it through different macine? I just add Azure VM and Inbound and Outbound port set to 8443 and same port i used for visualsvn.but i cannot access it through different macine. I cannot use Classic VM on My Azure. My Previous azur...
TDM
5

votes
2

answer
1.6k

views

Custom pom.xml filename in Maven multimodule for Tycho

I have a project with a couple of dozen Eclipse plugins, all inter-related and living in different subfolders. The build was converted to a multi-module manifest-first Tycho build a couple of years ago and it works quite well. One of the plugins is rather key, and can also be built as a standalone J...
tdm
8

votes
3

answer
80

views

Isolate alphabetical strings within a larger string

Is there a way to isolate parts of a string that are in alphabetical order? In other words, if you have a string like this: hjubcdepyvb Could you just pull out the portion in alphabetical order?: bcde I have thought about using the is.unsorted() function, but I'm not sure how to apply this to only a...
tdm
2

votes
1

answer
93

views

How to enable buttons in MessageUI (Swift 4)

I'm trying to enable the Camera and Apps buttons in MessageUI for my app. I haven't found any place in Apple's documentation on how to do this. Any ideas? Thanks! UPDATE: I found a disableUserAttachments() function in Apple's documentation, which is the opposite of what I'm looking for. Apple specif...
TDM