Start by learning how to program.
Sorry for being so blunt but based on the effort you put into asking the question, what type of answer were you expecting? We have no idea of your abilities or education and you have apparently not read the Daniweb Posting Rules or Suggestions For Posting Questions.
Please give both of those a good read through and feel free to post more specific questions.
Please see my post vbScript - The Basics for more details on vbScript.
When you want to execute an external program for a particular result (such as resizing an image, as shown in a previous snippet) you can simply use the
Run method of the
Wscript.Shell object. However, if you want something a little more complex there is the
Exec method of the same object. This method gives you access to the standard input, output, and error streams. As such, you can take advantage, for example, of the increased flexibility of all of the built in commands available in a command shell.
Let's say you want to generate a list of all of the files of a particular type in a given folder, and all subfolders. To do that using the Scripting.FileSystemObject you would have to write a recursive routine that would enumerate all of the files in the given folder of that type, then call itself for each subfolder in the given folder. While not that complex it is still not trivial. It would be far easier to just be able to do
dir /s .b somefolder\*.jpg
and capture the resulting output. As it turns out this is easily done by
set wso = CreateObject("Wscript.Shell") set exe = wso.Exec("cmd /c dir /s /b d:\temp\*.jpg")
That's it. Except for getting the output. For that you read the text from the standard output stream. You can read it line by line ...
That works fine, however if you want to remove a country, the code list will move and it wont match the proper country, how would you do that?
Thanks in advance,
Im about to have my big brake and i'm gonna ask you about creating a music app like spotify? Do you know where to start from?
Probably not, based on the almost complete lack of details.
Remember back in the early days of the PC when software was confusing (unlike now, right?). There was a big push to make software "user friendly". Typically this consisted of little more than adding "User Friendly" to the box.
That's how I consider most of what passes for AI today (with some exceptions). Defining a true AI is like trying to define consciousness. It's difficult to say what it is. Passing a Turing test may be sufficient. Perhaps when an AI starts asking existential questions (not fro a preprogrammed list).
Hello i have a Ionic Angular project. I haven't changed any of my files and i am getting an error
data is null after
That means that i can't connect to my database. I havent made any changes on the database or change any of my files.
@ rproffitt- No need of such reaction. My work has been through MS-word/ google docs, spredasheet/ MS-Excel, and only surfing through some of the websites, since I am a content writer.
So I was using system with such low specification and still its running slow, was my problem.
Anyways Thanks for the help.
Thanks everyone for actively participating in the thread. Your replies helped a lot to know the problem with my system.
Suddenly coming to think of it, what in fact is a true AI?
Are there 'false' AIs? Other AIs?
Can anyone clear this out for me?
My Amiga 1000 was stolen during a burglary while I was in Paris; I bought a 3000 then upgraded to 1500 - I kept them for years but I was never geek enough to bring them into the 21st Century. My monitor blew up in 1999 and I ended up building a windoze machine from scratch. The Amiga is still the only machine I know of that could have 2 different screen resolutions at the same time (and it multitasked - multiple windows running the boing bounce). It was the goto machine for the world graphics competitions for the longest time.
Dani, Yes it gave me fits b/c NOTHING looked the same and I had to tweek LastPass (my p/w protection program) to get in; the 'stay logged in' feature is pretty nice. But all is well now.
Back in the day - early Obama administration - there were some guys on here that seemed to be Libertarian but had names like 'Sturm' and said I should check out the website AceofSpades. I look back and realize that they were effing ÁltRight/White supremecists - back then I just thought they were clueless teens. Not blaming DaniWeb at all - just thinking about the discussions that came up back then (one of the guys who kept trying to convince me I was Libertarian eventually died of stomach cancer or something - I missed him b/c we had some interesting discussions. That 'Sturm' dude - don't miss him at all.
What will be the command to dump the memory of a windows system to a certain partition with a specified name
This is the first in (hopefully) a series of posts about vbScript. Please see my post vbScript - The Basics for more details on vbScript.
My wife and I take a lot of pictures. Naturally, we end up sending pictures to friends through email. I find it is unnecessary, and often inconsiderate to send full size images via email. When most of our friends end up viewing these images on a hand-held device, it is pointless to send an image wider than 600 pixels. As such, I have to repeatedly
This gets tedious after a while. Fortunately, I found a free package, ImageMagick which allows me to do the resize from the command line. What I would like is to set up a special folder such that when I drop an image file into it, it gets automatically resized. I could easily do this by running a script in a loop and repeatedly polling a folder but this is wasteful in terms of resources. I would prefer to have Windows notify me when a new file appears in a folder. Fortunately Windows has the ability to create a FolderWatch that will sit idly by, consuming next to nothing in the way of resources, then do something when there is something to be done.
A couple of notes:
'#region Header '#endregion
are recognized by ...
I think because the database generates an automatic rowid, so they will be returned in order don't they? or i should first sort them first? how can i set a secondary index on English?
def enter_meaning(self, tag): if self.listbox.curselection(): results = self.cur.execute("SELECT English FROM Words order by rowID") for row in results: self.textbox.insert(tk.END, row)
Yes, each user has their own login. How else to track down who did what to the database?
I'm not saying what you are doing is incorrect. Your design may not need such logging.
So, let me get this straight, your users, all of them on the other side of a web screen has their own database login? This seems kinda contrary to some of the technologies out there, windows forms, forms based authentication, identity framework, etc. This is a web login application. I am essentially making my own login screen via hash algorithims and I have an object relationally mapped user object with both roles and groups objects. I made an authentication attribute which I use to flag controllers, and I made a password complexity object for determining whether the user's password is strong enough. I also salted the passwords of all users in accordance to my web config file so that the hash password won't match any rainbow or brute force tables as per good crypto technique. I have heard of straight windows authentication which uses windows accounts, I have heard of identity framework for microsoft applications, and I have heard of forms based authentication where you create your own login page from scratch. Usually I believe that the application has a database login, and the users have a seperate login but I could be mistaken. Can you point me to some material for your method?
My plan is to post a series of hopefully useful and informative vbScript Functions and Subs. I started writing up my first code snippet and found that I was taking too many side trips to explain things about the vbScript syntax and language so I decided to postpone the first snippet until I had completed a vbScript intro.
There has been a lot of interest in scripting languages, most notably Perl and Python. While decidedly less versatile and powerful than Python, vbScript (which is way down on the list) has several good points to recommend it.
The simple syntax still requires some effort to learn and some documentation. Even though Microsoft includes vbScript (cscript/wscript) with Windows, for some reason they have removed all traces of the associated help file, script56.chm. I've attached a zipped copy of that file with this post. Ignore the parts that relate to jscript.
Point number 2 notwithstanding, I find that having Visual Studio installed makes debugging much simpler as you can use the VS debugger to watch/single step through code just like you would a vb.Net or C# application.
For editing source code, while Notepad would do the job, there are much better (and free) editors available. While not free, I use ...