I am trying to block/unblock some of website on windows xp using NDIS Hooking.I am new for this NDIS Hooking on windows xp. so can you please tell whether is there any sample in msdn or do you have any sample application whick can Block/Unblock website.
Thanks,
Kamal.
You can use binary conversion.
Get its IP address (216.178.39.74), by pinging the name (if you have a direct internet connection) or if you only have access via a web proxy then find it out by using a networking website like network-tools. com.
Start your PC's calculator, and change it to scientific mode (using the "View" menu)
Enter each of the four IP octets, one by one, converting them to binary (enter number and click on the "Bin" radio button)
Thus 216.178.39.74 becomes
216 = 11011000
178 = 10110010
39 = 00100111
74 = 01001010
Notice how any binary numbers less than 8 digits long have had leading zeroes added to pad them out. Reassembled into IP address order, you get
11011000.10110010. 00100111. 01001010
Remove the dots, so you get one huge line of binary, thus:
1101100010110010001 0011101001010
Copy this binary string
Go to your scientific calculator, and hit the "Bin" button FIRST (as you are about to enter binary), THEN paste in the binary string.
Click on the "Dec" button on your calculator, and you will get the converted value of 3635554122
Add the hypertext protocol prefix and paste into your browser's address bar:
http://3635554122
Related
I have read some people managed to print trough DOS and emulating a parallel port trough USB connection and sharing the printer.
The printer in this case is not atached via USB but via LAN cable.
this is the ZPL code I generated for the label:
CT~~CD,~CC^~CT~
^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR5,5~SD15^JUS^LRN^CI0^XZ
^XA
^MMT
^PW320
^LL0240
^LS0
^BY1,3,131^FT6,180^B3N,N,,N,N
^FD[Barcode_here]^FS
^PQ[quantity to print],0,1,Y^XZ
Where [Barcode_Here] will be the barcode taken from an Excel cell and [quantity to print] will also be the result of some Excel table calculations.
I have read that this needs to be sent to the printer in RAW format and I have read the printer can be set up with passtrough character. I know from the settings that i need to mark my ZPL code with ${ and }$
What I need help with is: how would I go about sending the two parts of the code I have given above to the printer using only Excel vba code so that my project can be self contained and need nothing else?
I need the two parts to be 2 different sends since the first part (from what i understand) is a "setup" code and it would significantly slow down the process if repeated.
Is it even at all possible? (I have seen some people cimenting with something of the sort gave up and wrote a parallel comunication emulation in c++ to solve this).
Thanks for the help, i am unsure if this is considered off topic, if it is so let me know where can i ask for assistence as a comment please.
EDIT: This is an example of people shifting from vba to c++ to solve this issue
Install your Zebra printer on your local Windows using the IP address of your Zebra, by creating a new tcp/ip port. Use the Generic / Text Only drivers.
Copy/paste your ZPL code to notepad, and print. The ZPL code will be interpreted by the Zebra and generate the corresponding label. There is no set up with passtrough character.
From your VBA you can create a txt file containing your ZPL code, and print it with notepad.
I am trying to find a way to paste a predefined string upon entering a specific keyboard sequence, on any app.
For example if I have to paste an url or a password into a field, I can have said password in a hidden script and when I press, say, [ctrl] + [5], it would write "example123" on the text field where my cursor is.
Ideally without copying to the clipboard (I'd prefer keeping what I have on my clipboard and also avoiding to paste a password or such by mistake elsewhere).
I have tried every solution I've found so far that include xclip, xdotool and xvkdb. All of them either do not work or are really inconsistent: They only paste the string sometimes, and when they do, it's usually only part of the string ("ample123" instead of "example123").
I thought of using compose key, which I heavily use anyway to write in french on an us keyboard, but it seems it only supports 1 character sequences, as nothing is printed when I modify my .XCompose to include custom output sequences of len > 1.
I am using Ubuntu 18.04 with Gnome as a DE. Ideally something that also works when logging back (like compose keys).
You need to walk the Document Object Model for either Gnome or your web-page. My concern is that with a desktop script you wont be able to access the web page because you will need to be able to establish a target to send string to. I see in your question that you tried using using "x{tool-name}" to grab the text field element. Delivering the sting really isn't the problem. The problem is getting the GUI element of text box pragmatically. The easiest way to get access to this in a user loaded web-page is with WebExtensions API which is how to make extensions for most modern browsers. Otherwise, if you can get away with only having access to Gnome's GUI I would try LDTP, it's a library used for testing, but it looks like it can be used for automation too.
For keyboard shortcuts:
It really shouldn't matter what the script is doing to how you want to activate it. I would just go to Gnome/Settings/Keyboard and set the path to where I saved the script to be the Command. If you go the WebExtension route, you will want to build the shortcut into your extension.
When I create a document with MS Word and upload it to an html server it it correctly displayed when it is a windows server, but not when it is a linux server.
I tried this with both IE and Firefox.
The meta tag in the source says charset=windows-1252
Displaying the source code in the browser shows exactly the same source as I uploaded, so the server is not changing that. Nevertheless are characters like accented e displayed as silly characters when obtained from the linux server.
So somewhere in the tcp/http/??? records that the server sends to the browser makes the browser interpret the characters different from what is ment.
What could that be?
When you create a document in MS Word, there are a lot of characters that you can't see that are actually in the file, such as end of line markers, page breaks, etc. which you will not notice until after you upload the file to the server.
You should always use a plain text editor such as Notepad++, or even bluefish to create these files. Sometimes you can get MSWord to do the trick if you make sure to save the file as a web document(htm or html), but the special characters will usually begin to cause problems depending on your goal.
I have gone thru several relevant looking questions but they did not contain the answer I am looking for. So, here is my question:
I have several web applications at my workplace, which are written using different frameworks and the authors are long gone to ask for feature updates. Hence I have to go thru the same grueling sequence of actions to get, which amounts to a file size of few kilobytes, everyday.
I tried parsing the page source but the programming technique of the authors were all over the place. Some even intentionally obscure the code to not let the data show as text, and there is no reason for this as the code they wrote is company asset. Long story short, I realized if I can copy and paste the textual content of these pages, I can process that data much easily than parsing the page source to get the text (which is sometimes totally impossible)
So, I am now looking for a browser plug-in (in windows or linux environments) or equivalent text based tools on windows or linux, which will load these pages and save the text on the screen to file(s) when invoked.
Despite how hard I tried, I am coming up empty handed.
I do not want to utilize the services of a third party screen-scraping web site, as the data is company confidential and not accessible by outside parties. Everything has to happen on the client end as I do not have access to the servers these apps are running on (mostly IIS on windows front end and a oracle db at the back end. The middle tier, as I have explained before is anyone's wild guess, ranging from native oracle apps to weblogic to tomcat and to some in house developed java/javascript stuff.
Thanks for all the help in advance
After searching for an answer for well over a year, I came to realize, as long as I use windows, a modern version of it that is, autohotkey is my savior.
I open the web page, maximize it, place my cursor (mousemove, x, y) then left click (mouseclick, L) then send ctrl-A followed by ctrl-C.
Voila ! everything is in the clipboard. Then I activate my unix session (winactivate PuTTY) and send appropriate key press commands to launch the editor of my choice (which is vi) and finally send a shift-Insert to paste the clipboard into my document. Then save and exit of course.
As an added bonus, right after my document is saved, I can invoke the script of my choice to parse this file and give me back the portion(s) I am interested in.
I know it is not bullet proof, but for my purpose, it helps to a great extent. As a matter of fact, I can do whatever I want with this method.
What about something like this: http://www.nirsoft.net/utils/htmlastext.html
Freeware that converts an HTML page to text
Any of links, lynx or w3m will do what you want, they are text browsers and you can dump text from a webpage with, for example:
w3m -dump http://www.google.com > g.txt
Is there any way to change the resolution or set different boundaries for the screen on Amazon Kindle Keyboard? My screen has a crack in a portion of the screen, and I would like to work around it.
I've tried messing around in the filesystem (connected over WiFi), but none of my property changes have had any effect. I assume it would be possible, as it is a Linux OS.
AFAIK you can't change ther resoluiton, but for the margins:
For simple adjustment of the left and right margins to one of the
three preset values, use the "Words per Line" option on the font size
page (press Aa key to the right of the spacebar on the keyboard). The
option may be named "Words per Line" but what it really does is to
alter the left and right margins.
For finer control of the margins,
the following steps require the user to access the the Amazon Kindle's
internal storage memory through a USB cable attached to a computer.
On
your Kindle, go to the home page. NOTE: if the next steps are
completed while an ebook is open, the change will not take effect.
Connect your Kindle to your computer with a USB cable.
Open the folder
"system" in the root of the Kindle's internal storage memory. If
you're on a Windows machine, this might be hidden from you. Be sure to
set Folder Options to ‘Show hidden files, folders, and drives’ and
uncheck the ‘Hide unprotected system files’ option. Alternatively, try
typing in the system folder's address explicity, e.g. if the Kindle's
drive letter is H, the address would be H:\system\ Open the
"com.amazon.ebook.booklet.reader" folder.
Open the "reader.pref" file
in a text editor. This is a plain text file with Unix line endings.
There is a line in reader.pref that starts "HORIZONTAL_MARGIN=".
Change the number (Default=40) that follows to the desired number.
Margin-widths of 20, 15, and 10 are good starting points for
determining what you're most comfortable with. I find that 0 (zero)
puts the text too close to the bezel surrounding the display
(particularly difficult on the eyes with graphite colored bezel).
Save
and close the file.
Eject and disconnect the Kindle.
Restart your
Kindle (Menu/Settings/Menu/Restart)
Your default margins when reading
books have now been changed. If you change the 'Words per Line'
preference in the Font Size dialog, you will undo the change to the
margins that you have just made.
Source: http://wiki.mobileread.com/wiki/Kindle_HowTo:_Change_Margin