Dave K

0

votes
0

answer
25

views

Assign PHP Value Based Off Input Value

I'm trying to take an input value and assign it to a PHP array. I believe I need to use AJAX, but I keep getting caught up because I need to use PHP to call to the API. Just in case that's confusing: I need the user to be able to type in the area code and in the dropdown list the array will call out...
Dave K.
1

votes
2

answer
226

views

Is Flash Remoting Services dead?

I have a potential client that build something with Flash Remoting Services. It looks there was some sort of server product offered back in 2002-2003, but I've been unable to see if it did anything so complex that it could not be replaced with a simple webservice. Does any one know what happened t...
Dave K
1

votes
1

answer
1.2k

views

converting datetime from character string on insert via- set @sql=' …'

i have a procedure in microsoft sql server 05 who's job is to take a call to it and send it to other databases based on a user id. i can't get a datetime(birthday) sent properly. here's an abbreviated code segment... ALTER procedure [dbo].[spAddCustomer] @ID as integer = 125, @databaseID as inte...
dave k
1

votes
1

answer
1.3k

views

How to elminate “unsigned driver” install error for RNDIS driver on WInXP?

We have an application which uses the RNDIS USB driver, aka 'Linux USB Ethernet/RNDIS Gadget' to talk to a linux based embedded device. We have digitally signed (with a Verisign certificate) this driver for use with Windows 7. This eliminates an 'unsigned driver' error message on install. On XP, h...
Dave K
1

votes
1

answer
1.2k

views

Rake Cucumber on RVM 1.8.7-p334

Im hitting a bit of a wall when running rake cucumber on my dev environment using rvm ruby-1.8.7-p334 I get the following output rake aborted! undefined method `desc' for # /home/dave/.rvm/gems/[email protected]/gems/cucumber-0.8.5/lib/cucumber/rake/task.rb:140:in `define_task' /home/dave/....
Dave K
1

votes
1

answer
796

views

programmatically restart sql server is win7

I have vs2010 click once winform program that performs the setup for another program. This setup program makes sure that they sql server is installed, creates the database/logins/tables, enables mixed mode, restarts the sql server(2008 express) then adds the stored procedures using the login and pre...
dave k
1

votes
3

answer
179

views

insert @@identity in the middle of string during insert

I'm not sure if this is possible, but basically I want to do something like this... insert into [DNSList].[dbo].[myTable] ([myValue]) values ('hello ' + convert(varchar,@@identity) + 'world') Storing a value in the DB to be retrieved later and need a unique value in a certain place of the string, so...
dave k
1

votes
1

answer
1.8k

views

How to retain parameters for xtraReport with a dataset as the datasource

I have a devExpress xtraReport that is being supplied by a strongly typed dataset. As long as I'm hard coding two parameters into the Actions, it loads the data into the dataset and displays in the report. Once I try to make it pass the values from the main page down through the partial, it fails. M...
dave k
1

votes
1

answer
654

views

remove the ajax request when redirecting

I have an Ajax form with 3 buttons for submission/cancel. The Post goes through fine and when it redirects to the next page it should go to, the correct action is called, but that new Action detects it as an Ajax request and instead of returning the full page, it tries returning a partial. View cont...
dave k
1

votes
1

answer
77

views

Route to multiple projects

I'm trying to create a webapi solution consisting of the main project with other projects as additional endpoints. If the additional projects could not be dependency of the main, that would be great too. Structure would be something like: MainWebApiProject accessed as example.com/api/Values SubPr...
dave k
1

votes
3

answer
0

views

Hidden data in Excel, extracting data originally linked to an MDB file

I received an Excel file that references some data from a MDB file. When I open the file, I am only able to see summary based on dropdowns and pivot tables. The data from the MDB file appears to have been embedded in to the XLS file itself. If I look at the file in Notepad++ I can see the informat...
Dave K
0

votes
1

answer
0

views

What is best practice node.js recommended port in production environment?

I have created a chat app in node.js using port 4000. Everything works just fine, but when I rolled it out in production, I found that many corporate networks block outgoing port 4000. I considered using other ports that would be more likely to be open on a corporate network, but then found this l...
Dave K
1

votes
3

answer
558

views

Is it possible to request articles that match more than one category in WordPress API?

These apis work perfectly. http://domain.com/wp/api/get_tag_posts/?tag_slug=banana http://domain.com/wp/api/get_category_posts/?category_slug=featured Is there any way to join multiple tags or categories into a single request? E.g. http://domain.com/wp/api/get_category_posts/?category_slug=featured...
Dave K
1

