alc6379 120 Cookie... That's it Team Colleague

I would hope so-- I was just trawling through the Unanswered section.

It's my general opinion that "converting" one language to another is generally a mess, especially when the languages might have different paradigms or philosophies. Plus, even if someone writes a converter that translates different library calls, not just the base language, you're at the whim of that person's opinions as to how the code should be translated.

ddanbe commented: Indeed! +15
alc6379 120 Cookie... That's it Team Colleague

You're probably going to have to rewrite this from scratch. There are a lot of Python libraries that don't have direct analogs to C# libraries, so you'll have to figure out on your own what the code does, and how to interpret it as C#.

alc6379 120 Cookie... That's it Team Colleague

Yep. You're supposed to require it in each module.

I mean, technically you could declare the functions you wanted as variables and then inject them into the module functions that would use them, but that's kind of an anti-pattern in Javascript.

...Which is kind of funny if you're used to a language like C#, where constructor/dependency injection is all the rage. However, there are pros and cons to each approach. If you require the npm module in your module, you're tightly coupled to that module. If you inject the particular function into your module, you aren't tightly coupled, and you can change what function is called at will, based on what you injected. This could make your code more testable.

Some frameworks like Angular have DI systems built in, or you can Google "npm dependency injection" if this sounds like something you need.

alc6379 120 Cookie... That's it Team Colleague

Doesn't look possible with pl/SQL, but according to this post, you might be able to write something in Java or C to do it, and run it as an external proc:

https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584

alc6379 120 Cookie... That's it Team Colleague

What is or isn't happening? Can you put a breakpoint on BtnLogin_Click and see if it hits that method, then walk through it?

Does that button need to be a postback trigger? Can it be an AsyncPostbackTrigger?

What is the rest of the code on the page? If you've got an UpdatePanel inside of an UpdatePanel, you might be setting yourself up for a bad time.

alc6379 120 Cookie... That's it Team Colleague

Well, professionally, I was always a Windows/C# guy. Now? Javascript, Node, Groovy, Linux, Docker, Kubernetes... I'm getting paid to do open source now!

alc6379 120 Cookie... That's it Team Colleague

There are a whole lot of projects that are attempting to do this. I suggest you try one of the options in this Google search:

https://www.google.com/search?q=convert+web.config+to+htaccess&oq=con&aqs=chrome.3.69i57j69i61j69i60j69i59j69i65l2.1719j0j7&sourceid=chrome&ie=UTF-8

But, that's a pretty darn big web.config. I'm going to bet that you're still going to have to do a lot of manual cleanup. Why not start from scratch using the original web.config as a guide?

alc6379 120 Cookie... That's it Team Colleague

What do you get when you run fdisk -l? do you have partitions on the drive?

Usually the drive is partitioned, and you'd mount /dev/sdd1, not /dev/sdd, which it looks like it's trying to do.

alc6379 120 Cookie... That's it Team Colleague

I sometimes wind up with insomnia myself. I'm not one for taking supplements or anything, but for those times I really can't get to sleep, 5-10mg of melatonin can definitely help.

Also, you don't have to exercise right before bed, but getting in any exercise during the day can make a big impact. I try and ride my bike anywhere from 30 minutes to 2 hours a day, depending on what my workload looks like. I can definitely say that even on the days I ride for 30 minutes, I usually go to sleep way earlier than I otherwise would.

alc6379 120 Cookie... That's it Team Colleague

Well I'm back after... how many years?

I've moved 600 miles from where I was, had 3-4 different jobs, got divorced, had a kid... My life has changed completely. So has this site.

I might try and stick around and see if I can be a part of the community again, as my life allows now. My skillsets have changed, so has my ability to help.

I'm fine with the changes! Good to see Daniweb is still around!

alc6379 120 Cookie... That's it Team Colleague

I don't think that's how you're going to want to do it, honestly.

Why not have another table that just sets the "expiration" date of whatever it is you're doing, and then just check the database to see if the current time is greater than that expiration date?

alc6379 120 Cookie... That's it Team Colleague

Are you saying your problem is that you don't have the type to reference in the client?

