I have to generate current values between 0mA to 110mA. Can I generate current automatically using a micro-controller? (For example: 20mA , 30mA...) I need to keep the current stable for ms in frequency between 1Hz-100Hz.

If so, how?

Is it possible to make a Ubuntu desktop host (running on a physical machine) ignore a network interface card (NIC, ethernet), and let a virtual box guest take full control of that NIC regarding IPs, etc?

The Ubuntu host has access to the network through another NIC.

If this is possible, could it be done in a simple way (using the graphical Network Manager). Any suggestions?

Thank you in advance.

Is the real KO-theory of real Stiefel $V_k(\mathbb{R}^n)$ manifold known? Or have the real vector bundles over the real Steifel manifolds $V_k(\mathbb{R}^n)$ been studied?

I am trying to set up a site that will be storing a large amount of images (roughly 50,000 to start with). The strategy for this was to use Storage API and S3 storage to deal with the costs of hosting, and Services API to provide an interface for a offline converter/uploader to get the images to the site.

This is working pretty good. If I upload an image manually by creating a node and filling in the image field, it gets sent to Storage API and good things happen. I can also upload files and create nodes from the offline uploader via the XMLRPC Services API.

The problem is that the files uploaded with the offline uploader don't get handled by Storage API. Currently the script uses the Services API method 'file.create' to create and object, then the details returned are used to fill in the image field on the node that is created next. I expect there is a better way to do this, but I am not sure.

I want to create and run a bash function that:

  1. cd into a project's directory
  2. Open a new tab in Terminal in the same directory
  3. Open my dev tools and start dev services

Item #2 doesn't work as expected, the new tab doesn't change directory.

Here is the script (both functions residing in my .bashrc file:

# Open a new tab (needs a path as an argument)
    osascript -e "tell application \"Terminal\"" \
                        -e "tell application \"System Events\" to keystroke \"t\" using {command down}" \
                        -e "do script \"cd $1; clear;\" in front window" \
                        -e "end tell"
                        > /dev/null

# Set up workspace
    # cd into the project's directory
    cd /Users/iamuser/Documents/path/to/project\ file
    # Get the working directory

    # Open a new tab in Terminal and cd into project's directory
    # The idea is to have a tab with Rails server output, and another tab in the project's directory
    new_terminal_tab $pwd

    # Open the project in Sublime Text 2
    subl $pwd

    # Start the Rails server
    rails server

What am I doing wrong? What is this code doing that I don't know?


The path for the directory I am trying to access has spaces in it. But escaping the space is not helping at all. The script works with paths that do not include spaces.

In September I added 26 calendar events, one every other Saturday, to set personal goals. Each calendar entry is a separate event, I am not using the Recurring Event feature. I've noticed that some goals are shifting a few days into the future.

  • The events from 29 November to 13 December have shifted two days forward: instead of being on a Saturday they appear on the Monday two days later.

  • The events from 27 December to 10 January have shifted five days forward: instead of being on a Saturday they appear on the Thursday five days later.

  • The events from 24 January to 7 March have shifted eight days forward: instead of being on a Saturday they appear on the Sunday eight days later.

  • The events from 21 March to 4 April have shifted eleven days forward: instead of being on a Saturday they appear on the Wednesday eleven days later.

And so on, the gaps get larger further into the future.

The only other event that I have added so far out is a recurring event every Tuesday, which is not affected (i.e. has not shifted). I do not cross time zones with this device, and the day shifting does not correlate with any Day Light Savings Time shifts. This is a work phone with a lock screen: my children nor anybody else has access to the device nor to the Google account with which it is associated to. I have very few apps installed on the device, such as Anki and Firefox. I do not have any social media apps, such as Facebook, on the device.

This is on a Samsung Note 3 on Android 4.4.

More information: This is using the stock Google calendar application, with the calendar stored and synced with my Google account 'dotancohen'. As these are the only entries in the 'dotancohen' calendar that far in advance, I do not know if the other entries would have be affected. I do have other calendars which are shown in the Google calendar application, connected to other Google accounts (such as my work account) are not affected. All the affected entries we added one at a time by hand on the device, i.e. I long-clicked the calendar in Month mode and manually added each entry. For that particular calendar (the 'dotancohen' Google account) I have never opened the calendar on another device.

I tried to backup the IBM DB2 (LUW) Database using this command:

./db2 backup database DBEMP to /home/user1/db2bkup

But I got this message:

SQL1035N The database is currently in use. SQLSTATE=57019

Then I tried this:

./db2 backup database DBEMP online to /home/user1/db2bkup

And I got this message:

SQL2413N Online backup is not allowed because the database is not recoverable or a backup pending condition is in effect.

What does it mean? Is there alternative way to backup the database online? I can't stop the database because it's being used.

The Unsullied in Game of Thrones are castrated at an early age as a method of control (I read anywhere from birth to age five). The problem is that castration would prevent puberty. Therefore they should have less muscle mass and strength. Their voices would be high-pitched.

First, why do the Unsullied lack the traits of Eunuchs?

Second, it just seems that in a time or place where war is done with spears and shields that the last thing you'd want to do to make boys into warriors is to castrate them. Why would the Astapori do this?

When should I use do, and when should I use make?

I made supper.

I'm doing my homework now.

He made it easier.

Is it true that make implies creation?

I am trying to specify my own colors and scaling for the ColorFunction in ListDensityPlot. I have several lists of 2D values which I plot in multiple images, and I want to scale the data according the absolute maximum and minimum value taken from all the lists.

I want to visualize all the data, but some lists contain quite small values, and a few lists contain data approximately 100× larger.

I have been trying to use Blend, with the intention of scaling from the minimum to the maximum of the plotted values, using custom colors:

MyPlot = ListDensityPlot[Transpose[Join[Transpose[Points],Rescale[Transpose[#], {MinV, MaxV}]]],
           AspectRatio -> Automatic,
           ColorFunction -> (Blend[{{0,Purple},{0.5,Blue},{1,Green},{3,Yellow},{6,Red}},#]&),
           ColorFunctionScaling -> False,
           PerformanceGoal -> "Quality",
           PlotRange -> All]&;

However, I was thinking that it would be nice to create something like a Manipulate bar to change the values related to the used colors and "tune" the colors in a more comfortable way.

Can anyone give me advice how to implement it?