votes
1

answer
165

views

adding comments to a couchdb design doc

Is there a way to enter comments into a couchdb design doc? The queries can get pretty cryptic, and it would be really nice to be able to write a brief human description of what they do.
Dave K
1

votes
2

answer
38

views

Git how to fix dead origin/master branch?

Given the following notional Git history: A--B--C (origin/master) *dead branch* \--D--E (working) *live branch, preferred master* Is there any way to move origin/master to the working live branch, and keep on rolling? I'm very aware of 'Why'd you let origin/master go dead? Don't do that',...
dave_k_smith
1

votes
2

answer
413

views

dynamic sql - trying to save value

hey there, basically trying to get the [Field ID] saved into @fieldID so i can use it at another point in the SP. tried various combinations, but i mostly get errors of 'Conversion failed when converting the varchar value ... to data type int. The [field ID] is an int and primary key. i've even tri...
dave k
1

votes
1

answer
778

views

Add PdfPCell to Paragraph

I'm trying to add a TextField (acrofield) in the middle of a Paragraph sentence using iTextSharp. An example would be 'The Effective Date is [Day] day of [Month], [Year] that this will begin.' Things I have tried: Paragraph para1 = new Paragraph(); para1.Add(New Phrase('The Effective Date is',fontBo...
dave k
2

votes
2

answer
2.2k

views

streamReader ArgumentNullException

Hey there, I have a program that uses a sql express local DB. I want to be able to update that DB using the program to run the necessary scripts. A text files has been added as an embedded resource to the project (VS2010), and the file contains text. It fails to open the file though. I get an 'Argum...
dave k
16

votes
2

answer
12k

views

SQL returns less results when using UNION?

I have a SQL Server stored procedure that doesn't give me all the results when I add in the union and the second half. The first half will give me all 6 results, using the union, I only get 5. There are 3 patients with their own [chart number], each have 2 items that should be displayed. if the [C...
dave k
2

votes
2

answer
552

views

Simple file downloader

I am fairly new to php and have managed to string together this simple download script by reading some of the questions listed here at SO and would like to ask those of you that are more familiar with php to take a look at the code below and see if there are any glaring flaws with my implementation...
Dave k
6

votes
3

answer
2.2k

views

When creating a WCF project in VS2010, I get “Error : WcfProject.csproj cannot be opened. The project type is not supported by this installation”

hey there. So, we have a VS2010 project and the VisualSVN server on one machine. We added a new machine with the client visual svn and the projected loaded in. except for the WCF service. i'm getting a... ' error : the project file c:/..../wcfProject.csproj cannot be opened. The project type is not...
dave k
2

votes
3

answer
5.4k

views

sql- exceeding variable size in a exec?

I inherited some partially complete sql code that I can't get to work. it accesses multiple databases, so it first searches for proper database using a userID number, then inserts that database name into a query. the part i'm having a problem with (extremely abbreviated) is... DECLARE @sql AS VARCHA...
dave k
2

votes
4

answer
109

views

aggregate function on separate table

I'm trying to select most recent date from one table (invoice) to a customer on another table. I'm not looking for a single customer, but several. What I want to do looks something like this: select C.[Last Name], C.[First Name], C.[State], I.[Date] From myDb.dbo.Customer C left join myDb.dbo.In...
dave k
2

votes
3

answer
237

views

Checklistbox as processed