There are two ways of handling this-- if you just use the Employee item as a data transfer object between the data access layer and the service layer, then you should make another object that the service layer and the service client share as a data contract. Then, you turn the Employee object into that data contract object, and send it along.


If you don't want to do that, put the Employee class into its own project that can be referenced by all of the projects.

alc6379 120 Cookie... That's it Team Colleague

This is a pretty easy task. What have you tried so far? We don't do your assignments for you.

alc6379 120 Cookie... That's it Team Colleague

These are for GSM (cellular) modems, I think.... They may not be supported by your modem. You might want to check if your modem has an extended command set that supports what you're trying to do.

alc6379 120 Cookie... That's it Team Colleague

Why would you want to do this, anyways?

alc6379 120 Cookie... That's it Team Colleague

Sounds like you need to manually parse this CSV file. OLE Providers are meant for pretty "standard" data sets, where there is a real header, and those header names are used for the names of the columns in the data set.

Try taking a look at this:

http://stackoverflow.com/questions/448865/how-can-i-best-parse-this-comma-delimited-text-file

That might give you some ideas on how to manually parse the file, and use a collection of string arrays, or something.

alc6379 120 Cookie... That's it Team Colleague

Without knowing exactly what's going on, it sounds like a thread hasn't released control back to the UI. Does the thread that runs in the background interact with the UI itself? That could be a source of a deadlock.

alc6379 120 Cookie... That's it Team Colleague

I think the error message is pretty clear, there-- you can only add references to Silverlight projects in Silverlight projects. Silverlight uses a subset of the .NET Framework, so you can't import in projects that use libs outside of that limited subset.

The only way you could really get around this is to build a web service with the functions you need, as Silverlight can hit web services.

alc6379 120 Cookie... That's it Team Colleague

I wrote a trojan not that long ago that wasn't detected by my antivirus. It did incredibly suspicous stuff too, like sending a list of running procs over TCP or UDP to a listener, running procs, accepting commands to run in the command-line, remote shutdown/restart, send clipboard data back and forth, inject code into running procs to intercept windows messages (keystrokes, mouse info, etc) it even had a little vnc pluging for complete remote control. I guess nothing in it exactly replicated any other virus out there, or AVG just sucks.

This stuff isn't really necessarily suspicious per se, except for opening ports, etc. Windows Firewall, by default, should prompt you to allow that communication out or not.

Basically, the "code signatures" are actual bytecode signatures that other viruses have been detected with-- you might have included a shared library from a virus, and used those functions. THEN the AV app would detect a potential problem.

alc6379 120 Cookie... That's it Team Colleague

you could add the Javascript to a literal control, and it would run when the page reloaded. But really why are you using .NET 1.1 now? There are security vulnerabilities, and it's almost 8 years old now. You should seriously consider upgrading to .NET 3.5 or 4.0.

alc6379 120 Cookie... That's it Team Colleague

In short, ByVal means pass the value of the variable that was provided as input to the method. This is as compared to ByRef, which is a "pointer" to the variable itself, which basically means if you modify that ByRef variable, you change the value of that variable outside of the scope, too, like in the method that called your function.

alc6379 120 Cookie... That's it Team Colleague

You can't directly access memory in a .NET language. You'll need to do something in C++ or another unmanaged language to do that.

alc6379 120 Cookie... That's it Team Colleague

What line are you getting that exception on?

alc6379 120 Cookie... That's it Team Colleague

I can outline the steps that you'll want to take in a sproc, and if you have questions about each step, try Googling the tasks I outline :)

Step 1: Write a query that returns the rows where invoice number is null or blank. Use an ORDER BY statement to group them by their account number.

Step 2:
Use the results of this query in a CURSOR. This cursor should have logic in it to pull the next invoice number. If you have a sproc to do that, great!

Step 3: Close the CURSOR.

It should be that simple if you use a cursor. You should look up how those function:

http://www.mssqltips.com/tip.asp?tip=1599

alc6379 120 Cookie... That's it Team Colleague

The internal system speaker can't really do that. You are pretty much limited to beeping from it. Any type of pitch modulation/etc that you can't do in .NET would probably have to be done via some C or Assembly language module, if you can even access that in Window.s

