w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Identify the workgroup MDW
The DAO.DBEngine object provides SystemDB property. You can retrieve the value of that property from VBA. Here's an example from the Immediate window. ? SystemDB C:UsershansAppDataRoamingMicrosoftAccessSystem.mdw

Categories : Vba

List of the connected Serial port C Qt
You should use QSerialPort Look at the enumerator example to know how If you use Qt4, look here

Categories : C++

SQL Developer: Joining tables from connected SQL Server DB and connected Oracle DB
Oracle has the concept of a DBLink, and SQL Server has the concept of a Linked Server. Both these features let you query data from two separate databases. Here's a link with instructions for setting up an Oracle DBLink to a SQL Server DB... http://www.dba-oracle.com/t_database_link_sql_server_oracle.htm And here's a link with instructions for setting up a SQL Server Linked Server to an Oracle DB... http://support.microsoft.com/kb/280106 See also this SO post... SQL statement joing Oracle and MS SQL Server

Categories : SQL

Test if device is Always-On/Always-Connected (AOAC) or Connected Standby is supported?
Here's some code that should help: http://social.msdn.microsoft.com/Forums/en-US/tailoringappsfordevices/thread/eeb164a3-8ceb-4eb2-8768-4faaa7218c59/ (scroll down to the answer by 'User1024x768')

Categories : C#

How to get a list of devices connected to an Android device from adb shell
Since it's unix based, you should be able to try: ls /dev/tty.* or ls /dev/cu.* Also, I haven't tried myself yet, but the Android Open Accessory Development Kit sounds useful.

Categories : Android

Is there a method that i can get a list of ip addreses of clients currently connected to the server?
You can use the getRemoteSocketAdress() method from the Socket class. Like this: String remoteAddress = mySocket.getRemoteSocketAddress().toString(); To retrieve the remote addresses for every one of the client, you have to apply this to every client socket thread.

Categories : Java

How to list all connected nodes in android application (using WIFI)?
Try This One... This will help you to get all kind of net connections... public boolean checkNet() { ConnectivityManager cm = (ConnectivityManager) getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netWifi = cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI); if (netWifi != null && netWifi.isConnected()) { return true; } NetworkInfo netMob = cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); if (netMob != null && netMob.isConnected()) { return true; } NetworkInfo netActive = cm.getActiveNetworkInfo(); if (netActive != null && netActive.isConnected()) { return true; } return false; }

Categories : Android

How to list all events from a particular folder which are going on today? And email the list to users
You can use a collection to get all events which contain today in their daterange and for the mail-sending you can use colective.contentrules.mailtotogroup. It is capable to send the body-text-field, too. If that's what you were looking for.

Categories : Email

