topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 25, 2024, 4:18 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - electronixtar [ switch to compact view ]

Pages: prev1 [2] 3 4 5 6next
26
General Software Discussion / Re: Parallel proxy transfer software
« on: December 21, 2009, 12:10 AM »
The basic idea is, if the server need to send 1000 packets one by one serialized, why not send it parallelized.
Because it doesn't really matter if you have one data stream or fifty. The (ISP Controlled) connection speed (data) pipe is only as big as it is, and trying to force more through it will only cause a flood of retransmits (think turbulence) that will slow down the overall transfer speed.

I didn't mean to break the ISP pipe, but some connections are really slow, like 10KB/s compared to my total bandwidth (2M). It's better to open more channels for communication.

Third party download tools (like FreeDownloadManager) are invented for the exactly same reason. What I need is not downloading the whole file by splitting Content-Range, but to transfer packets x3 with three threads.

Just want to know if anything like this exists.

27
General Software Discussion / Re: Parallel proxy transfer software
« on: December 20, 2009, 06:12 PM »
First, at least if we're talking HTTP/FTP and not some custom protocol, the "multi" aspect is done by the client, not the server (or proxy server).

It's obvious not a conventional HTTP/FTP proxy server, it's some advanced stuff I hope someone already invented

Second, threading isn't necessary to do parallel transfers

OK, no more threading as long as you understand what I am trying to say, but threading is the only best way I can think of how to describe it :) ,

Third, if you have that tiny data amounts, doing parallel transfers is going to hurt your performance, not improve it, because of the way TCP works (starts out slow and gradually increases transfer window size).

Yes this kind of proxy is best done with UDP.

The basic idea is, if the server need to send 1000 packets one by one serialized, why not send it parallelized.

28
General Software Discussion / Parallel proxy transfer software
« on: December 20, 2009, 12:24 AM »
Hi DC,

I have a remote server as a reverse proxy/http proxy, it's kinda slow, I hope there's some kind of software to speed it up a little by doing parallel data transfer.

Does any software like this exist?

My ideal version:
1. The server prefetches 3KB of data
2. The server send to client 3KB of data, but open multithreaded transfer, with 1KB of data per thread
3. The client receives 1KBx3, and combine them to the original 3KB data

The latency is not important as long as the transfer rate is good.

29
General Software Discussion / Re: Text editor with filtering of lines
« on: November 28, 2009, 08:28 AM »
TextMate with console commands  ;D

30
General Software Discussion / Re: DNS logger & firewall for Win32
« on: November 25, 2009, 07:04 AM »
With your ISP screwing around with the DNS queries wouldn't it be better to run your own DNS server?

eg. Treewalk

It's slow and costs too much memory if you run long enough. Not worth it.
If they're tampering with the actual traffic on port 53, as opposed to just records from their own DNS servers (the impression I got), then you could probably prove it by using DNSSEC (will only work for certain TLDs though, .org is probably easiest).

Ehtyar.

DNSSec is cool, but not all of TLD have it.

31
General Software Discussion / Re: DNS logger & firewall for Win32
« on: November 24, 2009, 12:57 PM »
OK, I need a blacklist patch for Acrylic DNS Proxy, can DC help me out?

32
Coding Snacks / Blacklist patch for Acrylic DNS Proxy (Delphi 7)
« on: November 24, 2009, 12:50 PM »
Hi DC,

I need a dns proxy, and Acrylic DNS Proxy works but only lacks one thing: blacklisting certain IP from DNS answers.

Luckily Acrylic DNS Proxy is open source software written in Delph 7, and I need DC community to help adding this little function.

In AcrylicConfiguration.ini I hope there's a new section

[BlockedIPSection]
IP1=192.168.1.*
IP2=192.168.2.2
IP3=
.......
IPn=
Default=127.0.0.1

So whenever PrimaryServerAddress answers 192.168.1.1, Acrylic will continue lookup on SecondaryServerAddress, if it still answers 192.168.1.* or 192.168.2.2, then to TertiaryServerAddress until a correct answer is retrieved.

If all answers were in the blacklist, I hope Acrylic could yield SERVERFAIL if there's no Default IP.

And Acrylic can log this fail.

I know under one circumstance things might get somehow complicated, when DNS returns multiple records and one of them unfortunately were included in the blacklist, I hope that IP could be eliminated in the protocol level and cache only the rest of correct answers. If this is hard to implement, simply return SERVERFAIL.

I hope this won't take you guys too much time, and any help or suggestions is appreciated.