alc6379 120 Cookie... That's it Team Colleague

Can you post the code for FileCopy? There should already be methods to do that type of work in the File class:

http://msdn.microsoft.com/en-us/library/system.io.file.copy.aspx

alc6379 120 Cookie... That's it Team Colleague

Why aren't you setting the Primary key for the row and letting SQL server handle that? You should write a stored procedure to write the data, and if you need to get back the ID of the row that you just inserted, you can return the value of the SCOPE_IDENTITY() command.

alc6379 120 Cookie... That's it Team Colleague

What is your underlying database, exactly? Access and SQL both have an "Identity" field type which you can specify autoincrement there.

The Database type doesn't really do that, unless I'm mistaken. You still have to have a database somewhere, and define your schema in it.

alc6379 120 Cookie... That's it Team Colleague

Also... please start naming your threads something relevant, other than "Help!" :)

alc6379 120 Cookie... That's it Team Colleague

What is coming back from Environment.GetCommandLineArgs() when the program runs?

alc6379 120 Cookie... That's it Team Colleague

Is that really "SOAP-y", though? Does your PHP service produce WSDL? Using WCF, you can add service references that will do strongly-typed objects to send over the line to a SOAP service.

alc6379 120 Cookie... That's it Team Colleague

That may not completely be the answer... Mono may do it, but there's no real status on how well Mono runs under AIX.

I think the real question is WHY would you want to do that? Why not use PHP, Perl, Ruby, or something else that is better suited to that environment?

kvprajapati commented: Alex you are right. +11
alc6379 120 Cookie... That's it Team Colleague

Hey gang,

Looking for some opinions here. I'm working in an ASP.Net MVC2 application. We've built a collection of "domain objects", ie, the data that represents our "real world" problem we're going to solve, and it's also the representation of what will be serialized to the database. Each of these objects has been decorated with DataAnnotations Attributes to denote which properties are required. We plan on doing data validation before the object is persisted to the database.

The app itself is kind of like a "wizard"-- we're going to be configuring various parameters on one of the domain objects we're working with. But, each page of the wizard might be a subset of properties that the domain object might have. We're going to need to have validation on each of those pages, to make sure all required values are input.

Here's my question: If you were in this situation, what you use as your Model for each of these pages? Would you use the entire domain object, or would you build a view-specific model that is a subset of the domain object's properties, then validate that? I'm leaning towards the latter, because it seems cleaner. At some point, you'd take the 3-4 view-models and populate the domain object from those. Then, you'd validate the domain object, and persist that.

Am I off base here? MVC is kind of misleading of a term, in that the "Model" isn't actually what's getting persisted, it's just the data a …

alc6379 120 Cookie... That's it Team Colleague

Your web.GetResponse() is what actually begins the file transfer. In this case, you would need to use BeginGetResponse(), which makes a callback to a method you designate:

http://msdn.microsoft.com/en-us/library/system.net.webrequest.begingetresponse.aspx

Check that out, and see if it's any further help. You could make the callback method do the updating to the form, or you could have it raise the event that is handled elsewhere.

alc6379 120 Cookie... That's it Team Colleague

Try checking out this tutorial:

http://msdn.microsoft.com/en-us/library/bb655884(VS.90).aspx

alc6379 120 Cookie... That's it Team Colleague

lolafuertes might be right, but the fact of the matter is that Excel isn't designed to do what you're trying to do. Basically, that will put the app into a different context than the current user, but that introduces a whole other level of issue with impersonation, and running the app with the right permissions...

alc6379 120 Cookie... That's it Team Colleague

"Building a DAL" is pretty broad. You just write methods that return objects. The methods use the LINQ to XML to build those objects. The methods could take parameters to filter down the XML you're reading.

What part of that are you having issues with? I just did a Google search that might yield some result for you:

http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=building+a+DAL+Linq+to+xml

alc6379 120 Cookie... That's it Team Colleague

Here's my experience:

Granted, I'm 28, but I've got 6 years of .NET development (Web, Winforms, Web Services) under my belt. I just got a new job, and I get 3-4 calls a week from recruiters looking for someone with my skills.

From my perspective, the market's open in my area. If you're willing to work on contract, you can get a pretty decent hourly rate-- a "Junior" level dev in my area is getting around $28 an hour.

alc6379 120 Cookie... That's it Team Colleague

Just keep going the way you're going. Certifications are great, but they're not everything-- You could even look at something like getting your PMP, or another project management certification. That would get you into a BA role, too-- many BA's spend lots of time getting user requirements and translating them into developer terms, and vice-versa.

I started off as a BA, and I learned more coding as I went along. All I have is a 2 year degree, but I've been doing this for 6 years now.

alc6379 120 Cookie... That's it Team Colleague

I dunno. I think when we're talking "IT", no, I don't think that cloud labor will make a difference. However, for other work, like proofreading, QC, or medical record coding, I think it makes perfect sense. Rather than bring on a full-time staff, just outsource the work.

It's not perfectly ideal for most IT projects, but in many other fields, I think it'd be great-- IT would just enable such a move.

alc6379 120 Cookie... That's it Team Colleague

Maybe this will help?

http://code.google.com/edu/

alc6379 120 Cookie... That's it Team Colleague

I think the big hurdle to citing "skills" gained from playing a game is that a game is trivial, compared to a workplace. In a game, there's always the option to say "screw you guys, I'm going home!". It's trivial to create a new account/persona, or just find a new guild to get into.

Sure, you can build leadership, and you can build interpersonal skills. But, you're not looking someone in the eye-- that's a big part of what you do when you're at work. I don't think those same "benefits" from online/coop gaming you cite translate over exactly to the real world. You can't simply kickban someone who you don't agree with-- you have to go through proper channels to deal with them, for instance. You might be a little more inclined to deal with despotism in your group, since you don't see these people face to face.

Personally, if I saw someone list game credentials on their resume, I'd trash it immediately. Or, if they got an interview, the first question I'd ask is, "Why did you spend so much time on video games when you could have been gaining legitimate job skills?"

alc6379 120 Cookie... That's it Team Colleague

Please do your own work. We don't do your homework here. Start implementing what you have here, and if you have questions, come back.

alc6379 120 Cookie... That's it Team Colleague

Can you provide more of your XAML? It sounds like it doesn't recognize a:PopUpWindow as a valid type, perhaps. Does your PopUpWindow have a default constructor that's different, or anything?

alc6379 120 Cookie... That's it Team Colleague

Why are you using an Array, anyways? Why not just use a List(Of Records)? You can just keep adding records using the Add() method.

alc6379 120 Cookie... That's it Team Colleague

What error are you getting, exactly? Offhand, I don't see why that wouldn't work.

alc6379 120 Cookie... That's it Team Colleague

OK... I'm going to have to make some assumptions here:

You have 2 tabs, we'll say, Tab1 and Tab2. Tab1 has a button on it. You want to click this button and have it move to Tab2?

If that's it, you just have the method that handles the Button's Click() event set the tab control's SelectedIndex to the index number (probably 1) of Tab2.

http://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol.selectedindex.aspx

I don't mean to sound ugly, but this is what I mean when I asked describe your issue in more detail. What elements are you working with? What is it doing now? What is it supposed to be doing? If this isn't what you wanted, then I just wasted my time answering the wrong question.

alc6379 120 Cookie... That's it Team Colleague

Google is your friend :)

http://www.startvbdotnet.com/

alc6379 120 Cookie... That's it Team Colleague

you could place that into a String variable, then use myVar.Split(vbCrLf) . That would create a String() array, and "This is a sample sentence" would be element 0 of the array.

a_salted_peanut commented: Brilliant and easy method! +2
alc6379 120 Cookie... That's it Team Colleague

Can you put your code in code-tags? It will make it WAY easier to read.

Generally, accepted OOP practice would be to return an object containing the two values you need. You can only return one object from a Function, but that object can have many properties, or it could even be an ArrayList containing your return values. I wouldn't recommend using an ArrayList, though, because you lose the advantages of type-checking as you develop/build.