

InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
2351. |
Solve : Visual Basic 6.0 Enterprise? |
Answer» Is VB6 Enterprise a recent version of Visual Basic? I can't find a good answer anywhere. Hmmmmmmmmmmmmmmmmmmmm. VB6 has entered Microsoft's "non-supported phase" as of March 2008. ... . ..Current version of Visual Basic is largely the same language as VB6. Quote from: monkeytime on February 25, 2010, 05:07:23 PM Is VB6 Enterprise a recent version of Visual Basic? I can't find a good answer anywhere. No. Visual Basic 6 Learning, Professional, and Enterprise Editions were all released in 1998 both stand-alone and as part of Microsoft Visual Studio 6, which also consisted of Visual C++, Visual FoxPro, Visual InterDev, and Visual J++. The Enterprise Edition doesn't really add a whole lot compared to the professional edition at all- it basically boils down to, If you don't know what it adds, you don't need it; mostly things like the APE (Application Performance Explorer) And Visual SourceSafe, Microsofts rather ostracized source code control tool. I'm not sure if you can get VB6 Enterprise separate from Visual Studio, come to think of it. Anyway, gather round for a short history... there were BASIC versions before it, but BASICA was the first one that was readily available on PCs. this was included with MS-DOS version 3 (and maybe 2 and 1, dunno). this continued until DOS 5, which included QBASIC. During all this, Microsoft also had a BASIC compiler/IDE called "QuickBasic", which was modelled after it's other successful QuickC and... well actually I'm not sure if they had any other "quick" products.... anyway... With the release if Windows 3.0, the desktop environment was getting popular, but programming it still required an intimate knowledge of C. So, some genius came up with the idea of an easy to use tool that can make designing the User interface a process of dragging buttons and textboxes and so forth on a representation of a form, rather then messing around with CreateWindow() and other calls in the WM_CREATE message in a Window Procedure. To make things even more beginner-friendly, they made the code behind these objects a dialect of Basic. The prototypes were called "Ruby"... (or maybe it was Thunder.. I forget... Ruby was a name used to describe the system by Alan Cooper... so I think the MS worked prototypes might have gone by a different name. Now, anyway, Visual Basic 1.0 was a godsend to hobbyists everywhere. First off, already versed BASIC programmers needed to only copy paste their code into VB1. with a few changes- the code was 100% compatible save a few select procedures that were more or less DOS-specific. It met with rather astounding success. With each new release, features were added making it less of a toy language and more of a industrial plaything; For example, Visual Basic Version 2.0 introduced the "Variant" Data type, which became rather prevalent. (with VB.NET there is no "Variant" type, but rather boxed Object types, which work just as well). It also introduced a host of other features, and the professional version included an assortment of "professional" controls like animation buttons and the "ssribbon" control, which by today's standards would be called a toolbar. (and a weak one at that). It also added internal support for databases through Object techniques- the first glimpses of database code were seen: Code: [Select]Dim dset as DynaSet Dim DBName as String,DBConnect as String DBName = "\\SALES\PUBLIC\NEW\CUSTDB_1" DBConnect="UID=JAN;PWD=CD" Set db = OpenDatabase(DBName,False,False,DBConnect) Set DS = db.CreateDynaSet("Select * From Customers") Do While Not DS.Eof Print "First Name:";DS("First_Name") Print "Last Name:";DS("Last_Name") Ds.MoveNext() Loop Anyway, so VB2 brought forth the idea that maybe VB would make a good database access type language as well. VB3 rolled around, and the OLEClient Control, which used to be a separate VBX (Visual Basic eXtension) was now part of the run-time. On the other hand, nobody uses the bloody thing... not sure what made them decide to do that. Not sure what Else VB3 offered, since I didn't have to use it seriously. It did add the CreateObject() Function, if I recall, which has become nearly ubiquitous in VBScripts, at the very least. It might have had GetObject... but I don't think so. VB4 brought two major things to the table. First- it was able to create both 16-bit, and 32-bit applications, and came with a 16-bit and a 32-bit version of the IDE (and also the runtime). the second major addition was the creation of Class Modules, which could be used to create your own objects; and VB now supported the creation of OLE servers in both DLL and EXE form (OLE is pretty much synonymous with ActiveX... in fact, ActiveX is really just a fancy name for OLE) Visual Basic 5.0 added a whole new facet: the IDE was completely redesigned, additionally the crappy Extensibility framework that VB4 offered was thrown away and a new one was written that didn't SUCK quite so badly. the Interface itself now used the common MSOffice CommandBars, and used a MDI interface rather then the SDI interface that VB1-4 used. (the SDI interface was still accessible via the Options dialog). The main things VB5 added were support for the creation of ActiveX DLL and EXEs as well as ActiveX Controls. These features in addition to the newfound ability for Interface inheritance were a boon for developers. Additionally, the language added in rich improvements to User Defined Type limitations. VB6- by all appearances, seems the same as VB5 in nearly every facet. they added a good number of useful features, fixed a lot of annoying VB5 bugs, and for some reason you can give VB6 a XP/Vista/7 Manifest and let it use Luna/Aero themes but for some reason VB5 balks. Also most of the common controls were a million times better with VB6 (ALTHOUGH I don't use them anymore, having found VBaccelerator, which hosts similar controls that are a million times better then those... there's .NET stuff there now, too, I think). Oh wait, I lied. VB6 added Webclasses. *crickets chirping* My thoughts exactly. Quote from: Geek-9pm on February 25, 2010, 08:47:57 PM Current version of Visual Basic is largely the same language as VB6. Um... no... Visual Basic .NET is a fine language, and the .NET framework has almost everything you could ever need; heck, it provides stuff that TAKES months to get working in VB6. However- while the syntax is similar, it isn't the same language. For example, you could use an "Instr" function in VB.NET, but that's just a compatibility kludge. the actual way would be to use appropriate method of the string object. The great thing about .NET is everything is an object... you can do something like: "This is a string".Reverse() (well, I think, not sure if the String object has a Reverse Method, but you get the idea.) with VB6, that same code gives you: Expected: line number or label or statement or end of statement It removed a lot of "cruft" from the language, but it made migrating existing programs - you know, the millions of core business objects and applications developed in VB6 - impossible without a complete rewrite. the "migration tools" were a complete joke- they should have admitted from the start that it was a completely different language rather then try to hold on to the delicate fiber that was their credibility at the time and say "oh, it's mostly compatible" since they were secretly saying "for a hello world program" after that. I'm not too sure about the differences between the original .NET 2001, 2003, 2005, or 2008... well, I recall that they added the "my" namespace to 2005... which is like a punch in the gut. it's like saying, "oh, here, we know this framework is confusing, here, let us do the hard work for you by creating a global namespace that you can suckle from" last, you cannot say a language is "largely the same" when a keyword has a completely different name. "Static" had meant the same thing from QuickBasic to VB6; and yes it was a stupid procedure modifier that all local variables persist between calls... (same for declaring a variable with "Static" rather then "Dim".) However- and really, I have no probelm with this myself- the keyword Static changed entirely- now it meant that a method was a method of the class rather then the instance. Which is actually a great thing since class methods were simply impossible to create before .NET. But they still redefined the meaning. Once you redefined a keyword that has been in the language for years, your no longer working on a same language. Like I said, VB.NET is a fine dialect of Basic, but it is not friendly to developers who are used to previous versions (well, to be more precise, I should say developers who want to migrate code from previous versions). Anyway... err, there you are, a short history of Visual Basic.BC_Programmer, Thank you for the lecture. Your check is in the mail. On point you may have overlooked. At one point in time the MS BASIC software was a classic line by line language. Then when it went visual it also became event-driven. That means that the program might not do anything if there is no event. It just sets there. And you cold create a from with some text in it with no code to speak of. It was now a template language. Just fill in the blanks. Quote from: Geek-9pm on February 25, 2010, 10:12:47 PM BC_Programmer, good point, that would be with VB1 the change to an Event Driven language was made. Really you cannot fault it; I mean, even C when used to write a windows program is purely event driven, but you have to parse the messages yourself. Sure, your winmain() routine was still executing (in a message pump) but this was rather insignificant- you process messages and respond to them, just as you do to events in VB (or really nearly every language nowadays). Also you can write console applications with VB6, so it's not a strict requirement to be event driven. Quote It was now a template language. Just fill in the blanks. Now this is evidently a cold observation; Is removing the mundane task of Windows Message Loops and Accelerator Translation and Resource editing really that bad? Is it in any way different to the way people will write a program template and use that from then on? Not really. Just takes away the monotony. Quote Now this is evidently a cold observation; Is removing the mundane task of Windows Message Loops and Accelerator Translation and Resource editing really that bad? Is it in any way different to the way people will write a program template and use that from then on? Not really. Just takes away the m What I wanted to say was that it got to the point that the code was hidden from the person that did the application. Yes, you did have to put in something in a little box for OnMouseOver or OnEventWhatever and it world invoke something you had to identify. But the application programmer would not ever see a full line-by-line source code of his project, unless he made a real effort to get it. This was a sea change from traditional languages. And yes, you could do console programs, but the GUI interface changed forever the way a working programmer would conceive an idea.It's no different then it used to be... you generally didn't modify printf() or sscanf() or other run-time functions... The scope of what encompasses the framework itself changed. Actually, come to think of it, my customized "New Project" in VB consists of 3 classes as well as a form with several controls, and it doesn't even do anything... Nowadays for programming XP/Vista/Win7 Properly with VB Classic you need a of extra stuff, too. Like manifests and API declarations for the common controls library and so forth. Oh, and that whole "you cannot see the code" thing changed with .NET. you can see the code that generates the form and it's controls and hooks them to the event procedures. (not the ASM code, of course, since the ASM for IDL will be different on different processors, silly)Quote from: BC_Programmer on February 25, 2010, 09:28:23 PM Microsoft also had a BASIC compiler/IDE called "QuickBasic", which was modelled after it's other successful QuickC and... well actually I'm not sure if they had any other "quick" products.... QuickPascal Quote from: Salmon Trout on March 07, 2010, 03:31:13 PM QuickPascalNO. QP is only for MS-DOS. Quote D:\BIN\qb>QPQuote from: Geek-9pm on March 07, 2010, 04:13:33 PM NO. QP is only for MS-DOS. Where did I say otherwise? Quote from: Salmon Trout on March 08, 2010, 12:09:28 AM Where did I say otherwise?Sorry, you did not say that. Both QBASIC and QB can run as command line programs in most windows versions with no nag messages. But QP gives a error message. This might indicate that MS was not too confident about their Pascal. There was a Quick C. Quote Microsoft QuickC was a commercial integrated development environment (IDE) product engineered by Microsoft for the C programming language, superseded by Visual C++ Standard Edition[1]. It main competitor was Turbo C[2].http://en.wikipedia.org/wiki/QuickC But there was never a quick PL/1 (sigh) QuickBASIC 2.0 gives the same message... And None of them work in the recent 64-bit versions of windows Also I find it ironic that you would mention that message, since it's probably originally designed to show for non MS-DOS or PC-DOS operating systems, such as DR-DOS. |
|
2352. |
Solve : VB get filename or edit text? |
Answer» hi guys, |
|
2353. |
Solve : exporting picture from VB into word? |
Answer» Hi, |
|
2354. |
Solve : increase memory allocation c++? |
Answer» Hey, |
|
2355. |
Solve : advantages of sequential processing? |
Answer» can ANYONE tell me ADVANTAGES of SEQUENTIAL processingFor the programmers who don't know what sequential processing is: |
|
2356. |
Solve : How to show include data from a directory one by one?? |
Answer» I have put some PHP content in a directory named "DATA" and i WANT to show them ONE by one through next and previous button |
|
2357. |
Solve : JAVA Programming (Platform)? |
Answer» I have done programming in dBaseIV, Access and VB. In these programming languages I was using programing platforms like Dot Prompt and design screens. However, now that am learning programming in Java I have installed the software but I cant see the platform except receiving massages that the software is installed. |
|
2358. |
Solve : What notation is it?? |
Answer» Can anyone tell me what kind notation the following PICTURE using? Syntax diagrams (or railroad diagrams) are a way to represent a context-free grammar. They represent a graphical alternative to Backus-Naur Form or EBNF. EARLY books using syntax diagrams include the "Pascal User Manual" written by Niklaus Wirth [1]Some books may have BNF and not railroad. Quote from: Geek-9pm on March 17, 2010, 03:21:53 PM Here is one used to define the syntax in Pascal. Thank you. |
|
2359. |
Solve : Base 10 to Base 2? |
Answer» What's the easiest formula to use to convert base 10 to base 2? Comparison with descending powers of two and subtraction If you are using any fomr/mutation of BASIC you can use BIN$(x). "BIN$" or "BIN" functions do not exist in QBASIC, QuickBASIC, or any dialect of Visual Basic 1 through 6. It's probably exclusive to a single dialect, such as RealBasic. here are two functions that I never use that Ifound in one of my modules (VB6): Code: [Select]Public Function BinaryToDecimal(ByVal BinValue As String) As Long Dim lngValue As Long Dim X As Long Dim K As Long K = Len(BinValue) ' will only work with 32 or fewer "bits" For X = K To 1 Step -1 ' work backwards down string If Mid$(BinValue, X, 1) = "1" Then If K - X > 30 Then ' bit 31 is the sign bit lngValue = lngValue Or -2147483648# _ ' avoid overflow error Else lngValue = lngValue + 2 ^ (K - X) End If End If Next X BinaryToDecimal = lngValue End Function and the reverse: Code: [Select]Public Function dec2bin(mynum As Variant) As String Dim loopcounter As Integer If mynum >= 2 ^ 31 Then dec2bin = "Number too big" Exit Function End If Do If (mynum And 2 ^ loopcounter) = 2 ^ loopcounter Then dec2bin = "1" & dec2bin Else dec2bin = "0" & dec2bin End If loopcounter = loopcounter + 1 Loop Until 2 ^ loopcounter > mynum End Function Oops, sorry, got it mixed up with HEX$ and OCT$. Disregard my post please. ...probably because I made my own sub BIN$ (can't find it now, must be on my other computer) |
|
2360. |
Solve : Need help with C++ code? |
Answer» So what's wrong with this code guys ? |
|
2361. |
Solve : Computer randomly switching between active programs? |
Answer» I'm not sure if this question belongs in this forum or not because I'm not sure what is causing it. If I have internet explorer (with several tabs) open and also Outlook the computer will randomly switch to EITHER another open tab or back to Outlook while I'm working. It happens also if I am working on a Word Document. I'm not sure where to start LOOKING for the problem. I assume you are using XP? as this issue normally affects that... |
|
2362. |
Solve : String comparison? |
Answer» I would like to COMPARE two .cs (C# code) files and have the differences be marked in yellow.. or some such. Basically I followed a tutorial and the end result of the code done in the video is not the same as mine. The source file is provided. I want to compare this source file to mine and SEE the differences. Call me lazy. =P Treval Using a Linux or Unix OS allows for this compare easily using the diff command. Two useful flags you can specify when COMPARING files are -b (ignore blanks) and -i (ignore case). Quote diff -b -i cookies.old cookies.new Do you have to try WRITE a program to do the compare and want HELP with the code? If not why reinvent the wheel? ExamDiff is a freeware Windows 95/98/Me/NT/2000/XP/2003/Vista tool for visual file comparison. http://www.prestosoft.com/edp_examdiff.aspThanks man.you could also use the fc command (file compare), or WinDiff (in the SDK). |
|
2363. |
Solve : Excel formula?? |
Answer» I would like a way to do an if-condition (filter) based on a particular value in an excel sheet (2007). |
|
2364. |
Solve : Determining partition sizes, and computer models in DOS?? |
Answer» I'm working on building a script to use with WinPE to launch GHOST, and one of the PARAMETERS is to set the partition to put the image on to. It's not a problem if you're USED to doing it manually and you know what partition it needs to go onto. The purpose of this script though is for people that may not have the familiarity with it to just put the correct partition in. My question is, is there a either a way to list the partitions on a hard drive for the user to select? Alternatively, a better more "hands off" approach would be for the script to automatically determine the largest partition and just use that one with Ghost. And with Vista there is a new method used to identify the partition layout. No, there isn't. GPT is available in a number of operating systems and even then it's hardly ever used on Vista or 7 anyway. Partition layout is almost exclusively defined with the same MBR that has existed for decades. Either way, determining Disk/partition size is difficult from a pure DOS environment, simply since DOS doesn't support partition sizes larger then 2GB and most BIOS calls that can be made from DOS are subject to a number of limitations. I think the best solution would be to get a tool such as aefdisk which can be used to list partitions directly and then somehow process the output from the tool to determine the desired partition, but it isn't going to be easy.Quote from: BC_Programmer on March 24, 2010, 11:03:03 PM No, there isn't. GPT is available in a number of operating systems and even then it's hardly ever used on Vista or 7 anyway. Partition layout is almost exclusively defined with the same MBR that has existed for decades.I don't think the OP is talking about DOS, more LIKELY, he is talking about the command-line interpreter in Windows OSs.Quote from: Helpmeh on March 25, 2010, 06:20:43 AM I don't think the OP is talking about DOS, more likely, he is talking about the command-line interpreter in Windows OSs. They should say what they mean then. |
|
2365. |
Solve : Batch file to save photos into folders? |
Answer» I would appreciate any help to speed up a very mundane task. the 3 that moved were .jpg whilst the remainder were .JPG does the case make any difference? it would appear so. Change the line: Code: [Select] If fso.GetExtensionName(fs) = "jpg" Then to: Code: [Select] If lcase(fso.GetExtensionName(fs)) = "jpg" Then I did TRY: If fso.GetExtensionName(fs) = "jpg" or "JPG" Then but it didnt recognise the string JPG.....Well ...... I would like to say a big thank you to sidewinder for his time and effort and for BC_Programmer for his fine tuning........ Many thanks..... All i have to do now is decifer how the beast works.... This could work...not quite sure...it depends on the camera. @echo off setlocal enabledelayedexpansion for /f "skip=5 tokens=1,5" %%A in ('dir /t:c *.jpg') do ( echo Date --- %%A echo File --- %%B if not "%%B"=="" if not "%%B"=="free" ( set filedate=%%A set filedate=!filedate:/=-! if not exist !filedate! md !filedate! copy %%B !filedate! ) ) pause Seems to work for me. I just felt like making an all-batch solution.Quote from: eddie.ceri on April 07, 2010, 04:40:27 PM I did try: That isn't proper syntax. the "Or" operator only works on Booleans or numeric variables. in order for it to work here you'd need to use: Code: [Select]If fso.GetExtensionName(fs) = "jpg" or fso.GetExtensionName(fs)="JPG" Then However, it still wouldn't work for mixed case, like jPg or Jpg or JPg, etc. using lcase or ucase to convert the case before COMPARISON, however, fixes that. *Note: Previously, me and Geek-9pm, another member, got in a rather heated debate with regards to this particular usage. my stance was that it was best to use StrComp() to compare strings,rather then case conversions. this was based on the fact that StrComp() would recognize combined glyphs such as the combined "AE" character properly being matched to the actual two characters, AE. However, it would appear, from what I've read in the meantime regarding StrComp, that while this would work, it is slower (another incorrect contention I held was that the StrComp() method was faster). StrComp() is designed for comparing strings for sorting algorithms; this is why it returns a value indicating the sort order of the two items. Therefore, if geek-9pm is reading this, I was WRONG Quote from: Helpmeh on April 07, 2010, 04:47:57 PM This could work...not quite sure...it depends on the camera. No, that won't work. "Date Picture Taken" is an EXIF attribute, and while the actual date of the picture can be used for this it breaks down when that file is copied or moved, whereas the EXIF data stays intact. I have just test run the .vbs file and it works great ........... there are a few ponts that i didnt think would be a problem but might cause issues..... 1. If a file with the same name is already in that folder (probably the same file anyway) the WHOLE routine doesnt run it creates an error message "Microsoft VBScript runtime error: File already present" which is common sense i suppose. 2. What i would prefer if it didnt copy it and allowed me to sort it out manually later but carried on with the rest of the jpegs.Quote from: eddie.ceri on April 07, 2010, 04:59:14 PM I have just test run the .vbs file and it works great ........... Good idea. I just added an "On Error Resume Next" statement. Code: [Select]folderName = "c:\Pictures" 'check for valid directory Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.NameSpace(folderName) Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFolder(folderName) Set fc = f.Files For Each fs In fc If fso.GetExtensionName(fs) = "jpg" Then Set objFolderItem = objFolder.ParseName(fs.Name) strValue = objFolder.GetDetailsOf(objFolderItem, 25) If strValue <> "" Then newYY = DatePart("yyyy", strValue) newMM = DatePart("m", strValue) If newMM < 10 Then newMM = "0" & newMM newDD = DatePart("d", strValue) If newDD < 10 Then newDD = "0" & newDD newFolder = "c:\" & newYY & "_" & newMM & "_" & newDD 'check for valid drive and path If Not fso.FolderExists(newFolder) Then fso.CreateFolder(newFolder) End If On Error Resume Next fso.CopyFile fs.Path, newFolder & "\" End If End If Next It is also possible to create a logfile of the files that were missed.That worked great....... The log would be good, I have removed any duplicate jpgs by using the "Easy duplicate finder" application. Many thanks for your time and effort BC_Programmer Quote from: eddie.ceri on April 07, 2010, 02:10:01 PM I would appreciate any help to speed up a very mundane task. you can download jpeg tools like jhead for example, and then run your photos with jhead using for loop and grab the images creation date/time, do some manipulation with the date/time to the format you want, and then use mkdir to create directories etc etc... |
|
2366. |
Solve : Batch - for loop? |
Answer» Hello, I need some assistance, the web or the HELP does not seem to work or I'm not understanding it. |
|
2367. |
Solve : new user of c++? |
Answer» hi,iam new user of c++ so i want tips of how to tackle c++ problems.please give me tips.You are very vague. Listed below are some common programming errorsQuote from: taumang on February 18, 2011, 09:10:09 AM hi,iam new user of c++ so i want tips of how to tackle c++ problems.please give me tips.please post me a program and its algorithm so that i can understand what you are talking about.pretty basic stuff below, if you want to know more, ask what you want to know :p //double forward slash allows for comments #include //#include will include header files that will allow for functions that are within, iostream will be almost always used using namespace std; //this will use standard namespace which will let you type cout instead of std::cout int main(){ //this will define main function, function works within parenthesis int number = 0; //sets variable number to 0 and declares i as an int for (int i = 0; i < 3; i++){//loop 3 times number++;//increment number by 1; }//end loop cout << number << endl; //output variable number (3) followed by a line break return 0; //returns zero }//end mainGoogle: youtube C++ tutorial Here is 'Hello World' http://www.youtube.com/watch?v=vYHB0DUcfV0 |
|
2368. |
Solve : Perl: split data by line and column in csv file? |
Answer» Hi, |
|
2369. |
Solve : Batch File If Statement? |
Answer» i know i just WANTED to point that outQuote from: mat123 on April 16, 2011, 07:42:04 AM i know i just wanted to point that out You could also mention that the sky is blue and that the sun goes AWAY at NIGHT. |
|
2370. |
Solve : Java server code problem? |
Answer» i have this code for a server for a program i made |
|
2371. |
Solve : how to click an anchor with visual basic? |
Answer» the HTML DOM SAYS that there are two ways of accessing anchor elements in an HTML document. 1) .getElementsByID and 2) cycling through the HTMLDoc.anchors iHTML collection. |
|
2372. |
Solve : hidden programs? |
Answer» is there any way to use a command prompt to show me any hidden programs that are hiding on my computer? im under the influence that my parents have installed a program on our computer and are now watching everything that i do, is there any way to prove\disprove this?sorry that I laughed when reading this... if your parents put anything on it to monitor, its PROBABLY easily seen in the task manager processes. Another sneaky device that I have seen available is a hardware keylogger that plugs between the keyboard and computer, so it is invisible. The person such as parent then can detach the ps2 port keystroke logger and then plug it into their computer to dump out all KEYSTROKES and read whatever was typed, private info and passwords etc. The device is like $40 an I saw it on cyberguys catalog. Could be a very evil device for a rogue employee who wants to farm credentials and has access to plugging this little device in, since no network security will block this device that operates independently of the system itself and captures all keystrokes. Another hot spot for getting info is with wiresharking the network and watching traffic that is unencrypted, as well as loggers that can operate from the router and REDIRECT all logged traffic to another device or be viewed at that device. haha thank you, i posted this question i used task manager to check and nothing came up out of the ordinary. it just seemed uncanny how my parents just happened to know what i had to talked to my friends about the day before on facebook. Are they on facebook as well?Quote from: BC_Programmer on March 07, 2011, 07:29:35 PM Are they on facebook as well? I laughed when I read this... You could easily find your way around it by using the task manager. You can try stopping those programs there so you could do whatever you want with the computer. Also, you could check for the installed programs list on your computer. This way, you could further search the internet for ways on how to et past those programs. But i bet that your parents installed those programs for your own good. So better keep up with them. Everything will be yours for the taking, when the time is ripe.Quote from: ericb82 on March 11, 2011, 06:20:52 AM Everything will be yours for the taking, when the time is ripe. err... what?There are some KEYLOGGERS which are built to hide from task manager, start up, add/remove programs, and other major locations. Your best choice would be to use an application which will scan your computer for potential keyloggers. Here is one I found: http://dewasoft.com/privacy/kldetector.htmThe programs that are built to disappear from the Processes list pretty much have to be services. You can see the list of services by choosing Control Panel -> Administrative Tools -> Services. Click on a service to see if it is running (look at the left panel). Clicking STOP on a running service will stop the keylogger/spy program.Quote from: frostyjones13 on March 06, 2011, 07:47:45 PM is there any way to use a command prompt to show me any hidden programs that are hiding on my computer? im under the influence that my parents have installed a program on our computer and are now watching everything that i do, is there any way to prove\disprove this? I don't know if you're still checking this post, but I can second ultimatum's recommendation from DewaSoft. Permit me a second on my soapbox, and I can give you a few more TIPS as well (and all subsequently mentioned utilities are free, most portable as well). Firstly, if you are an avid user of Facebook, your parents should be the least of your concerns. Facebook collects (and leaks) massive amounts of data to the public (http://lifehacker.com/#!5526429/see-what-facebook-publicly-publishes-about-you), and it collects this information even when you are browsing other sites (there are plugins for Firefox for example, for preventing this...) Have you considered just asking your folks how they knew? Sometimes the best way to get a direct answer, is to ask a direct question... Unless your parents are quite sophisticated computer users, they could have simply discovered traces left behind in your browser cache, perhaps without intending to snoop. I don't use Facebook, but without seeking to do so learned which friends my wife had been chatting with over the period of about a month, as I had Google Picasa running and it began asking for identities on a number of faces discovered in photos of our friends I didn't recognize as part of our collection (it was grabbing them from her browser cache). My wife's personal correspondence is her business, so I try to remind her to clear her browser cache from time to time... You could perhaps run a portable browser, or setup your browser to automatically clear cached information, and perhaps try running some of these utilities (NIRSoft; http://www.nirsoft.net/utils/), which are generally really useful tools, to get an idea of the bits of information scattered around your system over time (there's a link somewhere in the page to get all the utilities together in one shot...). The search utility Everything (http://www.voidtools.com/) is also a fast way to locate files cached on your system, and the utility CCleaner (http://www.piriform.com/ccleaner) is a great way to automatically clear them out... I probably don't have to mention that Picasa, while not designed for the purpose, is a great "forensic" tool as well. However, if you are convinced there is something really sneaky, you could try running HiJack This!, and submitting the report to the forums... Also, to add to what might be perceived as somewhat conspirational thinking, you don't even to be a member of facebook, or a previous member of facebook, in order for them to be tracking information about you; any site that links into facebook with the stuff like the "like" button has tracking; although I don't think it can figure out your name, it can still build an IP-based "profile" about your movements, particularly given the large number of sites that are connected to the facebook API; using this information it can then decide what you are interested in; much akin to google's targeted advertising concepts. Whether this is a breach of privacy is of course subjective. |
|
2373. |
Solve : Thief Catcher, (free) help needed.? |
Answer» me and my team working on a project called Stealth Hunter, |
|
2374. |
Solve : win32 programs? |
Answer» what is win 32 program |
|
2375. |
Solve : what is your favorite programming language?? |
Answer» htmlHTML is not a programming language, it is a markup language. |
|
2376. |
Solve : C++ inheritence ambiguous? |
Answer» Hi fellas. I'm not a C++ programmer but I do Java and C# programming. From what I recall you can't inherit from more than one class. You can only inherit multiple interfaces. C++ supports multiple inheritance. The reason Boozu's attempts were ambiguous was because it was inheriting the members of CObject1 twice.I'm surprised anyone replied at all after my edit. I find that this happens to me a lot were I ask a question then the answer comes to me. |
|
2377. |
Solve : C++ Char Code[4]; Buffer Overflow Problem? |
Answer» Ran into a problem with writing a C++ program where if you enter more than 4 characters for Char Code[4]; it crashes with a Report this Error to Microsoft type error message if 5 or more characters are entered. The sloppy fix I have which really doesnt fix this Buffer Overflow problem is to make the Char Code[100]; so that it can take up to 100 characters before overflowing and crashing. Then before the data is used I perform a string length check on the data input to make sure it is 4 characters in length ELSE return back to input to Char Code[100]; This doesnt fix if someone entered 101 characters or more in which it would crash again so this is a sloppy fix that I dont like and so I am asking about code suggestions to harden the code to avoid this over flow problem with Char Code[100]; variable.basically- the SOLUTION would be to not get input directly into a char string, but rather handle it through a C++ string, and then you can test to make sure the char array is long enough to hold it: If you search the web, there are many articles talking about why C++ (and C) should be avoided as well. Anyway, just my thoughts. I don't doubt there are an equal number of articles with the opposite opinion. |
|
2378. |
Solve : Autofill from Excel BAT files? |
Answer» Is it hard to write a batch file that will autofill/import data from Excel file into a form. |
|
2379. |
Solve : Programer says ''Huh?''? |
Answer» how can I do a program with notepad? these characters that appears in notepad are weird... Is it complicated or SIMPLE to do a program? can i do programs with RESOURCES HACKER? Why don't you say clearly what it is you want to do? I want to do a program that opens any kind of files.Quote from: maxum on March 25, 2011, 01:25:24 PM I want to do a program that opens any kind of files. Well, good luck! Quote from: maxum on March 25, 2011, 01:25:24 PM I want to do a program that opens any kind of files.Easier if you limit you work to Linux. Microsoft does not want you to see what they have.Quote The bästard disassembler is a disassembler for linux/unix platforms.Quote from: Salmon Trout on March 25, 2011, 11:52:24 AM You can write programs in many compiled languages in Notepad. For example FreeBasic. You write the source code in notepad. The program is the compiled result.Quote from: BC_Programmer on March 25, 2011, 02:35:07 PM You write the source code in notepad. The program is the compiled result. Indeed. |
|
2380. |
Solve : Bat How to lauch the installer automatically? |
Answer» I want to lauch the installer automatically but the installer contains some instructions |
|
2381. |
Solve : Robocopy Helps.. copying data skip NTFS permission? |
Answer» Dear all, I recommend XCOPY instead of this "robocopy"...ROBOCOPY is an enhanced XCOPY that comes with Vista and windows 7. For XCopy, /S,/T, and /E are mutually exclusive. As for ROBOCOPY, it doesn't copy security permissions for any files (including folders" by default... /copyall however specifies you do want to copy all that. From ROBOCOPY /?: Code: [Select] /COPY:copyflag[s] :: what to COPY for files (default is /COPY:DAT). (copyflags : D=Data, A=Attributes, T=Timestamps). (S=Security=NTFS ACLs, O=Owner info, U=aUditing info). |
|
2382. |
Solve : outlook 2k7 count and import all files in a specified directory in VBA? |
Answer» Hi, |
|
2383. |
Solve : VB6 - Use a variable within a variable's name? |
Answer» APL beats the crap out of toy languages like Perl or Python. It is concise, using symbols rather than words and applying functions to entire arrays without using explicit loops. It is solution focused, emphasizing the expression of algorithms independently of machine architecture or operating system. Eat your heart out. Quote from: Salmon Trout on August 21, 2010, 05:01:02 PM APL beats the crap out of toy languages like Perl or Python.like real. Perl/Python are for practical purposes. APL is for children who wants to play with toys.... and he rose to the bait! Quote from: ghostdog74 on August 21, 2010, 02:01:40 PM when i look at how its implemented in VB, i can't help but wonder why its not as simple and straightforward to use as in Perl/Python. First off, I'll tell you this: It is not straightforward to use in Perl (Python is good, but hardly much different from VB6). I just struggled to get this to work for nearly half an hour: Code: [Select]#!/usr/bin/perl %hash = ('Dog',=> 'Woof', 'Cat'=>'Meow', 'Cow'=>'Moo'); print "$hash{Dog}\n"; print "$hash{Cow}\n"; So, easy to follow. right, I create a hash like this: Code: [Select]%hash = ('Dog',=> 'Woof', 'Cat'=>'Meow', 'Cow'=>'Moo'); Ok, sensible enough. uses the % sign to access it as a hash variable, or in hash context. I don't know, I don't have a second monitor to keep it's MAN page up all the time. It would certainly make sense to somebody with more experience with the language. but to access the actual ITEM, you need to use $.How is that straightforward? It might be straightforward to somebody familiar with it, but it's a *censored* of a pain in the *censored* to wrap ones head around when you haven't been playing with perl since you were in a playpen. In this case, I imagine that the characters aren't a sort of type-declaration characters at all, but more or less a type of access modifier that changes how the variable is accessed. in order to read a element from a hash, we need to access it in "scalar context", Usable? of course it is. But to claim this is easy and straightforward is to express how deeply polarized your opinions on the matter are. VB6: Code: [Select]Dim dict As ObjectSet dict = CreateObject("Scripting.Dictionary") dict.Add "Dog", "Woof" dict.Add "Cat", "Meow" dict.Add "Cow", "Moo" Msgbox dict.Item("Dog") Msgbox dict!Cow Now, here, the main annoyance is that you add each item on a separate line. This is actually FULLY optional.If you don't like it, just write a function to do it all at once. (later) Python: Code: [Select]dict = {'Dog':'Woof', 'Cat':'Meow','Cow':'Moo'} print dict['Dog']; print dict['Cow']; Aside from allowing the dictionary/hash elements to be defined in a single statement (which is fully possible in VB.NET since it added variable initializers) I fail to see that much difference. And since one could easily write a short function that can create a dictionary out of a parameter array in VB6: Code: [Select]Public Function CreateDictionary(ParamArray Elements()) Dim I As Long Dim returnDictionary As Dictionary Set returnDictionary = CreateObject("Scripting.Dictionary") For I = LBound(Elements) To UBound(Elements) - 1 Step 2 returnDictionary.Add Elements(I), Elements(I + 1) Next I Set CreateDictionary = returnDictionary End Function Which allows the code to be shortened: Code: [Select]Dim dict As Object Set dict = CreateDictionary("Dog", "Woof", "Cat", "Meow", "Cow", "Moo") MsgBox dict.Item("Dog") MsgBox dict!Dog Of course turning off Option Explicit would mean that the declaration could be removed as well. Which of course would certainly fit with your own concepts on the issue (that typing is bad, it would seem). The C# code I presented was apparently not simple or straightforward either, because it followed the clearly flawed idea that showing steps one at a time (adding each item) was confusing and difficult. I present this modified version that uses the Collection Initializer SYNTAX to initialize the Dictionary upon creation: Code: [Select] public static void testdictionary(){ //Dictionary<String,String> dicty = new String[] {"test"}.ToDictionary((w,String)=> Dictionary<String, String> dicty = new Dictionary<String, String>() { { "Dog","Woof"}, { "Cat","Meow"}, { "Cow", "Moo"} }; Debug.Print(dicty["Dog"]); foreach (var q in (from x in dicty where x.Key.StartsWith("C", StringComparison.OrdinalIgnoreCase) select x).ToArray()) { Debug.Print(q.Key + "=" + q.Value); } } The Collection initializer syntax can work for any class that implements IEnumerable, or on Dictionaries that have more dictionaries as either their key or value (for whatever reason). I do not believe this is available in Python. (it probably is but I only did a very quick google). But, this is all rather redundant. The reason Python and Perl are constantly mentioned has absolutely nothing to do with wether they are better (which is not even a metric one can measure, because it implies there are "right" ways of doing things, which is a complete lie. There is no "correct" way for a language to initialize a Dictionary, just as there is no "correct" way to Add elements to it. The only reason you continue to argue such a case is because you refuse to accept any other. For example you believe that strongly typed languages are "wrong" and should "only be used for systems programming". Why? You made no case against this, you simply stated it as a fact. You line of reasoning here seems to be that everything that python does is all you need. and the syntax is uses is the only right syntax for said feature in any language. Therefore, because Python is statically typed, that is the only way any good language could possibly represent types. The way it implements Lambda Expressions (which present a somewhat limited syntax compared to, say, C# or F#, but still powerful) is therefore the definitive way to represent it. Anything that differs from python (or perl) is therefore clunky and awkward. The thing is, it's not clunky and awkward to everyone else, just as not everybody will find python or perls syntaxes "simple and straightforward). You believe, for whatever reason, that Python, perl, and whatever scripting languages that you know are the one true way. Quoted from http://blogs.msdn.com/b/rick_schaut/archive/2004/03/04/83679.aspx with a minor change: Quote You’ll find it in American politics, and you’ll find it in the religious wars of the software industry (from vi vs. emacs to Mac vs. Wintel to open source vs. proprietary software). The root cause is fanaticism, and that begins with the fervent belief that one is in possession of the One True Way. We’ve all met fanatics in one way or another. These are the people for whom there are only two ways to do things; their way and the wrong way. We might have even exhibited signs of fanaticism ourselves. Quote from: BC_Programmer on August 22, 2010, 09:31:52 AM First off, I'll tell you this: It is not straightforward to use in Perl (Python is good, but hardly much different from VB6). I just struggled to get this to work for nearly half an hour:that's because you are not familiar with either of them. If you are, you would not hit this problem. Here's how simple it is to do it with Python (similarly with Perl, but I like using Python, hence this example) Code: [Select]>>> animals={} >>> animals["cat"]="meow" >>> animals["dog"]="woof" >>> animals["cow"]="moo" >>> animals {'dog': 'woof', 'cow': 'moo', 'cat': 'meow'} >>> Quote but to access the actual item, you need to use $.How is that straightforward? It might be straightforward to somebody familiar with it, but it's a *censored* of a pain in the *censored* to wrap ones head around when you haven't been playing with perl since you were in a playpen. In this case, I imagine that the characters aren't a sort of type-declaration characters at all, but more or less a type of access modifier that changes how the variable is accessed. in order to read a element from a hash, we need to access it in "scalar context", Usable? of course it is. But to claim this is easy and straightforward is to express how deeply polarized your opinions on the matter are.stop whining. You have to be familiar with all 3 languages to make a fair comparison. What you are describing is a minor syntax issue. When you play with Perl more, you will be accustomed to it. We are actually talking about how hashes/dictionaries in these languages differ in terms of their flexibility using them Now let's see a few examples of how easy it is to manipulate dictionaries in Python. To get keys and values Code: [Select]>>> animals.values() ['woof', 'moo', 'meow'] >>> animals.keys() ['dog', 'cow', 'cat'] Adding something to values of the items Code: [Select]>>> animals["dog"]+="bark" >>> animals {'dog': 'woofbark', 'cow': 'moo', 'cat': 'meow'} >>> Now try doing that with VB. How about sorting a dictionary. Python comes with sort utilities inbuilt. Where can i find that in VB? Code: [Select] >>> d = {'a':2, 'b':23, 'c':5, 'd':17, 'e':1} >>> items = [(v, k) for k, v in d.items()] # reverse the values and keys >>> items [(2, 'a'), (5, 'c'), (23, 'b'), (1, 'e'), (17, 'd')] >>> items.sort() #sort >>> items.reverse() #reverse back >>> items = [(k, v) for v, k in items] >>> items [('b', 23), ('d', 17), ('c', 5), ('a', 2), ('e', 1)] #now they are sorted. Note the above is old way of doing sorting by dictionary values. Python's sort now comes with added functionality which makes it even easier to do sorting. Anyhow, how about doing that in VB. ? If you do a help(dict) at the python interpreter, you can use other dictionary methods that makes manipulation of dictionaries easy. Do you find that many in VB's version? Finally, how about adding items from another dictionary to the the animals one? Code: [Select]>>> vegetables={"spinach":"green","carrot":"orange"} >>> animals.update(vegetables) >>> animals {'spinach': 'green', 'carrot': 'orange', 'dog': 'woofbark', 'cow': 'moo', 'cat': 'meow'} Quote But, this is all rather redundant. The reason Python and Perl are constantly mentioned has absolutely nothing to do with wether they are better (which is not even a metric one can measure, because it implies there are "right" ways of doing things, which is a complete lie. There is no "correct" way for a language to initialize a Dictionary, just as there is no "correct" way to Add elements to it. The only reason you continue to argue such a case is because you refuse to accept any other. For example you believe that strongly typed languages are "wrong" and should "only be used for systems programming". Why? You made no case against this, you simply stated it as a fact. You line of reasoning here seems to be that everything that python does is all you need. and the syntax is uses is the only right syntax for said feature in any language. Therefore, because Python is statically typed, that is the only way any good language could possibly represent types. The way it implements Lambda Expressions (which present a somewhat limited syntax compared to, say, C# or F#, but still powerful) is therefore the definitive way to represent it. Anything that differs from python (or perl) is therefore clunky and awkward.You sure can ramble a lot of crap. Whatever defence of your favourite language you come to, the fact still remains. Dictionary manipulation in VB still does not compare to Python's. (Or Perl). I do not have to convince you about anything, since you are obviously the same kind of person you say i am. Quote The thing is, it's not clunky and awkward to everyone else, just as not everybody will find python or perls syntaxes "simple and straightforward). You believe, for whatever reason, that Python, perl, and whatever scripting languages that you know are the one true way.speak of the devil. You swear by VB don't you? [/quote]Quote The distance from this kind of polarization to Limbaughesque demonization isn’t very far. I so agree. Quote from: Salmon Trout on August 22, 2010, 11:26:22 AM I so agree. Indeed. I believe we have case and point proof above. Oh well. Quote Dictionary manipulation in VB still does not compare to Python's. (Or Perl). I agree. I would imagine this difference is due at least in part on the fact that VB6 was pretty much evolved from the original BASIC, at least in some form. That, as well as the fact that it is more a "give you a few tools, you work out the rest" type of mantra. Python and Perl were both designed much later, and for different purposes. (BASIC was, at it's inception, "all-purpose"... Although I'm not sure what that meant back then, clearly not very much) Perl was, as it's name implies, originally designed for creating "reports" both languages have clearly grown into something else, with VBScript being used in ASP pages and Perl and Python also finding themselves available for use online in Apache modules. The only difference is that dictionary support is built right into Python and perl as part of the language itself. Visual Basic had to be backwards compatible (for business reasons I guess) with QBasic and even to a point BASICA and GW-BASIC, so it didn't really have the luxury of introducing new syntaxes for things like dictionaries and collections. Besides, it didn't even support being a provider of objects (it could consume objects I VB2, I think, but I don't think they were COM based). Visual Basic 4 integrated VBA into the mix, which meant VB4 applications could use collections. The main problem with the collection is, as you passively pointed out using a carefully constructed python snippet, is that the collection object, for whatever reason, is immutable. Or more precisely, it's elements are. in order to "change" a value you would need to actually remove it and add it again. This is why the collection is best used to store a collection of objects, the objects themselves can have their properties changes and so forth without a problem from the collection. I believe this particular limitation may be because of the way the collection is implemented internally. However, the Dictionary Object is almost purely the same as a collection with most of the limitations removed. for example, you provide the following: Code: [Select]animals={} animals["cat"]="meow" animals["dog"]="woof" animals["cow"]="moo" animals animals.values() ['woof', 'moo', 'meow'] animals.keys() ['dog', 'cow', 'cat'] animals["dog"]+="bark" animals You ask me to do something similar in VB. not too difficult. [code] Set Animals = CreateObject("Scripting.Dictionary") Animals!cat = "Meow" Animals!dog = "Woof" Animals!cow = "Moo" OutLn Join(Animals.Items(), ",") OutLn Join(Animals.Keys(), ",") Animals!dog = Animals!dog + "Bark" OutDict Animals Of course since the dictionary doesn't expose a way to get a string representation of itself it doesn't output those. And outln and out were both redefined by me to output to a textbox (as opposed to using Debug.Print). As for a sorting routine, I would just use the class I wrote for that purpose. Besides, writing a sort routine isn't that hard, and one would only need to do it once. (bear in mind particularly the different problem domains of both python and VB6, VB6 comprises of "projects" and is used for creating applications. Python consists of an interpreter interpreting a single python file that may or may not reference other python files- it makes more sense in that case to try to put things such as sorting into built-in routines. Quote You have to be familiar with all 3 languages to make a fair comparison. What you are describing is a minor syntax issue Funny, most of your problems with VB so far (aside from the sort one, I guess) have been "minor syntax issues". Besides, I even said as much in that paragraph: Quote It might be straightforward to somebody familiar with it Quote Finally, how about adding items from another dictionary to the the animals one?For VB I would simply loop through all the keys and adding each key-value pair to the new array, just as I'm sure python is doing for you automagically behind the scenes. This isn't a problem in VB when you are familiar with it. Quote If you do a help(dict) at the python interpreter, you can use other dictionary methods that makes manipulation of dictionaries easy. Do you find that many in VB's version? VB Classic? No. Of course not, it's based on COM which in and of itself is rather limited. and The person who developed the Scripting runtime did so in a single afternoon (Dead serious, I read that on Lieppert's blog I think) so they didn't think to add all this stuff. Besides, you can always write routines later. Quote speak of the devil. You swear by VB don't you? Not counting this post I had an equal number of examples in C#. C# is now my main language, pretty much for the same reasons you go with python- more versatile... stuff. Generics alone would be enough for me to avoid returning to VB6 but combine that with LINQ and the gigantic class library and I may as well tear down the road back. But I still need to maintain my old VB6 applications. I notice how you specifically pointed out VB6. VB.NET and C# have access to the framework and therefor have direct access to the many number of data structures available in the class library, such as List,SortedList,Dictionary,Stack,Queue and a number of others. No Tree structures for some reason though.[/code]Quote from: BC_Programmer on August 22, 2010, 03:24:48 PM As for a sorting routine, I would just use the class I wrote for that purpose. Besides, writing a sort routine isn't that hard, and one would only need to do it once. (bear in mind particularly the different problem domains of both python and VB6, VB6 comprises of "projects" and is used for creating applications. Python consists of an interpreter interpreting a single python file that may or may not reference other python files- it makes more sense in that case to try to put things such as sorting into built-in routines.if you have to write your own subroutines, then how is it easy as compared to inbuilt subroutines ? Are you going to distribute your subroutine so that every body who uses VB can use it ? Quote For VB I would simply loop through all the keys and adding each key-value pair to the new array, just as I'm sure python is doing for you automagically behind the scenes. This isn't a problem in VB when you are familiar with it.but its still not easier than Python's like i said. You need to create a new array, loop through the items etc. I am sure Python also does that behind the scene, but I am spared from doing that myself. |
|
2384. |
Solve : C# RTF HTML editor? |
Answer» Hey all |
|
2385. |
Solve : Outlook 2k7 - create and populate new word document in VBA? |
Answer» Hello again. Hello again. Since you are creating a Word Document, you would first need to get the word OBJECT. in VBA, you can use CreateObject. Then you would want to create a new document; then you can use the document and manipulate it as you see fit. If you want, you can also add a reference to the "Microsoft Word Object Library" (Tools->References in the VBA EDITOR). Once added, you can work with Word Objects: Code: [SELECT]Public Sub CreateDocument() Dim WordApp As Word.Application Dim NewDocument As Word.Document Dim InsertImage As String InsertImage="D:\bcmountain2.gif" SET WordApp = New Word.Application WordApp.Visible = False Set NewDocument = WordApp.Documents.Add(, , , True) Set objSelection = NewDocument.ActiveWindow.Selection objSelection.TypeText "Text before the picture" objSelection.TypeParagraph Set Shapes = NewDocument.Shapes Set objShape = Shapes.AddPicture(insertimage) objSelection.TypeParagraph objSelection.TypeText "More text appearing after the picture" objSelection.TypeParagraph WordApp.Visible = True End Sub The above is a simple macro that demonstrates how to add basic images as "shapes" and text around that image. You can also save the resulting document by using the SaveAs() Method (NewDocument.SaveAs()) Be careful if you don't quit the Application Object but leave it invisible, since it will still be a running process. Usually best to do what you want with Word, and either quit it or show the results of the VBA to the user (by changing the Visible property to true). I did that here, if you want it to be invisible and quit, remove that LINE and add WordApp.Quit() to the end. |
|
2386. |
Solve : Schedule-Making Form (maybe a JOB OPPORTUNITY)? |
Answer» So I don't know if all this is even possible, but I have a league where scheduling always takes us two weeks to formulate and would like to cut that time by generating a form like below. We usually have 300-500 teams, and there, roughly 30 different divisions, 12 different gyms, 3 different areas, and 3 different time slots. I want to be able to fill in a team's name and set their priorities, then repeat the process for however many teams we have. Then I'd like to be able to check which priorities should apply to populate the fields on our schedule page. Then, assuming the entire schedule wouldn't populate due to the amount of priorities set, I'd like to be able to repeat the process after unchecking a box to populate the remaining fields. Then of course repeat that process of deprioritizing and repopulating until the schedule is complete. The schedule page would include times, dates on a y-axis and gym locations on an x-axis, with certain times blocked off based on when and where we have gyms. We're more than willing to pay to get this done, or ANY advice would be great. We can give whomever a lot more info later, if you think you can get this done. |
|
2387. |
Solve : Run application from webpage *without* Wscript? |
Answer» Hello everyone, Can what I've requested earlier be done in a program or any graphical browser in Linux? Please help out--I'm stumped here. It can be made a separate program, But my understanding of your original request was that you WANTED to do it with a web browser? That's not going to be possible unless you're also going to guide them through all sorts of permission SETTINGS and trusted groups, and that's assuming you can find a way to do it even with full control from the site itself, which I don't think is possible without the use of something like COM, which is only available on windows, and is probably best avoided anyway. If you don't mean a web browser but pretty much any type of program, then you can create it. I misunderstood what you were requesting, I suppose, if that's the case. But! a quick search reveals that, as with nearly any sort of FEATURE like this, there is already one available: https://bbs.archlinux.org/viewtopic.php?id=40025 That's the topic I found. has a little info on setting it up via it's config file. the site is here: http://bbdock.nethence.com/Wow--I guess I should have done more homework on the issue. Thanks! (I did not mean to get on you earlier--I just did not want to be accused of wanting to write anything shady, because I never purposely will do that to anyone.) I believe in "do unto others as you would have them do to you" and see it as relevant to computing. BBDock will work for the purposes requested. Reminiscient of NeXTstep. Again, thanks a million--this will make things easier. Wish I could have programmed, though. |
|
2388. |
Solve : Outlook 2k7 - open a mdb in VBA? |
Answer» hi peeps, |
|
2389. |
Solve : decompressing my computer? |
Answer» I am NEW to this. I only had 6mb on my pc so I decided to defrag. As it turns out, my pc was already set to defrag on a weekly basis. Then I got the bright idea to compress computer. I compressed my whole computer and now some proprietary software does not work. One of my ex-developers had the suggestion to delete the databse from SQL 2005 and then when I RESTARTED my siftware it coule reinstall it. Unfortunately because it was decompressed I couldn't open the database either to even delete it. |
|
2390. |
Solve : Powershell adding IIS? |
Answer» Is there a way to add IIS to a WINDOWS 7 SYSTEM through POWERSHELL? I am looking to add all sub components and the IISHWC (hostable web CORE). |
|
2391. |
Solve : VB6 - Wildcards?? |
Answer» What I'm trying to do is change the colour of keywords in a rich text box. I found a nice script on the internet which does just that, it finds any words passed to its sub and changes the colour to what was also passed to the sub. The problem is, I need to be able to change the colour of an unknown word between two #. For example, I need to change #word# to #word#. No replies? It seems like my other thread got lots of replies, but I guess that was only because other members were arguing over which programming language is better than the next. I didn't even see this thread until just now, actually. Your bump made it more visible Short Answer: is that Instr doesn't support Wildcards. As the function documentation states, it finds the First occurence of a string within another string- there are no special characters. There is, however, an alternative. One could create a alternate Instr routine- say, InstrLike() And allow to support wildcards. An even better solution would be to create an InstrLike() Function that used regular Expressions... actually it's easier that way as well. Code: [Select]Public Function InstrLike(ByVal Start As Long, ByVal String1 As String, ByVal SearchPattern As String, _ Optional Compare As VbCompareMethod) As Long 'normalize start ARGUMENT, otherwise Mid$ will error out. If Start <= 0 Then Start = 1 Dim RegEx As Object Dim Matches As Object Dim LoopMatch As Object Dim StrippedString As String 'Create a string consisting only of the area we are to search. StrippedString = Mid$(String1, Start) 'Create the Regular Expression Object. Set RegEx = CreateObject("VBScript.RegExp") RegEx.Pattern = SearchPattern 'Create the match collection... Set Matches = RegEx.Execute(StrippedString) 'if we don't find any matches, return 0. If Matches.Count = 0 Then InstrLike = 0 Exit Function Else 'otherwise, return the first match location, ADD the start argument as well, for when start is specified. 'I use a for each here because I couldn't remember if matchcollection was '0 or 1-based and I was too lazy to look it up. For Each LoopMatch In Matches InstrLike = LoopMatch.FirstIndex + Start Exit Function Next End If End Function in order to integrate it into the function you gave, you would need to change both Instr() calls in the given routine to InstrLike. An additional problem however is that you will now need to use Regular Expression escapes on all your searches. for most strings this isn't a problem, but things like slashes and periods and a few others need to be escaped if you ever use them. For your scenario, you would now call the function like so: Code: [Select]ColorWords Userinput,"#\S*#", vbRed You might even want to modify the method to allow for an additional optional boolean argument that can be used to forgo the regular expression code and just directly call and return the result from Instr (could be useful to avoid using regular expression escapes when colourizing literal values)curious, why are you even using vb6? for School? for work? for fun? Quote from: ghostdog74 on August 25, 2010, 08:03:13 PM curious, why are you even using vb6? for School? for work? for fun?I was taught VB6 in school, and I just like the feel of it.Quote from: Helpmeh on August 30, 2010, 03:22:50 PM I was taught VB6 in school, and I just like the feel of it.not that its my business to interfere with what you like to do, but my $0.02 is , VB6 is old. You should get on and learn modern languages. At least, they can do what VB6 can, (Python/Perl/VB.NET/Ruby/Java etc) and is catered to modern IT technologyQuote from: ghostdog74 on August 30, 2010, 07:46:35 PM not that its my business to interfere with what you like to do, but my $0.02 is , VB6 is old. You should get on and learn modern languages.In a response that I'm sure will stun us all, I agree. Quote At least, they can do what VB6 can, (Python/Perl/VB.NET/Ruby/Java etc) and is catered to modern IT technology C# FTW. Also, my experiments with IronPython (and to a lesser extent, IronRuby) are great; I haven't upped to VS 2010 yet, but to my knowledge it's quite possible to have a single project that uses any number of CLR languages- you could implement one part in python, other parts in C#, Ruby, VB.NET, and so forth. it's great for taking advantage of the abilities of each language where their purposes make the feature nice and short. TECHNICALLY you can do it with the older versions as well but the ability to have them all integrated in a single project in the IDE wasn't until 2010. Another nice "side-effect" of the CLR-ization of Python into IronPython is that when you compile it, your users won't need to have the python interpreter. Sure, it's only a small download and I believe there are ways to inline it and stuff, but It's cool to be able to reflect on python/perl etc. defined CLR classes as if they were any other C# or VB.NET class, without any special treatment. On the flip-side of course is that although on windows the .NET framework (in more recent versions) is preinstalled, python isn't, but with Linux, Python is almost always available, and it's Mono (the Linux/Mac framework implementation) that would need to be installed. Either way, though, nearly any of them will be better then VB6 as far as built-in language features go. Just thinking back to my attempts at implementing IEnumVariant in VB6 to define a custom enumerator which required like 5 extra classes and Actually memory editing the Vtable due to Visual Basic limitations on method names is enough for me to shudder. C# (and I'm sure VB.NET, and of course python and perl and other languages) can have an enumerator via a simple function/method. When I first went into C# I figured I would still use VB6 a lot. I HARDLY ever use it now, and when I do, it feels, well, CLUNKY. As ghostdog likes to point out in our little arguments now and then, it doesn't even have a way to sort arrays or pretty well anything built in. That's sort of silly. I mean, sure, it's not designed for short scripts... but VBScript is and it doesn't have Sort either. I wrote a class and interface (the latter a result of VB6's lack of delegates/function pointers, which is more a artifact of age then it is of design oversight (or maybe some of both)) to sort Variant Arrays, but it's still type sensitive (it can't sort arrays of integers, for example) and I shouldn't have had to write it. The best sort of implementation is one where you call a sort function or method and optionally pass in a comparison routine delegate. This is how almost all modern languages implement this, and the more Object oriented languages even define interfaces that allow objects to sort themselves, as well, by defining comparison routines and interfaces. And this doesn't even yet touch on the rising paradigm of "functional programming" epitomized in .NET as the first-class language F#. but most languages are capable of "functional programming" that have a concept of either function pointers (more messy, but still... doable) or lambda expressions/closures (python, perl (? I think) .NET languages, java, etc). I got stuck with VB6 and refused to switch until a few months ago (3?) and now I consider C# my main language, and only really use VB6 for maintaining my older projects, which have for the most part fallen by the wayside. For example, BCFile was a file library intended to replace the file access statements (Open, Put, Get, etc) with an Object Model- MS does this sort of with the FileSystemObject but that's more geared for scripting and text files, mine was also going to be able to read and write binary data as well as alternate data streams. It works fine, and is rather powerful, but there is a lot of stuff I had to do for the aforementioned custom enumerator that I ended up undoing because it turns out that messing around with the machine code of a compiled program can be unpredictable (who knew? ). But the thing is, That is the type of thing that should be built in. Whatever you choose to switch to, make sure to stick with it. For your next project, instead of immediately starting a VB project, do it in Python, or C#, or whatever language you want to try. And STICK to it, don't give up and do it in VB anyway. The more small, and the more large projects you do in the language the better you will get and the more familar you will be with it. I started by rewriting my expression evaluator in C# from scratch, the idea was to best leverage the far more powerful Object capabilities of the language. I had the algorithms pretty well memorized and it was merely a matter of learning the syntax- the language, and learning how to best express myself. I started out constantly missing semicolons (due to my long years with VB6) but now I find myself adding semicolons to my old VB6 programs when performing maintenance. |
|
2392. |
Solve : CMD file using SET? |
Answer» I have a strange problem doing something that should be very simple. I'm running WINDOWS 7 Enterprise, no service pack installed. |
|
2393. |
Solve : String Manipulation using C++? |
Answer» I wanted to play around with using string manipulation to divide very large numbers. And what wrong with C++ it is widely used.Nothing is wrong. You can do whatever you want. But i don't agree with C++ being widely used. It might be widely used back in the hey days, but nowadays, i don't see any use of C++/C , except for 1) if you are writing device DRIVERS where you have to interact with OS at low level 2) if you need the pure speed , such as if you are making a graphics game or something 3) maintaining legacy code written long time ago. I will tell you what's more likely to be used than C++. Languages like PHP/Perl/Python/Ruby etc. Nowadays, its mostly about the web. You don't often see people using C++ (not that it cannot be done) to rack up a web site application. For system administrators, you don't see many of them writing scripts using C++. (this is not to say they can't produce their own tools using C++) Besides this, using interpreted languages has its advantages, like quicker development time (you don't to compile, link etc), and they are almost nothing interpreted languages can't do that C++ can. You don't have to take care memory management, and pointers as well etc. C++'s implementation of OOP is the biggest joke in the history of programming, too. It has one of the most complicated and context sensitive grammars. Whatever it boils down to essentially C++ is just like C with a few extra macros for classes and stuff. (after all, the original C++ compilers compiled to C code which was compiled by a normal C interpreter.). There are some "programmers" who seem to think that if you don't know C++, then your a "script kiddie" which is nonsense. As Ghostdog NOTES, if you can do in 5 minutes what takes 5 days to do in C++ then the only reason to do it in C++ would be due to programmer hubris. C and C++ have nothing called "string manipulation". as far as C and C++ are concerned, you have arrays of characters, and a few functions that work with them as if they are strings. There are classes that can be used but they have terribly designed interfaces and method names that were probably selected in 1970 or something. And don't get me started on name decoration.... In either case, I'm not sure if C++ has it (I believe it does) but I'm quite certain that python and perl have it (and if they don't I'm sure it can be found in a MODULE or on CPAN), and all the .NET languages have access to it through the framework, but there are "BigInteger" and "BigDecimal" classes that can be used in nearly any language, and they support all the operations, not just division. Lastly: Even if C++ was widely used, that's hardly a good reason to use it yourself. @BC, yes Perl/Python (others) do have libraries that deal with BigDecimals. etc. Its all there in the repositories I am relearning c++ and going to start learning c#. I want to expand my knowledge and write some simple applications and only know how to do it in this language. As far as web programming, I agree PHP and Per kick *censored*. But I do not know how to program windows applications using these languages and I am unfamiliar with python and ruby, but I will learn, eventually.Quote from: Circuit_Girl on September 01, 2010, 12:01:45 PM I am relearning c++ and going to start learning c#. I want to expand my knowledge and write some simple applications and only know how to do it in this language. As far as web programming, I agree PHP and Per kick *censored*. But I do not know how to program windows applications using these languages and I am unfamiliar with python and ruby, but I will learn, eventually.PHP/Perl/Python/Ruby etc all have their own GUI packages. Also, libraries are created for interfacing with GTK or QT. So yes, you are able to create GUI applications with them. |
|
2394. |
Solve : Java GUI Help? |
Answer» I am currently trying to OPEN up a new jpanel when a button is pressed. i know this should be a simple task but i tend to work STRICTLY with text so i have little experience with GUIs (hence why i am working on it). i am using netbeans 6.9.1 for an IDE.Also note: |
|
2395. |
Solve : Gamepanel and ftp permission? |
Answer» Hello to you. |
|
2396. |
Solve : Batch: Input typed incorrectly? |
Answer» Hi, I am creating a small batch file that turns the user's input into a COMMAND. |
|
2397. |
Solve : Subfora suggestion? |
Answer» Here's a suggestion: How about making subfora for each programming language? Or is that too MUCH? Like: Programming C# C Objective C C++ Java Python PERL Or maybe.. Programming Procedural Non-Procedural Dunno. QUOTE from: Big on September 04, 2010, 05:49:26 AM Here's a suggestion: That's too much. And it begs further questions as to the organization of said sub-forums- do various Basic Dialects (RealBASIC, Visual Basic, Dark BASIC, etc, get their own forum or would they be even forther sub-divisions within a BASIC forum? And even then, there are far too many languages to implement this. C,C++, BASIC,Java, Python, Perl*, C#, F#, Javascript, VBScript, Haskell, RUBY, TCL, PHP, ASP, Pascal, Delphi, Eiffel, Fortran, COBOL (yes, those last two are asked about every once in a blue moon, or at least a question relating to them is asked) REXX, Squeak, Boo, VBA, etc etc. And even if you can come up with a consolidated list, do you make separate entries for, say, J#, and J++? Do you have a separate area for using C++ with .NET CLI? Soon the organization becomes more chaotic then it was. Besides, Nathan (admin) has been RATHER clear that he wants to try to limit the number of subforums as much as possible- a sentiment with which I must agree. It wasn't until rather recently that the Windows section was separated into various Windows Versions. The thing is, there are a finite number of choices, really. 9x,NT,XP, and Vista/7. When it comes to languages, you can either give them all their own specific subforum (which again raises the question, do various dialects get separate entries) or do you try to "group" them as you've indicated, Into Structured, Object Oriented, and Functional Programming languages. and even then, how do you decide? C#, for EXAMPLE, can be used as a Functional Programm languages just as well as a Object Oriented one- in fact, Object Orientation is mandatory, but with other languages, like python, you can choose to do whatever you want- structured, object oriented, or functional. How would you group that? And what about regular expressions? Would those have their own separate area? And would it have it's own sub-forums that relate to the various "dialects" of RegExp? (.NET, Java, Perl, JavaScript, etc). As you can see, what seems to be a simple idea to improve organization and make the forum easier to navigate may only serve to further confuse and make organization difficult. The more you try to classify and subdivide things the more you find they fit into common groups. *Remember, It's Perl, not PERL, everytime you spell it PERL, Larry Wall emits a quiet sob. So that's two in this sentence alone. Sorry Larry.- Microsoft - Non-Microsoft Seriously, they've made SO MANY LANGUAGES. Quote from: Fleexy on September 04, 2010, 10:00:25 AM - Microsoft They've made one language that was ECMA ratified to my knowledge, C#. They've made a lot of IDE's though.Subfora? Did we start speaking Latin while my back was turned? We constantly use numerous degenerations of Latin, English, Italian and German, almost not being aware of it (aquarium, fax, scenario, ..). 'Fora' is an accepted secondary form. However, I come from a very linguistic background (when age 11 to 18, we get taught 16 hours of Latin per week in highschool). Yes, there are more than a 1000 programming languages. So yeah.Quote from: Big on September 04, 2010, 12:16:39 PM 'Fora' is an accepted secondary form. Yes, I know. I only recently gave up worrying about whether it was necessary to use Latinate plurals like fora, virii, stadia, etc. Quote However, I come from a very linguistic background Yet you wrote "a 1000" |
|
2398. |
Solve : powershell printer question? |
Answer» Can some one please point me to an example of a Powershell script that installs a TCP/IP printer? unfortunately our department decided to stop using print servers so now we are forced to add printers using print to IP. I am looking for a script that will install a printer and use a TCP/IP port. I ran into the same problem and after some tinkering around at the Powershell command line, I suspect the problem is not with the put instruction but with the value of the properties. Specifically with the Drivername property. If any one is having this issue you can try the neat little utility MS provides to do this. And the best part is you can point to an INF over the network. This is how I solved the issue I was having above. C:\Users\ss947bw>pnputil /? Microsoft PnP Utility Usage: ------ pnputil.exe [-f | -i] [ -? | -a | -d | -e ] Examples: pnputil.exe -a a:\usbcam\USBCAM.INF -> Add package specified by USBCAM.INF pnputil.exe -a c:\drivers\*.inf -> Add all packages in c:\drivers\ pnputil.exe -i -a a:\usbcam\USBCAM.INF -> Add and install driver package pnputil.exe -e -> Enumerate all 3rd party packages pnputil.exe -d oem0.inf -> Delete package oem0.inf pnputil.exe -f -d oem0.inf -> Force delete package oem0.inf pnputil.exe -? -> This usage screen |
|
2399. |
Solve : DOS Help for Beginner? |
Answer» HI Guys, I HOPE you can help, I have a file and WITHIN that file I have about 20 ODD lines of information, what I basically want to do is copy the FIRST bit of information and ouput it to another text file so for e.g. \\blah\blah\blah.pj ->xxxxxxxx \\blah.pj ->xxxxxxxxx \\blah\blah\blah\blah\blah.pj ->xxxxxxxx \\blah.pj ->xxxxxxxx I want all the info from \\ to -> ouputted to another file. Thanks in advance for your help You posted the same request for help in the Dos forum - please do not double post. |
|
2400. |
Solve : Batch file with options? |
Answer» I would like to create a batch file with options of software to install from our network. I've TRIED search google and couldnt really find what I was looking for but know its possible. |
|