Thank you guys!

33
General Software Discussion / Inverse the color of Windows XP
« on: November 24, 2009, 12:26 AM »
Hi all,

I have an old monitor that display colors incorrectly, but if I set the brightness to max in Control Panel, and then Win+U opens magnifier, select inverse color, the color displays JUST FINE

So, I am looking for a free utility that inverse all colors on Windows XP. Any ideas?

Thanks in advance.

34
General Software Discussion / Re: DNS logger & firewall for Win32
« on: November 23, 2009, 09:01 AM »
Dont know about blocking incorrect answers, but if you use Acrylic DNS Proxy you can see some sort of log of all dns queries, but they will be made by Acrylic, not Windows.

quite awesome software, defintely gonna try it out. Thank you!

35
General Software Discussion / DNS logger & firewall for Win32
« on: November 14, 2009, 07:02 AM »
Hi all

I have a nasty ISP that tampers the UDP port 53 traffic all the time, but it does not accurs often. I need to gather some evidence and see if there's pattern. So I need a DNS firewall and a logger.

Are there any software that loggs every Windows gethostbyname() queries, and blocks incorrect answers with a rule?

36
Yes please provide a small and convenient one. I need it in one of my auto modify scripts.
-electronixtar (August 19, 2009, 03:27 AM)
Expect a quickie converter in an hour or so.

Ok, that was the longest hour of my life :D

Anyways, here it is.  (see attachment in previous post)Usage: rh2rc.exe infile outfile

