Posts

Showing posts from July, 2013

c# - WCF - Setting Policy for UsernameToken -

i received updated wsdl service i'm consuming has below policy added <wsp:policy wssutil:id="usernametoken"> <ns0:supportingtokens xmlns:ns0="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512"> <wsp:policy> <ns0:usernametoken ns0:includetoken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512/includetoken/alwaystorecipient"> <wsp:policy> <ns0:wssusernametoken10 /> </wsp:policy> </ns0:usernametoken> </wsp:policy> </ns0:supportingtokens> </wsp:policy> i have updated reference right clicking service reference --> configure service option inside visual studio. generated custombinding replacing previous basichttpbinding <custombinding> <binding name="mybindingname"> <!-- wsdlimporter encountered unrecognized policy assertions in servicedescription 'http://ouaf.oracle.com/webservices/c...

java - Array Tester - Beginner -

i long time lurker , first time user of overflow, able guide me in right direction. there more issues program i'd admit, however, i'm getting there! main concerns @ moment below... my first question looping program beginning. example, if user inputs integer < 1 program outputs error message. program stops there. how can loop prompt user input integer. i having issue when program prompts user "enter list of () integers:" reason, have enter more integers should have to. in end, program takes appropriate number, pretty weird. (see program test - notice 1 through 5 integer 6 below that. hit enter after 5 program doesn't continue. continues when hit enter, type 6 , hit enter again. array below accurate though.) let me know if should change else. hopefully able post updated code when figured out! in advance if have read point! /** * n irwin - programming - lab 23 * array tester - 4/21/2016 */ import java.util.scanner; public class a...

Are there known issues with Android Services on 4.1.x (Jelly Bean)? -

my question shot in dark: deal android 4.x / jelly bean? there known problems services, stickiness, foreground, etc.? backstory : tested music player application on sorts of android devices , emulators , on physical jelly bean device (samsung rugby pro). found mediaplayer oncompletion function not being fired consistently when screen turned off. isn't fired several minutes . when screen on, whether or not activity shown, application works fine. (there no problems on gingerbread, kitkat, lollipop, or marshmallow. have physical devices versions , work flawlessly.) device information: os version: 3.0.31-656355 release: 4.1.1 device: comancheatt model: samsung-sgh-i547 product: comancheuc brand: samsung display: jro03l.i547ucbll1 cpu_abi: armeabi-v7a cpu_abi2: armeabi hardware: qcom id: jro03l manufacturer: samsung user: se.infra host: sep-125 i figured out; hope helps ... the problem not in firing oncompletion event rather reset() blocks in...

Unable to build react-native app on Android device :failed to find target with hash string 'android-23' -

here full error: failed find target hash string 'android-23' in: /users/username/library/android/sdk this build.gradle file in android/app : android { compilesdkversion 23 buildtoolsversion "23.0.1" defaultconfig { applicationid "com.mobile" minsdkversion 16 targetsdkversion 22 versioncode 1 versionname "1.0" ndk { abifilters "armeabi-v7a", "x86" } } i ran android sdk manager, , have android sdk build-tools rev 23.0.1 installed, along files android 6.0 (api 23). i searched online problem , have tried many solutions; restarting terminal, deleting gradle file in root directory, making sure android_home points correct directory (as following reactnative docs, have copied in both ~./bashrc , ~./bash_profile following line: # if installed sdk via homebrew, otherwise ~/library/android/sdk export android_home=/usr/local/opt/android-sdk...

java - Load any libraries form any location after export -

is possible load additional libraries after jar has been created? want search folder jar-files, , load them libraries. "they" extend class, have, can adress them. folder, of libs not same folder, jar-file, loads others located. if there no other way, change settingsfile(where libraries-to-be-loaded linked) withinin jar itself, not great helpful, too;) thanks simon yes is. have use urlclassloader. urlclassloader loader = new urlclassloader(new url[]{new url("jar:file:/home/myapp/plugins/dateplugin.jar!/")}, classloader.getsystemclassloader()); myinterface pluginclass = (myinterface )loader.loadclass("com.mypackage.myclass").newinstance(); urlclassloader java doc you want make sure connect classloader main 1 passing system classloader constructor. allow assign newly loaded library existing interface. how can make plugin system game or application. here link source code showing in action: git hub repository sticky . @ class sticky.gui...

c# - DynamicObject. How execute function through TryInvoke? -

i want execute static functions through dynamicobject, don't know how execute saveoperation without specifying class name typeof(test1) or typeof(test2) . how relise better? for example class dynobj : dynamicobject { getmemberbinder saveoperation; public override bool trygetmember(getmemberbinder binder, out object result) { saveoperation = binder; result = this; return true; } public override bool tryinvoke(invokebinder binder, object[] args, out object result) { type mytype = typeof(test1 or test2 or ....); result = mytype.getmethod(saveoperation.name).invoke(null, args); return true; } } class program { static void main(string[] args) { dynamic d1 = new dynobj(); d1.func1(3,6); d1.func2(3,6); } } class test1 { public static void func1(int a, int b){...} } class test2 { public static void func2(int a, int b){ ....

Python 2.7: Dynamic module import in an imported module based on given variable -

there given 2 versions of storage. based on version, need select proper interface module result. the file structure looks this: lib/ __init__.py provider.py connection.py device.py storage/ __init__.py interface_v1.py # interface storage of version 1 interface_v2.py # interface storage of version 2 main.py the main.py imports provider.py , should import 1 of interfaces listed in storage subpackage depending on version of storage. main.py: from lib.provider import provider lib.connection import connection lib.device import device connection = connection.establish(device) storage_version = device.get_storage_version() massage = provider.get_data(connection) provider.py should import interface storage based on storage_version , implement provide functions: from storage import interface class provider(object): def __init_(self): self.storage = interface.storage def get_data(self, connection): ...

Excel VBA increasing rows/columns -

http://imgur.com/zem7ht7 in image have form upon entering information text boxes , pressing enter place information correct places below titles, i'm wanting either have next button go down 1 row , button go 1 row , allows me enter information 'database' per or have automatically jump down 1 row upon clicking 'enter'. have looked , can't find quite i'm asking , response great, thanks. this have far. private sub commandbutton1_click() dim x integer x = cells(1, 1).end(xldown).row + 1 cells(x, 1) = textbox1.value cells(x, 2) = textbox2.value cells(x, 3) = textbox3.value cells(x, 4) = textbox4.value cells(x, 5) = textbox5.value end sub replace x=2 finding next empty row if cells(2,1) = "" x = 2 else x = cells(1,1).end(xldown).row + 1 end if

javascript - calling ajax function that is outside document.ready -

i trying populate google map. here's of code. why won't ajax request work? works fine when stick in document.ready() anonymous function, want reuse code, need able call it. $(document).ready(function(){ var map = new google.maps.map(document.getelementbyid('map'), { center: {lat: 49.105, lng: -97.568}, zoom: 4 }); gettornadoes("test", "test", "yes"); }); // tornado json file function gettornadoes (test, test2, test3) {//these not real parameters $.getjson('water_pollutants.php', function(data){ $.each(data.features, function(index, feature){ var longitude = feature.properties.longitude; var latitude = feature.properties.latitude; ... i error invalidvalueerror: setmap: not instance of map; , not instance of streetviewpanorama. however, don't think issue google maps. i've had similar issues in past when ...

c# - How to use SQLite-Net Extensions without Json.Net dependency (with alternative ITextBlobSerializer)? -

i writing plugin (.net framework 4.61) uses sqlite-net extensions. these require newtonsoft's json.net present itextblobserializer. json.net in turn requires system.numerics reference. the plugin can not use nuget packages , has submitted zipped source compiled on servers of application provider. challenge @ hand application compiler not support system.numerics , system.numerics not embeddable interop type. request system.numerics added has been ignored. since have no way of using system.numerics best approach rid of json.net , replace itextblobserializer own implementation. is able provide itextblobserializer implementation has no other dependencies? not sure how proceed on front. turns out not difficult. removed jsonblobserializer.cs file depending on json.net. created own itextblobserializer implementation utilizes javascript serializer this: using system; using system.web.script.serialization; using sqlite.extensions.textblob; public class blobserializer ...

ios - Append some text at the end of text file in swift -

this question has answer here: append text or data text file in swift 3 answers i using following code getting errors. "can not convert value of type nsurl int32" at line: if let filehandle = nsfilehandle(filedescriptor: fileurl, closeondealloc: &err). and getting error "type of expression ambiguous without more context" @ line if !data.writetourl(fileurl, options: .datawritingatomic, error: &err) code: let dir:nsurl = nsfilemanager.defaultmanager().urlsfordirectory(nssearchpathdirectory.cachesdirectory, indomains: nssearchpathdomainmask.userdomainmask).last nsurl let fileurl = dir.urlbyappendingpathcomponent("log.txt") let string = "\(nsdate())\n" let data = string.datausingencoding(nsutf8stringencoding, allowlossyconversion: false)! if nsfilemanager.defaultmanager().fileexistsatpath(fileurl....

Java JSoup error fetching URL -

i'm creating application enable me fetch values specific website console. value <span> element , i'm using jsoup . my challenge has error: error fetching url here java code: public class testsl { public static void main(string[] args) throws ioexception { document doc = jsoup.connect("https://stackoverflow.com/questions/11970938/java-html-parser-to-extract-specific-data").get(); elements spans = doc.select("span[class=hidden-text]"); (element span: spans) { system.out.println(span.text()); } } } and here error on console: exception in thread "main" org.jsoup.httpstatusexception: http error fetching url. status=403, url= java html parser extract specific data? @ org.jsoup.helper.httpconnection$response.execute(httpconnection.java:590) @ org.jsoup.helper.httpconnection$response.execute(httpconnection.java:540) @ org.jsoup.helper.httpconnection.execute...

python - Inverting permutations witn sympy -

what function in sympy.combinatorics.permutations can return inverse permutation of given permutation? searches in google don't give results. can write function, if such has been implemented in sympy , unnecessary. thanks help! you're looking ~ : in [5]: print permutation.__invert__.__doc__ return inverse of permutation. permutation multiplied inverse identity permutation. examples ======== >>> sympy.combinatorics.permutations import permutation >>> p = permutation([[2,0], [3,1]]) >>> ~p permutation([2, 3, 0, 1]) >>> _ == p**-1 true >>> p*~p == ~p*p == permutation([0, 1, 2, 3]) true in [6]: ~permutation(1, 2, 0) out[6]: permutation(0, 2, 1) ** -1 works. online documentation literally never explains this, can see how didn't find it. ~ mentioned in explanations of commutator , mul_inv methods.

swift - Alamofire 3.3 JSON ObjectMapping -

i'm using alamofire 3.3 in swift 2 edited question after more research.. i think mapping wrong, have no idea how should change it. can see snippets use key->value elements try map dont have tell mapping go 1 level lower? , if how should go it? keys changing, how can map such things? [old question] strang e markup response rest service json code correct use elsewhere, join snippet of how service sends , how function receives use object mapper, posted under func removed if around mapping part , got error: fatal error: unexpectedly found nil while unwrapping optional value func getpanden(url:nsurl, success:(value:[pand])->(), failed:(value:nserror)->()) { alamofire.request(.get, "\(base_url)\(url)").responsejson { response in if let json = response.result.value { print(response) if json.count >= 1 { // print(json); if let panden:array<pand> = mapper<pand...

HTML5 video tag with https source -

is possible play video via html5 video tag using https video source? our page entirely in https, when browse getting mixed http/https mode message. video configured use https source changing http somehow. don't see 302 redirects coming web server. browser dependent? we've tried possible browsers. code snipplet below developer tool output. <video id="homepagecentervideo_html5_api" class="vjs-tech" preload="auto" data-setup="{}" poster="/cmsimages/static_image.jpg" src="https://www.domain.com/video/makes_it_easy.mp4" controls=""> <source src="https://www.domain.com/video/makes_it_easy.mp4" type="video/mp4"> </video> if copy uri , paste url bar, can see changes https http , still don't see 302 redirects coming server. we got html5 video work using https, still don't know why. back-end server iis. directory housing video file named "video...

scala - Type mismatch during refactoring using Slick -

i have following piece of code i'd make dryer: def createadmin(/* ... */): future[int] = db.run { { (users returning users.map(_.id)) += account(0, /* ... */) } flatmap { id => admins += admin(userid = id, /* ... */) } } def createstandarduser(/* ... */): future[int] = db.run { { (users returning users.map(_.id)) += account(0, /* ... */) } flatmap { id => standardusers += standarduser(userid = id, /* ... */) } } that compiles fine. if consolidate 2 following: def createuser(role: string)(/* ... */): future[int] = db.run { { (users returning users.map(_.id)) += account(0, /* ... */) } flatmap { id => role match { case "admin" => admins += admin(userid = id, /* ... */) case "standard" => standardusers += standarduser(userid = id, /* ... */) } } } i following type mismatch error: [error] found : long => s...

version control - Combine Commits within TFS -

so in git can squash multiple commits single commit. example, let's checked in change, realized forgot small, make change locally , commit again. git squash can merge 1 commit. my question tfs have sort of method doing same thing? no. tfvc uses totally different version control paradigm git; not support history rewriting actions squashing , amending.

c# - Roslyn, can not get provider to update solution after codefix -

i have created analyzer detect if method not contain <createddate> tag in xml , provider inject tag. works fine , inserts tag still returns build error though rule has been fixed. think need use semantic models possibly? this have: codefixprovider.cs using system; using system.collections.immutable; using system.composition; using system.linq; using system.threading; using system.threading.tasks; using microsoft.codeanalysis; using microsoft.codeanalysis.codefixes; using microsoft.codeanalysis.codeactions; using microsoft.codeanalysis.csharp; using microsoft.codeanalysis.csharp.syntax; using microsoft.codeanalysis.formatting; using microsoft.codeanalysis.simplification; using microsoft.codeanalysis.rename; namespace newanalyzer { [exportcodefixprovider(languagenames.csharp, name = nameof(newanalyzercodefixprovider)), shared] public class newanalyzercodefixprovider : codefixprovider { private const string title = "add createddate"; ...

Changing column in Laravel migration causes exception: Changing columns for table requires Doctrine DBAL -

i'm trying change max length of 1 of columns in table reserves in 1 migration. code looks this: public function up() { // schema::table('reserves', function($table){ $table->string("mobile", 11)->change(); }); } but when running migration via artisan, throws exception , says: [runtimeexception] changing columns table "reserves" requires doctrine dbal; install "doctrine/dbal". what problem , how can solve it? the problem solved, executing following command on root directory of framework: composer require doctrine/dbal

Google Apps Script & Google Analytics API: Can't read PropertyIDs from Google Spreadsheet columns -

i'm trying use code in script editor read queries google spreadsheet columns people not know google apps scripts can use when want change queries start-date, end-date, metrics, dimensions, etc...the codes can read start-date, end-date, metrics, dimensions, , filters successfully. however, think doesn't recognize accountid, webpropertyid, , profileid sheet named "report configuration." got error "response code: 404. message: not found". me on this? below code got @eudardo: var log_sheet_name = 'unsampled report logs'; var ss = spreadsheetapp.getactive(); var ui = spreadsheetapp.getui(); var sheet = ss.getsheetbyname('report configuration'); var startdaterange = sheet.getrange(10,5); var startdate = startdaterange.getvalue(); var enddaterange = sheet.getrange(10,6); var enddate = enddaterange.getvalue(); var metricsrange = sheet.getrange(10,8); var metrics = metricsrange.getvalue(); var dimensionsrange = sheet.getrange(10,9); var dime...

python - Building OpenCV cmake error: could NOT find PythonInterp -

to build opencv, ran in terminal in ~/opencv/build directory : cmake -d cmake_build_type=release -d cmake_install_prefix=/path/to/opencv-3.0.0/build -d python2_library=/usr/local/cellar/python/2.7.11/frameworks/python.framework/versions/2.7/bin -d python2_include_dir=/usr/local/frameworks/python.framework/headers -d python2_packages_path=/usr/local/lib/python2.7/site-packages -d install_c_examples=on -d install_python_examples=on -d build_examples=on -d opencv_extra_modules_path=/path/to/opencv_contrib-3.0.0/modules ../ but no matter happens, see error in traceback : (could not find pythoninterp: ) traceback (most recent call last): file "<string>", line 1, in <module> importerror: no module named numpy.distutils -- not find pythoninterp: found unsuitable version "2.7.11", required @ least "3.4" (found /usr/local/bin/python) -- not find pythoninterp: found unsuitable version "2.7.11", required @ least ...

windows - Can't run Vagrant commands -

i got error when trying run vagrant up on windows 7 initialize vm. got directory not empty problem when ran other vagrant commands, can't set vm. know how fix this? c:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/fileutils.rb:1444:in `rmdir': directory not empty @ dir_s_rmdir - c:/users/vu/appdata/local/temp/vagrant20160421-5284-idj4q2 (errno::enotempty) c:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/fileutils.rb:1444:in `block in remove_dir1' c:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/fileutils.rb:1458:in `platform_support' c:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/fileutils.rb:1443:in `remove_dir1' c:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/fileutils.rb:1436:in `remove' c:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/fileutils.rb:778:in `block in remove_entry' c:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/fileutils.rb:1493:in `ensure in postorder_traverse' c:/hashicorp/vagrant/embedded/lib/ru...

Rails/Devise/Bootstrap: Can't access @minimum_password_length in sign up modal -

i've created bootstrap modal devise sign up, accessible via link on landing page navbar. modal working properly, i.e. creating user. when try add password length hint password input - nothing. checked value of devise instance variable @minimum_password_length , nil. suggestions? rails 4.2.6, ruby 2.3.0, bootstrap 4.0.0.alpha3, devise 4.0.0, simple form 3.2.1 /config/initializers/devise.rb ... if rails.env.test? || rails.env.development? config.password_length = 2..128 else config.password_length = 8..128 end ... /db/migrate/20160417123456_devise_create_users.rb ... ## confirmable t.string :confirmation_token t.datetime :confirmed_at t.datetime :confirmation_sent_at t.string :unconfirmed_email # if using reconfirmable ... add_index :users, :confirmation_token, unique: true ... /app/models/user.rb ... devise :confirmable, :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :valida...

shapely - Geopandas plot all features same color -

is there easy way plot features in geodataframe same color, rather default color map? say have following geodataframe of linestrings: >>> import geopandas gpd >>> shapely.geometry import linestring >>> >>> gdf=gpd.geodataframe(geometry=[linestring([(1,2),(4,5)]),linestring([(6,3),(7,3)]),linestring([(6,2),(8,9)])]) >>> gdf geometry 0 linestring (1 2, 4 5) 1 linestring (6 3, 7 3) 2 linestring (6 2, 8 9) >>> how can use gdf.plot() have 3 linestrings show colored black? since setting single color not yet implemented, can create own colormap 1 color. from matplotlib.colors import listedcolormap mycolor = listedcolormap('blue') for example lead to import geopandas gpd shapely.geometry import linestring matplotlib.colors import listedcolormap mycolor = listedcolormap('blue') gdf=gpd.geodataframe(geometry=[linestring([(1,2),(4,5)]),linestring([(6,3),(7,3)]),lin...

cryptography - Hash functions violating some pre image properties -

suppose h(xy) = h(x) * h(y) . preimage properties violated. how can find x, y such h(x) = h(y) mod (2^k) 2^k special modulus. can prove following strengthened version of euler's theorem: suppose x postive integer. x^phi(2^k) (mod 2^k) equal either 0 or 1, 1 if , if x odd. proof: if x odd, gcd(x,2^k) = 1 , hence x^phi(2^k) (mod 2^k) = 1 euler's theorem. suppose x even. result trivially true if x = 0 , suppose x > 0 . write x = (2^s)*y y odd , s > 0 . note phi(2^k)` = 2^(k-1) but then, x^phi(2^k) = (2^s*y)^phi(2^k) = (2^s)^phi(2^k) * y^phi(2^k) = 2^(s*phi(2^k)) * y^phi(2^k) = 2^(s*2^(k-1)) * y^phi(2^k) = 0 * y^phi(2^k) = 0 (mod 2^k) the last line follows fact s*2^(k-1) >= k hence 2^(s*2^(k-1)) multiple of 2^k . note if x have x^k = 0 (mod 2^k) , raising x power phi(2^k) overkill smallest k . given lemma, trivial see there exists distinct x , y either h(x) = h(y) = 0 or h(x) = h...

windows - Why would redirection work where piping fails? -

in theory, these 2 command-lines should equivalent: 1 type tmp.txt | test.exe 2 test.exe < tmp.txt i have process involving #1 that, many years, worked fine; @ point within last year, started compile program newer version of visual studio, , fails due malformed input (see below). #2 succeeds (no exception , see expected output). why #2 succeed #1 fails? i've been able reduce test.exe program below. our input file has 1 tab per line , uniformly uses cr/lf line endings. program should never write stderr: #include <iostream> #include <string> int __cdecl main(int argc, char** argv) { std::istream* pis = &std::cin; std::string line; int lines = 0; while (!(pis->eof())) { if (!std::getline(*pis, line)) { break; } const char* pline = line.c_str(); int tabs = 0; while (pline) { pline = strchr(pline, '\t'); if (pline) ...

Only has children .write rule [Firebase] -

given following rule: { "rules": { "users": { "$uid": { "name":{ ".read": "auth != null && auth.uid == $uid", ".write": "auth != null && auth.uid == $uid" } } } } } is there way in firebase limit children can written object? for example limit client writing object 1 attribute: name { "value": "value" } i know there .validate , haschildren() doesn't prevent user legally write object under $uid undesired attributes. nothing preventing client writing object follows: name { "value":"value", "unwantedattribute":"wastingspace" } is there equivalent hasthosechildrenonly() ? a .write rule determines who can write data location, not what data can write. to determine structure of data...

qt - Phonon.VideoWidget doesn't display with WA_TranslucentBackground property set -

i'm building small video player pyside application, process i've done on numerous projects before. however, parent window videowidget has wa_translucentbackground property set, in turn causes videowidget disappear. current code, prevents videowidget being shown (audio still plays): class parent(object): def setupui(self, parent): parent.setobjectname("main") parent.setwindowflags(qtcore.qt.framelesswindowhint) parent.setattribute(qtcore.qt.wa_translucentbackground) code correctly show videowidget: class parent(object): def setupui(self, parent): parent.setobjectname("main") parent.setwindowflags(qtcore.qt.framelesswindowhint) #parent.setattribute(qtcore.qt.wa_translucentbackground) the obvious solution not have translucent parent window, i'd prefer maintain translucent window if possible. there simple/known fix issue? edit: this post explores issue under c++; appears due qpainter's composition mode. have idea ...

wpf - Changing the "Hover Area" Shape of a Button -

Image
<button x:name="listitem_button_play" verticalalignment="center" style="{staticresource playbuttonstyle}" foreground="{x:null}"> <image source="resources/listitem_button_play.png"/> </button> i have button in datatemplate . applied style remove default hover effect. also, make grow bigger when mouse pointer enter hover area. <style x:key="playbuttonstyle" targettype="button"> <setter property="overridesdefaultstyle" value="true"/> <setter property="margin" value="5"/> <setter property="template"> <setter.value> <controltemplate targettype="button"> <border x:name="border" width="{binding path=actualheight, elementname=border}" ...

C# - Tier Separation - How to use these delegates? -

here's relevant code: clickmegame.cs using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; namespace classlibrary { public class clickmegame { public onclickme onclickmecallback; public int score; public clickmegame() { score = 0; } private void incrementscore() { score++; } } } clickmecallbackdefinitions.cs using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; namespace classlibrary { public delegate void onclickme(); } mainwindow.cs (windows form) using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.linq; using system.text; using system.threading.tasks; using system.windows.forms; using classlibrary; namespace clickme { public partial class mainwindow : form { private clickmegame game; publi...

asp.net - sessionState only works on localhost -

im developing asp.net webpage uses sessionstate keep limited time of inactivity before logs out (the users stored in database in sql server). problem works charm on localhost, when upload page remote server doesn't lasts more 10 minutes or (i need @ least 30 minutes). looks on web.config file <sessionstate timeout="30"> </sessionstate> a friend of mine told me should looking @ iis fix problem, did don't know be. i don't have experience in language please don't mad if question dumb.

vba - Schema.ini - determine file types -

according msdn ,i can use jet determine data type. how can use feature , explicitly declare columns. example, schema looks below: [gcsbd02.txt] colnameheader=true maxscanrows=0 characterset=oem format=csvdelimited col1="campaign" text col2="site (dcm)" text col3="date" datetime col4="month" text col6="creative" text col7="placement rate" long notice there no col5 . want jet determine type col5 . when read text file program, stops reading data @ col4. assume due odbc text file driver. know how format this? thanks, fyi - i'm doing part of import process sending data ms-access

windows - C# Console Application run in Powershell viaTask Scheduler -

i'm trying console application run via powersheell/task scheduler. if open powershell , manually run .\startreport.ps1 works. console application doesn't open, runs silently in background. however, when go create task via task scheduler, fails... telling me completed successfully. didn't. any ideas? $r = get-date $filename = ".\logs\" + $r.date.year + "-" + $r.date.month + "-"+ $r.date.day + ".txt" .\myapp.exe > $filename here how able perform in environment minor modifications. code in script below. notice using absolute paths instead of relative powershell launch c:\windows\system32 default path , may not have permission create logs folder , log file in there. startreport.ps1 script contents: $r = get-date $filename = "c:\data\logs\" + $r.date.year + "-" + $r.date.month + "-"+ $r.date.day + ".txt" & c:\data\myapp.exe > $filename notice above usin...

Re-use the view output matrix in Matlab -

Image
in matlab, create complicated 3d plot, manipulate view option hand point happy see (below). how can reuse parameters of final view? can output of view command 4 4 matrix, latter not seem reusable? in order out of view can pass view reconstruct viewpoint, need specify two outputs view yield current azimuth , elevation. [az, el] = view(ax1); you can pass these view on different (or same) axes specify viewpoint view(ax2, az, el); you can use view property of axes object. azel = get(ax1, 'view'); set(ax2, 'view', azel); note, however, there many properties control view of axes including projection , dataaspectratio , plotboxaspectratio , of camera properties . depending on use case, may need specify these well.

css - How do I add a "popup" shadow to an HTML element -

Image
how can give popup effect shadow? see commonly on different websites (e.g. https://www.smartrecruiters.com ) @ edge of content holder, has dark shadow popup effect. is there specific name it? can create effect on both side of body? is element style alright or styles recommended in css? additionally, if don't feel entirely confident tweaking code, can use 1 of various free box-shadow code generators, here's 1 use: http://css3gen.com/box-shadow/ then copy , paste code, browser specific syntax well. safer option if don't know css .

xcode - iOS UITesting Error -

i trying run xcode uitesting on physical device ( ipod ), getting error : test target uitests encountered error (early unexpected exit, operation never finished bootstrapping-no restart attempted). the specific line triggering error : [[[xcuiapplication alloc] init] launch]; i have noticed uitesting app not launch on device, instead on test target app launching, assume issue. ideas on how fix this? i able fix bug altering build settings, bundle loader. removed build/debug-iphoneos/my_app.app/my_app debug , build/release-iphoneos/my_app.app/my_app. added couple additional compile sources , able uitesting function again.

javascript - Is it possible to display bold and non-bold text in a textarea? -

this question has answer here: rendering html inside textarea 6 answers i don't want this: <textarea>the <b>color</b> black.</textarea> instead of <b> , </b> want text "color" shown in bold. is possible? for these cases, avoid use pure text area, use wysiwyg html editor. here ideas you: ckeditor niceditor

opengl - C++ VBO rendering issue -

this code works it's supposed work, renders correctly (didn't post every piece of related code since think something's wrong these parts): std::vector<gluint> vboid; std::vector< std::vector<glfloat> > verts; ...init: verts[num].push_back(x); verts[num].push_back(y); //verts[num].push_back(0); // texture offset verts[num].push_back(0); verts[num].push_back(offset); verts[num].push_back(x + tile_size); verts[num].push_back(y); //verts[num].push_back(0); // texture offset verts[num].push_back(1); verts[num].push_back(offset); verts[num].push_back(x + tile_size); verts[num].push_back(y + tile_size); //verts[num].push_back(0); // texture offset verts[num].push_back(1); verts[num].push_back(offset + zsize); verts[num].push_back(x); verts[num].push_back(y + tile_size); //verts[num].push_back(0); // texture offset verts[num].push_back(0); verts[num].push_back(offset + zsize); ... glbindbuffer(gl_array_buffer, vboid[num]); glbufferdata(gl_array_buffer...

polymer - paper-drawer-panel causes Y scrollbar not to scroll to the bottom of viewport -

Image
when use paper-drawer-panel , viewport not correct. shown in first screen shot, y scroll bar there should be....but bottom of viewport not equal end/bottom of y scrollbar. in otherwards, there still portion of content not showing hidden. if remove paper-drawer-panel , , y scroll bar scrolls bottom of viewport. this in index.html. bad - paper-drawer-panel : <template is="dom-bind" id="app"> <paper-drawer-panel force-narrow="true"> <div drawer> <drawer-custom></drawer-custom> </div> <div main> <div id="header-v-center"> <paper-icon-button id="paper-toggle" icon="menu" paper-drawer-toggle> </paper-icon-button> <div id="header-text-middle">spices of world</div> <div id="header-text-right">a special edition! </div> </div> ...