I'm trying to uncheck a checkboxlist item after I process each checked item and I'm not sure how to go about this. Basic rundown of code string selectedNote=''; foreach (object itemChecked in chkbxSnVisits.CheckedItems) { DataRowView drView = itemChecked as DataRowView; selectedNote = drView['id'].T...
dave k
3

votes
2

answer
6.2k

views

VisualSVN change existing URL

The company I work for has updated it's DNS server and changed it's name. Now I can't get VisualSVN to accept the change. The URL was https://dev.xyzdns.local:8443/svn/project and now it needs to be https://dev.xyz.local:8443/svn/project. If I try to change the URL in Visual Studio 2010, it comes u...
dave k
3

votes
2

answer
3.2k

views

Recommendations on Max File Upload Size in IIS

I realize the answer to this question is dependent on the specific server used, but curious if people have recommendations on a max file size limit to allow from an ASP.NET web form. Working for a Printing Company who wants to allow uploads from graphic designers. I know they will exceed whatever...
Dave K
22

votes
3

answer
21.1k

views

Detecting https from HttpContext in .net?

I've inherited a pile of code for a web app which contains oodles of hard-coded paths. I've been tasked with trying to get it to run using https://. Other than detecting 'https://' in the URL is there a more inband way to detect that the current context is https? Looking for something like: Syst...
Dave K
2

votes
1

answer
856

views

Having trouble with py.test remote

I love py.test and am trying to get the remote test execution feature to work so I can run tests on a remote machine. There is very little doc and I am getting frustrated with it. Any help figuring out what I am doing wrong is appreciated. Here is my command line on the main server: c:\Python26\S...
Dave K
12

votes
6

answer
7.6k

views

Intermittent error thrown, “A required anti-forgery token was not supplied or was invalid.”

I'm occasionally getting this error during normal use, and I've not found a way to stop it without removing the attribute that requires the token, which I'd rather not do. I've gotten this bug during my own testing (but seemingly randomly) and I know from my logging that actual logged-in users are g...
Dave K
6

votes
8

answer
3.6k

views

Need simple system design problems for interviews [closed]

I am interviewing senior developer candidates and would like to have them think through a design problem as part of the interview. I would like something that involves front end, middle, and database. It should have some a data modeling challenge and more. What do you think?
Dave K
2

votes
2

answer
1.2k

views

combobox focus on beginning of text after selection

I'm using winforms with a combobox that has a wider drop down width than it's size. when a user selects something from there, it displays just the ending of the text instead of the beginning. how do i default it to show text starting with the start of the string? ie. combobox has items Atlanta Georg...
dave k
12

votes
2

answer
18.7k

views

Chinese language codes

We are updating an old .net 1.1 website to 2.0. The site currently supports Chinese (Traditional) & Chinese (Simplified) I'm getting a run time error when trying to detect the language & culture using the codes: zh-CHS (simified) & zh-CHT (traditional): Please select a specific culture, such as zh-...
Dave K
3

votes
4

answer
121

views

Getting text to go the entire width of a textarea in firefox

Please view the following fiddle in Firefox and you will see that the line of text in the textarea is getting cut off mid way through because of the long file name, but in IE and Chrome, the line goes the entire width of the textarea and only wraps once it has reached the end. I would like to achive...
Dave k
23

votes
4

answer
42.9k

views

Basic Excel currency format with Apache POI

I'm able to get cells to format as Dates, but I've been unable to get cells to format as currency... Anyone have an example of how to create a style to get this to work? My code below show the styles I'm creating... the styleDateFormat works like a champ while styleCurrencyFormat has no affect on t...
Dave K
2

votes
2

answer
676

views

encrypting username in asp.net mvc5 login

I want to encrypt the username for the login of an asp.net mvc5 site. When the controller calls var result = await UserManager.CreateAsync(user,model.Password); to register a new user, I get an error telling me User name abc/12&3== is invalid, can only contain letters or digits. I'm guessing I cann...
dave k
2

votes
3

answer
3.1k

views

jScroll callback to fade in new content

I am trying to fade in the new content loaded by jScroll with the callback option. This is what I've tried so far, but with no success. CSS .jscroll-added { position: relative; float: left; width: 100%; opacity: 0; } JavaScript function neueFade() { jQuery('.jscroll-added').delay(1000).animate({ op...
Dave K
3

votes
2

answer
928

views

spell checker reccommendation [closed]

have been going through here and google looking for a spellcheck solution. I see there are LOTS of items, but most of them are a year or more old...so I'm bringing the subject up for a fresh perspective. The project is a vs2010 c# winforms with currently 18 windows and growing. So definately want so...
dave k
13

votes
7

answer
18.7k

views

How to restart Linux from inside a C++ program?

I have a Qt 4 GUI where I need to have a option in a drop-down menu that allows the user to choose to restart the computer. I realize this might seem redunant with the ability to restart the computer in other ways, but the choice needs to stay there. I've tried using system() to call the following:...
Dave K
3

votes
7

answer
492

views

How does Test Driven Design help a one man software project?

I've spent a lot of time building out tests for my latest project, and I'm really not sure what the ROI was on the time spent. I'm a one man operation, and I'm building web applications. I don't necessarily have to 'prove' that my software works to anyone (except my users), and I'm worried that I...
Dave K
3

votes
1

answer
238

views

Flat file source with EzApi

Does anyone have any examples of using EzAPI with a flat file as the data source? All the examples in the documentation start with OleDB connections. Specifically I can't work out how to define input and output columns. Say, for instance, that I have a CSV file with columns for firstname, surname a...
Dave K

View additional