Has some basic error checking, and might have some bugs (it's the first version).
Give it a shot and reports any bugs you find please.

That's cool, thank you very much scancode   :Thmbsup:

37
it's ResHacker's own special format with extesion name .rc
-electronixtar (August 18, 2009, 08:46 PM)

Would you be interested in a reshacker -> rc converter?

Yes please provide a small and convenient one. I need it in one of my auto modify scripts.

38
As far as I know, ResHacker does NOT support importing .rc files.

Thank you scancode. Your tool is very helpful.

Too bad ResHacker does not support .rc import, another issue is ResHacker.exe -extract does not produce standard .rc files, it's ResHacker's own special format with extesion name .rc. I think I need another tool for correcet .rc exporting.


39
Hi DC,

I am writing a script to modify chrome.dll using Resource Hacker, here's the script:
ResHack.exe -extract chrome.dll, test.rc, 9,101,
ResHack.exe -modify  chrome.dll, chromenew.dll, test.rc, 9,101,

The log says

ResHack.exe -modify  chrome.dll, chromenew.dll, test.rc, 9,101,
Error: Invalid resource type.

Anybody know why?

BTW, any free commandline tools for extract and modify PE's resources?

40
General Software Discussion / Re: Note Taking Software
« on: July 26, 2009, 09:52 AM »
I copy pasted 177KB of txt and quotepad window froze. Did it use C++ to handle strings?  :(

41
General Software Discussion / Re: Note Taking Software
« on: July 24, 2009, 05:06 AM »
This looks great, it even supports Chinese text search! I wonder how it performs with 100MB+ text stored.

One defect is you can not define Win key as global hotkey

And instead of display datetime, I hope it could say XXX minutes ago, XXX days ago, etc.

42
Hi DC,

Youtube is blocked in China, but there's a walkaround, set browser's Auto Proxy Config like this:

if (shExpMatch(host, "*.youtube.com"))
{
    return "PROXY www.google.cn:80;";
}

You can view the youtube pages, but no videos. because the border firewall will RST every TCP port 80 request which contains the string ".googlevideo.com" (If you visit mit.edu/?.googlevideo.com, mit.edu will get blocked for couple of minutes), and it will spoof every DNS request of *.googlevideo.com to some non-exist IP address.

Now if there's a local URL rewrite change could change
http://v3.lscache7.googlevideo.com/videoplayback?xxxxxx
to
http://74.125.170.150/videoplayback?xxxxxx

it will work.

SO what I need is a tiny, local URL rewrite proxy engine that could do the job above, and using PAC like following

if (shExpMatch(host, "*.youtube.com"))
{
    return "PROXY www.google.cn:80;";
}
if (shExpMatch(host, "*.googlevideo.com"))
{
    return "PROXY localhost:3333;";
}

Everyone can view youtube.

There's another usage, for every Google.com search result, the cached function won't work, but if you change the URL
http://74.125.155.132/search?q=cache:ucajK2mTlHwJ:www.xxx.com
to
http://74.125.155.132/search?by=DonationCoder&q=cache:ucajK2mTlHwJ:www.xxx.com

The page will load, because GFW only blocks URL contains the keyword "search?q=cache:"

I hope the program is compiled standalone, has a tray icon, scans a regex config file (live update running config everytime the file changes), then 302 redirect match HTTP request.

43
Hi board,

I have this little copymove.c, it's used for detecting duplicated area of a image, it's written in C but with some C++ features, it was originally compiled under Linux using

-lfreeimage -lstdc++

I tried to port it to Windows, with the newest FreeImage.dll library, the compilation (with VC2003/MinGW) was successful, but the app fails every time to this line:

FIBITMAP * bitmap = FreeImage_LoadFromMemory

Can anyone help me patch the program and make it run correctly? A copymove.exe binary is much more appreciated. Thanks a lot

44
HFS template seems to be HTML only, the players having a MIME trouble while parsing it as .m3u I believe.
-electronixtar (July 07, 2009, 05:17 AM)

A search for m3u turned up these:
.m3u or rss templates for HFS (customize MIME needed)
generate m3u playlist - folder-streaming

You might need to grab the latest beta for some of the new functions.

Thanks 4wd.

place this filelist.tpl under the same dir as hfs242.exe,

#EXTM3U
%files%
[style]

[files]
{.mime|audio/x-mpegurl.}

%list%

[file]
%item-url%

[folder]
%item-name%/

http://localhost/mp3/~files.lst.m3u

works great!

45
There's also the always handy HFS and in the forum there's a templates board where people share ones they've made - like the Thunderchicken of Glory.

Wow, I didn't expect HFS has a template feature. Thanks.

Update:

HFS template seems to be HTML only, the players having a MIME trouble while parsing it as .m3u I believe.

46
I can recommend nginx and mongoose. I've had more experience with nginx, and it's quite a widely used, but little known web sever. Let us know what you decide on and if you run into trouble.

Ehtyar.

mongoose is super cool. Thanks

I need to extend Mongoose to something like
http://127.0.0.1:808.../mp3/?format=podcast
or
http://127.0.0.1:8080/E/mp3/?format=m3u

any ideas?

Fixed it with some python script:

#!/usr/bin/env python
#coding:utf-8

import os
import mongoose
import sys


def m3u_handler(conn, info, data):
    conn.printf('%s', 'HTTP/1.0 200 OK\r\n')
    conn.printf('%s', 'Content-Type: audio/x-mpegurl\r\n')
    r = '#EXTM3U\n\n' + '\n'.join( os.listdir(os.path.join(server.root,info.uri.replace('/:m3u', ''))))
    conn.printf('%s', 'Content-Length: %d\r\n\r\n' % len(r))
    conn.printf(r)

server = mongoose.Mongoose(ports='80', root='E:/Media') #os.getcwd())

server.set_uri_callback(r'*/:m3u', m3u_handler, 0)
#server.set_error_callback(404, error_404_handler, 0)

# Mongoose options can be retrieved by asking an attribute
print 'Starting Mongoose %s on port(s) %s ' % (server.version, server.ports)
print 'CGI extensions: %s' % server.cgi_ext

# Serve connections until 'enter' key is pressed on a console
sys.stdin.read(1)

# Deleting server object stops all serving threads
print 'Stopping server.'
del server

Usage: run the python script, it will share your E:\Media folder on http://127.0.0.1/

use http://127.0.0.1/:m3u to change the output format to .m3u with correct MIME

47
Hi all,

I have a Windows Mobile phone with wifi, there's a CorePlayer which could play podcast feeds, now I need a tiny HTTP server under Windows for my laptop, that I specify a movies/mp3 folder, it starts up as a http server, and generate a podcast feed as well as deliver the .avi/.mp3 files. So my phone connect to my laptop via wifi, and I can listening to my mp3 lib everywhere at home.

I know IIS/apache could make it, it's just too big. Any tiny solutions?

Thanks in advance.

48
General Software Discussion / Re: Yet another Hotkey app!
« on: March 21, 2009, 02:51 AM »
Hoekey + Nircmd FTW!  ;D

49
+1 for IrfanView.

 ;D

50
Without the Window frame.
-electronixtar (March 17, 2009, 08:01 PM)
I'm still confused.  With HyperSnap, your scroll can include as much or as little as you want.  If you don't want the Window frame, you don't include it; if you want it, you include it. 

HyperSnap could make it, yes :-)

Pages: prev1 [2] 3 4 5 6next