How to list the Connected USB Port Number using Vendor id and product id using java
You can list all serial ports by using simple javax.comm API import javax.comm.*; import java.util.Enumeration; public class ListPorts { public static void main(String args[]) { Enumeration ports = CommPortIdentifier.getPortIdentifiers(); while (ports.hasMoreElements()) { CommPortIdentifier port = (CommPortIdentifier)ports.nextElement(); String type; switch (port.getPortType()) { case CommPortIdentifier.PORT_SERIAL: type = "Serial"; break; default: /// Shouldn't happen type = "Unknown"; break; } System.out.println(port.getName() + ": " + type); } } } The output would be like COM1: Serial COM2: Serial COM7: Serial EDIT: Also see a good blog on Creating and using a real-time port monitoring application powered by IBM Lotus. Also by using jusb for windows , for linux you can do read

Categories : Java

OpenCV how to find a list of connected components in a binary image
You need to cv::floodFill the contours returned by cv::findCountours. See this example for findContours, and this one for floodFill

Categories : C++

List connected devices to Android phone working as WiFi Access point
This is an answer from another stackoverflow question, I read it before two month and don´t know from which user the answer is from, but this should work. WifiManager gives You what You need: Main.java import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; import com.whitebyte.hotspotclients.R; import com.whitebyte.wifihotspotutils.ClientScanResult; import com.whitebyte.wifihotspotutils.WifiApManager; public class Main extends Activity { TextView textView1; WifiApManager wifiApManager; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); textView1 = (TextView) findViewById(R.id.t

Categories : Android

Looking for help on a script to iterate list of web server IP addresses and output screenshot of connected web page
Read ip addresses from the file: file $ip = Get-Content filename This will get you array of ips. $ip[0] == first line from file, $ip[1] second e.t.c. Then create loop: for ($index=0; $index -le $ip.length; $index++) { $r = [System.Net.WebRequest]::Create("http://$ip[$index]/") $resp = $r.GetResponse() $reqstream = $resp.GetResponseStream() $sr = new-object System.IO.StreamReader $reqstream $result = $sr.ReadToEnd() $result >> fileoutput.html } Something like this. Sorry did not test. This should get you started.

Categories : Windows

store credit card info into paypal vault and also want to use paypal Buttonsource
Here is some feedback from PayPal on this one: The Parameter ButtonSource is a parameter of our classic API's and is currently not supported with the REST API. The Rest API's are still in early stages and we will see much more Features added over the next 12 months. So even the parameter might not be supported with REST now, it can be soon. However, with REST as of now, the merchant would need to use other parameters to track his payments. one other thing by using token i am able to get all details of card that is saved. In case if my code will be compromised then any one can steal my tokens saved in database and get the details. How can i make it secure ? Technically, if the merchants System is hacked and his credentials + DB is exposed to a third party, they can lookup details us

Categories : PHP

How to set HDInsight's input/output paths to point to Azure Storage Vault (ASV) in local storage emulator?
You can use one of the following paths to access local storage emulator. wasb://testcontainer@storageemulator/input wasb:///input (when storage emulator is set as the default File System) asv:///input (when storage emulator is set as the default File System, asv is obsolete, not recommended)

Categories : C#

Running TFS 2012 Coded UI test in the context of a workgroup test machine
If you plan to run your test controllers and test agents on machines that are in a work group and not in a domain, or machines that run in different domains that do not have a two-way trust relationship, you must follow these steps as part of your installation process: On each computer where you will install a test controller or a test agent, create a local user account that is a member of the Administrators group. Use the same account and password on each machine. Use this user account for your test controllers when you install and configure them. Add this account to the TeamTestAgentService group on the test controller machine. Caution When you add this user account to the group, do not include the name of the local machine. For example, do not add the user account as . Just add as

Categories : Security

how do I run this Emacs M-x command "wg-update-workgroup" automatically before emacs closes?
Here's the code: (add-hook 'kill-emacs-hook (lambda () (wg-update-workgroup))) UPD It seems that the code isn't working for you since wg-update-workgroup needs an argument. You have to test this yourself, since I don't really want to get familiar with the package. Solution 1: (add-hook 'kill-emacs-hook (lambda () (wg-update-all-workgroups))) Solution 2: (add-hook 'kill-emacs-hook (lambda () (call-interactively 'wg-update-workgroup))) UPD: disregard everything from above:) I'm pretty sure this is what you want: (setq wg-query-for-save-on-emacs-exit nil) (push (lambda()(or (ignore-errors (wg-update-all-workgroups-and-save)) t)) kill-emacs-query-functions) The first statement removes the extremely

Categories : Emacs

PHP PDO how do I show who I am following beside my list of users?
You don't want to loop over one result set and then makes queries for each row. It is inefficient and the database can do it for you. Try a join query: SELECT u.id, u.username, IF(f.follower_id IS NULL, 0, 1) as following FROM users u LEFT JOIN following f ON u.id = f.user_id AND f.follower_id = $loggedinuser The LEFT JOIN gives you every row from the users table then any rows in following that match the criteria in the "ON" clause. If there is no match, those columns are set to NULL in the result.

Categories : PHP

How to get a list of users in a certain role?
user_roles() is actually implemented in such a way that it searches the roles database table to extract all roles. You could do similar thing and search the users table for a given role. Please look at the function below function getUsersByRole($rid = 1) { // rid = Role Id from users_roles table $query = db_select('users', 'u'); $query->fields('u', array('uid', 'name')); $query->innerJoin('users_roles', 'r', 'r.uid = u.uid'); $query->condition('r.rid', $rid); $query->orderBy('u.name'); $result = $query->execute(); $users = array(); foreach ($result as $user) { $users[] = $user; } return $users; } $users = getUsersByRole(3); var_dump($users); Make sure you will run it within Drupal environment.

Categories : PHP

get list of logged on users on remote windows computer from a list computer
It (csv file) should be formatted as follows: computername server1 server2 server3 'Computername' is the column name. This can be derived from the code snippet as the Foreach-Object refers to the ComputerName property.

Categories : Windows

How to obtain a list of Users from ASP.NET Identity?
I found out that I wasn't using the derived ApplicationUser object for anything, so I just went ahead and changed all uses of it for plain old User. Then I just changed ApplicationDbContext definition for the following: public class ApplicationDbContext : IdentityDbContext< User, UserClaim, UserSecret, UserLogin, Role, UserRole, Token, UserManagement> { } And now I can access the user list: UsersContext = new ApplicationDbContext(); ... UsersContext.Users.ToList(); However, I think this will come back and haunt me in the future (I'll probably need to add more fields to User) so probably I'll have to use the same approach as in this question: Get all role names in ASP.NET MVC5 Identity system Edit: Since I got the need to add a new property, I had to revert my changes.

Categories : Asp Net

Create a list of email users?
It would appear to be by design. If you concatenate NULL with some value, the result is NULL : SQL Server String Concatenation with Null hence your attempt to set @usersin and @usersout are failing, because they are NULL to start with. Either assign to it directly (not concatenating), or give it an initial value (e.g. empty string).

Categories : SQL

List AD users who do not belong to one of several groups
All users, computers, groups and contacts (and possibly other objects) in Active Directory have a property called memberof. This property contains the distinguished names of all groups from the whole forest that this entity is a member of, as the attribute's name implies. Given this information, you can now construct an ldap search query to find all entities that are not members of at least one of those groups: (!(|(memberof=CN=Group1,dc=domain,dc=com)(memberof=CN=Group3,dc=domain,dc=com)(memberof=CN=Group3,dc=domain,dc=com))) Other conditions may be included as necessary. If you need to obtain the distinguished names of those groups first, you can either hard-code them in your filter or do a normal Powershell search for the groups and then read their distinguished names. You can use

Categories : Powershell

Get users and groups list from Hadoop?
I am not sure on the API but a robust way of getting the information would be to use a Offline Image Viewer that parses the fsimage of the name node and get the information in a XML format for say . You can then use a simple java API to parse the xml and get the list of users and groups. Useful Links a) http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsImageViewer.html b) https://github.com/twitter/hdfs-du

Categories : Java

List tweets from multiple users (PHP)
Yeah, you can't just change the string and that's it ;) You need to make authenticated requests (OAuth). This post will walk you through exactly how to make authenticated requests to the 1.1 API using Oauth. This post, although a little more complex because it involves multiple users and also multiple hashtags, shows how you can join multiple users in a query (although it looks like you've already got that covered). You've got the gist of the actual query you need to make, so well done for doing some research and reading the docs. However, performing 1.1 requests is a little more involved now.

Categories : PHP

Is there a way to get a list of users based on a hashtag they used?
Yes, you can. And it's quite simple, really. According to the documentation: GET search/tweets: - Returns a collection of relevant Tweets matching a specified query. Resource URL: https://api.twitter.com/1.1/search/tweets.json Now if you scroll down on that page, it gives an example of what a query for a tweet returns (I took a screen, sorry about the appalling arrow, it's 10am here and I haven't had my tea yet). Great! So you know the URL and method (GET) that you need to get your data. As for searching for a hashtag specifically, the query documentation is what you're after. This is basically as urlencoded string in the GET request like: ?q=#hashtag. Perform the search like that and you'll get back the data above. Then just loop through it, find the user object, and grab

Categories : Twitter

graph api retrieves list of users name where name is like given text in ios
Hi Friend i solved my problem.i used this coding to get next 25 result. FbGraphResponse *next_page_fb_graph_response = [fbGraph doGraphGetWithUrlString:next_page_url]; And i have another one issue. if i searched in facebook i got all user name which are not allowed public search. But in fb graph api i tried to get users name it is not showing which are not allowed public search. any one resolve this issue?

Categories : Iphone

How to retrieve hashtaged tweets from a list of users
Note: I've updated the library so I suggest you grab the newly updated version before trying this - I've made it so you don't need to manually encode each individual character. This page shows you how to use search, and has a number of operators down toward the bottom of the page. One of these is the OR operator: Getting tweets for multiple users OR - Either this or that love OR hate - containing either "love" or "hate" (or both) From - From this user from:twitterapi sent from the user @twitterapi So, armed with the above knowledge, I'm guessing your query would look like this: Translated into a GET request: ?q=from:user1+OR+from:user2 Getting tweets for specific hashtags So that's how you get tweets for multiple users. The next step you want is for certain hashtags. #

Categories : Twitter

Keep users in Config.groovy list in Grails
I do not think you can do that because annotations are resolved at compile time and not in runtime. Config properties will be read during the application runtime so you I fear you have to end up doing: @Secured(["authentication.name in ['Bill', 'Tom', 'Rick']"]) class SomeController { }

Categories : Grails

How to extend admin users list page?
i believe if you follow theses instructions you will get what your looking for: http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields

Categories : PHP

how to get the list of users accessing to particular tables or views
As long as the query is running, you can execute a system stored procedure: sp_who3 which you can find under [db_name] - [Stored Procedures] - [dbo.sp_who3]. Unfortunately it doesn't log anywhere. Easiest way is to modify it - add storing logs into own table. You can INSERT what it selects - Login, SQLStatement, StartTime. Frankly speaking the logging table will grow huge very soon. Consider limiting logging to selected users!

Categories : SQL

How can I retrieve list of Active Directory users
You can use a PrincipalSearcher and a "query-by-example" principal to do your searching: // create your domain context using (PrincipalContext ctx = new PrincipalContext(ContextType.Domain)) { // define a "query-by-example" principal - here, we search for a UserPrincipal // and with the first name (GivenName) of "Bruce" UserPrincipal qbeUser = new UserPrincipal(ctx); qbeUser.GivenName = "Bruce"; // create your principal searcher passing in the QBE principal PrincipalSearcher srch = new PrincipalSearcher(qbeUser); // find all matches foreach(var found in srch.FindAll()) { // do whatever here - "found" is of type "Principal" - it could be user, group, computer..... } } If you haven't already - absolutely read the MSDN article Managing

Categories : Dotnet

Removing the logged in user's name from the list of users in django
Can you try something like that ? {% for likes in forum.likes.all %} {% if user != likes.user %} <li><a href="/get/{{likes.user}}">{{likes.get_full_name}}</a></li> {% endif %} {% endfor %}

Categories : Django

Users list, follow button not working properly
Yeah, that makes sense. foreach ($users as $user) { $user_id = $user['user_id']; // At the end of the loop this is the last user $username = $user['username']; echo $user_id . ' ' . $username; echo '<form action="" method="post">'; echo '<input type="submit" name="follow" value="Follow">'; echo '</form>'; } if ($_POST['follow']) { // Regardless of what you input you're getting the last user here $FClass->follow($user_id); } Try something like this foreach ($users as $user) { $user_id = $user['user_id']; // At the end of the loop this is the last user $username = $user['username']; echo $user_id . ' ' . $username; echo '<form action="" method="post">'; echo '<input type="hidden" name="userid" value="'

Categories : PHP

List users in active directory domain AND subdomain
You can query the global catalog. It contains a read-only, searchable, partial representation of every object in every domain in a multidomain Active Directory forest. The GC operates on port 3268 ( standard ldap ) and 3269 ( SSL ldap ). Simply connect to any of your domain controllers on one of the above two ports and your search will be automatically directed to the GC server. To perform any modifications, though, you will have to send such request to a domain controller for that particular domain the object belongs to.

Categories : C#

Need user to pick from a list to connect two users in YESOD
If you use an AForm / MForm, the form will be automatically generated for you (using Tables or Divs). That should simplify things for you. If you want to manually style it, you can do something like this when using a form: How to make button look like a link?. Most people end up creating styled buttons for such actions anyways (think of your standard CRUD app with Edit, Delete buttons, etc.). If you go down the path of trapping link clicks and do ajax Post, it will not degrade nicely if javascript is disabled so something you need to watch out for. HTH

Categories : Misc

Get and list users based on idempresa of logged in user
It's generally not good practice to use sfContext::getInstance(). Read this post http://webmozarts.com/2009/07/01/why-sfcontextgetinstance-is-bad/. How about adding a static method to your sfGuardUserTable.class.php, e.g // libformsfGuardUserTable.class.php static public function getUsersByIdEmpresa($idempresa) { //... $q->andWhere('idempressa = ?', $idempresa); return $q->execute(); } Then calling it in your controller or from where you need, e.g // appmyAppmodulesmyModuleactionsaction.class.php public function executeMyAction() { $profile = $this->getUser()->getProfile(); $usersRelatedByIdempresa = sfGuardUserTable::getUsersByIdempresa($profile->getIdempresa()); //... }

Categories : Symfony2

facebooki API scope: Do NOT request users friend list
The Facebook documentation specifies that "the app will have access to only the user's public profile and also their friend list" if there are no additional permissions requested.

Categories : PHP

Adding new users to a collection and having them render on a list automatically?
So I assume then that "player" records belong to a user in some way? So when you create a new user, you create their new default player record? Maybe you just need your helpers to check that a player record for the user exists, and if not, create it. Template.leaderboard.players = function () { var players = Players.find({/* Get players for this user */ }, {sort: {score: -1, name: 1}}); if(!players) { players = /* Insert default player record */ } return players; };

Categories : Meteor

Has anyone got Google DirectoryService.Users.List().Execute(); to work in C#/.NET?
ListRequest had those properties. It looks like those properties aren't mandatory, so they aren't part of the constructor. You can do the following: var listReq = service.Users.List(); listReq.Customer = "CUSTOMER_HERE"; listReq.Domain = "DOMAIN_HERE"; Users results = listReq.Execute();

Categories : C#

Disabled ActiveDirectory Users from specific date with exclude list
A string value can never contain an array, so $_.SamAccountName -notcontains $excludeUsers will always evaluate to $true. You need to reverse the check and make the reference an array of strings (the CSV import produces an array of custom objects). Selecting only the field SamaccountName from the imported CSV and switching the arguments should do what you want: $excludeUsers = Import-Csv '.excludeusers.csv' | % { $_.SamaccountName } ... $colUsers | ? { $excludeUsers -notcontains $_.SamAccountName } | ... As a side note, you could simplify the the code for finding obsolete accounts like this: $myDate = Get-Date '01/01/1601 02:00:00' $limit = (Get-Date).AddDays(-30) $colObj = Get-ADUser -Filter * -Properties * ` | ? { $_.Enabled } ` | select Name,SamAccountName,@{n="NeedDisabl

Categories : Powershell



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.