Open Challenge To Vb Community: Reading Grib Files?
Mar 17, 2010
I currently have a program that I made which opens other apps packaged with an installer. I have set the installer to install everything to the Program Files folder. However, not all computers have a C: hard drive. I have a way in which they can enter their drive letter in one form then in the next form it remembers the drive and will take them to the program. The problem is my program stores the drive letter in an xml file. On the startup of the program it looks in the xml file to find the drive letter, if there is no drive letter the form opens then lets the user set his drive letter. The xml file is stored in the folder "Math Wizard" in the Program Files folder. But if not all
I have looked everywhere on this but do not know anyone who have accomplished it so far that is how to read values from a grib (gridded binary) file. Below is a link for Environment Canada where they store the forecast values in grib format. These file can be opened using tools like wget but is nowhere close in reading the data values from the file itself.url...
I have 202 .html files and at the beginning of each file, I need to add a chunk of php code. I could make this myself, but to be honest, it would take me forever and I might as well just manually edit them lol. All the .html files are in one folder.[code] one other thing that would be VERY cool, is if it could add the files that are not edited to a listbox or an outputted text file.
im not able to find lots of command that i used to use in vb 6 i want to know the syntax for READING THE TEXT FILE and WRITING THE RESULT IN TEXT FILE in vb6 i used the following syntax:: Open "infile90.txt" For Input As #1 this is giving me error...
i have 2 problems the first problem is if i have a .txt file how can i extract specific data. the second problem can i create batch files on the fly because of the need for a variable again it may not make sense but shout tyrannically
In a DataGridView I have two columns and multiple rows.All rows in column 1 represents a computer name and all rows in column 2 represents the given computer's status.
somebody put a regex expression that will:find a chunk that starts with [% and ends with %] within that chunk replace all xml special characters with:& quot; & apos; & lt; & gt; & amp;leave everything between <%= %> or <%# %> as is except make sure that there is space after <%# or <%= and before %> for example <%=Integer.MaxValue%> should become <%= Integer.MaxValue %>
I decided that before I can fully and effectively criticize this monstrosity , I needed to take in the full view of it. So I went and installed the Community Forums NNTP bridge,availableSeems to be working.
how useful is dotfuscator free community edition? I applied it on my application and then checked the assembly using the Red Gate's .net reflector. It seems dotfuscator just changed the names of modules,classes and functions. once you know where to look( module or the class) , code was pretty much visible.Basically I want to secure my .net applications and to prevent them from being disassembled in to meaning-full code.
I have been asked to fix a Community Server forum where thousands of users were created via a script. All of their profile pages are SEOspam for prescription drugs, etc. The forum was not using email verification or admin approval for newly registered users. I turned on the latter for now, but captcha would be nice.
My problem is that it is very cumbersome to mass delete these accounts. I set up a .net grid (Telerik Radgrid actually) so that I could mass select users and click delete. However the following code does not seem to be working (mind the VB nubbery):
Protected Sub rgUsers_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rgUsers.NeedDataSource rgUsers.DataSource = Users.GetUsers().Users() End Sub
[code]....
The UserDeleteStatus result returns 'Success', however the user is not actually deleted. Am i using the correct delete function?
I would like to protect my assemblies with Dotfuscator Community Edition I have a setup project that builds an MSI installer. I was wondering if theres any way to include this into my project so that when I build my solution Dotfuscator Community Edition automatically protects the assemblies
On Tuesday, 28th June 2011, I received an email from Nestor Portillo, Director Community and Online Support, Microsoft informing me that I have been awarded the Microsoft Community Contributor (MCC) Award for 2011. It was a cheering news for me in more ways than one. I am a Chartered Accountant (or CPA) with no formal training in IT. I am a government employee in Nigeria where most people are barely IT literate. I am into programming out of personnal interest and because I see a great potential for future benefits in that field.
But my joy was cut short because as I followed the steps towards printing my Certificate and redeeming my token, I was informed that government employees are not eligible for MCC award! For once, I regretted the honesty of admitting that I'm a government employee in the radiobutton provided for that. I find it too hard to understand why I am being denied this award just because I'm a government employee. If being a government employee does not disqualify one from participating in this forum, why should it disqualify one from benefitting from the token recognition of being here and sharing ideas and knowledge with others? Shouldn't Microsoft be encouraging government employees to take part in this forum knowing that public servants are the least interested in IT? For those of us in Africa, shouldn't my recognition serve as an incentive for others in government to show interest in IT? Or is Microsoft not interested in IT education and development of government employees especially in Africa?
I forwarded a protest letter to Portillo on the 30th of June 2011 but have not received any reply two weeks later. I am using this medium to appeal to Microsoft to kindly reconsider the exclussion of government employees from its awards. I am not in any way involed with any activity that may create conflict of interest if that is the issue. I am also appealling to other forum members to join this debate with a view to reversing this patently discriminatory and obnoxious rule.
I just switched to Win7 Ultimate edition 64bit and now the beep functionality via internal speaker (system speaker on motherboard) does not work anymore.The reason is described here (basically M$ trying to clean up their code):url...I used "Console.Beep(a,b)" to notify me that a process has ended.Any ideas how to send some kind of acoustic signal through the internal speaker (any loud noise would do for my purposes).
I'm updating a program that was written in an older version of VB (by someone else) and I can't figure out to how replicate this data entry line in my Form.
Each textbox can be changed and there is a nice scroll bar at the bottom to move left and right as you enter each datapoint.
I tried using multiple tabs within a Panel and setting the Appearance to FlatButtons, but the text area under each tab gets covered when you select another tab.
I started working on a big project for like 5 mins ago. Then suddenly I figgerd out that I don't know (AT ALL) how to make a program that can:
- Connect up to a server (which will be my secound computer) - Chat - Make groups - Etc
the login system is simple but the client server thing is another story.So basicly what im asking about is: How can I make a program that connects to a server (this should not be local).
illustration demonstrates my challenge in having accented letters in Spanish showing up correctly on a desktop application. I understand this forum is not for Windows forms but I thought someone may have run into this possible UTF-8,UTF-16,Unicode issue in other areas or web/desktop applications.
I am trying to create a data entry system for a local community group. I am working with VB.NET 2010 and MSAcess 2000. I am completely new to using a DB in VB.Net. I have created a form with the membership table bound as details on the form and the classes they are attending as a DataGridView. I used all the Visual Studio GUI tools for this. It was reasonably straightforward once I got the hang of things. My problems arise when I try to ensure that a user cannot move to a new record or create a new member without first saving any changes they have made.
I am using ColumnChanging events in the ...DataSet.vb class to set flags to indicate whether any data values have been changed on the form. My problem is that the ColumnChanging events for the classes DGV fire immediately on changing the data whereas the ones for the member details don't fire until I start to move to a new record. I don't know if it is important but my member navigation is achieved by means of a combobox on the form that lists the member names from the table. I have absolutely no idea why this works - it just did; the form updates as soon as the user selects a new member in the combo box.
I just bought a nice G15 Gaming Keyboard. It has a nice LCD screen with media keys (Play, Stop, Next, Previous etc,).Anyway, I managed to intercept the original functions to WMP of it (By Global Hotkeying them).Now, I have to send mouse clicks to my own Music Player (Playa!TraX, it isn't my creation) on a specific coord.This is the code i have, it finds the window, and says it clicks, but nothing happens, what am I doing wrong?
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal Hwnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
I'm confused a bit. I need to open a file that another program regular reads and writes. I want to make sure that I open the program in such a way that it will not harm the other programs access in any way. My program can handle any errors created by the other program changing the file out from under me - I just need to make sure that when I open the file the other program can continue to read, write, delete, etc without even knowing about my program. FYI this is simply a weather application where the "other" program is updating a table file with current weather data - my program reads that data and sends it to another application... Here is the code I am using:
Using advWorksContext As New AdventureWorksEntities ' Call the constructor that takes a command string and ObjectContext. Dim productQuery1 As New ObjectQuery(Of Product)("Product", advWorksContext)
[code]....
An ObjectQuery can be enumberated only once. (Subsequent attempts at enumeration throw an exception.) The enumberation takes place in the for each statement. The problem is that if the query is empty attempting a For Each will throw an exception. But if I check for a count:If productQuery1.Count > 0 Then . . .
That eats up my one chance at enumeration. I could nest the For Each in a try/catch block and throw away the empty query exceptions, but that's ugly.
I have an application that can read certain types of files, and I have it working so that if you do "open with" from windows, it automatically starts the application and opens the selected file.
Unfortnately, I cannot get it to work for more than one file.
System.Environment.GetCommandLineArgs() contrains the following: System.Environment.GetCommandLineArgs(0) = name and path to the .exe System.Environment.GetCommandLineArgs(1) = name and path to the first file selected to be opened
System.Environment.GetCommandLineArgs().Length is 2 when the user tries to open 1 file, which makes sense since the first argument is the .exe itself and the 2nd is the path to the file, but it does not increase to 3 if the user tries to open 2 files... meaning that System.Environment.GetCommandLineArgs(2) is never populated Here is some sample code that shows the problem: It will recognize no files or 1 file being opened, but if you try to open multiple it will only show the first.
I need to make a program the displays the amount of female voters per precinct.The .txt file has 5 fields: first being precinct, 2nd gender, 3rd age, 4th registered, 5th affliation.Here is what I have so far but I don't know how to finish it.
Option Strict On Imports System.IO Public Class Form1
HTML Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click OpenFileDialog1.ShowDialog()
I was wondering if anybody had heard of a library, preferably a .NET assembly, but Java will do as wel, that allows you to read the data in a Guitar Pro file (.gp3-gp4-gp5)I have this gigantor of a folder with about 50.000 song files, and would really love to write something that can actually archive all these files, for easier searching. And basic information like the tuning of the instruments in the song would be very useful parameters to retrieve from the file and add to the database.
I have searched the web but have yet to find anything like this, or a file definition for writing my own parser.
I'm creating a simple forms application where users can enter their details and save the information to a .ini file because I needed this for a simple game profile. I've tried to make it write "Name =" + txtname.Text but it won't work anymore. And as well as that, I don't think It will load the text back from the ini file.
Here's the code I used; Public Class Form1 Dim hFile As Long Dim sFilename As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load [Code] .....
Form designer: [URL] Form1.resk: [URL] Form1.vb: [URL]
i want to read a set of files from a particular directory( for example: D:Date has set of .xls files like D1.xls, D2.xls, D3.xls). if the the file is not there then it should throw error.i am not getting how to to do this VB.Net?