Posts

IcCube - excluding members on schema level -

edit (copy&paste errors): i use time wizard dimension , having dates being not in future. since have set end date, obviusly not change every day hand, set high , remove afterwards members lying in future. tried use "advanced" methods "scripts" , "perspectives". prefer first, since make members vanish , not being invisible, if there no way of doing so, second ok well. if filter dates in mdx statement, works fine: filter([date].[date].[day].members, [date].currentmember.key < now()) using script tried drop members: drop member filter([date].[date].[date].members, [date].[date].currentmember.key > now()) and gave me syntax error: syntax error: unexpected statement '(' (open_paren) trying use perspective -filter([date].[date].[day].members, [date].currentmember.key > now()) told me: syntax error: unknown function/property 'key' what have do, rid of dates? while loading schema @ latest.

Symfony - Security / routing setup to enable password protected user pages -

i'm pretty new symfony although i've managed set working site, role based authentication , firewalls i'm struggling working out how build system allows users login , have access page , admin has access to. what want dynamic security role enables user in current session access own private page , blocks else... here's actual config: security: encoders: #define encoders used encode passwords symfony\component\security\core\user\user: plaintext intuitbydesign\userbundle\entity\user: bcrypt role_hierarchy: role_admin: [role_user] providers: chain_provider: chain: providers: [in_memory, user_db] in_memory: memory: users: admin: { password: adminpass, roles: role_admin } user_db: entity: {class: intuitbydesignuserbundle:user, property: username } firewalls: main: logout: true ...

android - How to Logout facebook button completely include (change text 'log out' to 'log in with facebook' ) from another activity -

i trying logout fb button activity problem when logout activity.facebook button show logout text , not logout means again click on logout logout fb button. try if (accesstoken.getcurrentaccesstoken() == null) { return; // logged out }else { new graphrequest(accesstoken.getcurrentaccesstoken(), "/me/permissions/", null, httpmethod.delete, new graphrequest .callback() { @override public void oncompleted(graphresponse graphresponse) { loginmanager.getinstance().logout(); } }).executeasync(); }

How to resend post multipart/form-data form with upload file to different server with Java Spring -

i receiving multipart file via http post in java spring. want forward request file other server. how can in spring java? in jsp file: <form ... method="post" enctype="multipart/form-data"> and in controller class: @requestmapping(value = "/save", method = requestmethod.post) @responsebody public long save(@requestparam("file") multipartfile file, @requestparam string filecode,...) throws ioexception { ... }

html5 - How to count the lines of a <pre> poem using css? -

i want display beowulf on webpage, full poem. code far: <head> <title>beowulf</title> <style type="text/css"> body {padding: 10% 25%;} pre {font-family: "times new roman"; font-size: 100%;} </style> </head> <body> <h3>beowulf</h3><br> <pre>now beowulf bode in burg of scyldings, leader beloved, , long ruled in fame folk, since father had gone (...) of furious flame. nor far day when father , son-in-law stood in feud warfare , hatred woke again. (...)</pre> </body> now how every fifth line numbered? position numbers on extreme edge of right side. i appretiate if tried explain issue me didatically possible. friend of simplicity , give preference codes shouldn't bigger beowulf poem (if message!), preferably css. if javascrpit way there, kindly ask formulate answer in didactical way can. programming skills "lower-intermediate" , unfortunately didn...

sql server - SQL: How to Pivot a Table with Pivot Columns Sharing the Same Name? -

this question has answer here: sql pivot table dynamic 2 answers i using sql server 2008 r2 version 10.50.1600.1. i'm trying pivot table strings pivot column shares same name. data looks like. +------------+-----------+------------+ | patient_id | code_type | code_value | +------------+-----------+------------+ | 1 | icd9 | v70 | | 1 | icd9 | 401.9 | | 1 | icd9 | 616 | | 1 | icd9 | 338.21 | | 2 | icd9 | v10 | | 2 | icd9 | 250 | +------------+-----------+------------+ what i'm trying ... +------------+--------+--------+--------+--------+--------+--------+ | patient_id | icd9_1 | icd9_2 | icd9_3 | icd9_4 | icd9_5 | icd9_x | +------------+--------+--------+--------+--------+--------+--------+ | 1 | v70 | 401.9 | 616 ...

php - Dividing up multiword $_POST input -

i trying have php form takes in text input, queries underlying mysql table. <form method="get" action="search.php" name ="searchbar"> <input type="text" name"search"> <input type="submit" value="search"> </form> the schemas of tables querying movie(id, title, year, rating, company) actor(id, last, first, sex, dob, dod) for movie, think it'll easy because make query where title '%".$_post['search']."%' along line. actor, since name divided 2 parts (last, first), think need break down inputs words can compare each word attributes. (so if input 'hanks tom' or 'tom hanks', query able find actor tom hanks either input) there way achieve this, or possibly smarter way approach this? you have search every combination of input see if 1 of them match first or last name. keep in mind first , last reserved word...