Using .NET desktop application with DevExpress over Remote Desktop |
I'm working with DevExpress .Net controls (and moreover sometimes with
their controls source code) since 2007. And it seems I know the possible
reasons of visual drawback of these controls under RDP.
These reasons are:
- Skinning technology (which is bitmap-based)
- Double-buffered painting
So, let me explain. When the user is connected via a Remote Desktop
Connection, all drawing operations performed by control are transferred
over the network connection to the RDP client for display. If control draw
a line, the "DrawLine" command is sent over the network to the client. If
control draw a text, a "DrawText" command is sent (along with the text to
draw).
But if control draw a bitmap, the entire bitmap needs to be transferred
over the network. Thus this can be a main bottleneck when using
|
Remote Desktop for Android |
create java server which can send screen snapshots to android device via
wifi and android client which can receive images and display on screen.
you have use socket programming for this. use asynctask at client side .
|
Remote Desktop Application |
You need to right click on toolbox and select choose items
There go to COM tab and select and there you select
Microsoft Terminal Services Client control
Now you'll find a remote desktop connection in your toolbox..Drag and drop
on to your form
That's it :)
|
copying files from remote desktop using php |
Yeah you can copy files from remote server if you have previlliages/rights
here is link
<?php
if(!@copy('http://someserver.com/somefile.zip','./somefile.zip'))
{
$errors= error_get_last();
echo "COPY ERROR: ".$errors['type'];
echo "<br />
".$errors['message'];
} else {
echo "File copied from remote!";
}
?>
|
Error in 3D rendering with xtk on Remote Desktop |
OpenGL doesn't work with remote desktop because remote desktop opens up
another desktop and isn't attached to the hardware display, thus I would
assume WebGL has the same limitations. You will need to do a different type
of remote desktop maybe vnc or even join.me seems to work fine.
|
Copy local text file to remote desktop |
Well, first of all, you are missing a space after the "Copy":
ExecuteCommand("Copy" & Directory.GetCurrentDirectory & ...
that will turn into (given that the current directory is "C:MYDIR" as an
example)
cmd.exe /kCopyC:MYDIR
The lack of a space after the /k option to cmd.exe is not a problem, but
looks awkward. I'd put one there as well.
Second, the "\myservername -u username -p password C$Files.txt" looks just
wrong. That should probably be "\myservernameC$Files.txt" following your
example. Username and password makes no sense at this point and in the
context of the Copy command (copy past error?).
Then you have some bogus(?) line wrappings in the "ExecuteCommand..."
example of your question. Could be that those are causing more issues but
this is hard to tell as it stand
|
Azure Remote Desktop Traceability in a Cloud Service |
There have been a few changes since the link you mentioned is published:
You can now enable/disable remote desktop through the portal. You don't
have to do it at the time of publishing your cloud service. Using this, you
can provision remote desktop connections for individual users in your team
instead of relying on one shared RDP connection. To do so, click on
CONFIGURE tab for your cloud service and then click on Remote icon and
follow the instructions.
The thing you do on portal with remote desktop can also be done
programmatically using Service Management API. With the latest Service
Management API release, RDP functionality is basically an extension which
you can enable/disable on the fly. I wrote a blog post not too long ago
describing this functionality: http://gauravmantri.com/20
|
Windows Azure VM Remote desktop connection issue |
RDP port (3389) is widely blocked from network administrators of most
corporations. What you need to do is either of:
Talking with your network administrator at work and ask for permission to
use RDP port to connect to your Azure Virtual Machine
Configure different public port for the RDP Endpoint. Setting it to 443
(the HTTPS Standard port) or 22 (Standard SSH port) might solve the issue
without contacting system administrator
Of course, if you use that VM for Secure Web (which works on 443) you have
to chose another port number.
|
How to use InputSimulator to simulate specific keys on Remote Desktop? |
As suggested i copy my solution as an answer. I hope these will help for
anyone working on similar problems. :) The solution is a bit long, but the
problem was not only 'how-to-press a button programatically', but also
'how-to-make it work via remote desktop' and 'how-to-make a general
solution for different keyboards'. Well, im not 100% sure that the last
problem is completely solved, but the solution below may be used for
further developing. I also know that the code is not optimal and sometimes
ugly, but im still testing and developing it! :)
//m_text is the whole text i want to write. It may contain special
characters,
//like 'enter', 'tab', lower/upper-case chars, and chars with shit/alt is
//pressed, like ';'.
//Test with this string, its difficult-enough. :)
|
can't access remote desktop's opened tcp from local system |
Also if it's a firewall issue then rather turning the firewall you can
write inbound and outbound rule for specific port. Turning your firewall on
server is a dangerous compromise with security.
|
how to Diogenes users that login with remote desktop in windows xp by programming with c# |
[DllImport("wtsapi32.dll")]
static extern IntPtr WTSOpenServer([MarshalAs(UnmanagedType.LPStr)] String
pServerName);
[DllImport("wtsapi32.dll")]
static extern void WTSCloseServer(IntPtr hServer);
[DllImport("wtsapi32.dll")]
static extern Int32 WTSEnumerateSessions(
IntPtr hServer,
[MarshalAs(UnmanagedType.U4)] Int32 Reserved,
[MarshalAs(UnmanagedType.U4)] Int32 Version,
ref IntPtr ppSessionInfo,
[MarshalAs(UnmanagedType.U4)] ref Int32 pCount);
[DllImport("wtsapi32.dll")]
static extern void WTSFreeMemory(IntPtr pMemory);
[DllImport("Wtsapi32.dll")]
static extern bool WTSQuerySessionInformation(
System.IntPtr hServer, int sessionId, WTS_INFO_CLASS wtsInfoClass, out
System.IntPtr ppBuffer, out uint pBytesReturned);
[StructLayout(LayoutKind.Sequential)]
private str
|
Check whether application is running under Terminal Services as opposed to Remote Desktop |
One way is to use the below code:
string s = System.Environment.GetEnvironmentVariable("SessionName");
If the value of s is "Console", it could be running in terminal services.
On the other hand, if the value is something like "RDP-Tcp#01", it is
running under Remote Desktop.
|
Rails 3: Forcing HTTP in some parts, and Forcing HTTPS in others? |
Not sure if this blog will be of any use to you: Always-On HTTPS With
Rails Behind an ELB
also this may also be of use to you considering you are trying to force
some parts of your application to use https. SSL Requirement. It details
under the section about SSL requirement adds a declarative way of
specifying that certain actions should only be allow to run under SSL.
Should you want to specify the entire controller in SSL then call
ssl_exceptions
Alternatively you could try and write a before_filter by doing something
like
class ApplicationController < ActionController::Base
before_filter do
if request.ssl? || Rails.env.production?
redirect_to :protocol => 'http://', status =>
:moved_permanently
end
end
end
Hope this helps
|
Remote Desktop not working with Windows Azure Cloud Service. "Legacy plugin RemoteAccess is found in role" |
Turns out you can't have parts of your username in your password for some
reason.
I also ran into credential caching problems which is solved here -
http://www.c-sharpcorner.com/uploadfile/ae35ca/windows-azure-fixing-reconnect-remote-desktop-error-the-specified-user-name-does-not-exist-verif/
|
Delphi6: Need to know is my application running in console session or remote desktop session |
I use the following
const
SM_REMOTESESSION = $1000;
if GetSystemMetrics(SM_REMOTESESSION) <> 0 then
begin
// you are in a remote session
end
Per the MSDN page for GetSystemMetrics:
SM_REMOTESESSION = 0x1000
This system metric is used in a Terminal Services environment. If the
calling process is associated with a Terminal Services client session, the
return value is nonzero. If the calling process is associated with the
Terminal Services console session, the return value is 0.
Windows Server 2003 and Windows XP: The console session is not necessarily
the physical console. For more information, see
WTSGetActiveConsoleSessionId.
I am using this in Delphi 2007 and the function is defined in the Windows
unit, but I did need to define the constant myself. I don't know if Delph
|
MySQL connection from my desktop to remote MySQL not working |
Below is the excerpt from the mySql Docs
If the following error occurs when you try to connect from a host
other than the one on which the MySQL server is running, it means that
there is no row in the user table with a Host value that matches the
client host:
Host ... is not allowed to connect to this MySQL server You can fix
this by setting up an account for the combination of client host name
and user name that you are using when trying to connect.
If the following error occurs when you try to connect from a host
other than the one on which the MySQL server is running, it means that
there is no row in the user table with a Host value that matches the
client host:
Host ... is not allowed to connect to this MySQL server You can fix
this by setting up an
|
Detect Desktop and Redirect mobile browser to Desktop Main Website |
So if you want to detect a desktop trying to view the mobile version put
this in your .htaccess file:
Options +FollowSymlinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^m.domain.com$
RewriteCond %{HTTP_USER_AGENT}
!(android|bbd+|meego).+mobile|avantgo|bada/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge
|maemo|midp|mmp|netfront|opera m(ob|in)i|palm(
os)?|phone|p(ixi|re)/|plucker|pocket|psp|series(4|6)0|symbian|treo|up.(browser|link)|vodafone|wap|windows
(ce|phone)|xda|xiino [NC]
RewriteCond %{HTTP_USER_AGENT}
!^(1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a
wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r
|s )|avan|be(ck|ll|nq)|bi(lb|
|
What is the difference between a desktop app and a non-desktop app in windows |
With the introduction of Windows 8, Metro, and Windows Store, API
documentations now specify which framework(s) they are supported on. Not
all desktop APIs are available to metro/mobile apps, and vice versa.
|
How to Prevent Image SaveAs + Prevent Image Drag&Drop to Desktop + Prevent Screenshot on a Desktop Browser |
To prevent the user right-clicking on the image and choosing Save As, you
can add the code oncontextmenu="return false". oncontextmenu detects the
user right-clicking and return false stops the action.
Then if you do the code draggable="false" the user can't drag the image,
even if they select it. I don't think there is a way to stop people using
screengrabbers, but here is some code that stops Google Images and other
search engines grabbing the image: <meta name="robots"
content="noimageindex"></meta>.
So all in all, try this method: <meta name="robots"
content="noimageindex"></meta><img src="mygreatimage.png"
alt="An awesome image" oncontextmenu="return false" draggable="false">
|
Local Wordpress install with Remote Database. Error: Remote DB Appears to be already installed |
Did you include 'http://' in your URL?
Refer :
http://wordpress.org/support/topic/you-appear-to-have-already-installed-wordpress-1
Thanks.
|
Can I migrate remote SVN to local disk without exporting dmp files on remote server? |
You can dump only latest revision range with the -r switch.
svnadmin dump REPOS_PATH [-r LOWER[:UPPER]] [--incremental] [--deltas]
and then you can load this increment in the new repository.
Reference:
http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html
Example:
http://www.vioan.ro/wp/2007/07/31/dumprestore-for-subversion-repository/
|
Failed to connect to remote VM. Connection refused. when trying to debug remote java application in Flash Builder 4.7 |
Each debug argument must be placed in a line by itself, after the -vm
argument. This should do the trick:
-vmargs
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
|
merge remote branches before it gets merged to remote/master? |
Whether or not you'll have a merge "problem" depends on what happens on the
upstream master prior to the owner merging in branchA.
However, regardless of what happens, once branchA does get merged into the
upstream master, you can just run the following in your local copy and be
"up-to-date":
git checkout master
git fetch upstream
git reset --hard upstream/master
This combination will ensure your local copy of master points to the same
commit as the upstream copy of master. Since you would do this after the
owner merged branchA into the upstream master, your local master will,
effectively, still have the changes introduced by branchA.
update
If you want to make changes to branchA prior to merging into master, I
would recommend you create your own branch based on branchA and make your
|
Remote PHP Debugging with Netbeans and XDebug (remote server) |
Remember you need to set the Path Mapping in the Debugger tab inside
Netbeans Options.
Another little big problem I was having when trying to connect from
NetBeans remotely was the SSH tunnel. You have to creat it for the port
xdebug will work on, 9000 usually.
If you experience network problems for a moment, the tunnel might "break"
silently and NetBeans will be stuck in the holy "Waiting for connection..."
state. In putty, you can right click and Restart Session, but this won't
work.
You will need to close the putty window and re open the session for it to
work again.
Hope it helps!
|
Forcing IE 11 to behave as IE 10 |
This may help you to set response header with IIS:
http://msdn.microsoft.com/en-us/library/ff955275(v=vs.85).aspx
|
Forcing reinstallation when necessary |
If you use the AllowSameVersionUpgrades attribute your installer will
perform an upgrade when only the revision has changed.
<MajorUpgrade
Schedule="afterInstallInitialize"
AllowSameVersionUpgrades="yes"
DowngradeErrorMessage="A later version is already installed."/>
|
Syncing remote fork with remote master |
Your local repository is a clone of your fork, so that is your origin. You
need to pull from your remote repository and push to your fork. Assuming
that you are on your master branch locally you can pull any changes from
the upstream repository (the one that you forked from)
git pull upstream master
Then once you have resolved any merge issues etc you can push the changes
to your fork.
git push origin master
how will you get any changes into your company repository of you only do
this? And if you're not going to be making any changes why not just clone
your company repository and do away with the fork?
Edit.
If you want to sync all of the remote branches you can do
git remote update
Which will fetch all of the remote branches. Then you can push to your
origin.
|
Forcing Mechanize to use SSLv3 |
The last comment on the Python issue Eiyrioü von Kauyf mentions above is
the solution I implemented in my forked version of mechanize. The diff of
mechanize/_opener.py follows. It fixes mechanize.urlopen(), but not
mechanize.Browser()'s open() method:
diff --git a/mechanize/_opener.py b/mechanize/_opener.py
index ad8412d..e6d1ebc 100644
--- a/mechanize/_opener.py
+++ b/mechanize/_opener.py
@@ -25,9 +25,27 @@ import _rfc3986
import _sockettimeout
import _urllib2_fork
from _util import isstringlike
+import ssl, socket
open_file = open
+class HTTPSConnectionV3(httplib.HTTPSConnection):
+ def __init__(self, *args, **kwargs):
+ httplib.HTTPSConnection.__init__(self, *args, **kwargs)
+
+ def connect(self):
+ sock = socket.create_connection((self.host, self.port), self
|
Forcing Interactive R session |
That had come up with our beloved littler alternative to Rscript, and I
then added a toggle:
edd@max:~$ r -p -e 'interactive()'
[1] FALSE
edd@max:~$ r -i -p -e 'interactive()'
[1] TRUE
edd@max:~$
It may well be that R when invoked as you do always sets it to false.
|
Forcing 's width to be the same as it's content |
By default div, ul & li are all display:block meaning width:100%. To
make them shrink to their content they would need to be inline-block, use
this class on them to achieve this..
.inline_block{
display: inline-block;
zoom: 1;
*display: inline;
}
EDIT: Found a better way of doing it.
li{
float:left;
clear:left;
background-color:red;
}
http://jsfiddle.net/LhzWe/
|
IOS: forcing update before app becomes visible |
In apples clock app, in applicationDidEnterBackground it hides the timer
text, so that when the app comes into the foreground you see a blank UI for
the split second where your app is loading the new timer data in the UI.
Also, you may want to call some of your applicationDidBecomeActive code in
applicationWillEnterForeground, which is called first. But keep in mind,
applicationWillEnterForeground is not called when the app first launches.
There will always be a delay between when your app comes into the
foreground, and when the UI updates. Theres no way to fix that, so you
might as well use what apple uses to get around the issue.
|
Forcing a callback to be executed first |
The callback gets executed when it gets executed. There is no point in
"making" it execute earlier.
I guess you are dealing with twisted so heres a tutorial
http://krondo.com/?page_id=1327 but it is helpfull even for understanding
async programming in general, which you obviously need.
|
Forcing my activity to foreground? |
Replacing my original code with the following:
protected void onPostExecute(String s) {
super.onPostExecute(s);
Intent intent = new Intent();
intent.setClass(HomeScreenMain.this, HomeScreenMain.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getApplicationContext().startActivity(intent);
}
Did the trick.
|
Java: Forcing Not to Override |
No you cannot do it.
Overriding a method in subclass with its superclass method marked final is
not possible
. You can add a method with different signature
The purpose of final keyword applied to a method is that it doesn't allow
subclass method to override it.
|
Why is hibernate forcing a transaction |
How are you calling your DAO method? it needs to be called within a
transaction, ideally from a service layer, the service can then be called
by a controller for example. Note the @Transactional annotation at the
method in the service class.
@Service
public class ContactServiceImpl implements ContactService {
@Autowired
private ContactDAO contactDAO;
@Transactional
public List<Contact> listContact() {
return contactDAO.listContact();
}
}
|
Forcing HttpUrlConnection to ipv4 only |
Please don't force the application to use IPv4. We are deploying networks
that have IPv6-only connectivity (with NAT64/DNS64) and IPv4-only
applications will break on such networks. The world is running out of
unused IPv4 addresses, and parts of the world (Asia, Europe, Middle East)
are already out.
To solve this please look at RFC 6555: Happy Eyeballs. It describes an
algorithm that will try IPv6 first but falls back to IPv4 so quickly that
the user will hardly notice it (or usually won't notice it at all).
Unfortunately I don't know of a good Java implementation you could use on
Android, but I hope others will be able to point you in the right
direction. (or you can be the first to write an open source implementation
and gain fortune and fame that way (well, fame at least ;))
|
Brute forcing UTF8 |
Of course it makes the Brute Force attack harder. When doing a Brute Force
you simply try all combinations out of a limited pool of chars. Which will
most likely not contain arabic, chinese, japanese, cyrillic chars. It is
unlikely that someone that wants to attack your password is choosing a pool
with these chars because with increasing pool size the time to get the
password is increasing exponentially.
You can calculate the amounth of combinations like this -
Charpool = 52 (lowercase + uppercase alphabet)
Combinations = 52^Length
Which will resolve in 380204032 combinations for a 5 letter password.
But to answear your question - yes it will make brute forcing more
complicate. Not only because the increased charpool but even more with the
fact that the attacker has to include these
|
Figure x,y of point after forcing angle? |
in psuedocode:
point dif = currentPt - previousPt
float distance = sqrt(dif.x * dif.x + dif.y * dif.y)
float newCurrentX = previousPt.x + distance * cos(newAngle)
floar newCurrentY = previousPt.y + distance * sin(newAngle)
However, if all the new angles are multiples of 45, you could avoid using
sin and cos.
For a multiple of 90 degress (or zero degrees),
if (newAngle is 90) newCurrentY = previousPt.y + distance
else if (newAngle is 0) newCurentX = previousPt.x + distance,
etc.
for multiples of 45 degress:
else if (newAngle is 135) {
shift = distance * CONST_SIN_OF_45;
newCurrentX = previousPt.x - shift;
newCurrentY = previousPt.y + shift;
}
|
Forcing authentication on Maven release |
I have got it working now, by specifying in the maven release plugin that
it only deploy, and not deploy and deploy site as is default.
mvn site:deploy fails with the error: Wagon protocol 'http' does not
support directory copying.
Of course, my original error message did not refer very much to site at
all.
Way to produce useful error messages, Maven!
I found a way to force preemptive authentication here:
http://maven.apache.org/guides/mini/guide-http-settings.html (it didn't
solve my problem, but it is an answer to the title.)
|
Forcing Codeigniter to work with varnish |
If your backend is sending Cache-control: max-age=XXX you can forget about
Expires header, as it will be ignored in HTTP 1.1 compliant clients &
proxys [1] (In fact, it's usual to set it on the past in order to avoid old
HTTP 1.0 clients caching items).
Be very careful when setting Vary: User-Agent header, as it can harm your
caching chances [2]
And finally, Varnish won't cache a request such as that because of the
Set-Cookie header. Varnish needs lazy session initializing (see [3]) to
cache thing (or a quite complicated VCL)
If you fix the cookie thing and still have problems the VCL file and
varnish version will be really apreciated.
[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
[2] https://www.varnish-cache.org/docs/3.0/tutorial/vary.html
[3] How should I implemen
|