Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

mortrr

@mortrr
About
Posts
26
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Rollback not working. Any ideas?
    M mortrr

    The MSDN text means "dont send BEGIN TRAN commands to the server yourself.". Have you assigned the transaction back to the command, before using it? There's a sample on Rollback.

    Database database question csharp sql-server dotnet

  • Why could a car battery be dying?
    M mortrr

    You're not saying why you actually swap the batteries. Main reasons for dead batteries: - Sulphurization = crystals on the plates. Caused by continued charging and discharging. (Battery can be regenerated) - Positive grid corrosion. Usually from overcharging. Also from heat. - Vibrations. Have you checked if the battery is discharging, and if the alternator is working as it should? - Mort

    The Lounge question

  • A VPN hijack
    M mortrr

    It's really quite simple, if you know how ip-packet are send, and how netmasks work. ;-) A network consists of a bundle of ip-addresses, bound by a netmask. If the IP's are 192.168.1.x and netmask is 255.255.255.0, all addresses from 192.168.1.1 to 192.168.1.255 are on the same network. If the netmask is 255.255.0.0, all addresses from 192.168.1.1 to 192.168.255.255 are on the same network. Now - If a computer wants to connect to something foreign, outside the "local ip-range", it will use the "default gateway". So, when your computer wants to connect to your ISP's mail-server, it sends ip-packages through your default gateway. How the package gets back, is up to the computers and routers outside you network. So, when you connect your VPN to the company, and asks it to use the company "default gateway", it will send all foreign ip-packages to the companys network. If there is no connection from this network to your ISP, the package gets lost - and you're unable to check mail. And, if the company mail-server is on a ip-range that doesn't match the ip-address and netmask you are given by the VPN, you won't be able to reach the company mail-server, without using the company default gateway. In comes routing. It is possible to tell you computer, how to reach specific networks. For instance, if the company network is giving you the ip 10.10.1.190, and you KNOW that the company mail-server is reachable at 172.158.20.1, you can add this route AFTER opening the VPN connection, with: route add 172.158.20.0 mask 255.255.255.0 10.10.1.190 This tells your computer that all trafic to the ip-range 172.158.20.0 should go through the VPN connection. So even without using the default gateway at the company, you will be able to get mail from the company. - Morten

    WDevs - The worlds first DSP, free blog space, email and more

    The Lounge sysadmin sharepoint com json help

  • Photoshop vector format ?
    M mortrr

    AI files are EPS files with a bit structure. - Mort

    The Lounge csharp graphics adobe question

  • Photoshop vector format ?
    M mortrr

    It is possible to vector-based masks to a Photoshop image (and psd file), and you can export them to Illustrator files. But Photoshop doesn't have a vector-based file-format by itself. - Morten

    The Lounge csharp graphics adobe question

  • Thanks to everyone that helpe me research my tv.....
    M mortrr

    An equally big congratulations. How's the contrast on a thing like that. Can't find any specs on sony's site. - Morten

    The Lounge com question

  • Now I seen the porn ad
    M mortrr

    There's been some rulings in the us, where they got off because it was proven that the security was practically non-existant. The same would propably happen with this one. It could be seen as a prank. - Morten

    The Lounge question

  • Just Got My New Camera
    M mortrr

    Anders Molin wrote: Money talks, but all mine ever says is "Goodbye!" Your sig makes more and more sense. :sigh: - Morten

    The Lounge csharp com

  • sending a command from iis to localhost (redirect???) please help!
    M mortrr

    How about using xmlhttp (or asptear) to request the page from localhost?

    Web Development question com sysadmin windows-admin security

  • I blame you guys for this
    M mortrr

    This sounds very much like an open invitation for all of us to come around for a short test-drive. Hmmmm - 340.000 users times 15 minutes = about 10 years. Guess you're gonna be busy. See ya ;)

    The Lounge com career

  • A question for Chris M
    M mortrr

    The main problem is getting at the insertion point. The "minute" the cursor (focus) leaves the textarea, the insertionpoint is "lost". If you select some text in the textarea, you can replace that text, or fi insert tags around it (once you've asserted that the selection is actually in the textarea, and not somewhere else on the page), because the selection survives the click on the button. But if the cursor is just sitting there, doing it's thing, quietly blinking away, as it would if you want to insert a smiley somewhere, the browser looses the insertion point. - Mort

    The Lounge question

  • How to get a primary key?
    M mortrr

    You have to use the right provider. "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=mydatabase.mdb" - Morten

    Web Development database com tutorial question

  • Javascript Sorting Problem
    M mortrr

    Still, if you have to use hours upon hours implementing a single feature that will at best work flakily in NS 4.x for what is most likely a small userbase (even in phone companies - unless they're using OS/2), the time could be used better developing other features. To get the "tablesort" to work a bit better in NS, you could disable the click event for the coloumn-headings until the table is redrawn. - Morten

    Web Development javascript com algorithms tools help

  • Javascript Sorting Problem
    M mortrr

    If you don't have any form elements in the table, you can try: http://www.mattkruse.com/javascript/sorttable/index.html It's not extremely stable in NS 4.x, but it works if you don't click around too fast (as all NS layering). The buttom sample works in NS. Not the top one, as it contains form elements. You must have a very insistent customer, since you're trying to implement it for NS 4.0x The user base is propably below 1 percent now, and why ruin the "experience" for users keeping up to date? - Morten

    Web Development javascript com algorithms tools help

  • Javascript Sorting Problem
    M mortrr

    It can be done in the browser, including NS (but only NS6). Give all cells an ID. Cell_00_00 - Cell_00_01 - Cell_00_02 Cell_01_00 - Cell_01_01 - Cell_01_02 Cell_02_00 - Cell_02_01 - Cell_02_02 Create an Array for client-side javascript that contains all data (no need to read data from the table, before each sort). On click, sort the data (same array or to new array) and insert cell by cell. - Morten

    Web Development javascript com algorithms tools help

  • Javascript Sorting Problem
    M mortrr

    I assume you're talking about requesting the data again from the database, and not using dhtml (which could be he only reason why the script doesn't work with netscape) to sort the single page. Getting your 10 records from the database, in the right order within a single page, can only be done by requesting those specific records by ID. So you'll have to send the IDs of the records back to the server (hidden input) with the sort field. MS SQL: "SELECT * FROM myTable WHERE ID IN ("+myIDs+") ORDER BY "+orderField myIDs contains comma-separated IDs. Paging after sorting using a different field, will be a bit confusing though, as the user whould have to return to your default sort-order. - Morten

    Web Development javascript com algorithms tools help

  • prevent files from opening in the browser
    M mortrr

    Add the http-header Content-Disposition, with at value of "attachment; filename=xxx". You can do this using asp (example using jscript): Response.AddHeader("content-disposition","attachment; filename="+TheFileName); Or you can change the content-type of the file to something the browser isn't going to recognize. This can be done in IIS Manager or asp. - Morten

    Web Development sysadmin windows-admin

  • How to retrieve data in a page from another website?
    M mortrr

    xmlHTTP and advice from your laywer

    Web Development html sysadmin tutorial question

  • Window resize
    M mortrr

    Dimon007 wrote: How knows how to get the browser's window size. Sorry, you can't get the size of the window. What you can get, is the width and height of the clientarea. document.body.clientWidth document.body.clientHeight which will tell you how much space is available to your page. You can move and resize the window using window.moveTo and window.resizeTo methods (and window.moveBy and window.resizeBy). And one more - how to dynamicly change size of background picture. You can't resize background images. You'll need different images in different resolutions. - Morten

    Web Development tutorial

  • error '80004005'
    M mortrr

    The 'Operation must use an updateable query. ' usually means that the IUSR_xxx (anonymous account) doesn't have sufficient rights in the folder where the mdb-file resides. The user needs write, change and delete rights for locks and changes to the mdb file. - Morten

    Web Development help database windows-admin question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups