|
Just try little googling[^], you will find your answer.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
get the code n method to create -
3 Tier[^]
Hope it will help....
mark as answer if helpful......
|
|
|
|
|
|
Hi,
I studied about GsmComm Library and AT Command for sending and receiving SMS through GSM Modem/GSM Mobile. Most devices supported sending SMS successfully but I unable to Receive SMS using any devices. After hundreds of attempts i have expected your help regarding this issue. Please inform me which GSM Modem supports SMSComm Library for sending and receiving SMS? Please help me.
Thank you.
|
|
|
|
|
I have a pair of GSM modems I used to use for SCADA communications. In order to make them work at all, you must have an account with a cellular carrier for each device, and have SMS provisioned for the device by the carrier. Once enabled by the carrier, any GSM device should be able to receive SMS messages.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
I tested some devices in Hyper Terminal using Attention(AT) Commands. These supported some AT Commands but not supported commands for receiving SMS from SIM And Phone Memory, Reading Delivery Status etc. Now i am expecting a GSM Modem which supports All AT Commands.
|
|
|
|
|
Virtually all modems will respond to the AT command - the basic set was invented 35 years ago for 300 baud modems used on telephone wires. AT stands for "Attention," by the way, and notifies the control circuitry that a command sequence follows. It was called the Hayes command set, after the originator of the commands.
For SMS messaging you need a device called a cell modem, which uses a cell phone carrier for data transmission. The ones I have are made by Multitech, and operate on the Sprint PCS network, though GSM models are also available. You can use the ATI1 - ATI8 commands to get information about the models you're using, but you really need to locate a manual to find what each supports. While you may be able to set and read values in your device, the point of my post is that you will have to subscribe to a cell service and associate the device with your account in order to make it send and receive messages. None of them will work without a paid account from a telecom carrier.
In case you haven't discovered this already, every manufacturer of these devices - at least as far as I have found - has a place on their website to download the manual and technical specs for their devices. Look up each of your devices and find one that has the SMS capability before you subscribe to a data service, or call the service of your choice and ask them what device they recommend.
As far as supporting ALL AT commands, there is no such thing. There is a basic set of commands which most devices support, but each manufacturer implements their own extended set of commands. You can find the basic set (much expanded since the original was introduced) here[^].
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Hey Friend i bought GSM MODEM BENQ M30 and gsmcomm software fits perfect on it! until now i'm using this =D
MSalcedo
|
|
|
|
|
Hi all..
Iam using telerik rad scheduler my requirement is to export the events or information.. from scheduler to ical,outlook,yahoo,google calendar.. how can i do this? any samples pls guide me..
thanks..
|
|
|
|
|
madhukk wrote: Iam using telerik rad scheduler
Well, posting 3rd party specific questions at respective forums will help you faster and probably more appropriate solution.
Try here: Telerik Forum[^]
|
|
|
|
|
if it is asp or ajax calendar control then is it possible to export information to google,yahoo calendar.. Any samples...
thanks..
|
|
|
|
|
madhukk wrote: if it is asp or ajax calendar control then is it possible to export
Yes!
Have a look at this: Google API[^]
|
|
|
|
|
I have a web application that allows users to upload images. On upload, the image is saved to disk, then passed to a routine that crops and resizes it to a specified size, using the System.Drawing.Graphics/Imaging classes - all pretty standard stuff, and it works.
Usually. Every now and then it fails, and the only error message I can catch is "A generic error occurred in GDI+." Looking at the files uploaded, my deduction (call me Sherlock) is that they are images from digital cameras, and that it may be the embedded photo information within such files that is causing the problem. I note that if I download them (via FTP), then open them in Paint.NET (say) then save them (without making any (apparent) changes), I can then load them via my application without this error occuring.
I would be grateful if anyone has any ideas about what I need to do to enable my application to handle these files without error. Thanks...
|
|
|
|
|
is it specific files that fail consistently?
how about you try it, and if it fails, you try again say 5 seconds later. I have a theory...
|
|
|
|
|
Well, always JPG files - tried your suggestion, but it didn't work. But it got me thinking, and I did track down the error to the actual line, which was where the modified file was being saved. I had written the code to always save the modified file in the same image format as the original, but decided to try always saving it as a PNG file instead - and this seems to have solved the problem! So, thanks anyway - not 100% sure what for exactly but I've been stuck on this for ages, and now at least I have a working solution!
|
|
|
|
|
Almost everything that goes wrong in Image.Save (and a few more methods) will result in a "General GDI+ error".
Since you now decided to provide some of the essential information (but no code) to figure out which of many possible causes is most likely, my best guess is you did not close the input file. Some ways of doing that is by loading an image in a PictureBox (PB.ImageLocation=...), or by loading an image from file (Image.FromFile or Image.FromStream).
Using a different output format and file extension is a sure way to avoid those problems, but it also tells me the core problem is still present, resulting in less than optimal behavior of your app as it will keep files open and images in memory much longer than required. You should fix that.
You're welcome anyway.
|
|
|
|
|
OK, thanks... I didn't post code because I hoped a pointer might be enough for me, but... and then I found a working slution. But still, it would be good to know the "proper" way to solve it! If you can stand looking at some VB code, and don't mind giving it the once over, that'd be great - but as I say, I at least have a working solution, so...
also, just to clarify: my issue only occurs with jpg files (AFAIK), but I didn't mean to imply that it always happens with these - just that when it does, it's ben with jpg's.
Public Function ResizeCropImage(ByVal sFilepath As String, ByVal ext As String) As Integer
' sFilepath = relative path to file, including it's name; ext = file extension
' this file has already been saved from File Upload control via it's usual SaveAs method
Try
Dim FullSizeImage As Image
FullSizeImage = Image.FromFile(HttpContext.Current.Server.MapPath(sFilepath))
If (FullSizeImage.Height < 200) Or (FullSizeImage.Width < 200) Then
FullSizeImage.Dispose()
' image is too small
System.IO.File.Delete(HttpContext.Current.Server.MapPath(sFilepath))
Return 0
End If
Dim imf As System.Drawing.Imaging.ImageFormat
Select Case ext
Case ".gif"
imf = System.Drawing.Imaging.ImageFormat.Gif
Case ".png"
imf = System.Drawing.Imaging.ImageFormat.Png
Case Else '".jpg", ".jpeg"
imf = System.Drawing.Imaging.ImageFormat.Jpeg
End Select
Dim tmp As Bitmap
Dim gX As System.Drawing.Graphics
Dim bTidy As Boolean = True
If (FullSizeImage.Height = 200) And (FullSizeImage.Width = 200) Then
'nothing to do
bTidy = False
Else
' resize/crop to 200 x 200
Select Case FullSizeImage.Height / FullSizeImage.Width
Case Is < 1 'landscape image
Dim x1 As Integer
tmp = New Bitmap(200, 200)
tmp.SetResolution(FullSizeImage.HorizontalResolution, FullSizeImage.VerticalResolution)
x1 = CInt((FullSizeImage.Width / 2) - (FullSizeImage.Height / 2))
gX = System.Drawing.Graphics.FromImage(tmp)
gX.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic
gX.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
gX.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality
gX.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality
gX.DrawImage(FullSizeImage, New Rectangle(0, 0, 200, 200), New Rectangle(x1, 0, FullSizeImage.Height, FullSizeImage.Height), GraphicsUnit.Pixel)
Case Is > 1 ' portrait image
' similar code for portrait images - omitted here to save space/bandwidth
Case Else ' square image,
' similar code for square images - omitted here to save space/bandwidth
End Select
' save with amended filename (not to conflict with original)
tmp.Save(HttpContext.Current.Server.MapPath(sFilepath.Replace(ext, "_c" & ext)), imf)
tmp.Dispose()
gX.Dispose()
End If
' clean up
FullSizeImage.Dispose()
If bTidy Then
' delete original
System.IO.File.SetAttributes(HttpContext.Current.Server.MapPath(sFilepath), FileAttributes.Normal)
System.IO.File.Delete(HttpContext.Current.Server.MapPath(sFilepath))
' rename just saved amended file with filename of original
System.IO.File.Move(HttpContext.Current.Server.MapPath(sFilepath.Replace(ext, "_c" & ext)), HttpContext.Current.Server.MapPath(sFilepath))
End If
Return 1
Catch ex As Exception
' write error to log file
writeLog("funcs/ResizeCropImage", ex.Message, Err.ToString)
Return -1
End Try
End Function
cheers..
modified on Wednesday, July 28, 2010 4:22 AM
|
|
|
|
|
Hi,
I assume this is the code that includes your work-around, not the one that fails occasionally. If you remove the extension modifications, it may fail because, under some conditions, you attempt an Image.Save whereas your original image still is alive since FullSizeImage.Dispose() only occurs later. The fix is to move FullSizeImage.Dispose() up and put it in between gX.DrawImage() and tmp.Save()
I have some more comments:
1.
your big three-way switch is unnecessary, you could handle portrait/landscape/square images all the same by using something like:
x1 = CInt((FullSizeImage.Width / 2) - (FullSizeImage.Height / 2))
y1=-x1
if x1<0 then x1=0
if y1<0 then y1=0
2.
I don't think you need bTidy at all.
3.
I'm puzzled by your call to SetAttributes; it seems very likely you either don't need it at all, or you also need it when the input image is "too small".
4.
I would suggest you replace all those magic "200" constants by a single variable, and probably make it a function parameter.
Overall I would suggest you look for simpler ways to organize your code; anytime you duplicate statements (or constants) you should try and find a better way, the DRY principle (Don't Repeat Yourself) is pretty universal.
|
|
|
|
|
No, this is the "old" code that fails...
1. yes, I know...
2. probably
3. yes - it was jst something I tried to (maybe) help, but you're right
4. well, yes, but for thsi app that isn't necessary as it will remain fixed
thanks..
|
|
|
|
|
<br />
Integrator:<br />
<Select name=Integrator id=Integrator Size=1 onChange=<br />
<%<br />
dim sqlTemp<br />
dim arrRSTemp<br />
dim ConnTemp : Set ConnTemp = cf_OpenConnection()<br />
<br />
sqlTemp = "Select * from Integrator where atnINtegratorID = 1"<br />
set arrRSTemp = Conn.Execute(sqlTemp)<br />
<br />
Response.Write "Integrator Address: " & arrRSTemp("txtIntegratorAddress")<br />
Response.Write "<br>"<br />
<br />
%>><br />
<br />
<option value=''>**No Integrator**</option><br />
<%<br />
do until arrRS_Integrator.EOF<br />
Response.Write "<option value='" & arrRS_Integrator.Fields(0).value & "'"<br />
Response.Write ">" & arrRS_Integrator.Fields(1).value & "</option>" & vbcrlf Call arrRS_Integrator.moveNext()<br />
loop<br />
%><br />
</select><br />
</code><br />
<br />
<br />
<br />
I have a combo which is used to dropdown some info. Now i want do some coding in the onchange event, as shown above. is this possible? please help me in this, because the code above is not working a bit.<br />
<br />
NB: I'm a beginner
|
|
|
|
|
AFAIK, this is not the correct way of doing it.
You must know that onChange function of the Select box will be executed on the client side. You have written code that will be executed on the server, which is wrong. So what you could do is:
onChange of combo box, write a javascript function which will post back the page to itself. Pass the selected id in the QueryString. Now check for the corresponding QueryString in the page.
If value is not null, write the code to get values from database (which you have already written).
The important thing here is you need to understand how Classic ASP works. Once you know that, it would be easy for you to write code using Classic ASP.
Xandip wrote: NB: I'm a beginner
I would suggest you to go for ASP.NET if you are starting with Classic ASP. It has a lot of advantages over Classic ASP. You can always Google for them.
..Go Green..
|
|
|
|
|
Hello,
I am working on a little tool to help multiple people write articles and I have hit a snag. Each article needs to have a unique, sequential id. This alone is not that difficult but I am wondering what the best way to implement it is as it seems like a waste to create a whole database just for tracking a "next id" field.
I was thinking of using a flat file (text/xml?) that the asp.net page reads from and then writes the new number right away. However, in that case how do I control concurrency (i.e. what if one person is reading in the split second before another writes their number back)? Or is this really an issue in something this simple?
Any advise on an appropriate method for keeping a "next id" information would be greatly appreciated.
|
|
|
|
|
If you can use a string, try System.Guid.NewGuid().ToString(). It's always unique.
Read this[(MSDN)]
|
|
|
|
|
But is that sequential? the OP mentioned sequential numbers.
|
|
|
|
|
Sorry. Sequential - i did not recognize it. It's late at night
|
|
|
|
|