seec77
Members-
Content Count
156 -
Joined
-
Last visited
Everything posted by seec77
-
[flash] Its Really Hard To Be A God (old but maybe not for all)
seec77 replied to zomowiec's topic in General Discussion
Wow. God is a DJ, eh? Definately wow. Everything was done perfectly and every word I add to this post is useless. -
I loved the Incredible Machine, where you built all these gizmos and stuff and made it run. That was so cool! And I'm also right now playing a lot of Mortal Kombat 4. And Jazz Jackrabit was an early childhood favorite, along with Worms.
-
File Upload With AJAX File upload with xmlhttprequest ...
seec77 replied to Ola Daniel's topic in Programming
In addition to Javascript (and AJAX) you need to know a little bit of PHP to create a web page that receives the uploaded file and saves it to the web server. The other way would be WebDAV but that's going into very complex and largely uncharted territory and I would not suggest it. Sorry, but that's all the advice I can give you right now without opening up my programming section of the brain. If you want I'll write the PHP script for you so you can just try to write the Javscript part. -
Firstly, I'm sorry for the delayed response, I kinda forgot about this thread. XIII, I'm very sorry! I was definately not mad, but I did overreact and you should know that I am usually not such a person as I portrayed myself in that post. Actually, I just built someone on these forums a full Microsoft Excel routine, and I worked on it for quite a while and built numerous revisions of it, and I enjoyed the task at all. I noticed the tone of my original message was a bit harsh, which is why I added the pseudo-friendly "good luck" at the end. Guess it wasn't enough, so I ask for your forgiveness again. vujsa, thank you for the long and considerate comment. As you will notice, my post was written almost a month ago, a small while after I first joined these forums, and I hope you will trust that I've learned the true nature of this excellent community, and have been given a lot of help by it. I've since calmed down, but your message to me still opened my eyes a bit, so thank you! And again, sorry all.
-
Oops! Stupid me! Sorry for that supid mistake of mine! Sub RenameFiles() 'Edit this variable to look for a different string at the beginning of filenames Match = "Budget" 'Edit this to false if you do not want confirmation Confirm = True 'Define an FSO object Set FSO = CreateObject("Scripting.FileSystemObject") 'Change the string here to look in a different folder (highly recommended :P) Set FilesDir = FSO.GetFolder("C:\yotam\temp\renamefiles\test\") ReDim Files(0) 'Loop through all of the files in the folder Dim CurFile i = 0 For Each CurFile In FilesDir.Files 'If the file begins with the word "budget" then rename it If LCase(Left(CurFile.Name, Len(Match))) = LCase(Match) Then 'Store all files in an array Set Files(i) = CurFile ReDim Preserve Files(UBound(Files) + 1) i = i + 1 End If Next 'Loop through all of the selected cells i = 0 For Each Item In Selection 'If we're out of files to rename, we're done If (i = UBound(Files)) Then Exit Sub End If If Confirm Then 'Confirm the renaming operation with the user and check the answer result = MsgBox("Rename """ + Files(i).Name + """ to """ + Item.Value + """?", vbYesNoCancel, "Rename") If result = vbYes Then 'Do the actual renaming in case the user confirmed Files(i).Move FilesDir + "\" + Item.Value ElseIf result = vbCancel Then 'If the user click cancel, we're done Exit Sub End If Else 'Do the actual renaming if confirmation is disabled anyways Files(i).Move FilesDir + "\" + Item.Value End If i = i + 1 NextEnd SubThis is hardly a change over the previous code, but it should work now (I tested it in an enviroment like your's should be, and it worked). About the VB, I guess I can help (even though I haven't done VB6 in quite a long time and don't have it installed). You should open a new thread in the appropriate place. Just be aware that VB is really a bad language for something like what you're trying to do! Sorry again! I hope this is the last time I have to post this code.
-
Age Of Empires Or Starcraft? who comes out victorious?
seec77 replied to parzons's topic in Computer Gaming
I can't say which one I like better either. It does depend on playing mode though. Starcraft sucks for one-player, but gave me and my friends hours of entertainment on my friends's LAN, and a lot to talk about during recess all through elementary school. Age of Empires took up a lot of my time alone, and can be compared to Red Alert. I actually once played AoE with my friend though Direct-IP connection or whatever, and it was nice, but didn't last that long (the game got disconnected, and I was stuck with my friend's ships blocking the path to the enemy computer ). Anyways, both are great, but it depends on how many people you're going to play with and how many computers you've got. BTW, I'm talking about the Brood War expansion for SC and AoE II and onwards. -
Javascript would be your worst option for this task. Javascript can choose the options, and submit the form thus taking you to the next page, but you will have to save the table manually. I suggest Python for this mission. It is immensly simple to learn and very effective. You will be able to download the table, programmatically extract its contents, and put them wherever you like!
-
Sub RenameFiles() 'Edit this variable to look for a different string at the beginning of filenames Match = "Budget" 'Edit this to false if you do not want confirmation Confirm = True 'Define an FSO object Set FSO = CreateObject("Scripting.FileSystemObject") 'Create a variable to store the folder holding the files Dim FilesDir As Folder 'Change the string here to look in a different folder (highly recommended :P) Set FilesDir = FSO.GetFolder("C:\yotam\temp\renamefiles\test\") ReDim Files(0) As File 'Loop through all of the files in the folder Dim CurFile As File i = 0 For Each CurFile In FilesDir.Files 'If the file begins with the word "budget" then rename it If LCase(Left(CurFile.Name, Len(Match))) = LCase(Match) Then 'Store all files in an array Set Files(i) = CurFile ReDim Preserve Files(UBound(Files) + 1) i = i + 1 End If Next 'Loop through all of the selected cells i = 0 For Each Item In Selection 'If we're out of files to rename, we're done If (i = UBound(Files)) Then Exit Sub End If If Confirm Then 'Confirm the renaming operation with the user and check the answer result = MsgBox("Rename """ + Files(i).Name + """ to """ + Item.Value + """?", vbYesNoCancel, "Rename") If result = vbYes Then 'Do the actual renaming in case the user confirmed Files(i).Move FilesDir + "\" + Item.Value ElseIf result = vbCancel Then 'If the user click cancel, we're done Exit Sub End If Else 'Do the actual renaming if confirmation is disabled anyways Files(i).Move FilesDir + "\" + Item.Value End If i = i + 1 NextEnd SubHere's the updated version. The new things are that firstly, it will now work on any Excel workbook without any need to modfy anything. Secondly, the routine now retrieves the new filenames from the selected range. And thirdly, it now features a confirmation feature, that can be turned off quite easily by changing the Confirm variable to False. If confirmation is enabled, the user gets asked to confirm every file rename. I just added this feature because I imagined that you might be afraid that you're renaming the wrong files, or selecting the wrong cells, or whatever. Anyways, I was really happy to make this, so if you have any improvements you want me to do on it, or any other VBA (not neccessarily Excel) application you want I'd be really glad to help!
-
This is the messy way, but I can't remember right now how to do it otherwise, and I'm kind of busy this second, so I'll just give you a little hack to make it work on other Excel files. In the Microsoft Visual Basic editor go to Tools -> Reference, and check Microsoft Scripting Runtime, and it should work. You have to do this for every workbook you want to use the code in.
-
As for the most immediate solution to choosing different rows/columns each time, change the first few lines of the subroutine to: StartRow = CInt(InputBox("Row to start from?", "Row", "1"))StartColumn = CInt(InputBox("Column to start from?", "Column", "1"))This will make the macro pop up two question boxes each time you run it to ask you for a row and a column. About the ordering. I really don't know, because FSO (the file system object which I use to access the files) apparently sorts the files on its own, but I don't know what rules it works with. I can easily create an ordering function (I think ) so tell me what you want. And maybe the program as of now regards the extension as a part of the filename, and takes the whole file as a string instead of taking the extension seperately. That could explain why the TXT file came before. I've been messing around with the selection thing. This is really fun, but I have no results to show you right now, but I'll post back as soon as possible.
-
Yes, of course there are specific requirements for a Drupal theme, but they're generally quite unrestrictive. You can also choose whether you want to use Smarty as a templating engine, or some two other options. I don't have much experience with theming in Drupal, but I'm sure that if you post a layout in HTML that you like I can help you in converting it to Drupal. You don't need to care about PHP or whatnot, just care for the template itself.
-
I think you forgot to post the code!
-
Those sites that don't appear correctly in Firefox are ones who's designer was annoying enough to use various IE hacks to make their super-fancy site only work in IE. And as for your other inquiry, try Ctrl+B.
-
Apache Query: Requirements To Run Own Web-Server?
seec77 replied to sandeep1405241520's topic in Software
I wouldn't recommend actually trying to serve a website from your computer. I mean, it's great for testing your PHP skills, and lots of other things - I have about 6 Drupal installations on my computer, most of them broken from messing aruond. Apart from that I have lots of phpBB/Wordpress installations. I always mess around with Apache + PHP + MySQL (LAMP), but it's really not for the whole world wide web. You'll also at certain points find the noise that your computer makes during the night quite unbearable, or at least I did. BTW (off-topic), m^e, my brother's wife is the executive producer of Radio Bu Israel. (I noticed last.fm shows you listened to it...) -
Oh great, I have to write this post again because I accidently closed my computer before sending it. First of all: No, changing the name of the sub should not be a problem. What caused the problem for you was changing "budget" to "leatherman". This new code should solve such further problems: Sub RenameFiles() 'Edit this variable to start the name search from a different row: StartRow = 1 'Edit this variable to specify in which column the names are: StartColumn = 1 'Edit this variable to look for a different string at the beginning of filenames Match = "Budget" 'Define an FSO object Dim FSO As FileSystemObject Set FSO = New FileSystemObject 'Create a variable to store the folder holding the files Dim FilesDir As Folder 'Change the string here to look in a different folder (highly recommended :P) Set FilesDir = FSO.GetFolder("C:\yotam\temp\renamefiles\test\") 'Define a counter variable and set it zero Dim i As Integer i = 0 'Loop through all of the files in the folder Dim CurFile As File For Each CurFile In FilesDir.Files 'If the file begins with the word "budget" then rename it If LCase(Left(CurFile.Name, Len(Match))) = LCase(Match) Then 'Rename the file to the value in the specified cell CurFile.Move FilesDir + "\" + Me.Cells(StartRow + i, StartColumn).Text 'Increment the counter so next time we will use a cell from the next row for naming i = i + 1 End If NextEnd SubIt was causing problems for you because I hard coded the routine to look in the first 6 letters of the filename for the word "budget", and obviously the code never worked because the program couldn't find the word "leatherman" in the first 6 characters of the filename. Anyways, I now put the word to match in the Match variable, and it automatically makes it lower-case and measures its length, so you should have no problem messing around with it now. I'm trying to make a variant of the routine that can work on the cells you select as filenames. Are you interested? And tell me if it works!
-
Gmail Exploit: Discovered By 14 Years Old Boy
seec77 replied to marretas's topic in Security issues & Exploits
That's just plain naiveness of you! Of course Google cares about money. They are just smart enough to believe that more money will flow through satisfied users. What I mean is, that while MS is using vendor lock-ins and other dirty corporate trickery, Google are just creating good products. I am at a constant fear that Google will go bankrupt in the future because of this belief of theirs. I mean, as much as they're trying to do good, MS is using said corporate *BLEEP* to lull users into buying more things from them, and the big G is already entering a monopolized world, and even though they successfuly penetrated it, it's going to be a tough time for them to maintain that position. Just look at the progressive genre of music - it's great, complex, endearing music, but it's losing out to corporate pop (which I have nothing against). Of course Google care about money. And yes, I'm sure there are some high-ranking Googleplexers that are greedy for a higher pay-check - but they're just being smart about their customer service. -
Hot: A Windows Desktop Made Entirely In CSS
seec77 replied to darkranger's topic in Websites and Web Designing
Yeah, the backgruond image shows incomplete for me too! But anyways, this is a really brilliant thing, even though it serves no useful purpose. I just wish all the sites would start to conform to CSS now, so I can finally dump IE! BTW, I downloaded IE7 beta, and I noticed that it now displays a perviously IE-only site the same as in Firefox. That must mean that their spec-conforming just got (a bit) better! -
Well, I'm done! Here it is: It turned out quite a few lines of code less than I had imagined. I hope you understand what's being done here. Open up the VBA editor through Alt + F11. The code is in the file for the first worksheet. If you want me to move it over to the whole workspace, and have it work on the current worksheet, I have to move some stuff around, but you can easily move it to your own worksheets as is. Just don't forget to look at the code and change the three variables there (column, starting row, and directory name). The code looks only for files beginning with "budget" (case-insensitive), and then renames them to the values in your worksheet, sorted by the original filesnames (FSO sorts automatically! ). The little testing I've done proved it quite useful, but it if you're having trouble with it write back. Anyways, you can call this macro by going to Tools -> Macro -> Macro Commands (or whatever it's called in English, as I have a Hebrew version ). Personally, I would advise you to give the macro a button on your toolbar by doing this: Go to Tools -> Customize... Open the Toolbars tab, and click on New... Name your new toolbar "Rename" or something like that. Go to the Commands tab, and scroll the right listbox down to Macro Commands. Drag a Customizable Button to your newly created toolbar that should be open. Right click the new button on your toolbar and choose the lowest option ("Associate Macro", or something to that effect) and choose the RenameFiles macro. Right click again and change the name and other properties of the button. Drag the toolbar to wherever you want it at. Enjoy!
-
I think I understood what you're meaning. I'm working on it as I'm writing this and I hope that in half an hour max. you'll have your working VBA code!
-
Well, I'm currently (as of two weeks ago ) 16 years old, but I started programming at the tender age of 7. I was first taught QBasic by the big brother of a friend, and I moved on to teaching myself other languages. I don't quite remember when I learned HTML, but it was definately there somewhere. Afterwards, I learned Javascript, in quite an interesting way: by copying "window.alert()" commands from other websites into my own. Somewhere along the line my parents bought me a JS book which I treasured and read thoroughly quite a few times. Anyways, here is a list of all languages I've dabbled/fully occupied myself with (not in a chronological order): QBasic (quite a lot) Javascript (a whole lot) Visual Basic (a whole lot) Python (just beginning) C(++) (never built a major application with it, but quite a lot) ASP (a lot) PHP (recently started, but managed a lot) mIRC Scripting (a lot, even thuogh I never built a full script) Java (just a little bit) ActionScript (thwarted by my inability in designing!) I do think that's it...
-
My list of extensions: IE Tab: Great for viewing those IE-centric pages. I must state that since I've installed the IE7 beta, one of the three sites I used IE Tab for displays in IE just like in Fx. Adblock: What else can I say? Adblock Filterset.G Updated: This extensions is supposed to be updating my Adblock lists or something, but I forgot about it... Mouse Gestures: It was nice for a while but I think I'll uninstall it or something. Not really useful... Fission: This is a cool extension! It makes your address bar act as a progress bar for page loading. Quite nice, if not that useful. Greasemonkey: Woohoo! Really great extension! Only I don't have any scripts loaded... but whatever. It's still darn cool. Web Developer: For those times when I think of myself as such. Live HTTP Headers: I use this from time to time for some website reverse-engineering.
-
From Window Of A Train Some photographs I took on my vacation
seec77 replied to Vyoma's topic in Graphics, Design & Animation
The first one isn't that good... I dunno! But it does seem as if there's a sumo fighter peeing next to the tree. (Or is that just me?)Anyways, the second one is also quite nice, but nothing breathtaking... sorry! -
Of course! Your files are currently static, right? Getting them to be served from Xisto is really a breeze. Just open up the folder where all your WML files are going to be, and create a file called ".htaccess" over there). If your FTP client doesn't support strange filenames (dots at the beginning and stuff... ) you can create the file using your CPanel's file management control. Now just add the following line to the file: AddType text/vnd.wap.wml .wmlThis tells Apache (the web server) to serve the .wml files in the folder with a special header that lets your clients (more specifically, their cell phones) know that they're being given WML files. I'm guessing you'll also want to add the following lines: AddType image/vnd.wap.wbmp .wbmpAddType text/vnd.wap.wmlscript .wmlsThese will add support for WBMPs (wireless bitmaps) and WMLSs (WML scripting language). I do think that you need to do no further, but if it still doesn't run after doing all this write here agin.
-
About trying to build a LAMP on Linux: most distributions come with at least Apache (1 or 2) installed, and using the package managers to install mySQL and PHP (even though a lot of distros have the on by default) is a real breeze. And yes, Fedora Core can be used to setup a SAMBA server, but because you're not that experienced with Linux (and neither am I) you were told to try out SuSe. If you already have Fedora I suggest you try to stick with it and learn it instead of downloading/installing a new distro at this stage.
-
Yes, of course it's possible! It may take some tinkering around and stuff, but it's definately possible. You're going to have to send "Content-Type" headers using PHP, or edit the .htaccess file to specify the MIME type of WAP pages. Overall, it's quite possible, and even pretty easy to do. If you're having problems with it just contact us.